借库的执行入口在审批页 —— 展开行即为工人查看/去扫码的物料明细。 申请单已把货预占在某库位,工人现场可能进不去,需要改扫同物料的其它 批次(后端执行端按 base_id 校验身份、允许换批次),但改造前系统不告诉 他还有哪些库位有货。 复用出库模块的 /api/v1/outbound/alternatives 端点(逻辑完全一致: 按 available_quantity > 0 过滤,只给真正能拿的库位,排除已被别单占满的行), 在明细表的库位列加图标 + popover: [推荐] L5/1/2/1 可用 840 ← 本单锁定行 [备选] L2/1/2/1 可用 1 与出库页同款取舍: · trigger="click" —— 车间用扫码枪/触摸屏,hover 在触屏不可用 · @show 时才发请求 —— 展开单据时不会打出一片并发查询 · 附提示文案「现场取不到推荐库位时可直接扫备选库位条码借用」 注:借库申请经预占改造后 items_json 已带 base_id/stock_id/source_table, 故推荐行可正确标注;改造前的历史单无这些字段,此时全部显示为「备选」。
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.