seimin 11 달 전
부모
커밋
450df50900

+ 2 - 1
components/IncidentListFilter.vue

@@ -226,7 +226,8 @@
226 226
   }
227 227
   
228 228
   onLoad((option) => {
229
-    searchData.hospital = evt.hospital;
229
+    // searchData.hospital = evt.hospital;
230
+    setHospital();
230 231
     searchData.selected = evt.selected;
231 232
     searchData.area = evt.area;
232 233
     searchData.category = evt.category;

+ 1 - 1
pages/categoryThree/categoryThree.vue

@@ -65,7 +65,7 @@
65 65
     }
66 66
     dataInfo.paramData.category = dataInfo.categoryThreeObj;
67 67
     handlerStore.setHandlerData(dataInfo.paramData);
68
-    uni.redirectTo({
68
+    uni.navigateTo({
69 69
       url: `/pages/handler/handler?incidentId=${dataInfo.incidentId}`,
70 70
     })
71 71
   }

+ 1 - 1
pages/consumableList/consumableList.vue

@@ -94,7 +94,7 @@
94 94
           mask: true,
95 95
         });
96 96
         setTimeout(() => {
97
-          uni.redirectTo({
97
+          uni.navigateTo({
98 98
             url: `/pages/handler/handler?incidentId=${dataInfo.incidentId}`,
99 99
           })
100 100
         }, 1500)

+ 9 - 4
pages/handler/handler.vue

@@ -193,6 +193,7 @@
193 193
     handlerImgList: [],//处理图片列表
194 194
     category: {},//故障现象
195 195
     synergetic: [],//协同人员
196
+    isSummaryNext: false,//汇总单-下一步
196 197
   })
197 198
   
198 199
   // 是否提交
@@ -447,7 +448,7 @@
447 448
   }
448 449
   
449 450
   // 获取事件详情
450
-  function getIncidentDetail(isSummaryNext = false){
451
+  function getIncidentDetail(){
451 452
     uni.showLoading({
452 453
       title: "加载中",
453 454
       mask: true,
@@ -458,7 +459,7 @@
458 459
       if(res.status == 200){
459 460
         dataInfo.incidentData = res.data || {};
460 461
         
461
-        if(isSummaryNext){
462
+        if(dataInfo.isSummaryNext){
462 463
           // 汇总单-下一步
463 464
           dataInfo.incidentData.duty.addSummary = 0;
464 465
         }
@@ -622,8 +623,11 @@
622 623
   function submit(){
623 624
     isSubmit.value = true;
624 625
     if(dataInfo.tabActiveValue === 'doing' && isInSummaryOrder.value){
625
-      isSubmit.value = false;
626
-      getIncidentDetail(true);
626
+      // isSubmit.value = false;
627
+      // getIncidentDetail(true);
628
+      uni.navigateTo({
629
+        url: `/pages/handler/handler?incidentId=${dataInfo.incidentId}&isSummaryNext=1`,
630
+      });
627 631
     }else if(dataInfo.tabActiveValue === 'doing' && !isInSummaryOrder.value){
628 632
       submitHandler();
629 633
     }else if(dataInfo.tabActiveValue === 'overtime'){
@@ -787,6 +791,7 @@
787 791
   
788 792
   onLoad((option) => {
789 793
     dataInfo.incidentId = option.incidentId;
794
+    dataInfo.isSummaryNext = option.isSummaryNext == 1;
790 795
     getIncidentDetail();
791 796
   })
792 797
 </script>

+ 1 - 1
pages/synergeticAdd/synergeticAdd.vue

@@ -60,7 +60,7 @@
60 60
     }
61 61
     dataInfo.paramData.synergetic = dataInfo.userSelectedList;
62 62
     handlerStore.setHandlerData(dataInfo.paramData);
63
-    uni.redirectTo({
63
+    uni.navigateTo({
64 64
       url: `/pages/handler/handler?incidentId=${dataInfo.incidentId}`,
65 65
     })
66 66
   }

+ 1 - 1
pages/workHourManagementTwo/workHourManagementTwo.vue

@@ -103,7 +103,7 @@
103 103
           mask: true,
104 104
         });
105 105
         setTimeout(() => {
106
-          uni.redirectTo({
106
+          uni.navigateTo({
107 107
             url: `/pages/handler/handler?incidentId=${dataInfo.incidentId}`,
108 108
           })
109 109
         }, 1500)