From b6f54944f7bc7aefeae8adbd1c3d78e65521e84a Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Fri, 15 Nov 2024 17:49:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=AE=8C=E6=88=90=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=BC=B9=E5=87=BA=E6=98=AF=E5=90=A6=E6=80=BB=E6=A3=80?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages-order/orderDetail/orderDetail.vue | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/pages-order/orderDetail/orderDetail.vue b/pages-order/orderDetail/orderDetail.vue index 84b0fc5..a6e8143 100644 --- a/pages-order/orderDetail/orderDetail.vue +++ b/pages-order/orderDetail/orderDetail.vue @@ -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","");