From 50d7e659750eef2389972682ad37d3fe97e46d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=AD=90=E5=B0=A7?= Date: Fri, 5 May 2023 15:54:38 +0800 Subject: [PATCH] =?UTF-8?q?overseamom-222=20fix=20=E8=B6=8A=E5=8D=97?= =?UTF-8?q?=E6=89=8B=E6=8C=81=E8=87=AA=E5=8A=A8=E8=81=9A=E7=84=A6=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../product/inbound/finishProductOffline/index.vue | 10 +++++++++- src/pages/product/stoOutbound/index.vue | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/pages/product/inbound/finishProductOffline/index.vue b/src/pages/product/inbound/finishProductOffline/index.vue index 94780b9..73be9c6 100644 --- a/src/pages/product/inbound/finishProductOffline/index.vue +++ b/src/pages/product/inbound/finishProductOffline/index.vue @@ -11,7 +11,7 @@ - + @@ -253,6 +253,7 @@ export default class finishProductOfflineDom extends BasePage { } } add() { + // this.firstFocus = false if (!this.form.barCode) { this.customToast(this.$t('message.barcode') as string); return; @@ -285,6 +286,9 @@ export default class finishProductOfflineDom extends BasePage { this.customToast(this.$t('message.product_Tip7') as string); } } + this.form.barCode = ''; + this.firstFocus = true; + // this.$refs.BarCodeSearch.focus() } async getBarcode() { if (this.open == false) { @@ -337,6 +341,10 @@ export default class finishProductOfflineDom extends BasePage { } } } + if (this.open == true) { + this.form.barCode = ''; + this.firstFocus = true; + } } } diff --git a/src/pages/product/stoOutbound/index.vue b/src/pages/product/stoOutbound/index.vue index bde8291..3ca0587 100644 --- a/src/pages/product/stoOutbound/index.vue +++ b/src/pages/product/stoOutbound/index.vue @@ -53,7 +53,7 @@ - + @@ -216,6 +216,8 @@ export default class dnReceiptDom extends BasePage { this.model.stoNoList[this.ItemIndex].finQty += 1; this.barcode = ''; } + this.barcode = ''; + this.firstFocus = true; } /** * 详情