seimin месяцев назад: 7
Родитель
Сommit
6637153af5

+ 10 - 2
src/app/share/detail-patients/detail-patients.component.html

@@ -89,20 +89,28 @@
89 89
                 <span class="label">患者姓名</span>
90 90
                 <span>{{orderInfo.patient.patientName}}</span>
91 91
               </p>
92
-              <p>
92
+              <p *ngIf="orderInfo.patient.residenceNo">
93 93
                 <span class="label">床位</span>
94 94
                 <span>{{orderInfo.patient.bedNum}}</span>
95 95
               </p>
96
+							<p *ngIf="!orderInfo.patient.residenceNo">
97
+							  <span class="label">就诊卡号</span>
98
+							  <span>{{orderInfo.patient.cardNo}}</span>
99
+							</p>
96 100
               <p *ngIf="orderInfo.patient.careLevel">
97 101
                 <span class="label">{{orderInfo.patient.careLevel.desc}}</span>
98 102
                 <span>{{orderInfo.patient.careLevel.name}}</span>
99 103
               </p>
100 104
             </div>
101 105
             <div class="right" nz-col nzSpan="12">
102
-              <p>
106
+              <p *ngIf="orderInfo.patient.residenceNo">
103 107
                 <span class="label">住院号</span>
104 108
                 <span>{{orderInfo.patient.residenceNo}}</span>
105 109
               </p>
110
+							<p *ngIf="!orderInfo.patient.residenceNo">
111
+							  <span class="label">身份证号</span>
112
+							  <span>{{orderInfo.patient.identityCardNo}}</span>
113
+							</p>
106 114
               <p>
107 115
                 <span class="label">携带物品</span>
108 116
                 <span>{{orderInfo.goods||'暂无'}}</span>

+ 14 - 2
src/app/share/order-detail/order-detail.component.html

@@ -761,20 +761,32 @@
761 761
                     orderInfo.patient ? orderInfo.patient.patientName : "-"
762 762
                   }}</span>
763 763
                 </p>
764
-                <p>
764
+                <p *ngIf="orderInfo.patient.residenceNo">
765 765
                   <span class="label">床位</span>
766 766
                   <span>{{
767 767
                     orderInfo.patient ? orderInfo.patient.bedNum : "-"
768 768
                   }}</span>
769 769
                 </p>
770
+								<p *ngIf="!orderInfo.patient.residenceNo">
771
+								  <span class="label">就诊卡号</span>
772
+								  <span>{{
773
+								    orderInfo.patient ? orderInfo.patient.cardNo : "-"
774
+								  }}</span>
775
+								</p>
770 776
               </div>
771 777
               <div class="right" nz-col nzSpan="12">
772
-                <p>
778
+                <p *ngIf="orderInfo.patient.residenceNo">
773 779
                   <span class="label">住院号</span>
774 780
                   <span>{{
775 781
                     orderInfo.patient ? orderInfo.patient.residenceNo : "-"
776 782
                   }}</span>
777 783
                 </p>
784
+								<p *ngIf="!orderInfo.patient.residenceNo">
785
+								  <span class="label">身份证号</span>
786
+								  <span>{{
787
+								    orderInfo.patient ? orderInfo.patient.identityCardNo : "-"
788
+								  }}</span>
789
+								</p>
778 790
                 <p>
779 791
                   <span class="label">携带物品</span>
780 792
                   <span>{{ orderInfo.goods || "暂无" }}</span>

+ 30 - 19
src/app/views/pathology/pathology.component.ts

@@ -481,18 +481,20 @@ export class PathologyComponent implements OnInit, OnDestroy {
481 481
 	
482 482
 	// 获取院区
483 483
 	getHospitalData(){
484
-		let data = {
485
-		  idx: 0,
486
-		  sum: 9999,
487
-			hospital:{
488
-				selectType:'level1'
489
-			}
490
-		};
491
-		this.mainService
492
-		  .getFetchDataList("data", "hospital", data)
493
-		  .subscribe((res) => {
494
-		    this.hospital = res.list;
495
-		  });
484
+		let arr = this.tool.getHospitalList().filter(i=>i.parent==undefined)
485
+		this.hospital = arr
486
+		// let data = {
487
+		//   idx: 0,
488
+		//   sum: 9999,
489
+		// 	hospital:{
490
+		// 		selectType:'level1'
491
+		// 	}
492
+		// };
493
+		// this.mainService
494
+		//   .getFetchDataList("data", "hospital", data)
495
+		//   .subscribe((res) => {
496
+		//     this.hospital = res.list;
497
+		//   });
496 498
 	}
497 499
 	
498 500
 	// 选择院区
@@ -762,15 +764,24 @@ export class PathologyComponent implements OnInit, OnDestroy {
762 764
 			this.mustReceived = res.data.mustReceived;
763 765
 			this.currReceived = res.data.currReceived;
764 766
 			this.btnConnectLoading = false
765
-			this.validateConnectForm = this.fb.group({
766
-				receptionNumber: [null, [Validators.required]],
767
-				dispatchingNumber: [this.codeData[0].deliveryUserDTO.account, [Validators.required]]
768
-			});
769
-			this.dispatchingName = this.codeData[0].deliveryUserDTO.name;
770
-			this.dispatchingUserId = this.codeData[0].deliveryUserDTO.id
767
+			if(this.codeData[0].deliveryUserDTO){
768
+				this.validateConnectForm = this.fb.group({
769
+					receptionNumber: [null, [Validators.required]],
770
+					dispatchingNumber: [this.codeData[0].deliveryUserDTO.account, [Validators.required]]
771
+				});
772
+				this.dispatchingName = this.codeData[0].deliveryUserDTO.name;
773
+				this.dispatchingUserId = this.codeData[0].deliveryUserDTO.id
774
+			}else{
775
+				this.validateConnectForm = this.fb.group({
776
+					receptionNumber: [null, [Validators.required]],
777
+					dispatchingNumber: [null, [Validators.required]]
778
+				});
779
+				this.dispatchingName = null;
780
+				this.dispatchingUserId = null
781
+			}
771 782
 			
772 783
 			this.receptionName = null;
773
-			this.connectUserId =null
784
+			this.connectUserId = null
774 785
 			this.connectModal = true
775 786
 		});
776 787
 	}

+ 15 - 7
src/app/views/pathologyScan/pathologyScan.component.ts

@@ -517,13 +517,21 @@ export class PathologyScanComponent implements OnInit, OnDestroy {
517 517
 			this.mustReceived = res.data.mustReceived;
518 518
 			this.currReceived = res.data.currReceived;
519 519
 			this.btnConnectLoading = false
520
-			this.validateConnectForm = this.fb.group({
521
-				receptionNumber: [this.userInfo.account, [Validators.required]],
522
-				dispatchingNumber: [this.codeData[0].deliveryUserDTO.account, [Validators.required]]
523
-			});
524
-			this.dispatchingName = this.codeData[0].deliveryUserDTO.name;
525
-			this.dispatchingUserId = this.codeData[0].deliveryUserDTO.id
526
-			
520
+			if(this.codeData[0].deliveryUserDTO){
521
+				this.validateConnectForm = this.fb.group({
522
+					receptionNumber: [this.userInfo.account, [Validators.required]],
523
+					dispatchingNumber: [this.codeData[0].deliveryUserDTO.account, [Validators.required]]
524
+				});
525
+				this.dispatchingName = this.codeData[0].deliveryUserDTO.name;
526
+				this.dispatchingUserId = this.codeData[0].deliveryUserDTO.id
527
+			}else{
528
+				this.validateConnectForm = this.fb.group({
529
+					receptionNumber: [null, [Validators.required]],
530
+					dispatchingNumber: [null, [Validators.required]]
531
+				});
532
+				this.dispatchingName = null;
533
+				this.dispatchingUserId = null
534
+			}
527 535
 			this.receptionName = this.userInfo.name;
528 536
 			this.connectUserId = this.userInfo.id;
529 537
 			this.connectModal = true

+ 19 - 0
src/app/views/sys-config/sys-config.component.html

@@ -189,6 +189,25 @@
189 189
             <nz-input-number class="w100" formControlName="refreshNurseWorkOrderTime" [nzMin]="15" [nzStep]="1" [nzPrecision]="0" [nzFormatter]="formatterSecond" [nzParser]="parserSecond"></nz-input-number>
190 190
           </nz-form-control>
191 191
         </nz-form-item>
192
+				<nz-form-item class="formItem">
193
+				  <nz-form-label [nzSpan]="10" nzFor="repairs" nzRequired class="label">报修方式支持
194
+				  </nz-form-label>
195
+				  <nz-form-control [nzSpan]="14" nzErrorTip="报修方式支持是必填项!">
196
+						<nz-checkbox-group formControlName="repairs" [(ngModel)]="checkOptionsOne" ></nz-checkbox-group>
197
+						<!-- <label nz-checkbox formControlName="deptRepair" [(ngModel)]="deptRepair">科内报修</label> -->
198
+						<!-- <label nz-checkbox formControlName="publicRepair" [(ngModel)]="publicRepair">公共报修</label> -->
199
+					</nz-form-control>
200
+				</nz-form-item>
201
+				<nz-form-item class="formItem">
202
+				  <nz-form-label [nzSpan]="10" nzFor="cmdbRepair" nzRequired class="label">是否支持资产报修
203
+				  </nz-form-label>
204
+				  <nz-form-control [nzSpan]="14" nzErrorTip="是否支持资产报修是必填项!">
205
+						<nz-radio-group formControlName="cmdbRepair">
206
+						  <label nz-radio nzValue="1">是</label>
207
+						  <label nz-radio nzValue="0">否</label>
208
+						</nz-radio-group>
209
+				  </nz-form-control>
210
+				</nz-form-item>
192 211
       </div>
193 212
     </form>
194 213
   </overlay-scrollbars>

+ 48 - 1
src/app/views/sys-config/sys-config.component.ts

@@ -26,6 +26,10 @@ export class SysConfigComponent implements OnInit {
26 26
   promptInfo: string; //操作结果提示信息
27 27
   promptModalShow: boolean; //操作提示框是否展示
28 28
   coopBtns = {};
29
+	checkOptionsOne = [
30
+		{ label: '科内报修', value: 'deptRepair', checked:false},
31
+		{ label: '公共报修', value: 'publicRepair', checked:false },
32
+	];
29 33
   formatterSecond = (value: number) => `${value} 秒`;
30 34
   parserSecond = (value: string) => value.replace(' 秒', '');
31 35
   menu = JSON.parse(localStorage.getItem("menu")) || []; //菜单
@@ -68,6 +72,8 @@ export class SysConfigComponent implements OnInit {
68 72
       cachePath: [{ value: null, disabled: true }, [Validators.required]],
69 73
       cachePort: [{ value: null, disabled: true }, [Validators.required]],
70 74
       busiViewDeptId: [null, [Validators.required]],
75
+			repairs: [null, [Validators.required]],
76
+			cmdbRepair: [null, [Validators.required]],
71 77
     });
72 78
     this.getDeptType();
73 79
     this.coopBtns = this.tool.initCoopBtns(this.route);
@@ -143,8 +149,12 @@ export class SysConfigComponent implements OnInit {
143 149
         item.keyconfig === "systemName" ||
144 150
         item.keyconfig === "largeScreenName" ||
145 151
         item.keyconfig === "defaultRoleOfNurse" ||
146
-        item.keyconfig === "busiViewDeptId"
152
+        item.keyconfig === "busiViewDeptId" ||
153
+				item.keyconfig === "deptRepair" ||
154
+				item.keyconfig === "publicRepair" ||
155
+				item.keyconfig === "cmdbRepair" 
147 156
     );
157
+		console.log(7777,this.validateForm.controls.repairs.value)
148 158
     filterData.forEach((item) => {
149 159
       if (item.keyconfig === "pwd") {
150 160
         item.valueconfig = this.validateForm.controls.defaultPwd.value;
@@ -178,6 +188,24 @@ export class SysConfigComponent implements OnInit {
178 188
         item.valueconfig = this.validateForm.controls.defaultRoleOfNurse.value;
179 189
       } else if (item.keyconfig === "busiViewDeptId") {
180 190
         item.valueconfig = this.validateForm.controls.busiViewDeptId.value;
191
+      } else if (item.keyconfig === "deptRepair") {
192
+				let value = null
193
+				if(this.validateForm.controls.repairs.value[0].checked){
194
+					value = '1'
195
+				}else{
196
+					value = '0'
197
+				}
198
+        item.valueconfig = value;
199
+      } else if (item.keyconfig === "publicRepair") {
200
+			  let value = null
201
+			  if(this.validateForm.controls.repairs.value[1].checked){
202
+			  	value = '1'
203
+			  }else{
204
+			  	value = '0'
205
+			  }
206
+			  item.valueconfig = value;
207
+			}else if (item.keyconfig === "cmdbRepair") {
208
+        item.valueconfig = this.validateForm.controls.cmdbRepair.value;
181 209
       }
182 210
     });
183 211
     const postData = filterData;
@@ -287,6 +315,25 @@ export class SysConfigComponent implements OnInit {
287 315
                 case "busiViewDeptId":
288 316
                   this.validateForm.controls.busiViewDeptId.setValue(c[1] + "");
289 317
                   break;
318
+								case "deptRepair":
319
+									if(c[1]=='1'){
320
+										this.checkOptionsOne[0].checked = true
321
+									}else{
322
+										this.checkOptionsOne[0].checked = false
323
+									}
324
+								  this.validateForm.controls.repairs.setValue(this.checkOptionsOne + "");
325
+								  break;
326
+								case "publicRepair":
327
+									if(c[1]=='1'){
328
+										this.checkOptionsOne[1].checked = true
329
+									}else{
330
+										this.checkOptionsOne[1].checked = false
331
+									}
332
+								  this.validateForm.controls.repairs.setValue(this.checkOptionsOne + "");
333
+								  break;	
334
+								case "cmdbRepair":
335
+								  this.validateForm.controls.cmdbRepair.setValue(c[1] + "");
336
+								  break;
290 337
               }
291 338
             });
292 339
           } else {