|
@@ -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>
|