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