项目完成时,弹出是否总检选择框

This commit is contained in:
xiaofajia 2024-11-15 17:49:32 +08:00
parent 77bba7dd23
commit b6f54944f7

View File

@ -602,7 +602,28 @@ export default {
const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","阶段完成",fileStr,"","");
}else if("other"==this.nowChooseOperate){
//
const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","维修完成移交下一班组维修",fileStr,"","");
const result = await new Promise((resolve, reject) => {
uni.showModal({
title: '提示', //
content: '是否移交总检?', //
confirmText: '是', //
cancelText: '否', //
success: (res) => {
if (res.confirm) {
//
resolve(saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","维修完成移交总检",fileStr,"02",""))
this.nowChooseOperate = 'done'
} else if (res.cancel) {
//
resolve(saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","维修完成移交下一班组维修",fileStr,"",""))
}
},
fail: (err) => {
console.error('我是是否移交总检的弹窗,我报错了', err);
}
});
})
// const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","",fileStr,"","");
}else if("done"==this.nowChooseOperate){
//
const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","维修完成移交总检",fileStr,"02","");