Browse Source

修改盘点功能

wms3.0_pda
niexiting 10 months ago
parent
commit
1474bb8bc0
  1. 15
      common/balance.js
  2. 6
      pages/count/job/countDetail.vue

15
common/balance.js

@ -263,6 +263,11 @@ export function byBatch(label, locationCode, fromInventoryStatuses, callback) {
action: "==", action: "==",
value: label.batch value: label.batch
}) })
filters.push({
column: "packingNumber",
action: "==",
value: null
})
filters.push({ filters.push({
column: "locationCode", column: "locationCode",
action: "==", action: "==",
@ -325,6 +330,16 @@ export function byQuantity(label, locationCode, fromInventoryStatuses, callback)
action: "==", action: "==",
value: label.itemCode value: label.itemCode
}) })
filters.push({
column: "packingNumber",
action: "==",
value: null
})
filters.push({
column: "batch",
action: "==",
value: null
})
filters.push({ filters.push({
column: "locationCode", column: "locationCode",
action: "==", action: "==",

6
pages/count/job/countDetail.vue

@ -519,14 +519,14 @@
} else { } else {
// //
// //
var detail = that.detailSource.find(r => r.itemCode == that.package.itemCode); var detail = that.detailSource.find(r => r.itemCode == that.label.itemCode);
if (detail == undefined) { if (detail == undefined) {
// //
that.addNewItemCodeToList(qty, inventoryStatus) that.addNewItemCodeToList(qty, inventoryStatus)
} else { } else {
var itemEditInfo = detail.subList.find(item => { var itemEditInfo = detail.subList.find(item => {
if (item.packingNumber == that.package.number && if (item.packingNumber == that.label.packingNumber &&
item.batch == that.package.batch && item.batch == that.label.batch &&
item.inventoryStatus == inventoryStatus) { item.inventoryStatus == inventoryStatus) {
return item; return item;
} }

Loading…
Cancel
Save