Browse Source

YT-1172计划外入库任务要支持扫库存余额标签,目标库位不能变,扫描数量显示标签数量

intex_online20241205
zhang_li 2 months ago
parent
commit
93f8a0f583
  1. 20
      src/pages/unPlanned/job/receiptJobDetail.vue

20
src/pages/unPlanned/job/receiptJobDetail.vue

@ -256,6 +256,12 @@
} }
}, },
getTodayDate() {
var today = new Date(); // Date
var dateString =today.getTime(); //
return dateString;
},
setDataBatch(result){ setDataBatch(result){
try { try {
console.log(222,result) console.log(222,result)
@ -281,6 +287,10 @@
r.fromLocationCode == result.fromLocationCode&& r.fromLocationCode == result.fromLocationCode&&
r.isRecommend==true r.isRecommend==true
}) })
if(!itemDetail1){
itemDetail1 = {...result.package,masterId:this.jobContent.id}
}
console.log(itemDetail1)
if (itemDetail == undefined) { if (itemDetail == undefined) {
// this.showErrorMessage("" + batch + "" + "") // this.showErrorMessage("" + batch + "" + "")
var newAdd = { var newAdd = {
@ -291,13 +301,14 @@
handleQty:Number(result.label.qty), handleQty:Number(result.label.qty),
qty:detail.qty, qty:detail.qty,
toLocationCode:this.toLocationCode ? this.toLocationCode : this.jobToLocationCode, toLocationCode:this.toLocationCode ? this.toLocationCode : this.jobToLocationCode,
// inventoryStatus:inventoryStatus, inventoryStatus:'OK',
// toInventoryStatus:inventoryStatus, toInventoryStatus:'OK',
packQty:Number(result.package.packQty), packQty:Number(result.package.packQty),
packUnit:result.package.packUnit, packUnit:result.package.packUnit,
balance:{}, balance:{},
isRecommend:false, isRecommend:false,
isNewAdd:"newAdd" isNewAdd:"newAdd",
arriveDate:itemDetail1.arriveDate||this.getTodayDate()
} }
// newAdd.balance.balanceQty = Number(result.balance.qty); // newAdd.balance.balanceQty = Number(result.balance.qty);
newAdd.balance.packQty = Number(result.package.packQty) newAdd.balance.packQty = Number(result.package.packQty)
@ -313,9 +324,10 @@
itemDetail.handleQty = Number(result.label.qty); itemDetail.handleQty = Number(result.label.qty);
itemDetail.toLocationCode = this.toLocationCode ? this.toLocationCode : itemDetail itemDetail.toLocationCode = this.toLocationCode ? this.toLocationCode : itemDetail
.toLocationCode; .toLocationCode;
itemDetail.packQty = Number(result.package.packQty) itemDetail.packQty = Number(result.package.SpackQty)
itemDetail.packUnit = result.package.packUnit itemDetail.packUnit = result.package.packUnit
itemDetail.labelQty = Number(result.label.qty); itemDetail.labelQty = Number(result.label.qty);
itemDetail.expireDate=result.package.expireDate,
itemDetail.balance={} itemDetail.balance={}
itemDetail.balance.packQty = Number(result.package.packQty) itemDetail.balance.packQty = Number(result.package.packQty)

Loading…
Cancel
Save