From 36725efaee20170b73fbbe9fd179d053b4eb0543 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 26 Aug 2024 10:12:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/modules/carry-task.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pages/modules/carry-task.vue b/pages/modules/carry-task.vue index 04a0641..b9289f9 100644 --- a/pages/modules/carry-task.vue +++ b/pages/modules/carry-task.vue @@ -31,7 +31,7 @@ - + @@ -114,12 +114,26 @@ this.index1 = '' this.index2 = '' }, - async _taskCarry () { + toSure () { this.disabled = true if (!this.index1 || !this.index2) { this.disabled = false return } + uni.showModal({ + title: '提示', + content: '确认终点无货状态', + confirmColor: '#ff6a00', + success: function (res) { + if (res.confirm) { + this._taskCarry() + } else if (res.cancel) { + this.disabled = false + } + } + }) + }, + async _taskCarry () { try { let res = await taskCarry(this.index1, this.index2) this.disabled = false