|
@ -163,8 +163,11 @@ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (detail == undefined) { |
|
|
if (detail == undefined) { |
|
|
let newDetail = createDetailInfo(balance, pack); |
|
|
this.getRecommendLocation(balance, pack, toLocationCode => { |
|
|
item.subList.push(newDetail); |
|
|
let newDetail = createDetailInfo(balance, pack); |
|
|
|
|
|
newDetail.toLocationCode = toLocationCode; |
|
|
|
|
|
item.subList.push(newDetail); |
|
|
|
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
if (detail.scaned == true) { |
|
|
if (detail.scaned == true) { |
|
|
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中") |
|
|
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中") |
|
@ -276,10 +279,10 @@ |
|
|
//记录有目标库位,需要查询管理模式 |
|
|
//记录有目标库位,需要查询管理模式 |
|
|
let precisionStrategyParams = getPrecisionStrategyParams(this.detailSource); |
|
|
let precisionStrategyParams = getPrecisionStrategyParams(this.detailSource); |
|
|
//2:获取管理模式,封装参数 |
|
|
//2:获取管理模式,封装参数 |
|
|
getPrecisionStrategyList(precisionStrategyParams, this.toLocationCode, res => { |
|
|
getPrecisionStrategyList(precisionStrategyParams, res => { |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
this.managementList = res.list; |
|
|
this.managementList = res.list; |
|
|
var params = this.setRecordParams(true) |
|
|
var params = this.setRecordParams() |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
|
|
|
|
|
|
putawayRecordSubmit(params).then(res => { |
|
|
putawayRecordSubmit(params).then(res => { |
|
@ -333,14 +336,14 @@ |
|
|
return itemList; |
|
|
return itemList; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
setRecordParams(queryModel) { |
|
|
setRecordParams() { |
|
|
var subList = [] |
|
|
var subList = [] |
|
|
var creator = this.$store.state.user.id |
|
|
var creator = this.$store.state.user.id |
|
|
this.detailSource.forEach(item => { |
|
|
this.detailSource.forEach(item => { |
|
|
item.subList.forEach(detail => { |
|
|
item.subList.forEach(detail => { |
|
|
if (detail.scaned) { |
|
|
if (detail.scaned) { |
|
|
var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode, |
|
|
var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode, |
|
|
detail.packingNumber, detail.batch); |
|
|
detail.packingNumber, detail.toLocationCode, detail.batch); |
|
|
detail.toPackingNumber = info.packingNumber;; |
|
|
detail.toPackingNumber = info.packingNumber;; |
|
|
detail.toContainerNumber = detail.containerNumber |
|
|
detail.toContainerNumber = detail.containerNumber |
|
|
detail.toBatch = info.batch; |
|
|
detail.toBatch = info.batch; |
|
|