|
@ -445,6 +445,11 @@ const submitForm = async (formType, submitData) => { |
|
|
if(data.masterId){ |
|
|
if(data.masterId){ |
|
|
data.id = data.masterId |
|
|
data.id = data.masterId |
|
|
} |
|
|
} |
|
|
|
|
|
let findInventoryStatus = tableData.value.find(item=>item.fromInventoryStatus&&item.toInventoryStatus&&item.fromInventoryStatus==item.toInventoryStatus) |
|
|
|
|
|
if(findInventoryStatus){ |
|
|
|
|
|
message.warning('从库存状态和到库存状态不能相同') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
const duplicateItems = tableData.value.filter((item, index) => { |
|
|
const duplicateItems = tableData.value.filter((item, index) => { |
|
|
return tableData.value.findIndex((el) => el.itemCode === item.itemCode) !== index; |
|
|
return tableData.value.findIndex((el) => el.itemCode === item.itemCode) !== index; |
|
|