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; + }); } /** * 详情