tangyi 2022-04-01 14:36:21 +08:00
commit 318d638bfb
1 changed files with 24 additions and 3 deletions

View File

@ -218,10 +218,31 @@
},
goWorkorderTwo(){
console.log(this.targetObj);
uni.navigateTo({
url: "/pages/workOrder/workOrderThree"
})
if(this.checkEmpty()) {
uni.navigateTo({
url: "/pages/workOrder/workOrderThree"
})
}
},
//
checkEmpty(){
let result = false;
if(!this.targetObj.endTime) {
this.$toolAll.tools.showToast('请选择结束时间');
} else if(!this.targetObj.workDescribe) {
this.$toolAll.tools.showToast('请填写工作描述');
} else if(this.targetObj.maintenanceImgList.length==0) {
this.$toolAll.tools.showToast('请上传维保图片');
} else if(!this.targetObj.faultReason) {
this.$toolAll.tools.showToast('请填写故障原因');
} else if(!this.targetObj.maintenancePersonnel) {
this.$toolAll.tools.showToast('请填写维保人员');
} else {
result = true;
}
return result;
},
addMountingsList() {
uni.navigateTo({
url: "/pages/mountingsList/mountingsList"