|
|
@ -222,6 +222,7 @@ |
|
|
|
that.subList = res.data.subList; |
|
|
|
that.detailSource = getThreeDataSource(that.jobContent) |
|
|
|
that.jobContent.detailToLocationCode = res.data.subList[0].toLocationCode |
|
|
|
that.toLocationCode= res.data.subList[0].toLocationCode |
|
|
|
that.fromLocationCode = that.subList[0].fromLocationCode |
|
|
|
//任务中已经扫描,模拟扫描赋值 |
|
|
|
if (this.scanMessage) { |
|
|
@ -263,9 +264,7 @@ |
|
|
|
this.managementType = managementTypeParams |
|
|
|
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){ |
|
|
|
this.setDataBatch(result) |
|
|
|
}else{ |
|
|
|
this.setData(result) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
setDataBatch(result) { |
|
|
|
try { |
|
|
@ -312,10 +311,11 @@ |
|
|
|
if (isExit == undefined) { |
|
|
|
// this.showErrorMessage("批次【" + batch + "】库位【" + result |
|
|
|
// .fromLocationCode + "】不在列表中") |
|
|
|
|
|
|
|
console.log(this.toLocationCode) |
|
|
|
detail.subList.push({ |
|
|
|
scaned:true, |
|
|
|
fromLocationCode:this.fromLocationCode, |
|
|
|
toLocationCode:this.toLocationCode, |
|
|
|
batch:result.label.batch, |
|
|
|
handleQty:result.label.qty, |
|
|
|
qty:result.balance.qty, |
|
|
@ -400,7 +400,9 @@ |
|
|
|
itemDetail.balanceQty=result.balance.qty |
|
|
|
itemDetail.uom=result.balance.uom |
|
|
|
itemDetail.packQty=result.package.packQty |
|
|
|
itemDetail.packUnit=result.package.packUnit |
|
|
|
itemDetail.packUnit=result.package.packUnit |
|
|
|
itemDetail.fromlocationCode=this.fromLocationCode |
|
|
|
itemDetail.toLocationCode=this.toLocationCode |
|
|
|
// itemDetail.toInventoryStatus = "OK" |
|
|
|
// itemDetail.packList.forEach(pac => { |
|
|
|
// pac.scaned = true |
|
|
|