Browse Source

修改翻包可以连续扫描

hella_online_20240829
lijuncheng 5 months ago
parent
commit
3e8b80466c
  1. 10
      src/mycomponents/scan/winComScanBalance.vue
  2. 10
      src/pages/package/record/overPackageRecord.vue

10
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()
}
}

10
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 => {

Loading…
Cancel
Save