问题 ---- 主列表只有「物料数 N 种」(种类数),具体数量藏在展开行的明细表里, 不展开就看不到。 改动 ---- · 移除「类型」列(type_label); · 新增「数量」列,紧跟申请单号,橙色加粗; · 新增 totalQty() 汇总单据总数量。 totalQty 只认 quantity 字段,无需按 type 分支 —— 因为聚合端点已做字段 归一化(报废的 scrap_qty → quantity)。这正是当初做归一化的价值。 数值经 Number(sum.toFixed(4)) 处理,去掉 1.0000 这类无意义的小数尾巴。 顺带移除已无引用的 typeTagType()。
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.