客户希望生产侧物料管理与【质检物料库】采用 同一套思路:一个物料库、入库批次、领用→工单登记、月末盘点;批号/厂家不同须靠批次区分,耗材包不再适用。同时,生产侧现有 试剂、耗材分表分菜单 造成与质检不一致;客户要求 融合为统一「生产物料库」,通过 物料类型(试剂 / 耗材)区分,使生产与质检的管理模型对称、思路清晰。
biz_production_material 物资目录,字段对齐 biz_qc_material,新增 material_type(reagent 试剂 / consumable 耗材)biz_production_material_stock_batchbiz_production_material_usage(变动流水,含 manual_in / manual_out / step_save)biz_production_material_stock_check + _batch_line + _unused_linebiz_consumable、biz_reagent 历史数据 → biz_production_material;原表只读保留或废弃写 APIparent_usage_id),不二次扣库material_type 过滤biz_qc_material(质检物料库)与 biz_production_material 独立(业务域、权限、菜单分离);结构对称,非表合并production-material-library: 统一物资目录 + material_type、菜单/页面【生产物料库】、旧表迁移与菜单下线production-material-batch-inventory: 统一批次表、入出库、变动流水(对齐 QC)production-material-stock-check: 统一库存盘点(Part A + Part B)production-material-unification: consumable/reagent → production_material 数据迁移、编码映射、下游快照兼容consumable-pack-deprecation: 耗材包下线production-requisition-stock-log: 领用关联、领用选项/我的领用/下钻 APIproduction-step-requisition-usage: 步骤领用登记、step_save 替换规则production-material-requisition-ui: 生产物料库 UI、我的物料领用、生产工单步骤 UIproduction-step-stock-deduction: supersede 直接扣库material-stock-log-ui: supersede 为 production-material 统一变动记录 UI 要求consumable-batch-inventory / reagent-batch-inventory 双轨方案consumable-stock-check / reagent-stock-check 双轨方案requisition_usage_id;隐藏旧菜单models/production_material.py、crud/production_material*.py;统一 API 前缀 /production-materials;consumable/reagent API 只读或 410production-material/index.vue(参照 qc-material/index.vue);my-production-material-usage;改造 StepDetailPanel;隐藏 consumable/reagent 菜单