Browse Source

修改重复扫描没有提示

hella_online_20240829
lijuncheng 2 months ago
parent
commit
8e96b49fb1
  1. 4
      src/pages/package/record/overPackageRecord.vue
  2. 8
      src/pages/repleinsh/record/directRepleinshRecord.vue

4
src/pages/package/record/overPackageRecord.vue

@ -269,7 +269,7 @@
this.scanPopupGetFocus()
} else {
var detail = item.subList.find(r => {
if (r.packingNumber == balance.packingNumber &&
if (r.packingNumber == pack.number &&
r.batch == balance.batch &&
r.locationCode == balance.locationCode &&
r.inventoryStatus == balance.inventoryStatus) {
@ -285,7 +285,7 @@
this.scanPopupGetFocus()
} else {
if (detail.scaned == true) {
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
this.showErrorMessage("箱码[" + detail.packingNumber + "批次[" + balance.batch + "]已经在列表中")
}
}
}

8
src/pages/repleinsh/record/directRepleinshRecord.vue

@ -248,7 +248,7 @@
this.scanPopupGetFocus()
} else {
var detail = item.subList.find(r => {
if (r.packingNumber == balance.packingNumber &&
if (r.packingNumber == pack.number &&
r.batch == balance.batch &&
r.locationCode == balance.locationCode &&
r.inventoryStatus == balance.inventoryStatus) {
@ -268,7 +268,7 @@
this.scanPopupGetFocus()
} else {
if (detail.scaned == true) {
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中")
this.showErrorMessage("箱码[" + detail.packingNumber + "批次[" + balance.batch + "]已经在列表中")
}
}
}
@ -279,7 +279,9 @@
showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => {
if (res) {}
if (res) {
this.scanPopupGetFocus()
}
});
},

Loading…
Cancel
Save