overseamom-248 fix 越南MOM手持聚焦优化

master
魏子尧 2 years ago committed by suiwei
parent 4d7d3cd063
commit 073570cf31

@ -491,7 +491,7 @@
} }
}, },
{ {
"path": "pages/raw/handover/aggregating-vn/index",// "path": "pages/raw/handover/aggregating-Vn/index", //
"style": { "style": {
"navigationBarTitleText": "汇总查询", "navigationBarTitleText": "汇总查询",
"navigationStyle": "custom", // "navigationStyle": "custom", //
@ -1333,7 +1333,7 @@
{ {
"path": "pages/product/stoOutbound/index", "path": "pages/product/stoOutbound/index",
"style": { "style": {
"navigationBarTitleText": "成品STO出库",//stosto "navigationBarTitleText": "成品STO出库", //stosto
"navigationStyle": "custom", // "navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white" // white-black-
} }

@ -253,7 +253,7 @@ export default class finishProductOfflineDom extends BasePage {
} }
} }
add() { add() {
// this.firstFocus = false this.firstFocus = false;
if (!this.form.barCode) { if (!this.form.barCode) {
this.customToast(this.$t('message.barcode') as string); this.customToast(this.$t('message.barcode') as string);
return; return;
@ -287,7 +287,11 @@ export default class finishProductOfflineDom extends BasePage {
} }
} }
this.form.barCode = ''; this.form.barCode = '';
this.firstFocus = true; this.firstFocus = false;
this.$nextTick(function () {
uni.hideKeyboard(); //
this.firstFocus = true;
});
// this.$refs.BarCodeSearch.focus() // this.$refs.BarCodeSearch.focus()
} }
async getBarcode() { async getBarcode() {
@ -382,7 +386,10 @@ export default class finishProductOfflineDom extends BasePage {
} }
if (this.open == true) { if (this.open == true) {
this.form.barCode = ''; this.form.barCode = '';
this.firstFocus = true; this.firstFocus = false;
this.$nextTick(function () {
this.firstFocus = true;
});
} }
} }
} }

@ -183,6 +183,7 @@ export default class dnReceiptDom extends BasePage {
//num: any = ''; //num: any = '';
//SunmitList: any = []; //SunmitList: any = [];
async onOk() { async onOk() {
this.firstFocus = false;
this.carNo = ''; this.carNo = '';
this.company = ''; this.company = '';
this.showVehicle = false; this.showVehicle = false;
@ -215,9 +216,19 @@ export default class dnReceiptDom extends BasePage {
//this.TheItem.scanAmount = this.TheItem.scanAmount + 1; //this.TheItem.scanAmount = this.TheItem.scanAmount + 1;
this.model.stoNoList[this.ItemIndex].finQty += 1; this.model.stoNoList[this.ItemIndex].finQty += 1;
this.barcode = ''; this.barcode = '';
this.firstFocus = false;
this.$nextTick(function () {
uni.hideKeyboard(); //
this.firstFocus = true;
});
} }
// console.log('')
this.barcode = ''; this.barcode = '';
this.firstFocus = true; this.firstFocus = false;
this.$nextTick(function () {
uni.hideKeyboard(); //
this.firstFocus = true;
});
} }
/** /**
* 详情 * 详情

Loading…
Cancel
Save