From 93d5342ca10d4f5092fd54c12f69b33d7516e37b Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 13 May 2024 17:17:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=84=A6=E7=82=B9=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/WarehouseManage/ProdDeliveryConfirm.vue | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/pages/WarehouseManage/ProdDeliveryConfirm.vue b/pages/WarehouseManage/ProdDeliveryConfirm.vue index 265fcf8..a26510c 100644 --- a/pages/WarehouseManage/ProdDeliveryConfirm.vue +++ b/pages/WarehouseManage/ProdDeliveryConfirm.vue @@ -8,7 +8,7 @@ 木箱 - @@ -65,7 +65,6 @@ }, data() { return { - focusedStatus: true, val1: '', billCode: '', dataList: [], @@ -76,6 +75,9 @@ this.billCode = option.billcode this._stivtDtlQuery() }, + mounted () { + this.$refs.scanChild.handleFocus() + }, methods: { handleChange1 (e) { this._stivtDtlQuery() @@ -90,24 +92,12 @@ url: '/pages/WarehouseManage/ProdDeliveryDtl?boxno=' + code + '&billcode=' + this.billCode }) }, - // handleTest () { - // this.focusedStatus = false - // this.val1 = '' - // setTimeout(()=>{ - // uni.showToast({ - // title: 'toast', - // icon: 'none' - // }) - // this.focusedStatus = true - // },3000) - // }, /** 初始化查询 */ async _stivtDtlQuery () { let res = await stivtDtlQuery(this.val1, this.billCode) this.dataList = [...res.data] }, async _stoutConfirm () { - this.focusedStatus = false this.disabled1 = true try { let res = await stoutConfirm(this.val1) @@ -118,7 +108,7 @@ title: res.message, icon: 'none' }) - this.focusedStatus = true + this.$refs.scanChild.handleFocus() } catch (e) { this.disabled1 = false }