From 50ab8dfbb9d391a57d94572a2841264e17934fb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Fri, 31 Oct 2025 13:26:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(wms/coil):=20=E4=BF=AE=E5=A4=8D=E9=92=BB?= =?UTF-8?q?=E5=8F=96=E8=A1=A8=E6=A0=BC=E7=89=A9=E6=96=99=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=E5=B9=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E9=AB=98=E5=BA=A6=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复从store获取物料名称的逻辑,确保钻取对话框标题正确显示物料名称 为两个表格添加max-height属性,防止数据过多时表格高度无限增长 --- klp-ui/src/views/wms/coil/box.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/klp-ui/src/views/wms/coil/box.vue b/klp-ui/src/views/wms/coil/box.vue index 5e7435ad..5238d144 100644 --- a/klp-ui/src/views/wms/coil/box.vue +++ b/klp-ui/src/views/wms/coil/box.vue @@ -35,7 +35,7 @@
- - @@ -145,6 +145,7 @@ import MaterialSelect from "@/components/KLPService/MaterialSelect"; import * as echarts from 'echarts'; import RawMaterialInfo from "@/components/KLPService/Renderer/RawMaterialInfo"; import ProductInfo from "@/components/KLPService/Renderer/ProductInfo"; +import { findItemWithBom } from "@/store/modules/category"; export default { components: { @@ -532,8 +533,11 @@ export default { // 物料统计钻取 this.drillDownParams.itemType = data.itemType; this.drillDownParams.itemId = data.itemId; - this.drillDownParams.itemName = data.name; - this.dialogTitle = `${data.itemType === 'product' ? '成品' : '原材料'}库存明细 - ${data.name}`; + // 从store中获取物料名称 + const item = findItemWithBom(data.itemType, data.itemId); + console.log('item', item, data); + this.drillDownParams.itemName = item ? item.itemName : data.name; + this.dialogTitle = `${data.itemType === 'product' ? '成品' : '原材料'}库存明细 - ${this.drillDownParams.itemName}`; } else if (data.warehouseId && data.warehouseName) { // 仓库统计钻取 this.drillDownParams.warehouseId = data.warehouseId;