|
@ -398,18 +398,17 @@ |
|
|
this.managementList = res.list; |
|
|
this.managementList = res.list; |
|
|
var params = this.setParams() |
|
|
var params = this.setParams() |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
|
|
|
putawayJobSubmit(params).then(res => { |
|
|
// putawayJobSubmit(params).then(res => { |
|
|
uni.hideLoading() |
|
|
// uni.hideLoading() |
|
|
if (res.data) { |
|
|
// if (res.data) { |
|
|
this.showCommitSuccessMessage("提交成功<br>生成采购收货记录" + res.data) |
|
|
// this.showCommitSuccessMessage("提交成功<br>生成采购收货记录" + res.data) |
|
|
} else { |
|
|
// } else { |
|
|
this.showErrorMessage("提交失败" + res.msg) |
|
|
// this.showErrorMessage("提交失败" + res.msg) |
|
|
} |
|
|
// } |
|
|
}).catch(error => { |
|
|
// }).catch(error => { |
|
|
uni.hideLoading() |
|
|
// uni.hideLoading() |
|
|
this.showErrorMessage(error) |
|
|
// this.showErrorMessage(error) |
|
|
}) |
|
|
// }) |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
this.showErrorMessage(res.message); |
|
|
this.showErrorMessage(res.message); |
|
@ -420,7 +419,6 @@ |
|
|
setParams() { |
|
|
setParams() { |
|
|
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) { |
|
@ -428,6 +426,19 @@ |
|
|
detail.packingNumber, detail.batch); |
|
|
detail.packingNumber, detail.batch); |
|
|
detail.toPackingNumber = info.packingNumber; |
|
|
detail.toPackingNumber = info.packingNumber; |
|
|
detail.toBatch = info.batch; |
|
|
detail.toBatch = info.batch; |
|
|
|
|
|
detail.toContainerNumber = ''; |
|
|
|
|
|
detail.toInventoryStatus = detail.inventoryStatus; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
detail.singlePrice = detail.balance.singlePrice; |
|
|
|
|
|
detail.amount = detail.balance.singlePrice * detail.handleQty; |
|
|
|
|
|
|
|
|
|
|
|
detail.arriveDate = detail.balance.arriveDate; |
|
|
|
|
|
detail.produceDate = detail.balance.produceDate; |
|
|
|
|
|
detail.expireDate = detail.balance.expireDate; |
|
|
|
|
|
// "arriveDate": 1694591614000, |
|
|
|
|
|
// "produceDate": 1694591615000, |
|
|
|
|
|
// "expireDate": 1694591617000, |
|
|
subList.push(detail) |
|
|
subList.push(detail) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|