Browse Source

隔离收货申请添加物料代码重复校验

hella_online_20241024
yufei_wang 1 month ago
parent
commit
1e8a2dd0dc
  1. 4
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

4
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -239,6 +239,10 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro
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
}
let res = await ItembasicApi.getQueryItemCodeInfo({itemCodes:val.map(item=>item.itemCode).join(',')})
if(res.length>0){
row['uom'] = res[0]['uom']

Loading…
Cancel
Save