|
@ -92,9 +92,7 @@ |
|
|
jobContent: {}, //任务内容 |
|
|
jobContent: {}, //任务内容 |
|
|
subList: [], //接口返回的任务subList |
|
|
subList: [], //接口返回的任务subList |
|
|
detailSource: [], //绑定在页面上的数据源 |
|
|
detailSource: [], //绑定在页面上的数据源 |
|
|
toLocationInfo: {}, |
|
|
|
|
|
businessTypeInfo: {}, |
|
|
businessTypeInfo: {}, |
|
|
locationTypeList: [], |
|
|
|
|
|
managementList: [] |
|
|
managementList: [] |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
@ -316,17 +314,17 @@ |
|
|
|
|
|
|
|
|
var params =this.setParams() |
|
|
var params =this.setParams() |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
// purchaseReturnJobsubmit(params).then(res => { |
|
|
purchaseReturnJobsubmit(params).then(res => { |
|
|
// uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
// if (res.data) { |
|
|
if (res.data) { |
|
|
// this.showCommitSuccessMessage("提交成功<br>生成采购退货记录" + res.data, ) |
|
|
this.showCommitSuccessMessage(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) |
|
|
// }) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -337,16 +335,11 @@ |
|
|
this.detailSource.forEach(item => { |
|
|
this.detailSource.forEach(item => { |
|
|
item.subList.forEach(detail => { |
|
|
item.subList.forEach(detail => { |
|
|
if (detail.scaned) { |
|
|
if (detail.scaned) { |
|
|
// var info = getPackingNumberAndBatch(this.managementList, detail.itemCode, |
|
|
detail.toPackingNumber = detail.packingNumber; |
|
|
// detail.packingNumber, detail.batch); |
|
|
detail.toContainerNumber = detail.containerNumber; |
|
|
// detail.toPackingNumber = info.packingNumber; |
|
|
detail.toBatch = detail.batch; |
|
|
// detail.toBatch = info.batch; |
|
|
detail.toInventoryStatus = detail.inventoryStatus; |
|
|
detail.singlePrice = detail.balance.singlePrice; |
|
|
detail.toLocationCode = detail.toLocationCode; |
|
|
detail.amount = detail.balance.singlePrice * detail.handleQty; |
|
|
|
|
|
|
|
|
|
|
|
detail.arriveDate = detail.balance.arriveDate; |
|
|
|
|
|
detail.produceDate = detail.balance.produceDate; |
|
|
|
|
|
detail.expireDate = detail.balance.expireDate; |
|
|
|
|
|
subList.push(detail) |
|
|
subList.push(detail) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
@ -423,12 +416,10 @@ |
|
|
|
|
|
|
|
|
showCommitSuccessMessage(number) { |
|
|
showCommitSuccessMessage(number) { |
|
|
this.$refs.comMessage.showSuccessMessage('提交成功<br>生成退货记录:' + number, res => { |
|
|
this.$refs.comMessage.showSuccessMessage('提交成功<br>生成退货记录:' + number, res => { |
|
|
setTimeout(() => { |
|
|
|
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: './returnJob' |
|
|
url: './returnJob' |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|