Browse Source

验证重复

hella_online_20240829
wangyufei 4 months ago
parent
commit
a03daf1d6b
  1. 4
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

4
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -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'){

Loading…
Cancel
Save