From c98d5f61cb5cce385d20e092f66da23b6d858abd Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Tue, 3 Jun 2025 11:12:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=8A=9F=E8=83=BD=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/pick/pick-task.vue | 41 ++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/pages/pick/pick-task.vue b/pages/pick/pick-task.vue index 54fe31e..7c0a307 100644 --- a/pages/pick/pick-task.vue +++ b/pages/pick/pick-task.vue @@ -57,11 +57,11 @@ - 出库至二楼料箱 + 返回至立库料箱 @@ -76,11 +76,20 @@ - 返回至立库料箱 + 是否机打印 + + + + + + + + + 出库至二楼料箱 @@ -105,7 +114,7 @@ - + @@ -128,6 +137,7 @@ val2: '', val3: '', isChecked: true, + isChecked1: true, data: {}, disabled: false, show: false @@ -152,12 +162,16 @@ setWStatus () { this.isChecked = !this.isChecked }, + setWStatus1 () { + this.isChecked1 = !this.isChecked1 + }, clearUp () { this.data = {} this.val1 = '' this.val2 = '' this.val3 = '' this.isChecked = true + this.isChecked1 = true this.disabled = false this.show = false }, @@ -167,6 +181,15 @@ } this.show = true }, + toConfirm () { + if (this.isChecked1) { + this.disabled = true + let data = Object.assign({}, this.data, {lxCode: this.val2}) + this.toPrint(data) + } else { + this._savePickTask() + } + }, async _savePickTask () { this.disabled = true try { @@ -177,8 +200,6 @@ title: res.msg, icon: 'none' }) - let data = Object.assign({}, this.data, {lxCode: this.val2}) - setTimeout(this.toPrint(data), 800) this.clearUp() } else { this.disabled = false @@ -197,8 +218,9 @@ icon: 'none', duration: 5000 }) + this.disabled = false return - } + } LODOP.SET_SHOW_MODE('HIDE_DISBUTTIN_SETUP', 1)// 隐藏那些无效按钮 LODOP.SET_LICENSES('浙江省烟草专卖局(公司)', 'C0C4A46A3A0D1F526D426018D9F11921', '', '') // 更换为打印服务器ip 不需要加前缀 @@ -252,6 +274,9 @@ title: '打印成功', icon: 'none' }) + if (this.isChecked1) { + this._savePickTask() + } } } }