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

Loading…
Cancel
Save