|
|
@ -701,8 +701,8 @@ const submitForm = async (formType, submitData) => { |
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|
let isExist = false |
|
|
|
tableData.value.forEach(item => { |
|
|
|
let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber == item.fromPackingNumber) ) |
|
|
|
console.log(rs,5666); |
|
|
|
let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber&&filterItem.fromPackingNumber == item.fromPackingNumber) ) |
|
|
|
console.log(rs,5666); |
|
|
|
if(rs.length > 1) isExist = true |
|
|
|
}) |
|
|
|
if (isExist) { |
|
|
@ -710,6 +710,7 @@ const submitForm = async (formType, submitData) => { |
|
|
|
isExist = false |
|
|
|
return message.warning('包装号重复') |
|
|
|
} |
|
|
|
flag.value = false |
|
|
|
data.subList.forEach(item => { |
|
|
|
console.log(556565,item); |
|
|
|
if(fromInventoryStatus.value){ |
|
|
|