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