|
@ -289,30 +289,20 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
commit() { |
|
|
commit() { |
|
|
if (this.toLocationCode == "") { |
|
|
|
|
|
this.$refs.comMessage.showQuestionMessage('未指定目标库位,系统将按上架策略推荐库位是否继续提交?', res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
this.commitRecord(); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.commitRecord(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
commitRecord() { |
|
|
|
|
|
if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) { |
|
|
if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) { |
|
|
//查询管理模式 |
|
|
//查询管理模式 |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title: "提交中....", |
|
|
title: "提交中....", |
|
|
mask: true |
|
|
mask: true |
|
|
}); |
|
|
}); |
|
|
this.managementList = []; |
|
|
// this.managementList = []; |
|
|
var precisionStrategParams = this.setPrecisionStrategParams() |
|
|
// var precisionStrategParams = this.setPrecisionStrategParams() |
|
|
|
|
|
|
|
|
|
|
|
// getPrecisionStrategyList(precisionStrategParams, res => { |
|
|
|
|
|
// if (res.success) { |
|
|
|
|
|
// this.managementList = res.list; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getPrecisionStrategyList(precisionStrategParams, res => { |
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
this.managementList = res.list; |
|
|
|
|
|
var params = this.setParams() |
|
|
var params = this.setParams() |
|
|
console.log("提交" + JSON.stringify(params)) |
|
|
console.log("提交" + JSON.stringify(params)) |
|
|
productPutawayRecordSubmit(params).then(res => { |
|
|
productPutawayRecordSubmit(params).then(res => { |
|
@ -332,12 +322,11 @@ |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
this.showErrorMessage(error) |
|
|
this.showErrorMessage(error) |
|
|
}) |
|
|
}) |
|
|
|
|
|
// } else { |
|
|
|
|
|
// uni.hideLoading(); |
|
|
|
|
|
// this.showErrorMessage(res.message); |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
uni.hideLoading(); |
|
|
|
|
|
this.showErrorMessage(res.message); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage("没有要提交的数据,请先扫描") |
|
|
this.showErrorMessage("没有要提交的数据,请先扫描") |
|
|
} |
|
|
} |
|
@ -376,8 +365,8 @@ |
|
|
item.subList.forEach(detail => { |
|
|
item.subList.forEach(detail => { |
|
|
if (detail.scaned) { |
|
|
if (detail.scaned) { |
|
|
var submitItem = deepCopyData(detail) |
|
|
var submitItem = deepCopyData(detail) |
|
|
var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode, |
|
|
// var info = getPackingNumberAndBatchByList(this.managementList, detail.itemCode, |
|
|
detail.packingNumber, detail.toLocationCode, detail.batch); |
|
|
// detail.packingNumber, detail.toLocationCode, detail.batch); |
|
|
submitItem.itemCode = detail.itemCode; |
|
|
submitItem.itemCode = detail.itemCode; |
|
|
submitItem.itemName = detail.package.itemName; |
|
|
submitItem.itemName = detail.package.itemName; |
|
|
submitItem.itemDesc1 = detail.package.itemDesc1; |
|
|
submitItem.itemDesc1 = detail.package.itemDesc1; |
|
@ -385,14 +374,20 @@ |
|
|
|
|
|
|
|
|
submitItem.inventoryStatus = detail.inventoryStatus; |
|
|
submitItem.inventoryStatus = detail.inventoryStatus; |
|
|
|
|
|
|
|
|
submitItem.fromPackingNumber = info.packingNumber; |
|
|
// submitItem.fromPackingNumber = info.packingNumber; |
|
|
submitItem.toPackingNumber = info.packingNumber; |
|
|
// submitItem.toPackingNumber = info.packingNumber; |
|
|
|
|
|
|
|
|
|
|
|
submitItem.fromPackingNumber = detail.packingNumber; |
|
|
|
|
|
submitItem.toPackingNumber = detail.packingNumber; |
|
|
|
|
|
|
|
|
|
|
|
//submitItem.fromContainerNumber = detail.containerNumber; |
|
|
|
|
|
//submitItem.toContainerNumber = detail.containerNumber |
|
|
|
|
|
|
|
|
submitItem.fromContainerNumber = detail.containerNumber; |
|
|
//submitItem.fromBatch = info.batch; |
|
|
submitItem.toContainerNumber = detail.containerNumber |
|
|
//submitItem.toBatch = info.batch; |
|
|
|
|
|
|
|
|
submitItem.fromBatch = info.batch; |
|
|
submitItem.fromBatch = detail.package.batch; |
|
|
submitItem.toBatch = info.batch; |
|
|
submitItem.toBatch = detail.package.batch; |
|
|
|
|
|
|
|
|
submitItem.fromLocationCode = detail.locationCode; |
|
|
submitItem.fromLocationCode = detail.locationCode; |
|
|
submitItem.toLocationCode = item.toLocationCode; |
|
|
submitItem.toLocationCode = item.toLocationCode; |
|
|