From 18ea39ee0eff47a8a8efb9545cea048fe4b4440e Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 15 Aug 2024 14:00:55 +0800 Subject: [PATCH] no message --- pages/SecondPhase/slitting/CacheCut.vue | 39 ++++++++++++++++--------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/pages/SecondPhase/slitting/CacheCut.vue b/pages/SecondPhase/slitting/CacheCut.vue index 4b612ae..674063c 100644 --- a/pages/SecondPhase/slitting/CacheCut.vue +++ b/pages/SecondPhase/slitting/CacheCut.vue @@ -114,23 +114,34 @@ this.disabled = false return } - uni.showModal({ - title: '提示', - content: '确认是否创建送到内包间AGV任务?', - confirmColor: '#ff6a00', - success: (res) => { - if (res.confirm) { - if (type === 1) { + if (type === 1) { + uni.showModal({ + title: '提示', + content: '确认是否创建送到内包间AGV任务?', + confirmColor: '#ff6a00', + success: (res) => { + if (res.confirm) { this._sendSubVolumeToNBJ() + } else if (res.cancel) { + this.disabled = false } - if (type === 2) { - this._markingFoilSlittingToCache() - } - } else if (res.cancel) { - this.disabled = false } - } - }) + }) + } + if (type === 2) { + uni.showModal({ + title: '提示', + content: '确认是否创建送到暂存区AGV任务?', + confirmColor: '#ff6a00', + success: (res) => { + if (res.confirm) { + this._markingFoilSlittingToCache() + } else if (res.cancel) { + this.disabled = false + } + } + }) + } }, async _sendSubVolumeToNBJ () { try {