Files
zkxw/docs/superpowers/specs/2026-06-15-storage-release-process-qc-view-design.md
T
2026-06-16 07:38:27 +08:00

42 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 入库放行查看 · 生产过程质检展示
**日期:** 2026-06-15
**状态:** 已实现
## 背景
入库放行查看弹窗原先仅展示 `trigger_source=reception` 的样本接收质检(门禁)。生产过程派发的入库质检在同一样本下不可见,审核员无法在同一上下文查阅过程质检结果。
## 目标
- 查看弹窗同时展示:**样本接收质检(门禁)** + **生产过程质检(过程参考)**
- **不改变**放行审核/入库判定:过程质检不参与门禁
## API
`GET /api/admin/storage-release-reviews/{id}` 详情响应:
| 字段 | 说明 |
|------|------|
| `qcInfo` | 不变,仅 reception 门禁质检 |
| `processQcInfoList` | 新增,同 `sample_code` 下全部 `trigger_source=production` 的 inbound 质检工单(含任务、细胞产品、生产工单号) |
后端实现:`qc_work_order.list_process_qc_info_for_sample`;放行 CRUD 调用 `_build_gate_qc_info` + `_build_process_qc_info_list`。
## 前端
- 新建 `SampleQcInfoGroupedPanel`:门禁区块 + 过程区块(空态 / 堆叠卡片)
- `StorageReleaseViewDialog` 质检信息 slot 改用分组面板(`:show-section-label="false"`,外层已有 section 标题)
- `ProtocolViewDialog`、`DonationViewDialog` 样本卡内改用分组面板(默认展示「质检信息」标题)
- `SampleQcInfoCards` 增加 `embedded` 模式供内嵌复用
## 协议 / 捐赠详情 API
每个样本项新增 `processQcInfoList`;`qcInfo` 固定为 reception 门禁质检(`get_qc_info_map_for_samples` 已加 `trigger_source=reception` 过滤)。
## 验收
1. 仅接收质检:门禁区块正常,过程区块显示「暂无生产过程质检工单」
2. 有过程质检:展示全部 production 工单及任务,任务可打开详情
3. `qcInfo` 语义不变,审核/入库接口行为不变