diff --git a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue index c60e50491..0ee59c864 100644 --- a/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue +++ b/src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue @@ -469,7 +469,7 @@ const submitForm = async (formType, submitData) => { data.subList = tableData.value // 拼接子表数据参数 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&& el.locationCode === item.locationCode) !== index; }); // tableData.value.forEach(item => { // let rs = tableData.value.filter(filterItem => (filterItem.packingNumber == item.packingNumber && filterItem.itemCode!=item.itemCode))