Browse Source

修改数量盘点

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

Loading…
Cancel
Save