diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue index bd68d9462..c980f1d34 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue @@ -232,8 +232,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => if (type == 'tableForm') { if(formField=='itemCode'){ val.forEach(item=>{ - if(tableData.value.find(item1=>item1['itemCode'] == item['code'])){ - message.warning(`物料${item['code']}已经存在`) + if(tableData.value.find(item1=>item1['itemCode'] == item['itemCode']&&item1['batch'] == item['batch'])){ + message.warning(`物料${item['itemCode']}批次${item['batch']}已经存在`) return } const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))