소스 검색

Merge branch 'master' of http://git.dashitech.com/seimin/zy-pc

maotao 4 달 전
부모
커밋
bfa44a660d

+ 13 - 4
src/app/components/incidentManagement/incident-create/incident-create.component.ts

@@ -129,6 +129,14 @@ export class IncidentCreateComponent implements OnInit {
129
       });
129
       });
130
   }
130
   }
131
 
131
 
132
+  // 判断工单当前状态
133
+  compareStateValue(incidentData){
134
+    if(incidentData.state.value !== 'pending' && incidentData.state.value !== 'handler' && incidentData.state.value !== 'reassign' && incidentData.state.value !== 'close'){
135
+      this.msg.warning('工单状态异常!请刷新页面再重试');
136
+      this.newOrderCancel();
137
+    }
138
+  }
139
+
132
   // 事件详情
140
   // 事件详情
133
   incidentData:any = {};
141
   incidentData:any = {};
134
   getDetail(){
142
   getDetail(){
@@ -141,6 +149,7 @@ export class IncidentCreateComponent implements OnInit {
141
         this.msg.remove(this.maskFlag);
149
         this.msg.remove(this.maskFlag);
142
         this.maskFlag = false;
150
         this.maskFlag = false;
143
         this.incidentData = result.data || {};
151
         this.incidentData = result.data || {};
152
+        this.compareStateValue(this.incidentData);
144
         this.edit(this.incidentData);
153
         this.edit(this.incidentData);
145
       });
154
       });
146
   }
155
   }
@@ -926,7 +935,7 @@ export class IncidentCreateComponent implements OnInit {
926
           // this.msg.success('直接解决成功');
935
           // this.msg.success('直接解决成功');
927
           this.isBuildOrderAgaginFn();
936
           this.isBuildOrderAgaginFn();
928
         } else {
937
         } else {
929
-          this.msg.error('直接解决失败');
938
+          this.msg.error(result.msg || '直接解决失败');
930
         }
939
         }
931
       });
940
       });
932
   }
941
   }
@@ -1040,7 +1049,7 @@ export class IncidentCreateComponent implements OnInit {
1040
           // this.msg.success('建单并派单成功');
1049
           // this.msg.success('建单并派单成功');
1041
           this.isBuildOrderAgaginFn();
1050
           this.isBuildOrderAgaginFn();
1042
         } else {
1051
         } else {
1043
-          this.msg.error('建单并派单失败');
1052
+          this.msg.error(result.msg || '建单并派单失败');
1044
         }
1053
         }
1045
       });
1054
       });
1046
   }
1055
   }
@@ -1114,7 +1123,7 @@ export class IncidentCreateComponent implements OnInit {
1114
           // this.msg.success('暂存成功');
1123
           // this.msg.success('暂存成功');
1115
           this.isBuildOrderAgaginFn();
1124
           this.isBuildOrderAgaginFn();
1116
         } else {
1125
         } else {
1117
-          this.msg.error('暂存失败');
1126
+          this.msg.error(result.msg || '暂存失败');
1118
         }
1127
         }
1119
       });
1128
       });
1120
   }
1129
   }
@@ -1207,7 +1216,7 @@ export class IncidentCreateComponent implements OnInit {
1207
           // this.msg.success('编辑成功');
1216
           // this.msg.success('编辑成功');
1208
           this.isBuildOrderAgaginFn();
1217
           this.isBuildOrderAgaginFn();
1209
         } else {
1218
         } else {
1210
-          this.msg.error('编辑失败');
1219
+          this.msg.error(result.msg || '编辑失败');
1211
         }
1220
         }
1212
       });
1221
       });
1213
   }
1222
   }

+ 12 - 4
src/app/components/incidentManagement/incident-handle-info/incident-handle-info.component.ts

@@ -71,7 +71,7 @@ export class IncidentHandleInfoComponent implements OnInit, OnChanges {
71
     this.getClosecodes();
71
     this.getClosecodes();
72
     this.getSynergeticList();
72
     this.getSynergeticList();
73
     this.getAssetList();
73
     this.getAssetList();
74
-    this.getIncidentCategoryList();
74
+    this.getIncidentCategoryList('', true);
75
   }
75
   }
76
 
76
 
77
   // 修改故障现象
77
   // 修改故障现象
@@ -143,7 +143,7 @@ export class IncidentHandleInfoComponent implements OnInit, OnChanges {
143
   // 获取故障现象
143
   // 获取故障现象
144
   incidentCategoryList:any[] = [];
144
   incidentCategoryList:any[] = [];
145
   handleInfoLoading:boolean = false;
145
   handleInfoLoading:boolean = false;
146
-  getIncidentCategoryList(keyword = ''){
146
+  getIncidentCategoryList(keyword = '', isInit = false){
147
     let { hospital, type } = this.tool.getHospitalOrDuty();
147
     let { hospital, type } = this.tool.getHospitalOrDuty();
148
     if(type === 'hospital' || type === 'department'){
148
     if(type === 'hospital' || type === 'department'){
149
       this.incidentCategoryList = [];
149
       this.incidentCategoryList = [];
@@ -158,9 +158,17 @@ export class IncidentHandleInfoComponent implements OnInit, OnChanges {
158
         dutyIds: type === 'duty' ? hospital.id.toString()  : undefined,
158
         dutyIds: type === 'duty' ? hospital.id.toString()  : undefined,
159
       },
159
       },
160
     };
160
     };
161
-    this.handleInfoLoading = true;
161
+    if(isInit){
162
+      this.handleInfoLoading = true;
163
+    }else{
164
+      this.isLoading = true;
165
+    }
162
     this.mainService.incidentPost("listIncidentCategory", postData).subscribe(res => {
166
     this.mainService.incidentPost("listIncidentCategory", postData).subscribe(res => {
163
-      this.handleInfoLoading = false;
167
+      if(isInit){
168
+        this.handleInfoLoading = false;
169
+      }else{
170
+        this.isLoading = false;
171
+      }
164
       this.incidentCategoryList = res.data || [];
172
       this.incidentCategoryList = res.data || [];
165
       if(this.incidentDataCopy.category){
173
       if(this.incidentDataCopy.category){
166
         let obj = this.incidentCategoryList.find(v => v.id == this.incidentDataCopy.category);
174
         let obj = this.incidentCategoryList.find(v => v.id == this.incidentDataCopy.category);

+ 12 - 2
src/app/components/incidentManagement/incident-handle/incident-handle.component.ts

@@ -103,6 +103,14 @@ export class IncidentHandleComponent implements OnInit {
103
       });
103
       });
104
   }
104
   }
105
 
105
 
106
+  // 判断工单当前状态
107
+  compareStateValue(incidentData){
108
+    if(incidentData.state.value !== 'handler'){
109
+      this.message.warning('工单状态异常!请刷新页面再重试');
110
+      this.hideModal();
111
+    }
112
+  }
113
+
106
   // 获取详情数据
114
   // 获取详情数据
107
   incidentData:any;
115
   incidentData:any;
108
   maskFlag:any = false;
116
   maskFlag:any = false;
@@ -117,6 +125,8 @@ export class IncidentHandleComponent implements OnInit {
117
         this.maskFlag = false;
125
         this.maskFlag = false;
118
         this.incidentData = result.data || {};
126
         this.incidentData = result.data || {};
119
 
127
 
128
+        this.compareStateValue(this.incidentData);
129
+
120
         this.getDictionaryList();
130
         this.getDictionaryList();
121
         this.getHospitalConfig();
131
         this.getHospitalConfig();
122
       });
132
       });
@@ -290,7 +300,7 @@ export class IncidentHandleComponent implements OnInit {
290
         if (result.state == 200) {
300
         if (result.state == 200) {
291
           this.message.success('处理成功');
301
           this.message.success('处理成功');
292
         } else {
302
         } else {
293
-          this.message.error('处理失败');
303
+          this.message.error(result.msg || '处理失败');
294
         }
304
         }
295
       });
305
       });
296
     }else if(this.itsmSimpleHandle.value == 1){
306
     }else if(this.itsmSimpleHandle.value == 1){
@@ -338,7 +348,7 @@ export class IncidentHandleComponent implements OnInit {
338
         if (result.state == 200) {
348
         if (result.state == 200) {
339
           this.message.success('处理成功');
349
           this.message.success('处理成功');
340
         } else {
350
         } else {
341
-          this.message.error('处理失败');
351
+          this.message.error(result.msg || '处理失败');
342
         }
352
         }
343
       });
353
       });
344
     }
354
     }

+ 10 - 1
src/app/components/incidentManagement/incident-postpone/incident-postpone.component.ts

@@ -74,6 +74,14 @@ export class IncidentPostponeComponent implements OnInit {
74
 		})
74
 		})
75
   }
75
   }
76
 
76
 
77
+  // 判断工单当前状态
78
+  compareStateValue(incidentData){
79
+    if(incidentData.state.value !== 'handler'){
80
+      this.message.warning('工单状态异常!请刷新页面再重试');
81
+      this.hideModal();
82
+    }
83
+  }
84
+
77
   // 操作权限
85
   // 操作权限
78
   incidentData:any = {};
86
   incidentData:any = {};
79
   getDetail(){
87
   getDetail(){
@@ -86,6 +94,7 @@ export class IncidentPostponeComponent implements OnInit {
86
         this.message.remove(this.maskFlag);
94
         this.message.remove(this.maskFlag);
87
         this.maskFlag = false;
95
         this.maskFlag = false;
88
         this.incidentData = result.data || {};
96
         this.incidentData = result.data || {};
97
+        this.compareStateValue(this.incidentData);
89
       });
98
       });
90
   }
99
   }
91
 
100
 
@@ -129,7 +138,7 @@ export class IncidentPostponeComponent implements OnInit {
129
       if (result.state == 200) {
138
       if (result.state == 200) {
130
         this.message.success('操作成功');
139
         this.message.success('操作成功');
131
       } else {
140
       } else {
132
-        this.message.error('操作失败');
141
+        this.message.error(result.msg || '操作失败');
133
       }
142
       }
134
     });
143
     });
135
   }
144
   }

+ 13 - 3
src/app/components/incidentManagement/incident-substitution/incident-substitution.component.ts

@@ -61,6 +61,14 @@ export class IncidentSubstitutionComponent implements OnInit {
61
     this.activeTabValue = item.value;
61
     this.activeTabValue = item.value;
62
   }
62
   }
63
 
63
 
64
+  // 判断工单当前状态
65
+  compareStateValue(incidentData){
66
+    if(incidentData.state.value !== 'pending' && incidentData.state.value !== 'handler' && incidentData.state.value !== 'reassign'){
67
+      this.message.warning('工单状态异常!请刷新页面再重试');
68
+      this.hideModal();
69
+    }
70
+  }
71
+
64
   // 操作权限
72
   // 操作权限
65
   incidentData:any = {};
73
   incidentData:any = {};
66
   maskFlag:any = false;
74
   maskFlag:any = false;
@@ -75,6 +83,8 @@ export class IncidentSubstitutionComponent implements OnInit {
75
         this.maskFlag = false;
83
         this.maskFlag = false;
76
         this.incidentData = result.data || {};
84
         this.incidentData = result.data || {};
77
 
85
 
86
+        this.compareStateValue(this.incidentData);
87
+
78
         // 转派
88
         // 转派
79
         if(this.incidentData.state.value == 'handler' && this.incidentData.handlingPersonnelUser && this.incidentData.handlingPersonnelUser.id == this.tool.getCurrentUserId() && !this.coopBtns.assign && this.coopBtns.transfer){
89
         if(this.incidentData.state.value == 'handler' && this.incidentData.handlingPersonnelUser && this.incidentData.handlingPersonnelUser.id == this.tool.getCurrentUserId() && !this.coopBtns.assign && this.coopBtns.transfer){
80
           this.tabs.splice(0, 0, {id: 1, name: '转派', value: 'redeploy', num: ''});
90
           this.tabs.splice(0, 0, {id: 1, name: '转派', value: 'redeploy', num: ''});
@@ -151,7 +161,7 @@ export class IncidentSubstitutionComponent implements OnInit {
151
         if (result.state == 200) {
161
         if (result.state == 200) {
152
           this.message.success('转派成功');
162
           this.message.success('转派成功');
153
         } else {
163
         } else {
154
-          this.message.error('转派失败');
164
+          this.message.error(result.msg || '转派失败');
155
         }
165
         }
156
       });
166
       });
157
     }else if(this.activeTabValue === 'assign'){
167
     }else if(this.activeTabValue === 'assign'){
@@ -194,7 +204,7 @@ export class IncidentSubstitutionComponent implements OnInit {
194
         if (result.state == 200) {
204
         if (result.state == 200) {
195
           this.message.success('指派成功');
205
           this.message.success('指派成功');
196
         } else {
206
         } else {
197
-          this.message.error('指派失败');
207
+          this.message.error(result.msg || '指派失败');
198
         }
208
         }
199
       });
209
       });
200
     }else if(this.activeTabValue === 'reassign'){
210
     }else if(this.activeTabValue === 'reassign'){
@@ -227,7 +237,7 @@ export class IncidentSubstitutionComponent implements OnInit {
227
         if (result.state == 200) {
237
         if (result.state == 200) {
228
           this.message.success('退回成功');
238
           this.message.success('退回成功');
229
         } else {
239
         } else {
230
-          this.message.error('退回失败');
240
+          this.message.error(result.msg || '退回失败');
231
         }
241
         }
232
       });
242
       });
233
     }
243
     }

+ 10 - 1
src/app/components/incidentManagement/incident-visit/incident-visit.component.ts

@@ -82,6 +82,14 @@ export class IncidentVisitComponent implements OnInit {
82
     });
82
     });
83
   }
83
   }
84
 
84
 
85
+  // 判断工单当前状态
86
+  compareStateValue(incidentData){
87
+    if(incidentData.state.value !== 'close'){
88
+      this.message.warning('工单状态异常!请刷新页面再重试');
89
+      this.hideModal();
90
+    }
91
+  }
92
+
85
   // 事件详情
93
   // 事件详情
86
   incidentData:any = {};
94
   incidentData:any = {};
87
   getDetail(){
95
   getDetail(){
@@ -94,6 +102,7 @@ export class IncidentVisitComponent implements OnInit {
94
         this.message.remove(this.maskFlag);
102
         this.message.remove(this.maskFlag);
95
         this.maskFlag = false;
103
         this.maskFlag = false;
96
         this.incidentData = result.data || {};
104
         this.incidentData = result.data || {};
105
+        this.compareStateValue(this.incidentData);
97
       });
106
       });
98
   }
107
   }
99
 
108
 
@@ -139,7 +148,7 @@ export class IncidentVisitComponent implements OnInit {
139
       if (result.state == 200) {
148
       if (result.state == 200) {
140
         this.message.success('回访成功');
149
         this.message.success('回访成功');
141
       } else {
150
       } else {
142
-        this.message.error('回访失败');
151
+        this.message.error(result.msg || '回访失败');
143
       }
152
       }
144
     });
153
     });
145
   }
154
   }

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

@@ -2896,7 +2896,7 @@ export class FuwutaiComponent implements OnInit {
2896
           // this.msg.success('直接解决成功');
2896
           // this.msg.success('直接解决成功');
2897
           this.isBuildOrderAgaginFn();
2897
           this.isBuildOrderAgaginFn();
2898
         } else {
2898
         } else {
2899
-          this.msg.error('直接解决失败');
2899
+          this.msg.error(result.msg || '直接解决失败');
2900
         }
2900
         }
2901
       });
2901
       });
2902
   }
2902
   }
@@ -3636,7 +3636,7 @@ export class FuwutaiComponent implements OnInit {
3636
           // this.msg.success('建单并派单成功');
3636
           // this.msg.success('建单并派单成功');
3637
           this.isBuildOrderAgaginFn();
3637
           this.isBuildOrderAgaginFn();
3638
         } else {
3638
         } else {
3639
-          this.msg.error('建单并派单失败');
3639
+          this.msg.error(result.msg || '建单并派单失败');
3640
         }
3640
         }
3641
       });
3641
       });
3642
   }
3642
   }
@@ -3711,7 +3711,7 @@ export class FuwutaiComponent implements OnInit {
3711
           // this.msg.success('暂存成功');
3711
           // this.msg.success('暂存成功');
3712
           this.isBuildOrderAgaginFn();
3712
           this.isBuildOrderAgaginFn();
3713
         } else {
3713
         } else {
3714
-          this.msg.error('暂存失败');
3714
+          this.msg.error(result.msg || '暂存失败');
3715
         }
3715
         }
3716
       });
3716
       });
3717
   }
3717
   }
@@ -3801,7 +3801,7 @@ export class FuwutaiComponent implements OnInit {
3801
           // this.msg.success('编辑成功');
3801
           // this.msg.success('编辑成功');
3802
           this.isBuildOrderAgaginFn();
3802
           this.isBuildOrderAgaginFn();
3803
         } else {
3803
         } else {
3804
-          this.msg.error('编辑失败');
3804
+          this.msg.error(result.msg || '编辑失败');
3805
         }
3805
         }
3806
       });
3806
       });
3807
   }
3807
   }
@@ -5031,7 +5031,7 @@ export class FuwutaiComponent implements OnInit {
5031
         this.rejectModalShow = false;
5031
         this.rejectModalShow = false;
5032
         this.showPromptModal("不受理", true, "", "");
5032
         this.showPromptModal("不受理", true, "", "");
5033
       } else {
5033
       } else {
5034
-        this.msg.error('不受理失败');
5034
+        this.msg.error(result.msg || '不受理失败');
5035
       }
5035
       }
5036
     });
5036
     });
5037
   }
5037
   }

+ 30 - 182
src/app/views/hushijiandan/hushijiandan.component.html

@@ -1286,51 +1286,28 @@
1286
               </div>
1286
               </div>
1287
             </div>
1287
             </div>
1288
             <div class="orders">
1288
             <div class="orders">
1289
-              <div
1290
-                class="orderTit display_flex justify-content_space-between align-items_center"
1291
-              >
1289
+              <div class="orderTit display_flex justify-content_space-between align-items_center">
1292
                 <span>工单列表<b style="font-size: 12px">({{ orderListTime }}秒)</b></span>
1290
                 <span>工单列表<b style="font-size: 12px">({{ orderListTime }}秒)</b></span>
1293
                 <div>
1291
                 <div>
1294
-                  <nz-select
1295
-                    style="width: 100px"
1296
-                    [(ngModel)]="orderStateSelected"
1297
-                    (ngModelChange)="changeOrderState($event)"
1298
-                    nzPlaceHolder="请选择工单状态"
1299
-                  >
1292
+                  <nz-select style="width: 100px" [(ngModel)]="orderStateSelected" (ngModelChange)="changeOrderState($event)" nzPlaceHolder="请选择工单状态">
1300
                     <nz-option nzValue="-1" nzLabel="全部"></nz-option>
1293
                     <nz-option nzValue="-1" nzLabel="全部"></nz-option>
1301
                     <nz-option nzValue="1" nzLabel="执行中"></nz-option>
1294
                     <nz-option nzValue="1" nzLabel="执行中"></nz-option>
1302
                     <nz-option nzValue="2" nzLabel="待评价"></nz-option>
1295
                     <nz-option nzValue="2" nzLabel="待评价"></nz-option>
1303
                   </nz-select>
1296
                   </nz-select>
1304
-                  <nz-select
1305
-                    class="ml8"
1306
-                    style="width: 100px"
1307
-                    [(ngModel)]="orderSelected"
1308
-                    (ngModelChange)="changeOrderSel(orderSelected)"
1309
-                    nzPlaceHolder="请选择任务类型"
1310
-                  >
1297
+                  <nz-select class="ml8" style="width: 100px" [(ngModel)]="orderSelected" (ngModelChange)="changeOrderSel(orderSelected)" nzPlaceHolder="请选择任务类型">
1311
                     <nz-option nzValue="-1" nzLabel="全部"></nz-option>
1298
                     <nz-option nzValue="-1" nzLabel="全部"></nz-option>
1312
-                    <nz-option
1313
-                      *ngFor="let item of orderSelectList"
1314
-                      [nzValue]="item.id"
1315
-                      [nzLabel]="item.name"
1316
-                    >
1299
+                    <nz-option *ngFor="let item of orderSelectList" [nzValue]="item.id" [nzLabel]="item.name">
1317
                     </nz-option>
1300
                     </nz-option>
1318
                   </nz-select>
1301
                   </nz-select>
1319
                 </div>
1302
                 </div>
1320
               </div>
1303
               </div>
1321
-              <div
1322
-                class="loading display_flex align-items_center justify-content_flex-center"
1323
-                *ngIf="OLoading"
1324
-              >
1304
+              <div class="loading display_flex align-items_center justify-content_flex-center" *ngIf="OLoading">
1325
                 <div>
1305
                 <div>
1326
                   <img src="../../assets/images/loading.gif" alt="" />
1306
                   <img src="../../assets/images/loading.gif" alt="" />
1327
                   <div>加载中...</div>
1307
                   <div>加载中...</div>
1328
                 </div>
1308
                 </div>
1329
               </div>
1309
               </div>
1330
-              <div
1331
-                class="loading none display_flex align-items_center justify-content_flex-center"
1332
-                *ngIf="orderLength == 0 && !OLoading"
1333
-              >
1310
+              <div class="loading none display_flex align-items_center justify-content_flex-center" *ngIf="orderLength == 0 && !OLoading">
1334
                 <div>
1311
                 <div>
1335
                   <div>暂无数据</div>
1312
                   <div>暂无数据</div>
1336
                 </div>
1313
                 </div>
@@ -1339,47 +1316,22 @@
1339
                 <overlay-scrollbars #osComponentRef1 class="box">
1316
                 <overlay-scrollbars #osComponentRef1 class="box">
1340
                   <div class="orderLisBox">
1317
                   <div class="orderLisBox">
1341
                     <div class="orderLis">
1318
                     <div class="orderLis">
1342
-                      <div
1343
-                        class="loading display_flex align-items_center justify-content_flex-center"
1344
-                        *ngIf="OLoading"
1345
-                      >
1319
+                      <div class="loading display_flex align-items_center justify-content_flex-center" *ngIf="OLoading">
1346
                         <div>
1320
                         <div>
1347
                           <img src="../../assets/images/loading.gif" alt="" />
1321
                           <img src="../../assets/images/loading.gif" alt="" />
1348
                           <div>加载中...</div>
1322
                           <div>加载中...</div>
1349
                         </div>
1323
                         </div>
1350
                       </div>
1324
                       </div>
1351
-                      <div
1352
-                        class="orderItem borderB"
1353
-                        *ngFor="let item of orderList"
1354
-                      >
1325
+                      <div class="orderItem borderB" *ngFor="let item of orderList">
1355
                         <div class="info">
1326
                         <div class="info">
1356
                           <div class="row" nz-row>
1327
                           <div class="row" nz-row>
1357
                             <div nz-col nzSpan="12" class="col txtL">
1328
                             <div nz-col nzSpan="12" class="col txtL">
1358
-                              {{
1359
-                                item.isHalfInspect === 1
1360
-                                  ? "半程陪检"
1361
-                                  : item.taskType.taskName
1362
-                              }}
1363
-                              <ng-container
1364
-                                *ngIf="
1365
-                                  item.taskType.associationType.value ==
1366
-                                    'drugsBag' && item.drugs
1367
-                                "
1368
-                              >
1329
+                              {{ item.isHalfInspect === 1 ? "半程陪检" : item.taskType.taskName }}
1330
+                              <ng-container *ngIf="item.taskType.associationType.value == 'drugsBag' && item.drugs">
1369
                                 ({{ item.drugs.packid }})
1331
                                 ({{ item.drugs.packid }})
1370
                               </ng-container>
1332
                               </ng-container>
1371
-                              <ng-container *ngIf="item.goodsRemark"
1372
-                                >-{{ item.goodsRemark }}</ng-container
1373
-                              >
1374
-                              <span
1375
-                                *ngIf="
1376
-                                  item.patient &&
1377
-                                  (item.taskType.associationType.value ==
1378
-                                    'patientTransport' ||
1379
-                                    item.taskType.associationType.value ==
1380
-                                      'inspect')
1381
-                                "
1382
-                              >
1333
+                              <ng-container *ngIf="item.goodsRemark">-{{ item.goodsRemark }}</ng-container>
1334
+                              <span *ngIf="item.patient && (item.taskType.associationType.value == 'patientTransport' || item.taskType.associationType.value == 'inspect')">
1383
                                 ({{ item.patient.patientName }})
1335
                                 ({{ item.patient.patientName }})
1384
                               </span>
1336
                               </span>
1385
                             </div>
1337
                             </div>
@@ -1393,55 +1345,23 @@
1393
                             </div>
1345
                             </div>
1394
                           </div>
1346
                           </div>
1395
                           <div class="row" nz-row>
1347
                           <div class="row" nz-row>
1396
-                            <!-- <div nz-col nzSpan="12" class="col txtL"></div> -->
1397
                             <div nz-col nzSpan="12" class="col txtL">
1348
                             <div nz-col nzSpan="12" class="col txtL">
1398
-                              <ng-container
1399
-                                *ngIf="
1400
-                                  item.taskType.associationType.value ==
1401
-                                    'drugsBag' && item.startDept
1402
-                                "
1403
-                              >
1404
-                                {{
1405
-                                  deptDisplay == 2
1406
-                                    ? item.startDept.deptalias
1407
-                                    : item.startDept.dept
1408
-                                }}
1349
+                              <ng-container *ngIf="item.taskType.associationType.value == 'drugsBag' && item.startDept">
1350
+                                {{ deptDisplay == 2 ? item.startDept.deptalias : item.startDept.dept }}
1409
                               </ng-container>
1351
                               </ng-container>
1410
                             </div>
1352
                             </div>
1411
-                            <div
1412
-                              *ngIf="item.showCreateTime"
1413
-                              nz-col
1414
-                              nzSpan="12"
1415
-                              class="col txtR"
1416
-                            >
1353
+                            <div *ngIf="item.showCreateTime" nz-col nzSpan="12" class="col txtR">
1417
                               {{ item.showCreateTime }}
1354
                               {{ item.showCreateTime }}
1418
                             </div>
1355
                             </div>
1419
-                            <div
1420
-                              *ngIf="item.yyjdTime && item.gdState.value == 11"
1421
-                              nz-col
1422
-                              nzSpan="12"
1423
-                              class="col txtR"
1424
-                            >
1356
+                            <div *ngIf="item.yyjdTime && item.gdState.value == 11" nz-col nzSpan="12" class="col txtR">
1425
                               {{ item.yyjdTime | date: "MM-dd HH:mm" }}
1357
                               {{ item.yyjdTime | date: "MM-dd HH:mm" }}
1426
                             </div>
1358
                             </div>
1427
                           </div>
1359
                           </div>
1428
                           <div class="row" nz-row>
1360
                           <div class="row" nz-row>
1429
                             <div nz-col nzSpan="12" class="col txtL">
1361
                             <div nz-col nzSpan="12" class="col txtL">
1430
-                              <span *ngIf="item.worker"
1431
-                                >{{ item.worker.name }}
1432
-                                {{
1433
-                                  item.worker.phone
1434
-                                    ? "(" + item.worker.phone + ")"
1435
-                                    : ""
1436
-                                }}</span
1437
-                              >
1362
+                              <span *ngIf="item.worker">{{ item.worker.name }}{{ item.worker.phone ? "(" + item.worker.phone + ")" : "" }}</span>
1438
                             </div>
1363
                             </div>
1439
-                            <div
1440
-                              nz-col
1441
-                              nzSpan="12"
1442
-                              class="col txtR toDetail"
1443
-                              (click)="openDetails(item)"
1444
-                            >
1364
+                            <div nz-col nzSpan="12" class="col txtR toDetail" (click)="openDetails(item)">
1445
                               <span>查看详情>></span>
1365
                               <span>查看详情>></span>
1446
                             </div>
1366
                             </div>
1447
                           </div>
1367
                           </div>
@@ -1451,29 +1371,10 @@
1451
                             <div class="steps" *ngFor="let step of item.record">
1371
                             <div class="steps" *ngFor="let step of item.record">
1452
                               <div class="step">
1372
                               <div class="step">
1453
                                 <div class="txt">
1373
                                 <div class="txt">
1454
-                                  <i
1455
-                                    [ngClass]="{
1456
-                                      icon_transport: true,
1457
-                                      'transport-icon_liucheng': true,
1458
-                                      green:
1459
-                                        step.record &&
1460
-                                        step.record[0] &&
1461
-                                        step.record[0].operationTime
1462
-                                    }"
1463
-                                  ></i>
1374
+                                  <i [ngClass]="{ icon_transport: true, 'transport-icon_liucheng': true, green: step.record && step.record[0] && step.record[0].operationTime }"></i>
1464
                                   <p>{{ step.operationName }}</p>
1375
                                   <p>{{ step.operationName }}</p>
1465
-                                  <p
1466
-                                    class="time"
1467
-                                    *ngIf="
1468
-                                      step.record &&
1469
-                                      step.record[0] &&
1470
-                                      step.record[0].operationTime
1471
-                                    "
1472
-                                  >
1473
-                                    {{
1474
-                                      step.record[0].operationTime
1475
-                                        | date: "MM-dd HH:mm"
1476
-                                    }}
1376
+                                  <p class="time" *ngIf="step.record && step.record[0] && step.record[0].operationTime">
1377
+                                    {{ step.record[0].operationTime | date: "MM-dd HH:mm"}}
1477
                                   </p>
1378
                                   </p>
1478
                                 </div>
1379
                                 </div>
1479
                                 <div class="line"></div>
1380
                                 <div class="line"></div>
@@ -1482,73 +1383,27 @@
1482
                           </div>
1383
                           </div>
1483
                         </div>
1384
                         </div>
1484
                         <div class="btns display_flex">
1385
                         <div class="btns display_flex">
1485
-                          <div
1486
-                            class="btn flex_1 appraise"
1487
-                            *ngIf="item.gdState.id == 73"
1488
-                            (click)="showAppraise(item.id)"
1489
-                          >
1386
+                          <div class="btn flex_1 appraise" *ngIf="item.gdState.id == 73" (click)="showAppraise(item.id)">
1490
                             评价
1387
                             评价
1491
                           </div>
1388
                           </div>
1492
-                          <div
1493
-                            *ngIf="isAssign && item.gdState.value == 2"
1494
-                            class="btn flex_1 revocation borderR primary"
1495
-                            (click)="allotWorker(item.id, item.gdState.id)"
1496
-                          >
1389
+                          <div *ngIf="isAssign && item.gdState.value == 2" class="btn flex_1 revocation borderR primary" (click)="allotWorker(item.id, item.gdState.id)">
1497
                             指派
1390
                             指派
1498
                           </div>
1391
                           </div>
1499
-                          <div
1500
-                            *ngIf="isAssign && item.gdState.value == 4"
1501
-                            class="btn flex_1 revocation borderR primary"
1502
-                            (click)="allotWorker(item.id, item.gdState.id, 1)"
1503
-                          >
1392
+                          <div *ngIf="isAssign && item.gdState.value == 4" class="btn flex_1 revocation borderR primary" (click)="allotWorker(item.id, item.gdState.id, 1)">
1504
                             指派
1393
                             指派
1505
                           </div>
1394
                           </div>
1506
-                          <div
1507
-                            *ngIf="
1508
-                              item.gdState.id == 69 ||
1509
-                              item.gdState.id == 70 ||
1510
-                              item.gdState.id == 71 ||
1511
-                              item.gdState.id == 433
1512
-                            "
1513
-                            class="btn flex_1 revocation borderR"
1514
-                            (click)="openRecallModal(item.id)"
1515
-                          >
1395
+                          <div *ngIf="item.gdState.id == 69 || item.gdState.id == 70 || item.gdState.id == 71 || item.gdState.id == 433" class="btn flex_1 revocation borderR" (click)="openRecallModal(item.id)">
1516
                             撤销
1396
                             撤销
1517
                           </div>
1397
                           </div>
1518
-                          <div
1519
-                            *ngIf="item.gdState.id == 433"
1520
-                            class="btn flex_1 revocation borderR"
1521
-                            (click)="openExecModal(item)"
1522
-                          >
1398
+                          <div *ngIf="item.gdState.id == 433" class="btn flex_1 revocation borderR" (click)="openExecModal(item)">
1523
                             立即执行
1399
                             立即执行
1524
                           </div>
1400
                           </div>
1525
-                          <div
1526
-                            *ngIf="
1527
-                              (item.gdState.id == 69 ||
1528
-                                item.gdState.id == 71) &&
1529
-                              item.taskType.allowUrgent == 1 &&
1530
-                              !item.urgentDetails
1531
-                            "
1532
-                            class="btn flex_1 urgent"
1533
-                            (click)="showJiaji(item.id)"
1534
-                          >
1401
+                          <div *ngIf="(item.gdState.id == 69 || item.gdState.id == 71) && item.taskType.allowUrgent == 1 && !item.urgentDetails" class="btn flex_1 urgent" (click)="showJiaji(item.id)">
1535
                             加急
1402
                             加急
1536
                           </div>
1403
                           </div>
1537
                         </div>
1404
                         </div>
1538
-                        <img
1539
-                          src="../../assets/images/icon_ji.png"
1540
-                          class="icon_ji"
1541
-                          *ngIf="
1542
-                            item.emergencyType && item.emergencyType.id == 300
1543
-                          "
1544
-                        />
1545
-                        <img
1546
-                          src="../../assets/images/icon_jiaji.png"
1547
-                          class="icon_ji"
1548
-                          *ngIf="
1549
-                            item.emergencyType && item.emergencyType.id == 301
1550
-                          "
1551
-                        />
1405
+                        <img src="../../assets/images/icon_ji.png" class="icon_ji" *ngIf="item.emergencyType && item.emergencyType.id == 300" />
1406
+                        <img src="../../assets/images/icon_jiaji.png" class="icon_ji" *ngIf="item.emergencyType && item.emergencyType.id == 301" />
1552
                       </div>
1407
                       </div>
1553
                     </div>
1408
                     </div>
1554
                   </div>
1409
                   </div>
@@ -1556,14 +1411,7 @@
1556
                 <!-- 翻页 -->
1411
                 <!-- 翻页 -->
1557
                 <div class="pageing">
1412
                 <div class="pageing">
1558
                   <div>
1413
                   <div>
1559
-                    <nz-pagination
1560
-                      [(nzPageIndex)]="orderIdx"
1561
-                      [(nzTotal)]="orderLength"
1562
-                      (nzPageIndexChange)="getOrderList()"
1563
-                      [nzPageSize]="10"
1564
-                      nzSimple
1565
-                    >
1566
-                    </nz-pagination>
1414
+                    <nz-pagination [(nzPageIndex)]="orderIdx" [(nzTotal)]="orderLength" (nzPageIndexChange)="getOrderList()" [nzPageSize]="10" nzSimple></nz-pagination>
1567
                   </div>
1415
                   </div>
1568
                 </div>
1416
                 </div>
1569
               </div>
1417
               </div>

+ 2 - 1
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -4515,7 +4515,7 @@ export class HushijiandanComponent implements OnInit {
4515
           this.getBxlb(this.bxlbPageIndex);
4515
           this.getBxlb(this.bxlbPageIndex);
4516
           this.showPromptModal("评价", true, "");
4516
           this.showPromptModal("评价", true, "");
4517
         } else {
4517
         } else {
4518
-          this.showPromptModal("评价", false, "");
4518
+          this.showPromptModal("评价", false, data.msg);
4519
         }
4519
         }
4520
       });
4520
       });
4521
   }
4521
   }
@@ -4960,6 +4960,7 @@ export class HushijiandanComponent implements OnInit {
4960
       this.loadingQuick = this.btnLoading;
4960
       this.loadingQuick = this.btnLoading;
4961
       this.buildType = "bb";
4961
       this.buildType = "bb";
4962
       this.shortcutMsg1 = taskType;
4962
       this.shortcutMsg1 = taskType;
4963
+      this.workOrderRemark1 = workOrderRemark;
4963
       this.confirmShortcut1(shortcutForm);
4964
       this.confirmShortcut1(shortcutForm);
4964
     }
4965
     }
4965
   }
4966
   }

+ 1 - 1
src/app/views/task-type-management/task-type-management.component.html

@@ -142,7 +142,7 @@
142
             <label nz-radio nzValue='0'>否</label>
142
             <label nz-radio nzValue='0'>否</label>
143
           </nz-radio-group>
143
           </nz-radio-group>
144
         </div>
144
         </div>
145
-        <div class="mb8 w100" *ngIf="association.value == 'patientTransport' || association.value == 'inspect' || association.value == 'specimen' || association.value == 'other'">
145
+        <div class="mb8 w100">
146
           <nz-form-label class="label" nzRequired>是否需要备注信息</nz-form-label>
146
           <nz-form-label class="label" nzRequired>是否需要备注信息</nz-form-label>
147
           <nz-radio-group class="handlerType" [(ngModel)]="isRemarks" (ngModelChange)="isRemarksChange()">
147
           <nz-radio-group class="handlerType" [(ngModel)]="isRemarks" (ngModelChange)="isRemarksChange()">
148
             <label nz-radio nzValue='1'>是</label>
148
             <label nz-radio nzValue='1'>是</label>