feat(wms-warehouse): 添加钢卷右键领料功能

新增仓库视图右键菜单触发钢卷选择弹窗,支持平面视图和3D视图右键选中钢卷,实现快速领料流程,包含领料弹窗、工序选择和接口调用逻辑
This commit is contained in:
2026-06-30 10:02:27 +08:00
parent dbcc28fb80
commit 08dec15614
6 changed files with 209 additions and 17 deletions

View File

@@ -91,20 +91,14 @@ export default {
return this.findFirstLeaf(this.item, this.basePath)
},
menuStyle() {
console.log('[SidebarItem] 完整 item 对象:', JSON.parse(JSON.stringify(this.item)))
console.log('[SidebarItem] item.meta:', this.item.meta)
console.log('[SidebarItem] item.meta?.style 原始值:', this.item.meta && this.item.meta.style)
if (this.item.meta && this.item.meta.style) {
try {
const parsed = JSON.parse(this.item.meta.style)
console.log('[SidebarItem] ✅ menuStyle 解析成功:', parsed)
return parsed
} catch (e) {
console.warn('[SidebarItem] ❌ JSON.parse 失败:', e)
return {}
}
}
console.log('[SidebarItem] ⚠️ item.meta.style 为空,返回 {}')
return {}
}
},