fix:开发完毕

This commit is contained in:
彭帅
2026-05-28 17:25:32 +08:00
parent 50879a71da
commit c5d4d7a7e1
63 changed files with 4960 additions and 851 deletions

View File

@@ -35,3 +35,7 @@
1. `name` 必填。
2. 已被 `germplasm` 引用时不允许物理删除,只允许停用或提示引用关系。
---
**状态:已完成**(与第二章 `02-germplasm-seed/01-breeding_method.md` 共用实现,页面:`germplasm/breeding-method`

View File

@@ -66,3 +66,5 @@
1. `germplasm_name` 建议必填,`accession_number``germplasmpui` 建议唯一。
2. 删除 germplasm 前必须检查属性值、seed lot 组成、cross parent、pedigree、sample/taxon 等引用。
3. 不要用 `seed_source` 表达库存;库存必须走 `seed_lot`
**状态:已完成**(页面:`germplasm/germplasm` 列表 CRUD + 查询;`germplasm/germplasm/[germplasmDbId]` 详情 TabAttributes / Donor / Institute / Origin / Synonym / Taxon / Pedigree / Seed Lots / Cross Parent

View File

@@ -37,3 +37,5 @@
1. `germplasm_id` 必须存在。
2. 同一 germplasm 下 donor accession + institute code 不建议重复。
3. 删除 donor 记录不应删除 germplasm 主数据。
**状态:已完成**(页面:`germplasm/germplasm/[germplasmDbId]` → Donor TabBrAPI `PUT /germplasm/{id}` donors 整表替换)

View File

@@ -36,3 +36,5 @@
1. `germplasm_id` 必须存在。
2. 同一 germplasm 下同类型、同 code 的机构不建议重复。
3. 删除 institute 记录不应删除 germplasm 主数据。
**状态:已完成**(页面:`germplasm/germplasm/[germplasmDbId]` → Institute Tab扩展接口 `/brapi/v2/germplasm/{id}/institutes` CRUD

View File

@@ -34,3 +34,5 @@
1. `germplasm_id` 必须存在。
2. 坐标格式需要合法。
3. 删除 origin 记录不应删除 germplasm 主数据。
**状态:已完成**(页面:`germplasm/germplasm/[germplasmDbId]` → Origin TabBrAPI `PUT /germplasm/{id}` germplasmOrigin 整表替换)

View File

@@ -34,3 +34,5 @@
1. `germplasm_id` 必须存在。
2. 同一 germplasm 下同一个 synonym 不应重复。
3. 删除 synonym 不应删除 germplasm 主数据。
**状态:已完成**(页面:`germplasm/germplasm/[germplasmDbId]` → Synonym TabBrAPI `PUT /germplasm/{id}` synonyms 整表替换)

View File

@@ -34,3 +34,5 @@
1. `germplasm_id` 必须存在。
2. 同一 source 下 taxon_id 不建议重复。
3. 删除 taxon 前检查 sample 引用。
**状态:已完成**(页面:`germplasm/germplasm/[germplasmDbId]` → Taxon TabBrAPI `PUT /germplasm/{id}` taxonIds 整表替换)

View File

@@ -53,3 +53,7 @@
1. `name` 必填。
2. 已被 `germplasm_attribute_value` 引用时不允许物理删除。
3. `datatype` 要与 value 输入控件联动。
---
**状态:已完成**(与第二章 `02-germplasm-seed/03-germplasm_attribute_definition.md` 共用实现,页面:`germplasm` → Attributes Tab

View File

@@ -37,3 +37,7 @@
1. `germplasm_id``attribute_id` 必须存在。
2. 同一 germplasm 下同一 attribute 不建议重复,若允许多次测定,需要用 determined_date 区分。
3. `value` 必须符合 attribute definition 的 datatype。
---
**状态:已完成**(与第二章 `02-germplasm-seed/04-germplasm_attribute_value.md` 共用实现,页面:`germplasm` → Attribute Values Tab

View File

@@ -36,3 +36,7 @@
1. `program_id` 必须存在。
2. 删除 crossing_project 前检查 cross、cross_parent、pedigree_node 引用。
3. 如果 program 有 crop创建 cross 时亲本 germplasm 建议与 program crop 一致。
---
**状态:已完成**(页面:`germplasm/cross-pedigree` → CrossingProject Tab详情`cross-pedigree/projects/[crossingProjectDbId]`

View File

@@ -48,3 +48,7 @@
1. `plannedcross` 不新建表,所有 planned cross 走 `cross_entity`
2. `planned_cross_id` 不能指向自己。
3. 删除 cross 前检查 `cross_parent``cross_pollination_event``seed_lot_content_mixture` 引用。
---
**状态:已完成**(页面:`germplasm/cross-pedigree` → Cross Tab详情`cross-pedigree/crosses/[crossDbId]``planned-crosses/[plannedCrossDbId]`;创建实际杂交时继承计划杂交亲本)

View File

@@ -37,3 +37,7 @@
2. `germplasm_id``observation_unit_id` 至少填写一个,不建议同时为空。
3. 同一 cross 下相同 parentType + germplasm/observationUnit 不应重复。
4. 如果填 `crossing_project_id`,应与 `cross.crossing_project_id` 一致。
---
**状态:已完成**(页面:`germplasm/cross-pedigree` → Cross Parent TabCross/PlannedCross 详情页 Parents Tab

View File

@@ -35,3 +35,7 @@
1. `cross_id` 必须存在。
2. 同一 cross 下 `pollination_number` 不建议重复。
3. 删除授粉事件不应删除 cross 主数据。
---
**状态:已完成**(页面:实际 Cross 详情 → Pollination Events TabBrAPI `PUT /crosses` pollinationEvents

View File

@@ -38,3 +38,7 @@
1. 同一 germplasm 通常只应有一个 pedigree node。
2. 删除 pedigree_node 前检查 `pedigree_edge` 中 this_node 和 connceted_node 引用。
3. 导入 pedigree 时需要先创建所有节点,再创建边。
---
**状态:已完成**

View File

@@ -41,3 +41,7 @@
1. `this_node_id``connceted_node_id` 必须存在。
2. 两个节点不能相同。
3. 同一节点之间同一种 edge_type 不应重复。
---
**状态:已完成**

View File

@@ -44,3 +44,5 @@
1. `amount` 不允许为负。
2. 普通用户不应直接编辑 amount库存变化应通过 `seed_lot_transaction`
3. 删除 seed lot 前检查组成明细和交易引用。
**状态:已完成**(页面:`germplasm/seed-lot` 列表 CRUD + 查询;`germplasm/seed-lot/[seedLotDbId]` 详情摘要;库存 amount 编辑时只读,通过交易更新)

View File

@@ -36,3 +36,5 @@
2. `germplasm_id``cross_id` 至少填写一个。
3. 同一 seed lot 下 mixture_percentage 合计建议为 100。
4. 删除组成明细不应删除 seed lot、germplasm 或 cross 主数据。
**状态:已完成**(页面:`germplasm/seed-lot/[seedLotDbId]` → Content Mixture Tab占比合计进度条 + 100% 校验BrAPI `PUT /seedlots/{id}` contentMixture

View File

@@ -41,3 +41,7 @@
2. `from_seed_lot_id` 不能等于 `to_seed_lot_id`
3. 出库或转移时,来源批次数量不能被扣成负数。
4. transaction 是业务动作痕迹,原则上不允许随意物理删除。
---
**状态:已完成**(与第二章 `02-germplasm-seed/12-seed_lot_transaction.md` 共用实现,页面:`germplasm/seed-lot` → 库存交易 Tab`germplasm/seed-lot/[seedLotDbId]` → Transactions Tab