|
@@ -700,15 +700,17 @@
|
700
|
700
|
});
|
701
|
701
|
return;
|
702
|
702
|
}
|
|
703
|
+ console.log(dataInfo)
|
703
|
704
|
console.log(dataInfo.handlerImgList)
|
|
705
|
+ console.log(dataInfo.incidentData.repairImgList)
|
704
|
706
|
|
705
|
707
|
uni.showLoading({
|
706
|
708
|
title: "加载中",
|
707
|
709
|
mask: true,
|
708
|
710
|
});
|
709
|
711
|
|
710
|
|
- if(dataInfo.handlerImgList.length || dataInfo.incidentData.repairImgList.length){
|
711
|
|
- // 有图片
|
|
712
|
+ if(dataInfo.handlerImgList.length){
|
|
713
|
+ // 有处理图片
|
712
|
714
|
let handlerOrder$ = handlerOrder();
|
713
|
715
|
let requestList = [handlerOrder$];
|
714
|
716
|
Promise.all(requestList).then(resList => {
|
|
@@ -724,6 +726,23 @@
|
724
|
726
|
});
|
725
|
727
|
}
|
726
|
728
|
})
|
|
729
|
+ }else if(dataInfo.incidentData.repairImgList.length){
|
|
730
|
+ // 有报修图片,无处理图片
|
|
731
|
+ let handlerOrder$ = handlerOrder();
|
|
732
|
+ let requestList = [handlerOrder$];
|
|
733
|
+ Promise.all(requestList).then(resList => {
|
|
734
|
+ uni.hideLoading();
|
|
735
|
+ console.log(resList);
|
|
736
|
+ if(resList[0].state == 200){
|
|
737
|
+ dataInfo.incidentId = resList[0].data.id;
|
|
738
|
+ handlerImgSuccessNew();
|
|
739
|
+ }else{
|
|
740
|
+ uni.showToast({
|
|
741
|
+ icon: 'none',
|
|
742
|
+ title: resList[0].msg || '请求数据失败!'
|
|
743
|
+ });
|
|
744
|
+ }
|
|
745
|
+ })
|
727
|
746
|
}else{
|
728
|
747
|
// 没有图片
|
729
|
748
|
let handlerOrder$ = handlerOrder();
|