seimin 2 months ago
parent
commit
cbef47604b

+ 1 - 1
src/app/views/fuwutai/fuwutai.component.html

@@ -1097,7 +1097,7 @@
1097
                               <nz-form-control class="control" [nzSpan]="16" nzErrorTip="请选择患者信息!">
1097
                               <nz-form-control class="control" [nzSpan]="16" nzErrorTip="请选择患者信息!">
1098
                                 <nz-select style="width: 160px" formControlName="patient" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchPatientList(radioValueZy == deathTasktypeId && endDeptZy !== null ? endDeptZy : applyDept, $event)" nzAllowClear nzPlaceHolder="请选择患者信息" [(ngModel)]="patientZy" (ngModelChange)="selectPatientZy($event)">
1098
                                 <nz-select style="width: 160px" formControlName="patient" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchPatientList(radioValueZy == deathTasktypeId && endDeptZy !== null ? endDeptZy : applyDept, $event)" nzAllowClear nzPlaceHolder="请选择患者信息" [(ngModel)]="patientZy" (ngModelChange)="selectPatientZy($event)">
1099
                                   <ng-container *ngFor="let option of patientList">
1099
                                   <ng-container *ngFor="let option of patientList">
1100
-                                    <nz-option *ngIf="!isLoadingPatient" [nzLabel]="(option.bednum || '') + '床 ' + (option.patientname || '') + ' ' + (option.residenceNo || '')" [nzValue]="option.patientCode"></nz-option>
1100
+                                    <nz-option *ngIf="!isLoadingPatient" [nzLabel]="(option.bednum ? option.bednum + '床 ' : '') + (option.patientname || '') + ' ' + (option.residenceNo || '')" [nzValue]="option.patientCode"></nz-option>
1101
                                   </ng-container>
1101
                                   </ng-container>
1102
                                   <nz-option *ngIf="isLoadingPatient" nzDisabled nzCustomContent>
1102
                                   <nz-option *ngIf="isLoadingPatient" nzDisabled nzCustomContent>
1103
                                     <i nz-icon nzType="loading" class="loading-icon"></i>
1103
                                     <i nz-icon nzType="loading" class="loading-icon"></i>

+ 9 - 9
src/app/views/fuwutai/fuwutai.component.ts

@@ -2745,9 +2745,9 @@ export class FuwutaiComponent implements OnInit {
2745
       this.isLoadingPatient = false;
2745
       this.isLoadingPatient = false;
2746
       if (result["state"] == 200) {
2746
       if (result["state"] == 200) {
2747
         this.patientList = result["data"];
2747
         this.patientList = result["data"];
2748
-        if (this.patientList.length) {
2749
-          this.patientList = this.patientList.filter((item) => !!item.bednum);
2750
-        }
2748
+        // if (this.patientList.length) {
2749
+        //   this.patientList = this.patientList.filter((item) => !!item.bednum);
2750
+        // }
2751
       }
2751
       }
2752
     });
2752
     });
2753
   }
2753
   }
@@ -3619,7 +3619,7 @@ export class FuwutaiComponent implements OnInit {
3619
     this.endDeptZy = null;
3619
     this.endDeptZy = null;
3620
     this.patientZy = null;
3620
     this.patientZy = null;
3621
     this.goodsNow = [];
3621
     this.goodsNow = [];
3622
-    this.patientList = [];
3622
+    // this.patientList = [];
3623
     this.workOrderRemark = "";
3623
     this.workOrderRemark = "";
3624
     this.workOrderRemarkZy = "";
3624
     this.workOrderRemarkZy = "";
3625
     this.deptZyList["startDept"] = [];
3625
     this.deptZyList["startDept"] = [];
@@ -3738,12 +3738,12 @@ export class FuwutaiComponent implements OnInit {
3738
       this.msg.warning('请选择优先级!');
3738
       this.msg.warning('请选择优先级!');
3739
       return;
3739
       return;
3740
     }
3740
     }
3741
-		
3741
+
3742
 		if(!this.incidentModel.source){
3742
 		if(!this.incidentModel.source){
3743
 		  this.msg.warning('请选择事件来源!');
3743
 		  this.msg.warning('请选择事件来源!');
3744
 		  return;
3744
 		  return;
3745
 		}
3745
 		}
3746
-		
3746
+
3747
     if(!this.incidentModel.description){
3747
     if(!this.incidentModel.description){
3748
       this.msg.warning('请选择故障描述!');
3748
       this.msg.warning('请选择故障描述!');
3749
       return;
3749
       return;
@@ -3799,7 +3799,7 @@ export class FuwutaiComponent implements OnInit {
3799
 		  this.msg.warning('请选择事件来源!');
3799
 		  this.msg.warning('请选择事件来源!');
3800
 		  return;
3800
 		  return;
3801
 		}
3801
 		}
3802
-		
3802
+
3803
     if(!this.incidentModel.description){
3803
     if(!this.incidentModel.description){
3804
       this.msg.warning('请选择故障描述!');
3804
       this.msg.warning('请选择故障描述!');
3805
       return;
3805
       return;
@@ -3986,12 +3986,12 @@ export class FuwutaiComponent implements OnInit {
3986
       this.msg.warning('请选择优先级!');
3986
       this.msg.warning('请选择优先级!');
3987
       return;
3987
       return;
3988
     }
3988
     }
3989
-		
3989
+
3990
 		if(!this.incidentModel.source){
3990
 		if(!this.incidentModel.source){
3991
 		  this.msg.warning('请选择事件来源!');
3991
 		  this.msg.warning('请选择事件来源!');
3992
 		  return;
3992
 		  return;
3993
 		}
3993
 		}
3994
-		
3994
+
3995
     if(!this.incidentModel.description){
3995
     if(!this.incidentModel.description){
3996
       this.msg.warning('请选择故障描述!');
3996
       this.msg.warning('请选择故障描述!');
3997
       return;
3997
       return;