seimin il y a 4 mois
Parent
commit
31ebeef24b

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

@@ -1086,7 +1086,7 @@
1086 1086
                             <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择任务类型!">
1087 1087
                               <div class="radios">
1088 1088
                                 <overlay-scrollbars #osComponentRef10 [ngStyle]="{ height: '100%' }">
1089
-                                  <nz-radio-group formControlName="taskType" nz-row [(ngModel)]="radioValueZy" (ngModelChange)="radioChangeZy(radioValueZy, index)">
1089
+                                  <nz-radio-group formControlName="taskType" nz-row [ngModel]="radioValueZy" (ngModelChange)="radioChangeZy($event, index)">
1090 1090
                                     <div nz-row>
1091 1091
                                       <label [title]="item1.taskTypeName" nz-col nz-radio [nzValue]="item1.id" *ngFor="let item1 of workTypesArrange[index].value">{{ item1.taskTypeName }}</label>
1092 1092
                                     </div>
@@ -1096,7 +1096,7 @@
1096 1096
                             </nz-form-control>
1097 1097
                           </nz-form-item>
1098 1098
                         </div>
1099
-                        <div nz-col [nzSpan]="24" *ngIf="isTaskTypeInspect">
1099
+                        <div nz-col [nzSpan]="24" *ngIf="isTaskTypeInspect && radioValueZy">
1100 1100
                           <!-- 检查 -->
1101 1101
                           <nz-form-item>
1102 1102
                             <nz-form-label [nzSm]="24" [nzXs]="24" nzFor="linkCheck" style="text-align: left;">关联的检查</nz-form-label>
@@ -1116,7 +1116,7 @@
1116 1116
                             <div class="noInspect" *ngIf="!linkCheckLis.length">暂无关联的检查</div>
1117 1117
                           </nz-form-item>
1118 1118
                         </div>
1119
-                        <div *ngIf="!isTaskTypeInspect" nz-col [nzSpan]="deptZyList['startStatus'] != 201 ? 12 : 24" [ngStyle]="{ display: (deptZyList['startStatus'] != 201 && !isTaskTypeInspect) ? 'block' : 'none'}">
1119
+                        <div *ngIf="!isTaskTypeInspect && radioValueZy" nz-col [nzSpan]="deptZyList['startStatus'] != 201 ? 12 : 24" [ngStyle]="{ display: (deptZyList['startStatus'] != 201 && !isTaskTypeInspect) ? 'block' : 'none'}">
1120 1120
                           <nz-form-item>
1121 1121
                             <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="startDept">起点科室</nz-form-label>
1122 1122
                             <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择起点科室!">
@@ -1132,11 +1132,11 @@
1132 1132
                             </nz-form-control>
1133 1133
                           </nz-form-item>
1134 1134
                         </div>
1135
-                        <div *ngIf="!isTaskTypeInspect" nz-col [nzSpan]="deptZyList['startStatus'] != 201 ? 12 : 24">
1135
+                        <div *ngIf="!isTaskTypeInspect && radioValueZy" nz-col [nzSpan]="deptZyList['startStatus'] != 201 ? 12 : 24">
1136 1136
                           <nz-form-item>
1137 1137
                             <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="endDepts">终点科室</nz-form-label>
1138 1138
                             <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择终点科室!">
1139
-                              <nz-select formControlName="endDepts" [nzDisabled]="deptZyList.endStatus == 201 || deptZyList.endStatus == 203 || deptZyList.endStatus == 206" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchHosDepartment(checkedHos, 'end', $event)" nzAllowClear nzPlaceHolder="请选择终点科室" [(ngModel)]="endDeptZy" (ngModelChange)="endDeptZyChange()">
1139
+                              <nz-select formControlName="endDepts" [nzDisabled]="deptZyList.endStatus == 201 || deptZyList.endStatus == 203 || deptZyList.endStatus == 206" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="searchHosDepartment(checkedHos, 'end', $event)" nzAllowClear nzPlaceHolder="请选择终点科室" [(ngModel)]="endDeptZy" (ngModelChange)="endDeptZyChange(e)">
1140 1140
                                 <ng-container *ngFor="let option of deptZyList.endDept">
1141 1141
                                   <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
1142 1142
                                 </ng-container>
@@ -1149,7 +1149,7 @@
1149 1149
                           </nz-form-item>
1150 1150
                         </div>
1151 1151
 
1152
-                        <div nz-col [nzSpan]="24" *ngIf="deptZyList.taskType && deptZyList.taskType.remarksSwitch == 1">
1152
+                        <div nz-col [nzSpan]="24" *ngIf="radioValueZy && deptZyList.taskType && deptZyList.taskType.remarksSwitch == 1">
1153 1153
                           <nz-form-item>
1154 1154
                             <nz-form-label class="label" [nzSm]="3" [nzXs]="3" nzFor="workOrderRemarkZy">注意事项</nz-form-label>
1155 1155
                             <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请填写注意事项!">
@@ -1207,7 +1207,7 @@
1207 1207
                       <div nz-row [nzGutter]="24">
1208 1208
                         <div nz-col [nzSpan]="24" style="max-height: 268px">
1209 1209
                           <nz-form-item>
1210
-                            <nz-form-label class="label" [nzSm]="2" [nzXs]="2" nzRequired nzFor="taskTypeQt">任务类型</nz-form-label>
1210
+                            <nz-form-label class="label" [nzSm]="3" [nzXs]="3" nzRequired nzFor="taskTypeQt">任务类型</nz-form-label>
1211 1211
                             <div class="ellipsis-oneline">
1212 1212
                               <span class="customRemarks mr8 countRemark" [ngClass]="{ active: countRemarkIndex == i }" (click)="addCountRemark(item, index, i)" *ngFor="let item of countRemarkList;let i = index;">{{ item }}</span>
1213 1213
                             </div>
@@ -1700,10 +1700,10 @@
1700 1700
       </div>
1701 1701
       <div class="btns display_flex justify-content_flex-center align-items_center">
1702 1702
         <ng-container *ngIf="applyDept && currentTabIndex !== '故障报修'">
1703
-          <button nz-button class="btn" nzType="primary" (click)="newOrderOk('&go&')" [nzLoading]="isGoLoading" *ngIf="currentTasktype && currentTasktype.associationType && ((currentTasktype.associationType.value === 'inspect' && linkCheckLisTrue && !(currentTasktype.isMoreDept === 0 && isInspects)) || currentTasktype.associationType.value === 'patientTransport')">
1703
+          <button nz-button class="btn" nzType="primary" (click)="newOrderOk('&go&')" [nzLoading]="isGoLoading" *ngIf="(radioValueQt || radioValueZy) && currentTasktype && currentTasktype.associationType && ((currentTasktype.associationType.value === 'inspect' && linkCheckLisTrue && !(currentTasktype.isMoreDept === 0 && isInspects)) || currentTasktype.associationType.value !== 'inspect')">
1704 1704
             继续建单
1705 1705
           </button>
1706
-          <button nz-button class="btn" nzType="primary" (click)="newOrderOk()" [nzLoading]="isOkLoading" *ngIf="currentTasktype && currentTasktype.associationType && ((currentTasktype.associationType.value === 'inspect' && linkCheckLisTrue && !(currentTasktype.isMoreDept === 0 && isInspects)) || currentTasktype.associationType.value === 'patientTransport')">
1706
+          <button nz-button class="btn" nzType="primary" (click)="newOrderOk()" [nzLoading]="isOkLoading" *ngIf="(radioValueQt || radioValueZy) && currentTasktype && currentTasktype.associationType && ((currentTasktype.associationType.value === 'inspect' && linkCheckLisTrue && !(currentTasktype.isMoreDept === 0 && isInspects)) || currentTasktype.associationType.value !== 'inspect')">
1707 1707
             {{isYyInspect ? '预约建单' :'直接建单'}}
1708 1708
           </button>
1709 1709
         </ng-container>

+ 30 - 27
src/app/views/fuwutai/fuwutai.component.ts

@@ -137,6 +137,7 @@ export class FuwutaiComponent implements OnInit {
137 137
   workTypesFlag = false; //任务类型是否显示操作项
138 138
   currentTabIndex = ""; //获取任务类型的key
139 139
   radioValueZy: any = ""; //转运->类型
140
+  radioValueZyPre: any = ""; //转运->类型
140 141
   deptZyList: any = {}; //转运->请求结果
141 142
   startDeptZy = ""; //转运->选中起点科室
142 143
   endDeptZy = ""; //转运->选中终点科室
@@ -2649,6 +2650,7 @@ export class FuwutaiComponent implements OnInit {
2649 2650
     this.startDeptQt = null;
2650 2651
     this.endDeptQt = null;
2651 2652
     this.radioValueZy = null;
2653
+    this.radioValueZyPre = null;
2652 2654
     this.startDeptZy = null;
2653 2655
     this.endDeptZy = null;
2654 2656
     this.patientZy = null;
@@ -2739,6 +2741,8 @@ export class FuwutaiComponent implements OnInit {
2739 2741
           patient.department && this.tabClick('患者转运');
2740 2742
           patient.department && (this.patientList = [patient]);
2741 2743
           patient.department && (this.patientZy = patient.patientCode);
2744
+        }else{
2745
+          this.msg.warning('未查询到患者');
2742 2746
         }
2743 2747
       }
2744 2748
     });
@@ -3575,6 +3579,7 @@ export class FuwutaiComponent implements OnInit {
3575 3579
     this.startDeptQt = null;
3576 3580
     this.endDeptQt = null;
3577 3581
     this.radioValueZy = null;
3582
+    this.radioValueZyPre = null;
3578 3583
     this.startDeptZy = null;
3579 3584
     this.endDeptZy = null;
3580 3585
     this.patientZy = null;
@@ -4030,23 +4035,23 @@ export class FuwutaiComponent implements OnInit {
4030 4035
     this.getSearchTaskList('', this.countRemarkIndex > -1 ? countRemark : '').subscribe((result) => {
4031 4036
       if (result.status == 200) {
4032 4037
         this.searchTaskLoading = false;
4033
-        // this.workTypesArrange[index].value = result.data || [];
4034 4038
         this.workTypes = result['data'] || [];
4035 4039
         // 整理后的任务类型
4036 4040
         this.isShowResidenceNo = false;
4037
-        for (const value of this.workTypesArrange) {
4038
-          value.value = [];
4039
-        }
4041
+        this.workTypesArrange[index].value = [];
4042
+        // for (const value of this.workTypesArrange) {
4043
+        //   value.value = [];
4044
+        // }
4040 4045
         this.workTypes.forEach((item) => {
4041 4046
           if(item.associationTypeValue === 'patientTransport' || item.associationTypeValue === 'inspect'){
4042
-            // 患者其他服务
4043
-            let obj = this.workTypesArrange.find(v => v.key === '患者转运');
4044
-            if(obj){
4045
-              obj.value.push(item);
4046
-            }else{
4047
-              this.workTypesArrange.unshift({ key: '患者转运', value: [item] });
4048
-              this.isShowResidenceNo = true;
4049
-            }
4047
+            // // 患者其他服务
4048
+            // let obj = this.workTypesArrange.find(v => v.key === '患者转运');
4049
+            // if(obj){
4050
+            //   obj.value.push(item);
4051
+            // }else{
4052
+            //   this.workTypesArrange.unshift({ key: '患者转运', value: [item] });
4053
+            //   this.isShowResidenceNo = true;
4054
+            // }
4050 4055
           }else if(item.associationTypeValue === 'other' || item.associationTypeValue === 'specimen' || item.associationTypeValue === 'ordinary'){
4051 4056
             // 物品配送
4052 4057
             let obj = this.workTypesArrange.find(v => v.key === '物品配送');
@@ -4143,21 +4148,11 @@ export class FuwutaiComponent implements OnInit {
4143 4148
     if (!this.applyDept || !this.endDeptZy) {
4144 4149
       return;
4145 4150
     }
4146
-    // 终点科室患者信息列表,id是送病人回病房的任务类型,写死了
4151
+    // 终点科室患者信息列表,id是送病人回病房的任务类型
4147 4152
     if (this.radioValueZy == this.deathTasktypeId) {
4148 4153
       //获取患者信息
4149 4154
       this.patientZy = null;
4150 4155
       this.getPatientList(this.endDeptZy, "");
4151
-    } else {
4152
-      //获取患者信息
4153
-      console.log(this.deptZyList);
4154
-      if (
4155
-        this.deptZyList.startStatus != 206 &&
4156
-        this.deptZyList.endStatus != 206
4157
-      ) {
4158
-        this.patientZy = null;
4159
-      }
4160
-      this.getPatientList(this.applyDept, "");
4161 4156
     }
4162 4157
   }
4163 4158
   //搜索院区下面的科室(患者转运)
@@ -4509,6 +4504,9 @@ export class FuwutaiComponent implements OnInit {
4509 4504
   linkCheckLis:any[] = [];//检查列表
4510 4505
   tabIndex;
4511 4506
   radioChangeZy(value, index) {
4507
+    this.radioValueZyPre = this.radioValueZy;
4508
+    this.radioValueZy = value;
4509
+
4512 4510
     this.tabIndex = index;
4513 4511
     //任务类型id
4514 4512
     if (value === "" || value === null) {
@@ -4595,12 +4593,16 @@ export class FuwutaiComponent implements OnInit {
4595 4593
       } else if (data["endStatus"] == 204 || data["endStatus"] == 205) {
4596 4594
         this.getHosDepartment(this.checkedHos, "end", "");
4597 4595
       }
4598
-      // 终点科室患者信息列表,id是送病人回病房的任务类型
4599
-      if ((data["endStatus"] == 201 || data["endStatus"] == 203) && this.radioValueZy == this.deathTasktypeId) {
4600
-        if (this.currentTabIndex == "患者转运") {
4601
-          //患者转运
4596
+      if (this.currentTabIndex == "患者转运") {
4597
+        // 终点科室患者信息列表,id是送病人回病房的任务类型
4598
+        if (this.endDeptZy && this.radioValueZy == this.deathTasktypeId) {
4602 4599
           //获取患者信息
4600
+          this.patientZy = null;
4603 4601
           this.getPatientList(this.endDeptZy, "");
4602
+        } else if(this.applyDept && this.radioValueZyPre == this.deathTasktypeId) {
4603
+          //获取患者信息
4604
+          this.patientZy = null;
4605
+          this.getPatientList(this.applyDept, "");
4604 4606
         }
4605 4607
       }
4606 4608
     });
@@ -4741,6 +4743,7 @@ export class FuwutaiComponent implements OnInit {
4741 4743
     this.startDeptQt = null;
4742 4744
     this.endDeptQt = null;
4743 4745
     this.radioValueZy = null;
4746
+    this.radioValueZyPre = null;
4744 4747
     this.startDeptZy = null;
4745 4748
     this.endDeptZy = null;
4746 4749
     this.patientZy = null;

+ 1 - 1
src/app/views/qrcode-configuration/qrcode-configuration.service.ts

@@ -57,7 +57,7 @@ export class QRCodeConfigurationService {
57 57
         ...data,
58 58
       }
59 59
     };
60
-    return this.mainService.simplePost("addData", "qrCode", data);
60
+    return this.mainService.coopData("addData", "qrCode", data);
61 61
   }
62 62
 
63 63
   // 查询科室