系统 SHALL 新建 biz_production_material_formula(配方行),关联 configured_material_id → biz_production_material.id(material_type 必须为 configured_reagent)。
每行 SHALL 含:
| 字段 | 说明 |
|---|---|
component_material_id |
子物料目录 ID |
component_material_type |
reagent 或 consumable 快照 |
component_material_code |
子物料编码快照 |
component_material_name |
子物料名称快照 |
standard_qty |
标准用量(数值) |
usage_unit |
单位 |
order_num |
排序 |
| 公共字段 | id、tenant_no、del_flag 等 |
子物料 不得 为 configured_reagent(禁止嵌套配方,首版)。
系统 SHALL 提供:
GET /production-materials/{id}/formula — 查询配方列表PUT /production-materials/{id}/formula — 全量替换配方行(软删旧行 + 插入新行,与工艺子表策略一致)创建/更新配置试剂目录时 可 携带 formula 列表一并保存。