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