seimin 11 月之前
父節點
當前提交
450df50900

+ 2 - 1
components/IncidentListFilter.vue

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

+ 1 - 1
pages/categoryThree/categoryThree.vue

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

+ 1 - 1
pages/consumableList/consumableList.vue

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

+ 9 - 4
pages/handler/handler.vue

@@ -193,6 +193,7 @@
193
     handlerImgList: [],//处理图片列表
193
     handlerImgList: [],//处理图片列表
194
     category: {},//故障现象
194
     category: {},//故障现象
195
     synergetic: [],//协同人员
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
     uni.showLoading({
452
     uni.showLoading({
452
       title: "加载中",
453
       title: "加载中",
453
       mask: true,
454
       mask: true,
@@ -458,7 +459,7 @@
458
       if(res.status == 200){
459
       if(res.status == 200){
459
         dataInfo.incidentData = res.data || {};
460
         dataInfo.incidentData = res.data || {};
460
         
461
         
461
-        if(isSummaryNext){
462
+        if(dataInfo.isSummaryNext){
462
           // 汇总单-下一步
463
           // 汇总单-下一步
463
           dataInfo.incidentData.duty.addSummary = 0;
464
           dataInfo.incidentData.duty.addSummary = 0;
464
         }
465
         }
@@ -622,8 +623,11 @@
622
   function submit(){
623
   function submit(){
623
     isSubmit.value = true;
624
     isSubmit.value = true;
624
     if(dataInfo.tabActiveValue === 'doing' && isInSummaryOrder.value){
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
     }else if(dataInfo.tabActiveValue === 'doing' && !isInSummaryOrder.value){
631
     }else if(dataInfo.tabActiveValue === 'doing' && !isInSummaryOrder.value){
628
       submitHandler();
632
       submitHandler();
629
     }else if(dataInfo.tabActiveValue === 'overtime'){
633
     }else if(dataInfo.tabActiveValue === 'overtime'){
@@ -787,6 +791,7 @@
787
   
791
   
788
   onLoad((option) => {
792
   onLoad((option) => {
789
     dataInfo.incidentId = option.incidentId;
793
     dataInfo.incidentId = option.incidentId;
794
+    dataInfo.isSummaryNext = option.isSummaryNext == 1;
790
     getIncidentDetail();
795
     getIncidentDetail();
791
   })
796
   })
792
 </script>
797
 </script>

+ 1 - 1
pages/synergeticAdd/synergeticAdd.vue

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

+ 1 - 1
pages/workHourManagementTwo/workHourManagementTwo.vue

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