Files
KCGL/inventory-web
yueli 0b82609c55 fix(stocktake): 抽盘配置区定高不跳动,勾选只计末级库位
【固定高度】.scope-columns 设 height: 380px + display: flex,左右两栏各自
flex:1 + overflow 独立滚动。关键点是给 flex 子项加 min-height: 0 —— 不写它
flex 子项默认不收缩,overflow 不会生效,高度照样被内容撑开。
原先树用 max-height: 300px、右栏用 height: 260px 各写各的,仍会随内容跳动。

【只计末级库位】syncSelectedPaths / buildScopeConfig 均改用
getCheckedNodes(true)(leafOnly)。勾选父级货架时右侧计数与提交给后端的
scope_config.locations 都只含末级库位,不再把父节点自身算进去 ——
符合现场「货架是容器、库位才是盘点对象」的心智模型。

上一轮我曾以「非末级库位上有库存,leafOnly 会漏」为由建议不做,该判断
是错的:我把「层级」当成了「非末级」。实测这棵库位树深度不均匀,很多
level 1/2 的节点本身就是叶子 —— 真正存放在非末级库位上的库存,
IRIS 1126 行里仅 1 行(0.1%)、LICA 690 行里 0 行,排除面可忽略。

(活跃天数可编辑已在 709aeef 完成:recommendDays 默认 90、动态传参。)
2026-09-11 14:33:23 +08:00
..
2026-01-28 17:44:39 +08:00
2026-01-26 13:47:53 +08:00
2026-01-26 13:47:53 +08:00
2026-01-26 13:47:53 +08:00
2026-01-26 13:47:53 +08:00

Vue 3 + TypeScript + Vite

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Learn more about the recommended Project Setup and IDE Support in the Vue Docs TypeScript Guide.