|
|
@ -210,6 +210,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
row['packQty'] = val[0]['packQty'] |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
}else if (formField == 'itemCode') { |
|
|
|
if(tableData.value.find(item1=>item1['itemCode'] == val[0]['itemCode'])){ |
|
|
|
message.warning(`物料${val[0]['itemCode']}已经存在`) |
|
|
|
return |
|
|
|
} |
|
|
|
row['uom'] = val[0]['uom'] |
|
|
|
row['produceDate'] = dayjs().valueOf() |
|
|
|
row[formField] = val[0][searchField] |
|
|
|