From e0ae9c5daa7428b4e4a5c11b9c990640a62c2d28 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Tue, 22 Nov 2022 11:01:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=A0=87=E7=AD=BE=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/WarehouseManage/CustomerLabelPrint.vue | 22 +++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/pages/WarehouseManage/CustomerLabelPrint.vue b/pages/WarehouseManage/CustomerLabelPrint.vue index 19d6330..d84223b 100644 --- a/pages/WarehouseManage/CustomerLabelPrint.vue +++ b/pages/WarehouseManage/CustomerLabelPrint.vue @@ -33,7 +33,7 @@ - + {{e.package_box_sn}} {{e.quanlity_in_box}} {{e.box_weight}} @@ -52,7 +52,7 @@ - + @@ -72,16 +72,10 @@ val1: '', dataList: [], disabled1: false, - disabled2: false, - pkId: '', - pkObj: {} + disabled2: false }; }, methods: { - toCheck (e) { - this.pkId = this.pkId === e.container_name ? '' : e.container_name - this.pkObj = this.pkId === e.container_name ? e : {} - }, /** 查询 */ async _customerInfo () { this.disabled1 = true @@ -104,20 +98,18 @@ /** 打印 */ async _customerPrint () { this.disabled2 = true - if (!this.pkId) { + if (!this.val1) { uni.showToast({ - title: '请选择一行', + title: '请扫木箱码', icon: 'none' }) this.disabled2 = false return } try { - let res = await customerPrint(this.pkObj.package_box_sn) + let res = await customerPrint(this.val1) this.disabled2 = false - this.pkId = '' - this.pkObj = {} - this._customerInfo() + this.val1 = '' uni.showToast({ title: res.message, icon: 'none'