|
@ -239,6 +239,10 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro |
|
|
row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
|
|
|
|
|
|
|
}else if(formField == 'itemCode'){ |
|
|
}else if(formField == 'itemCode'){ |
|
|
|
|
|
if(tableData.value.find(item1=>item1['itemCode'] == val[0]['itemCode'])){ |
|
|
|
|
|
message.warning(`物料${val[0]['itemCode']}已经存在`) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
let res = await ItembasicApi.getQueryItemCodeInfo({itemCodes:val.map(item=>item.itemCode).join(',')}) |
|
|
let res = await ItembasicApi.getQueryItemCodeInfo({itemCodes:val.map(item=>item.itemCode).join(',')}) |
|
|
if(res.length>0){ |
|
|
if(res.length>0){ |
|
|
row['uom'] = res[0]['uom'] |
|
|
row['uom'] = res[0]['uom'] |
|
|