质检管理:实验室样本处理数据台账(4 Tab + 补录 + 导出) #98

Closed
opened 2026-11-12 04:04:59 +00:00 by cykj · 2 comments
Owner

诉求

在【质检管理】下新增菜单「实验室样本处理数据」,4 个 Tab 按来源×样本类型展示实验室处理台账,支持检索、补录与导出 Excel。

修改端

  • web-admin
  • backend

验收要点

  1. 菜单位于质检管理下,页面含 4 Tab:
    • 细胞存储×围产期造血干细胞
    • 科研捐赠×围产期造血干细胞
    • 细胞存储×脐带间充质干细胞
    • 科研捐赠×脐带间充质干细胞
  2. 列与需求会议 Excel 三 sheet 对齐(第三 sheet 按来源拆为两 Tab)
  3. 主编码列统一取实验室入库编码 lab_storage_code
  4. 检索:入库编码、母亲姓名、创建时间
  5. 时间格式:yyyy年MM月dd日 HH时mm分ss秒
  6. 只读列表 + 导出 Excel + 按入库编码补录(补录键 tenant_no + lab_storage_code)
  7. 已确认:科研捐赠×造血生产接收表单不加传染四项;该列读生产字段,空则补录
  8. 不做新 Figma,参考现有质检多 Tab + 标准列表

字段口径摘要

见会话确认:检查项「样本信息正确、标识清晰」、质检参数取母血/菌检、运输温度用接收温度、CD34/收样检查等补录列等。

## 诉求 在【质检管理】下新增菜单「实验室样本处理数据」,4 个 Tab 按来源×样本类型展示实验室处理台账,支持检索、补录与导出 Excel。 ## 修改端 - web-admin - backend ## 验收要点 1. 菜单位于质检管理下,页面含 4 Tab: - 细胞存储×围产期造血干细胞 - 科研捐赠×围产期造血干细胞 - 细胞存储×脐带间充质干细胞 - 科研捐赠×脐带间充质干细胞 2. 列与需求会议 Excel 三 sheet 对齐(第三 sheet 按来源拆为两 Tab) 3. 主编码列统一取实验室入库编码 `lab_storage_code` 4. 检索:入库编码、母亲姓名、创建时间 5. 时间格式:`yyyy年MM月dd日 HH时mm分ss秒` 6. 只读列表 + 导出 Excel + 按入库编码补录(补录键 tenant_no + lab_storage_code) 7. 已确认:科研捐赠×造血生产接收表单不加传染四项;该列读生产字段,空则补录 8. 不做新 Figma,参考现有质检多 Tab + 标准列表 ## 字段口径摘要 见会话确认:检查项「样本信息正确、标识清晰」、质检参数取母血/菌检、运输温度用接收温度、CD34/收样检查等补录列等。
cykj added the ai-in-progress label 2026-11-12 04:05:13 +00:00
cykj added ai-merging and removed ai-in-progress labels 2026-11-12 04:12:50 +00:00
Author
Owner

已合入 V2.0

  • 任务提交:
  • 合并提交:
  • 分支:
  • 单元测试:============================= test session starts ==============================
    platform darwin -- Python 3.12.2, pytest-8.2.1, pluggy-1.6.0
    rootdir: /Users/wuzilong/work/00code/zkxw
    plugins: cov-4.1.0, asyncio-0.23.7, mock-3.12.0, anyio-4.13.0
    asyncio: mode=Mode.STRICT
    collected 0 items

============================ no tests ran in 0.04s ============================= → 3 passed

  • 修改端:backend、web-admin

需要你本地执行

  1. 执行 SQL:(补录表 + 菜单授权)
  2. 重启 backend / 刷新 web-admin(Agent 不启停服务)后验收:
    • 质检管理 → 实验室样本处理数据
    • 4 Tab、检索、补录、导出
  3. 构建与整体运行验收留给用户

说明

  • 主编码列 = 实验室入库编码
  • 补录键 = tenant_no + lab_storage_code
  • 科研捐赠×造血生产接收表单未加传染四项(空值靠补录)
## 已合入 V2.0 - 任务提交: - 合并提交: - 分支: - 单元测试:============================= test session starts ============================== platform darwin -- Python 3.12.2, pytest-8.2.1, pluggy-1.6.0 rootdir: /Users/wuzilong/work/00code/zkxw plugins: cov-4.1.0, asyncio-0.23.7, mock-3.12.0, anyio-4.13.0 asyncio: mode=Mode.STRICT collected 0 items ============================ no tests ran in 0.04s ============================= → 3 passed - 修改端:backend、web-admin ### 需要你本地执行 1. 执行 SQL:(补录表 + 菜单授权) 2. **重启 backend / 刷新 web-admin**(Agent 不启停服务)后验收: - 质检管理 → 实验室样本处理数据 - 4 Tab、检索、补录、导出 3. 构建与整体运行验收留给用户 ### 说明 - 主编码列 = 实验室入库编码 - 补录键 = tenant_no + lab_storage_code - 科研捐赠×造血生产接收表单未加传染四项(空值靠补录)
cykj closed this issue 2026-11-12 04:13:09 +00:00
Author
Owner

已合入 V2.0(补充完整说明)

  • 任务提交:acb81cadd510d1c49fe619922f2084832bea5306
  • 合并提交:58b252ce6b3a8d94d0b67fd8d9ec9dfc3cb20e4c
  • 任务分支:codex/issue-98-lab-sample-process-b89f3179a6ba
  • 单元测试:pytest tests/test_lab_sample_process.py → 3 passed
  • 修改端:backend、web-admin

需要你本地执行

  1. 执行 SQL:docs/sql/migrations/2026-11-12-lab-sample-process-ledger.sql(补录表 + 菜单授权)
  2. 重启 backend / 刷新 web-admin(Agent 不启停服务)后验收:质检管理 → 实验室样本处理数据(4 Tab / 检索 / 补录 / 导出)
  3. 构建与整体运行验收留给用户

口径摘要

  • 主编码列 = 实验室入库编码
  • 补录键 = tenant_no + lab_storage_code
  • 科研捐赠×造血生产接收表单不加传染四项(空值靠补录)
## 已合入 V2.0(补充完整说明) - 任务提交:`acb81cadd510d1c49fe619922f2084832bea5306` - 合并提交:`58b252ce6b3a8d94d0b67fd8d9ec9dfc3cb20e4c` - 任务分支:`codex/issue-98-lab-sample-process-b89f3179a6ba` - 单元测试:`pytest tests/test_lab_sample_process.py` → 3 passed - 修改端:backend、web-admin ### 需要你本地执行 1. 执行 SQL:`docs/sql/migrations/2026-11-12-lab-sample-process-ledger.sql`(补录表 + 菜单授权) 2. 重启 backend / 刷新 web-admin(Agent 不启停服务)后验收:质检管理 → 实验室样本处理数据(4 Tab / 检索 / 补录 / 导出) 3. 构建与整体运行验收留给用户 ### 口径摘要 - 主编码列 = 实验室入库编码 - 补录键 = tenant_no + lab_storage_code - 科研捐赠×造血生产接收表单不加传染四项(空值靠补录)
cykj added ai-done and removed ai-merging labels 2026-11-12 04:13:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cykj/zkxw#98