fix:sample/plate 之前的开发
This commit is contained in:
26
docs/dev/02-germplasm-seed/11-seed_lot_content_mixture.md
Normal file
26
docs/dev/02-germplasm-seed/11-seed_lot_content_mixture.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# 02 Germplasm / Seed - seed_lot_content_mixture 表录入说明
|
||||
|
||||
来源:`docs/requirements/02-germplasm-seed-entry-requirements.md`
|
||||
|
||||
## 录入目标
|
||||
|
||||
`seed_lot_content_mixture` 描述一个 seed_lot 由哪些材料或 cross 组成。单一材料批次也需要有一条组成记录,比例为 100%。混合批次则多条记录占比合计为 100%。
|
||||
|
||||
## 字段录入
|
||||
|
||||
| 字段 | 业务意义 | 录入方式 | 控件建议 | 校验规则 |
|
||||
| -------------------- | ----------------------------- | -------------------- | ------------------- | ---------------------------------------- |
|
||||
| `id` | 批次组成主键 | 系统生成 | 隐藏/只读 | 必填、唯一 |
|
||||
| `mixture_percentage` | 该材料或 cross 在批次中的占比 | 用户录入 | 百分比输入框 | 0 到 100;同一 seed lot 总和建议等于 100 |
|
||||
| `cross_id` | 来源 cross | 从 cross_entity 选择 | Cross 选择器 | 与 `germplasm_id` 至少一个必填 |
|
||||
| `germplasm_id` | 来源 germplasm | 从 germplasm 选择 | 材料选择器 | 与 `cross_id` 至少一个必填 |
|
||||
| `seed_lot_id` | 所属 seed lot | 由详情页带入或选择 | SeedLot 选择器/隐藏 | 必选 |
|
||||
|
||||
## 录入建议
|
||||
|
||||
- 新建 seed_lot 时,如果用户选择了单个 germplasm,系统自动生成一条 mixture:`germplasm_id=所选材料`,`mixture_percentage=100`。
|
||||
- 如果来源是某次杂交产生的种子,优先填写 `cross_id`。
|
||||
- 如果既能追溯 cross 又能追溯 germplasm,可按系统设计决定是否允许同时填写;若允许,同时展示“来源杂交”和“当前材料身份”。
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user