fix(wms): 修复公司间退货和门店退货的批次匹配问题

- 在共同仓库入库页面中,增加了对 'STORE_RETURN_TH' (门店退货) 类型的批次匹配逻辑
- 现在,当文档类型为公司间退货或门店退货时,系统会忽略空批次号,只匹配物料和批次号
This commit is contained in:
tangyu 2025-08-06 16:36:20 +08:00
parent 202affcd17
commit 81eceb8c59

View File

@ -493,7 +493,7 @@ export default {
} else {
let itemForm = null;
let errMsg = "";
if(me.documentType === 'INTERCOMPANY_RETURN' || me.documentType === 'INTERCOMPANY_TH_RETURN'){
if(me.documentType === 'INTERCOMPANY_RETURN' || me.documentType === 'INTERCOMPANY_TH_RETURN' || me.documentType === 'STORE_RETURN_TH'){
// 如果o.batch为空,不返回此报错
// 公司间交易增加批次限制匹配物料
itemForm = me.formObj.itemList.find(o => o.item === row.item && (isBlank(o.batch) || o.batch === row.batchNo));