refactor: 移除调试日志并优化仓库相关字段命名
移除category.js中的console.log调试语句并优化bomId检查逻辑 将warehouse相关字段统一改为actualWarehouse前缀以保持一致性
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user