|
|
@ -207,7 +207,6 @@ |
|
|
|
if (res.success) { |
|
|
|
this.managementList = res.list; |
|
|
|
this.managementType = this.managementList&&this.managementList[0]&&this.managementList[0].ManagementPrecision |
|
|
|
this.managementType = 'BY_QUANTITY' |
|
|
|
if(this.managementType == 'BY_BATCH'){ |
|
|
|
that.detailSource.forEach(item=>{ |
|
|
|
item.subList.forEach(cur=>{ |
|
|
@ -308,8 +307,9 @@ |
|
|
|
var qty = result.label.qty; |
|
|
|
var itemCode = result.label.itemCode; |
|
|
|
var detail = this.detailSource.find(r => r.itemCode == itemCode); |
|
|
|
let itemcodes = this.detailSource.map(item=>item.itemCode).join(',') |
|
|
|
if (detail == undefined) { |
|
|
|
this.showErrorMessage("物料号【" + itemCode + "】不在列表中") |
|
|
|
this.showErrorMessage(`扫描的物料【 ${ result.label.itemCode} 】与任务明细中的物料【 ${itemcodes} 】不一致`) |
|
|
|
} else { |
|
|
|
var itemDetail = detail.subList.find(r => { |
|
|
|
return r.batch == batch |
|
|
@ -489,8 +489,7 @@ |
|
|
|
if (res.success) { |
|
|
|
this.managementList = res.list; |
|
|
|
var params = this.setParams() |
|
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
|
|
|
|
|
console.log("提交参数", params); |
|
|
|
productionReturnJobSubmit(params).then(res => { |
|
|
|
uni.hideLoading() |
|
|
|
if (res.data) { |
|
|
|