소스 검색

BUG修复

seimin 5 달 전
부모
커밋
ae7f2a4982
2개의 변경된 파일23개의 추가작업 그리고 2개의 파일을 삭제
  1. 12 1
      src/app/components/incidentManagement/incident-create/incident-create.component.ts
  2. 11 1
      src/app/views/fuwutai/fuwutai.component.ts

+ 12 - 1
src/app/components/incidentManagement/incident-create/incident-create.component.ts

@@ -1295,10 +1295,21 @@ export class IncidentCreateComponent implements OnInit {
1295 1295
     this.solutionId = undefined;
1296 1296
   }
1297 1297
 
1298
+  // 重置新建工单数据-继续建单-编辑
1299
+  resetOrderData2(){
1300
+    this.fileList = [];
1301
+    this.repairImgs = [];
1302
+    this.isRelatedDepartment = true;
1303
+  }
1304
+
1298 1305
   // 打开新建工单
1299 1306
   async showNewOrder(des = '', phone = '', isInit = false, buildType = '') {
1300 1307
     this.buildType = buildType;
1301
-    this.buildType !== '编辑事件' && this.resetOrderData();
1308
+    if(this.buildType !== '编辑事件'){
1309
+      this.resetOrderData();
1310
+    }else{
1311
+      this.resetOrderData2();
1312
+    }
1302 1313
     this.searchApplicationHospital();
1303 1314
     this.searchApplicationCategory();
1304 1315
     this.searchApplicationPriority();

+ 11 - 1
src/app/views/fuwutai/fuwutai.component.ts

@@ -2289,6 +2289,12 @@ export class FuwutaiComponent implements OnInit {
2289 2289
     this.isRelatedDepartment = true;
2290 2290
     this.solutionId = undefined;
2291 2291
   }
2292
+  // 重置新建工单数据-继续建单-编辑
2293
+  resetOrderData2(){
2294
+    this.fileList = [];
2295
+    this.repairImgs = [];
2296
+    this.isRelatedDepartment = true;
2297
+  }
2292 2298
   // 打开新建工单
2293 2299
   deathTasktypeId; //获取这个写死的任务类型的id,送病人回病房
2294 2300
   deathTasktypeIdPatient; //获取这个写死的任务类型的id,转出院记录
@@ -2301,7 +2307,11 @@ export class FuwutaiComponent implements OnInit {
2301 2307
     }
2302 2308
     this.buildType = buildType;
2303 2309
     if(this.itsmData.mdv2Switch){
2304
-      this.buildType !== '继续建单' && this.buildType !== '编辑事件' && this.resetOrderData();
2310
+      if(this.buildType !== '继续建单' && this.buildType !== '编辑事件'){
2311
+        this.resetOrderData();
2312
+      }else{
2313
+        this.resetOrderData2();
2314
+      }
2305 2315
       this.searchApplicationHospital();
2306 2316
       this.searchApplicationCategory();
2307 2317
       this.searchApplicationPriority();