|
|
@ -188,6 +188,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
if (type == 'tableForm') { |
|
|
|
// 明细查询页赋值 |
|
|
|
if(formField == 'itemCode') { |
|
|
|
if(tableData.value.find(item1=>item1['itemCode'] == val[0]['itemCode'])){ |
|
|
|
message.warning(`物料${val[0]['itemCode']}已经存在`) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
const isType = await isItemType(val[0]['itemCode'], labelType.value) |
|
|
|
if(!isType){ |
|
|
|
message.warning('当前物料可制造与其他数据不一致,请重新选择!') |
|
|
|