|
|
@ -695,6 +695,15 @@ const submitFormLabel = async (formType, submitData) => { |
|
|
|
if(data.masterId){ |
|
|
|
data.id = data.masterId |
|
|
|
} |
|
|
|
let messageList = [] |
|
|
|
detatableData.tableList.forEach(item=>{ |
|
|
|
if(item['packUnit'] == item['secondPackUnit']){ |
|
|
|
messageList.push(item['itemCode']) |
|
|
|
} |
|
|
|
}) |
|
|
|
if(messageList.length>0){ |
|
|
|
message.error(`物料${messageList.join(',')}包装规格1和包装规格2不能相同`) |
|
|
|
} |
|
|
|
try { |
|
|
|
detatableData.tableList.forEach(async (item) => { |
|
|
|
// 创建标签 要物料库区配置表中 入库包装规格 |
|
|
|