Browse Source

修改数量盘点

intex_online20250327
lijuncheng 2 weeks ago
parent
commit
5df486f898
  1. 19
      src/pages/count/job/countLightDetail.vue

19
src/pages/count/job/countLightDetail.vue

@ -238,6 +238,7 @@
r.itemCode == subItem.itemCode &&
r.batch == subItem.batch &&
r.inventoryStatus == subItem.inventoryStatus)
subItem.toPackingNumber=""
//
if (mainItem) {
mainItem.scaned = true;
@ -277,6 +278,8 @@
var mainItem = this.dataList.find(r =>
r.itemCode == subItem.itemCode &&
r.inventoryStatus == subItem.inventoryStatus)
subItem.toPackingNumber=""
subItem.toBatch=""
//
if (mainItem) {
mainItem.scaned = true;
@ -428,7 +431,8 @@
r.locationCode == scanItem.locationCode &&
r.batch == scanItem.batch &&
r.inventoryStatus == scanItem.inventoryStatus)
//
scanItem.toPackingNumber = ""
//,recordList
if (mainItem) {
if (!mainItem.recordList) {
@ -442,10 +446,11 @@
res.batch == scanItem.batch &&
res.inventoryStatus == scanItem.inventoryStatus
)
scanItem.toPackingNumber = ""
//
if (subItem) {
subItem.toPackingNumber = ""
subItem.handleQty = calc.add(Number(subItem.handleQty), Number(scanItem.handleQty))
} else {
mainItem.recordList.unshift(scanItem)
@ -466,7 +471,6 @@
res.batch == scanItem.batch &&
res.inventoryStatus == scanItem.inventoryStatus
)
scanItem.toPackingNumber = ""
//
if (subItem) {
@ -483,6 +487,8 @@
r.itemCode == scanItem.itemCode &&
r.locationCode == scanItem.locationCode &&
r.inventoryStatus == scanItem.inventoryStatus)
scanItem.toBatch = ""
scanItem.toPackingNumber = ""
//,recordList
if (item) {
if (!item.recordList) {
@ -499,14 +505,11 @@
//
if (subItem) {
subItem.toPackingNumber = "",
subItem.toBatch = ""
subItem.handleQty = calc.add(Number(subItem.handleQty), Number(scanItem.handleQty))
} else {
item.recordList.unshift(scanItem)
}
} else {
//,
var detail = this.createAddDetailInfo(scanItem)
@ -523,13 +526,11 @@
//
if (subItem) {
subItem.toPackingNumber = "",
subItem.toBatch = ""
subItem.handleQty = calc.add(Number(subItem.handleQty), Number(scanItem.handleQty))
} else {
detail.recordList.unshift(scanItem)
}
this.dataList.unshift(detail)
this.currentEditItem = scanItem;
}
}

Loading…
Cancel
Save