|
@ -113,6 +113,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
// 明细查询页赋值 |
|
|
// 明细查询页赋值 |
|
|
if (formField == 'itemCode') { |
|
|
if (formField == 'itemCode') { |
|
|
|
|
|
if(tableData.value.find(item1=>item1['itemCode'] == val[0]['componentItemCode'])){ |
|
|
|
|
|
message.warning(`物料${val[0]['componentItemCode']}已经存在`) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
row['itemCode'] = val[0]['componentItemCode'] |
|
|
row['itemCode'] = val[0]['componentItemCode'] |
|
|
row['uom'] = val[0]['componentUom'] |
|
|
row['uom'] = val[0]['componentUom'] |
|
|
} else if(formField == 'workStation'){ |
|
|
} else if(formField == 'workStation'){ |
|
|