项目完成时,弹出是否总检选择框
This commit is contained in:
parent
77bba7dd23
commit
b6f54944f7
@ -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","");
|
||||
|
Loading…
Reference in New Issue
Block a user