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: "==",
value: label.batch
})
filters.push({
column: "packingNumber",
action: "==",
value: null
})
filters.push({
column: "locationCode",
action: "==",
@ -325,6 +330,16 @@ export function byQuantity(label, locationCode, fromInventoryStatuses, callback)
action: "==",
value: label.itemCode
})
filters.push({
column: "packingNumber",
action: "==",
value: null
})
filters.push({
column: "batch",
action: "==",
value: null
})
filters.push({
column: "locationCode",
action: "==",

6
pages/count/job/countDetail.vue

@ -519,14 +519,14 @@
} 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) {
//
that.addNewItemCodeToList(qty, inventoryStatus)
} else {
var itemEditInfo = detail.subList.find(item => {
if (item.packingNumber == that.package.number &&
item.batch == that.package.batch &&
if (item.packingNumber == that.label.packingNumber &&
item.batch == that.label.batch &&
item.inventoryStatus == inventoryStatus) {
return item;
}

Loading…
Cancel
Save