|
@ -138,13 +138,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
console.log('过滤之后的物料代码',itemCodes) |
|
|
console.log('过滤之后的物料代码',itemCodes) |
|
|
itemCodes.forEach(async (item)=>{ |
|
|
itemCodes.forEach(async (item)=>{ |
|
|
let res = await ProductionitemcodeSpareitemcodeApi.getProductionitemcodeSpareitemcodeRelation({ |
|
|
let res = await ProductionitemcodeSpareitemcodeApi.getProductionitemcodeSpareitemcodeRelation({ |
|
|
code:item, |
|
|
changeBeforeCode:item, |
|
|
available: 'TRUE', |
|
|
available: 'TRUE', |
|
|
pageSize: 20, |
|
|
pageSize: 20, |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
by: 'ASC' |
|
|
by: 'ASC' |
|
|
}) |
|
|
}) |
|
|
if(res.list&&res.list.length>0){ |
|
|
if(res.list&&res.list.length==1){ |
|
|
tableData.value.forEach(item1=>{ |
|
|
tableData.value.forEach(item1=>{ |
|
|
if(item1['itemCode']==item){ |
|
|
if(item1['itemCode']==item){ |
|
|
item1['downItemCode'] = res.list[0]['code'] |
|
|
item1['downItemCode'] = res.list[0]['code'] |
|
|