|
@ -586,17 +586,6 @@ const handleDeleteTable = (item, index, formRef) => { |
|
|
// 主子数据 提交 |
|
|
// 主子数据 提交 |
|
|
const submitForm = async (formType, data) => { |
|
|
const submitForm = async (formType, data) => { |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
let array =[] |
|
|
|
|
|
data.subList.forEach((item,index) => { |
|
|
|
|
|
if(item.supplierCode != data.supplierCode){ |
|
|
|
|
|
array.push(index+1) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
if (!data.purchaseReceiptRecordNumber && array.length>0) { |
|
|
|
|
|
formRef.value.formLoading = false |
|
|
|
|
|
message.error(`第${array.join(',')}行数据的供应商代码与上方填写的供应商代码不一致`) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
try { |
|
|
try { |
|
|
if (formType === 'create') { |
|
|
if (formType === 'create') { |
|
|
let flag = false; |
|
|
let flag = false; |
|
|