diff --git a/src/mycomponents/scan/winComScanBalance.vue b/src/mycomponents/scan/winComScanBalance.vue index 7a3e012d..099cbd38 100644 --- a/src/mycomponents/scan/winComScanBalance.vue +++ b/src/mycomponents/scan/winComScanBalance.vue @@ -150,7 +150,7 @@ } else if (res.data.length == 1) { result.balance = res.data[0] this.$emit("getBalance", result) - this.closeScanPopup() + // this.closeScanPopup() } else { //多条记录 this.$refs.balanceSelect.openPopup(res.data); @@ -205,11 +205,17 @@ selectBalanceItem(item) { this.resultData.balance = item this.$emit("getBalance", this.resultData) - this.closeScanPopup() + // this.closeScanPopup() }, closeScanPopup() { this.$refs.popup.close() + }, + getfocus(){ + if(this.$refs.comscan){ + this.$refs.comscan.getfocus() + } } + diff --git a/src/pages/package/record/overPackageRecord.vue b/src/pages/package/record/overPackageRecord.vue index f606ceae..3fdb08d3 100644 --- a/src/pages/package/record/overPackageRecord.vue +++ b/src/pages/package/record/overPackageRecord.vue @@ -258,6 +258,7 @@ this.detailSource.push(itemp) this.itemCode = balance.itemCode; this.fromLocationCode =balance.locationCode + this.scanPopupGetFocus() } else { var detail = item.subList.find(r => { if (r.packingNumber == balance.packingNumber && @@ -270,6 +271,7 @@ if (detail == undefined) { let newDetail = createDetailInfo(balance, pack); item.subList.push(newDetail); + this.scanPopupGetFocus() } else { if (detail.scaned == true) { this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中") @@ -287,7 +289,7 @@ showErrorMessage(message) { this.$refs.comMessage.showErrorMessage(message, res => { if (res) { - + this.scanPopupGetFocus() } }); }, @@ -326,13 +328,13 @@ }, closeScanPopup() { - if (this.$refs.scanPopup != undefined) { + if (this.$refs.scanPopup) { this.$refs.scanPopup.closeScanPopup(); } }, scanPopupGetFocus() { - if (this.$refs.scanPopup != undefined) { + if (this.$refs.scanPopup) { this.$refs.scanPopup.getfocus(); } }, @@ -471,7 +473,7 @@ this.fromLocationCode = code; this.openScanPopup(); }, - + showCommitSuccessMessage(hint, pointData) { this.$refs.comMessage.showSuccessMessage(hint, res => {