refactor: 移除调试日志并优化仓库相关字段命名

移除category.js中的console.log调试语句并优化bomId检查逻辑
将warehouse相关字段统一改为actualWarehouse前缀以保持一致性
This commit is contained in:
砂糖
2025-11-07 14:35:51 +08:00
parent cff680d4b4
commit 2e33eafd33
2 changed files with 14 additions and 14 deletions

View File

@@ -98,7 +98,6 @@ export function findItemWithBom(itemType, itemId) {
if (!itemType || !itemId) {
return null;
}
console.log('itemType', itemType, 'itemId', itemId)
let map = {}
if (itemType === 'product') {
map = state.productMap;
@@ -107,13 +106,14 @@ export function findItemWithBom(itemType, itemId) {
} else {
return null;
}
console.log('map', map)
const item = map[itemId];
const bomId = item.bomId
if (!item) {
return null;
}
console.log('bomId', bomId, item)
const bomId = item.bomId
if (!bomId) {
return null;
}
const bomItems = state.bomMap[bomId];
return {