|
|
@ -165,6 +165,7 @@ const { loadStart, loadDone } = usePageLoading() |
|
|
|
// 隔离收货申请 |
|
|
|
defineOptions({ name: 'ProductreceiptRequestMain' }) |
|
|
|
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
const { t } = useI18n() // 国际化 |
|
|
|
|
|
|
@ -703,12 +704,13 @@ const submitFormLabel = async (formType, submitData) => { |
|
|
|
} |
|
|
|
let messageList = [] |
|
|
|
detatableData.tableList.forEach(item=>{ |
|
|
|
if(item['packUnit'] == item['secondPackUnit']){ |
|
|
|
if(item['secondPackUnit']&&item['packUnit'] == item['secondPackUnit']){ |
|
|
|
messageList.push(item['itemCode']) |
|
|
|
} |
|
|
|
}) |
|
|
|
if(messageList.length>0){ |
|
|
|
message.error(`物料${messageList.join(',')}包装规格1和包装规格2不能相同`) |
|
|
|
return |
|
|
|
} |
|
|
|
try { |
|
|
|
detatableData.tableList.forEach(async (item) => { |
|
|
|