Browse Source

拉取代码

maotao 7 months ago
parent
commit
b1c956e3c7

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

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

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

@@ -761,20 +761,32 @@
761
                     orderInfo.patient ? orderInfo.patient.patientName : "-"
761
                     orderInfo.patient ? orderInfo.patient.patientName : "-"
762
                   }}</span>
762
                   }}</span>
763
                 </p>
763
                 </p>
764
-                <p>
764
+                <p *ngIf="orderInfo.patient.residenceNo">
765
                   <span class="label">床位</span>
765
                   <span class="label">床位</span>
766
                   <span>{{
766
                   <span>{{
767
                     orderInfo.patient ? orderInfo.patient.bedNum : "-"
767
                     orderInfo.patient ? orderInfo.patient.bedNum : "-"
768
                   }}</span>
768
                   }}</span>
769
                 </p>
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
               </div>
776
               </div>
771
               <div class="right" nz-col nzSpan="12">
777
               <div class="right" nz-col nzSpan="12">
772
-                <p>
778
+                <p *ngIf="orderInfo.patient.residenceNo">
773
                   <span class="label">住院号</span>
779
                   <span class="label">住院号</span>
774
                   <span>{{
780
                   <span>{{
775
                     orderInfo.patient ? orderInfo.patient.residenceNo : "-"
781
                     orderInfo.patient ? orderInfo.patient.residenceNo : "-"
776
                   }}</span>
782
                   }}</span>
777
                 </p>
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
                 <p>
790
                 <p>
779
                   <span class="label">携带物品</span>
791
                   <span class="label">携带物品</span>
780
                   <span>{{ orderInfo.goods || "暂无" }}</span>
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
 	getHospitalData(){
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
 			this.mustReceived = res.data.mustReceived;
764
 			this.mustReceived = res.data.mustReceived;
763
 			this.currReceived = res.data.currReceived;
765
 			this.currReceived = res.data.currReceived;
764
 			this.btnConnectLoading = false
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
 			this.receptionName = null;
783
 			this.receptionName = null;
773
-			this.connectUserId =null
784
+			this.connectUserId = null
774
 			this.connectModal = true
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
 			this.mustReceived = res.data.mustReceived;
517
 			this.mustReceived = res.data.mustReceived;
518
 			this.currReceived = res.data.currReceived;
518
 			this.currReceived = res.data.currReceived;
519
 			this.btnConnectLoading = false
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
 			this.receptionName = this.userInfo.name;
535
 			this.receptionName = this.userInfo.name;
528
 			this.connectUserId = this.userInfo.id;
536
 			this.connectUserId = this.userInfo.id;
529
 			this.connectModal = true
537
 			this.connectModal = true