From e44132c038871e90c3acfd46c259c6d1551feda1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Sat, 19 Jul 2025 18:03:35 +0800 Subject: [PATCH] 1 --- klp-ui/src/views/wms/stock/index.vue | 339 ++++++++++----------------- 1 file changed, 125 insertions(+), 214 deletions(-) diff --git a/klp-ui/src/views/wms/stock/index.vue b/klp-ui/src/views/wms/stock/index.vue index 165fd854..2edee58e 100644 --- a/klp-ui/src/views/wms/stock/index.vue +++ b/klp-ui/src/views/wms/stock/index.vue @@ -1,225 +1,124 @@ @@ -375,7 +274,7 @@ export default { // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.stockId) - this.single = selection.length!==1 + this.single = selection.length !== 1 this.multiple = !selection.length }, /** 新增按钮操作 */ @@ -452,30 +351,42 @@ export default { display: flex; flex-direction: row; } + .stock-tree-col { - min-width: 220px; + width: 260px; max-width: 300px; background: #fff; border-right: 1px solid #f0f0f0; height: 100%; padding-right: 0; + box-sizing: border-box; + display: flex; + flex-direction: column; } + .stock-tree-card { height: 100%; border: none; box-shadow: none; } + .stock-tree-title { font-weight: bold; font-size: 16px; padding: 8px 0; } + .stock-tree { min-height: 500px; max-height: 80vh; overflow-y: auto; } + .stock-main-col { + flex: 1; padding-left: 24px; + min-width: 0; + display: flex; + flex-direction: column; }