From 073570cf31d82cb0bb57dda8261f4bee5d2a9c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=AD=90=E5=B0=A7?= Date: Thu, 18 May 2023 16:52:22 +0800 Subject: [PATCH] =?UTF-8?q?overseamom-248=20fix=20=E8=B6=8A=E5=8D=97MOM?= =?UTF-8?q?=E6=89=8B=E6=8C=81=E8=81=9A=E7=84=A6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 4 ++-- .../product/inbound/finishProductOffline/index.vue | 13 ++++++++++--- src/pages/product/stoOutbound/index.vue | 13 ++++++++++++- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/src/pages.json b/src/pages.json index 983e14a..6f1009a 100644 --- a/src/pages.json +++ b/src/pages.json @@ -491,7 +491,7 @@ } }, { - "path": "pages/raw/handover/aggregating-vn/index",// 越南工厂 + "path": "pages/raw/handover/aggregating-Vn/index", // 越南工厂 "style": { "navigationBarTitleText": "汇总查询", "navigationStyle": "custom", // 隐藏系统导航栏 @@ -1333,7 +1333,7 @@ { "path": "pages/product/stoOutbound/index", "style": { - "navigationBarTitleText": "成品STO出库",//成品sto出库(越南按照sto单号出库) + "navigationBarTitleText": "成品STO出库", //成品sto出库(越南按照sto单号出库) "navigationStyle": "custom", // 隐藏系统导航栏 "navigationBarTextStyle": "white" // 状态栏字体为白色,只能为 white-白色,black-黑色 二选一 } diff --git a/src/pages/product/inbound/finishProductOffline/index.vue b/src/pages/product/inbound/finishProductOffline/index.vue index 12800a4..aeff522 100644 --- a/src/pages/product/inbound/finishProductOffline/index.vue +++ b/src/pages/product/inbound/finishProductOffline/index.vue @@ -253,7 +253,7 @@ export default class finishProductOfflineDom extends BasePage { } } add() { - // this.firstFocus = false + this.firstFocus = false; if (!this.form.barCode) { this.customToast(this.$t('message.barcode') as string); return; @@ -287,7 +287,11 @@ export default class finishProductOfflineDom extends BasePage { } } this.form.barCode = ''; - this.firstFocus = true; + this.firstFocus = false; + this.$nextTick(function () { + uni.hideKeyboard(); //隐藏软键盘 + this.firstFocus = true; + }); // this.$refs.BarCodeSearch.focus() } async getBarcode() { @@ -382,7 +386,10 @@ export default class finishProductOfflineDom extends BasePage { } if (this.open == true) { this.form.barCode = ''; - this.firstFocus = true; + this.firstFocus = false; + this.$nextTick(function () { + this.firstFocus = true; + }); } } } diff --git a/src/pages/product/stoOutbound/index.vue b/src/pages/product/stoOutbound/index.vue index 3ca0587..cb2dbf2 100644 --- a/src/pages/product/stoOutbound/index.vue +++ b/src/pages/product/stoOutbound/index.vue @@ -183,6 +183,7 @@ export default class dnReceiptDom extends BasePage { //num: any = ''; //SunmitList: any = []; async onOk() { + this.firstFocus = false; this.carNo = ''; this.company = ''; this.showVehicle = false; @@ -215,9 +216,19 @@ export default class dnReceiptDom extends BasePage { //this.TheItem.scanAmount = this.TheItem.scanAmount + 1; this.model.stoNoList[this.ItemIndex].finQty += 1; this.barcode = ''; + this.firstFocus = false; + this.$nextTick(function () { + uni.hideKeyboard(); //隐藏软键盘 + this.firstFocus = true; + }); } + // console.log('触发了') this.barcode = ''; - this.firstFocus = true; + this.firstFocus = false; + this.$nextTick(function () { + uni.hideKeyboard(); //隐藏软键盘 + this.firstFocus = true; + }); } /** * 详情