maotao před 7 měsíci
rodič
revize
b1c956e3c7

+ 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