docs: add outbound release card align-to-protocol design and demo

Document reusing protocol-card class names with outbound fields; include HTML comparison demo.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-07-29 15:57:05 +08:00
1 parent df973f6bdb
commit cccee8e2cc
2 files changed
+567

No files matched your search

@@ -0,0 +1,449 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>出库放行审核卡片 · 对齐采集协议单卡片 Demo</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<style>
:root {
--primary: #10b981;
--primary-dark: #059669;
--primary-bg: #ecfdf5;
--text: #1e293b;
--mint-text-muted: #64748b;
--mint-border: #e2e8f0;
--bg-page: #f5f7f6;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 14px;
line-height: 1.5;
color: var(--text);
background: var(--bg-page);
}
.page { max-width: 1280px; margin: 0 auto; padding: 24px 20px 48px; }
h1 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.lead { margin: 0 0 20px; color: var(--mint-text-muted); font-size: 13px; }
.toolbar {
display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
margin-bottom: 20px; padding: 12px 14px; background: #fff;
border: 1px solid var(--mint-border); border-radius: 10px;
}
.toolbar label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.toolbar select {
height: 32px; padding: 0 10px; border: 1px solid var(--mint-border);
border-radius: 8px; font-size: 13px;
}
.section-title {
margin: 24px 0 10px; font-size: 13px; font-weight: 700;
color: var(--primary-dark);
}
.section-title span { font-weight: 500; color: var(--mint-text-muted); margin-left: 8px; }
/* tags */
.tag {
display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
border-radius: 4px; font-size: 12px; font-weight: 500; line-height: 1;
border: 1px solid transparent;
}
.tag.success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.tag.warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.tag.danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.tag.info { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.tag.primary { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.btn-op {
display: inline-flex; align-items: center; gap: 4px;
height: 28px; padding: 0 10px; border: 1px solid var(--mint-border);
border-radius: 6px; background: #fff; font-size: 12px; color: var(--text);
cursor: default;
}
/* ═══════ A. 现状:出库放行卡片(多列网格) ═══════ */
.out-wrap {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
gap: 14px;
padding: 16px;
background: #fff;
border: 1px solid var(--mint-border);
border-radius: 10px;
}
.out-card {
border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; overflow: hidden;
box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
}
.out-card__head { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.out-card__title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.out-card__index { font-size: 12px; font-weight: 600; color: var(--mint-text-muted); min-width: 20px; }
.out-card__code { font-size: 15px; font-weight: 700; color: #0f172a; }
.out-card__meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 12px; margin: 0; }
.out-card__meta dt { margin: 0 0 2px; font-size: 11px; font-weight: 500; color: var(--mint-text-muted); }
.out-card__meta dd { margin: 0; font-size: 13px; font-weight: 600; color: #1e293b; }
.out-card__cells {
padding: 12px 14px; border: 1px solid #d1fae5; border-radius: 8px;
background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
}
.out-card__cells-title {
display: flex; align-items: center; margin-bottom: 10px;
font-size: 12px; font-weight: 600; color: #047857;
}
.out-card__cells-title::before {
content: ""; width: 3px; height: 14px; margin-right: 8px;
background: #047857; border-radius: 2px;
}
.out-card__cell-fields { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px 12px; margin: 0; }
.out-card__cell-fields dt { margin: 0 0 2px; font-size: 11px; color: var(--mint-text-muted); }
.out-card__cell-fields dd { margin: 0; font-size: 13px; font-weight: 600; }
.out-card__ops { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
/* ═══════ B. 参考:采集协议单卡片骨架 ═══════ */
.proto-list { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--mint-border); border-radius: 10px; }
.protocol-card {
position: relative; display: flex; flex-direction: row; align-items: stretch; gap: 12px;
width: 100%; border: 1px solid var(--mint-border); border-radius: 10px; background: #fff;
padding: 12px 14px 12px 40px;
}
.protocol-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1px rgb(16 185 129 / 25%); }
.protocol-card__select { position: absolute; top: 12px; left: 12px; }
.protocol-card__aside {
flex: 0 0 148px; min-width: 132px; display: flex; flex-direction: column; gap: 6px;
padding-right: 12px; border-right: 1px solid #eef2f6;
}
.protocol-card__name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.protocol-card__index {
flex-shrink: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px;
background: var(--primary-bg); color: var(--primary-dark);
font-size: 12px; font-weight: 600; line-height: 22px; text-align: center;
}
.protocol-card__name {
font-size: 15px; font-weight: 600; color: var(--text);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.protocol-card__sub { font-size: 12px; color: var(--mint-text-muted); line-height: 1.4; }
.protocol-card__create-time { margin-top: auto; font-size: 11px; color: var(--mint-text-muted); }
.protocol-card__sections {
flex: 1; display: flex; flex-direction: row; align-items: stretch; gap: 10px;
min-width: 0; overflow-x: auto;
}
.protocol-card__block {
flex: 1; min-width: 140px; padding: 8px 10px; border-radius: 8px;
background: #f8fafc; border: 1px solid #eef2f6;
}
.protocol-card__block--cells { flex: 1.35; min-width: 220px; }
.protocol-card__block-title {
display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
font-size: 11px; font-weight: 600; color: var(--primary-dark);
}
.protocol-card__block-count { font-size: 11px; font-weight: 500; color: var(--mint-text-muted); }
.protocol-card__kv { display: flex; gap: 8px; font-size: 12px; line-height: 1.55; min-width: 0; }
.protocol-card__kv label {
flex: 0 0 56px; color: var(--mint-text-muted); font-size: 11px;
}
.protocol-card__kv span {
flex: 1; min-width: 0; font-weight: 600; color: #1e293b;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.protocol-card__sample-item {
display: flex; gap: 8px; padding: 8px; border-radius: 6px; background: #fff;
border: 1px solid #eef2f6; margin-bottom: 6px;
}
.protocol-card__sample-item:last-child { margin-bottom: 0; }
.protocol-card__sample-seq {
flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
background: var(--primary-bg); color: var(--primary-dark);
font-size: 11px; font-weight: 600; line-height: 20px; text-align: center;
}
.protocol-card__sample-line { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 2px; }
.protocol-card__sample-label { color: var(--mint-text-muted); width: 32px; flex-shrink: 0; }
.protocol-card__sample-value { font-weight: 600; color: #1e293b; }
.protocol-card__foot {
flex: 0 0 auto; display: flex; align-items: flex-end;
padding-left: 8px; border-left: 1px solid #eef2f6;
}
.protocol-card__actions { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 960px) {
.protocol-card { flex-wrap: wrap; }
.protocol-card__aside { flex: 1 1 100%; border-right: none; border-bottom: 1px solid #eef2f6; padding-bottom: 8px; }
.protocol-card__foot { border-left: none; width: 100%; padding-left: 0; padding-top: 8px; border-top: 1px solid #eef2f6; }
.protocol-card__actions { flex-direction: row; flex-wrap: wrap; }
}
.hidden { display: none !important; }
.compare-grid {
display: grid; grid-template-columns: 1fr; gap: 0;
}
.note {
margin-top: 16px; padding: 12px 14px; background: #fff; border: 1px dashed #a7f3d0;
border-radius: 8px; font-size: 12px; color: var(--mint-text-muted);
}
.note strong { color: var(--text); }
</style>
</head>
<body>
<div class="page">
<h1>出库放行审核卡片 · 对齐采集协议单 Demo</h1>
<p class="lead">
左侧/上方为<strong>现状</strong>(多列网格 + 纵向堆叠);下方为<strong>提议</strong>(采集协议单式:左侧身份栏 + 横向信息块 + 右侧操作)。
中试服务与基础实验共用同一结构,仅左侧主信息不同。
</p>
<div class="toolbar">
<label>业务线
<select id="bizSelect">
<option value="pilot">中试服务(患者)</option>
<option value="basic">基础实验(课题/客户)</option>
</select>
</label>
<label><input type="radio" name="view" value="both" checked /> 现状 + 提议</label>
<label><input type="radio" name="view" value="current" /> 仅现状</label>
<label><input type="radio" name="view" value="proposed" /> 仅提议</label>
</div>
<div id="secCurrent">
<div class="section-title">A. 现状 · 出库放行审核卡片 <span>OutboundReleaseReviewCardList(多列网格)</span></div>
<div class="out-wrap">
<article class="out-card" data-biz="pilot">
<div class="out-card__head">
<div>
<div class="out-card__title-row">
<input type="checkbox" />
<span class="out-card__index">1</span>
<span class="out-card__code">ZS-2026-00128</span>
<span class="tag primary">中试服务</span>
<span class="tag warning">已生产</span>
<span class="tag success">已质检</span>
<span class="tag info">待审核</span>
</div>
<dl class="out-card__meta">
<div><dt>患者姓名</dt><dd>张某某</dd></div>
<div><dt>计划取用时间</dt><dd>2026-07-30 09:00:00</dd></div>
<div><dt>审核人</dt><dd>—</dd></div>
<div><dt>审核时间</dt><dd>—</dd></div>
</dl>
</div>
<section class="out-card__cells">
<div class="out-card__cells-title">需求细胞</div>
<dl class="out-card__cell-fields">
<div><dt>项目编码</dt><dd>PRJ-001</dd></div>
<div><dt>项目名称</dt><dd>MSC 扩增批次 A</dd></div>
<div><dt>细胞类型</dt><dd>间充质干细胞</dd></div>
<div><dt>规格</dt><dd>1×10⁷ / 袋</dd></div>
<div><dt>数量</dt><dd>2</dd></div>
<div><dt>产品状态</dt><dd><span class="tag success">已完成</span></dd></div>
</dl>
</section>
<div class="out-card__ops">
<button class="btn-op" type="button">查看</button>
<button class="btn-op" type="button">出库物料</button>
<button class="btn-op" type="button">审核</button>
</div>
</div>
</article>
<article class="out-card" data-biz="basic">
<div class="out-card__head">
<div>
<div class="out-card__title-row">
<input type="checkbox" />
<span class="out-card__index">1</span>
<span class="out-card__code">JC-2026-00056</span>
<span class="tag primary">基础实验</span>
<span class="tag warning">已生产</span>
<span class="tag success">已质检</span>
<span class="tag success">通过</span>
</div>
<dl class="out-card__meta">
<div><dt>课题名称</dt><dd>某细胞体外扩增课题</dd></div>
<div><dt>客户名称</dt><dd>某某生物科技</dd></div>
<div><dt>计划取用时间</dt><dd>2026-07-28 14:00:00</dd></div>
<div><dt>审核人</dt><dd>李审核</dd></div>
</dl>
</div>
<section class="out-card__cells">
<div class="out-card__cells-title">需求细胞</div>
<dl class="out-card__cell-fields">
<div><dt>项目编码</dt><dd>PRJ-088</dd></div>
<div><dt>项目名称</dt><dd>NK 细胞制备</dd></div>
<div><dt>细胞类型</dt><dd>NK 细胞</dd></div>
<div><dt>规格</dt><dd>5×10⁶ / 袋</dd></div>
<div><dt>数量</dt><dd>1</dd></div>
<div><dt>产品状态</dt><dd><span class="tag success">已完成</span></dd></div>
</dl>
</section>
<div class="out-card__ops">
<button class="btn-op" type="button">查看</button>
<button class="btn-op" type="button">出库物料</button>
<button class="btn-op" type="button">审核</button>
</div>
</div>
</article>
</div>
</div>
<div id="secProposed">
<div class="section-title">B. 提议 · 对齐采集协议单卡片布局 <span>单列全宽 · aside + sections + foot</span></div>
<div class="proto-list">
<!-- 中试 -->
<article class="protocol-card is-selected" data-biz="pilot">
<div class="protocol-card__select"><input type="checkbox" checked /></div>
<div class="protocol-card__aside">
<div class="protocol-card__name-row">
<span class="protocol-card__index">1</span>
<span class="protocol-card__name">张某某</span>
</div>
<div class="protocol-card__sub">申请单 ZS-2026-00128</div>
<div class="protocol-card__sub">计划取用 2026-07-30 09:00</div>
<span class="tag info" style="align-self:flex-start">待审核</span>
<span class="tag primary" style="align-self:flex-start">中试服务</span>
<div class="protocol-card__create-time">计划状态 已生产 · 质检 已质检</div>
</div>
<div class="protocol-card__sections">
<section class="protocol-card__block">
<div class="protocol-card__block-title">基础信息</div>
<div class="protocol-card__kv"><label>申请单号</label><span>ZS-2026-00128</span></div>
<div class="protocol-card__kv"><label>患者姓名</label><span>张某某</span></div>
<div class="protocol-card__kv"><label>取用时间</label><span>2026-07-30 09:00:00</span></div>
<div class="protocol-card__kv"><label>审核人</label><span>—</span></div>
<div class="protocol-card__kv"><label>审核时间</label><span>—</span></div>
</section>
<section class="protocol-card__block protocol-card__block--cells">
<div class="protocol-card__block-title">需求细胞 <span class="protocol-card__block-count">1 项</span></div>
<div class="protocol-card__sample-item">
<span class="protocol-card__sample-seq">1</span>
<div>
<div class="protocol-card__sample-line">
<span class="protocol-card__sample-label">项目</span>
<span class="protocol-card__sample-value">MSC 扩增批次 A</span>
<span class="tag success">已完成</span>
</div>
<div class="protocol-card__sample-line">
<span class="protocol-card__sample-label">编码</span>
<span class="protocol-card__sample-value">PRJ-001</span>
</div>
<div class="protocol-card__sample-line">
<span class="protocol-card__sample-label">类型</span>
<span class="protocol-card__sample-value">间充质干细胞 · 1×10⁷ / 袋 × 2</span>
</div>
</div>
</div>
</section>
<section class="protocol-card__block">
<div class="protocol-card__block-title">状态摘要</div>
<div class="protocol-card__kv"><label>计划状态</label><span><span class="tag warning">已生产</span></span></div>
<div class="protocol-card__kv"><label>质检状态</label><span><span class="tag success">已质检</span></span></div>
<div class="protocol-card__kv"><label>审核结论</label><span><span class="tag info">待审核</span></span></div>
</section>
</div>
<div class="protocol-card__foot">
<div class="protocol-card__actions">
<button class="btn-op" type="button">审核</button>
<button class="btn-op" type="button">查看</button>
<button class="btn-op" type="button">出库物料</button>
</div>
</div>
</article>
<!-- 基础实验 -->
<article class="protocol-card" data-biz="basic">
<div class="protocol-card__select"><input type="checkbox" /></div>
<div class="protocol-card__aside">
<div class="protocol-card__name-row">
<span class="protocol-card__index">1</span>
<span class="protocol-card__name">某某生物科技</span>
</div>
<div class="protocol-card__sub">申请单 JC-2026-00056</div>
<div class="protocol-card__sub">课题:某细胞体外扩增课题</div>
<span class="tag success" style="align-self:flex-start">通过</span>
<span class="tag primary" style="align-self:flex-start">基础实验</span>
<div class="protocol-card__create-time">审核 李审核 · 2026-07-28 16:20</div>
</div>
<div class="protocol-card__sections">
<section class="protocol-card__block">
<div class="protocol-card__block-title">基础信息</div>
<div class="protocol-card__kv"><label>申请单号</label><span>JC-2026-00056</span></div>
<div class="protocol-card__kv"><label>课题名称</label><span>某细胞体外扩增课题</span></div>
<div class="protocol-card__kv"><label>客户名称</label><span>某某生物科技</span></div>
<div class="protocol-card__kv"><label>取用时间</label><span>2026-07-28 14:00:00</span></div>
<div class="protocol-card__kv"><label>审核人</label><span>李审核</span></div>
</section>
<section class="protocol-card__block protocol-card__block--cells">
<div class="protocol-card__block-title">需求细胞 <span class="protocol-card__block-count">1 项</span></div>
<div class="protocol-card__sample-item">
<span class="protocol-card__sample-seq">1</span>
<div>
<div class="protocol-card__sample-line">
<span class="protocol-card__sample-label">项目</span>
<span class="protocol-card__sample-value">NK 细胞制备</span>
<span class="tag success">已完成</span>
</div>
<div class="protocol-card__sample-line">
<span class="protocol-card__sample-label">编码</span>
<span class="protocol-card__sample-value">PRJ-088</span>
</div>
<div class="protocol-card__sample-line">
<span class="protocol-card__sample-label">类型</span>
<span class="protocol-card__sample-value">NK 细胞 · 5×10⁶ / 袋 × 1</span>
</div>
</div>
</div>
</section>
<section class="protocol-card__block">
<div class="protocol-card__block-title">状态摘要</div>
<div class="protocol-card__kv"><label>计划状态</label><span><span class="tag warning">已生产</span></span></div>
<div class="protocol-card__kv"><label>质检状态</label><span><span class="tag success">已质检</span></span></div>
<div class="protocol-card__kv"><label>审核结论</label><span><span class="tag success">通过</span></span></div>
</section>
</div>
<div class="protocol-card__foot">
<div class="protocol-card__actions">
<button class="btn-op" type="button">审核</button>
<button class="btn-op" type="button">查看</button>
<button class="btn-op" type="button">出库物料</button>
</div>
</div>
</article>
</div>
</div>
<div class="note">
<strong>对齐要点(提议):</strong>
① 列表改为<strong>单列全宽</strong>卡片(非多列网格);
② 左侧 <strong>aside</strong>:序号徽章 + 主名称(患者/客户)+ 副信息 + 主状态 Tag;
③ 中部横向 <strong>block</strong>:基础信息 / 需求细胞(样本条样式)/ 状态摘要;
④ 右侧 <strong>foot</strong>:查看 / 出库物料 / 审核;
⑤ 勾选在左上角绝对定位,选中描边主色。
字段内容仍用出库业务数据,不照搬协议号/新生儿/缴费。
</div>
</div>
<script>
const bizSelect = document.getElementById('bizSelect')
const secCurrent = document.getElementById('secCurrent')
const secProposed = document.getElementById('secProposed')
function applyBiz() {
const biz = bizSelect.value
document.querySelectorAll('[data-biz]').forEach((el) => {
el.classList.toggle('hidden', el.getAttribute('data-biz') !== biz)
})
}
function applyView() {
const v = document.querySelector('input[name="view"]:checked').value
secCurrent.classList.toggle('hidden', v === 'proposed')
secProposed.classList.toggle('hidden', v === 'current')
}
bizSelect.addEventListener('change', applyBiz)
document.querySelectorAll('input[name="view"]').forEach((r) => r.addEventListener('change', applyView))
applyBiz()
applyView()
</script>
</body>
</html>
@@ -0,0 +1,118 @@
# 出库放行审核 · 列表卡片对齐采集协议单卡片
> 日期:2026-07-29
> 状态:已确认
> 模块:中试服务 / 基础实验(及共用同页的临床入口)→ 出库放行审核
> 界面模式:卡片列表(对齐协议卡)
> 参考页:`web-admin/src/views/cell-storage/protocol-audit/ProtocolAuditTab.vue`(`protocol-card*`)
> 实现页:`web-admin/src/views/pilot-service/outbound-release-review/OutboundReleaseReviewCardList.vue`
> Demo:`docs/superpowers/demos/2026-07-29-outbound-release-card-vs-protocol-card-demo.html`
## 1. 背景与目标
### 现状
出库放行审核使用多列网格卡片(`outbound-release-review-card*`):标题行堆 Tag、meta 栅格、需求细胞绿底块、底部横排操作。与采集协议单「左 aside + 中 sections + 右 foot」全宽卡片观感不一致。
### 目标
出库放行列表卡片在**布局与 CSS 类名**上对齐采集协议单卡片;**业务字段**仍为出库放行数据。中试 / 基础实验 / 临床共用组件,一次改动全覆盖。
### 范围外
- 不改列表 API、筛选、待审核/已审核 Tab、就绪/作废过滤
- 不抽公共 SCSS(本次按各自维护复制样式)
- 不改审核 / 查看 / 出库物料弹窗逻辑与事件契约
- 不把协议业务块(新生儿、缴费等)搬进出库卡
## 2. 需求确认记录
| 维度 | 决定 |
|------|------|
| 对齐方式 | 复用 `protocol-card*` 类名,只换字段 |
| 样式落地 | 复制协议卡 SCSS 到 `OutboundReleaseReviewCardList.vue`,各自维护 |
| Aside 主标题 | 中试/临床:患者姓名;基础实验:客户名称;副行申请单号(基础实验再加课题) |
| 中部块 | 三块:基础信息 · 需求细胞(样本条样式)· 状态摘要 |
| 列表排布 | 单列全宽(非多列 `auto-fill` 网格) |
## 3. 卡片结构
```text
article.protocol-card
├─ .protocol-card__select 勾选
├─ .protocol-card__aside 身份栏
├─ .protocol-card__sections
│ ├─ .protocol-card__block 基础信息
│ ├─ .protocol-card__block 需求细胞(sample-item 条)
│ └─ .protocol-card__block 状态摘要
└─ .protocol-card__foot
└─ .protocol-card__actions 审核 / 查看 / 出库物料
```
选中:`is-selected` 类 + 主色描边(与协议卡一致)。双击仍触发查看。
### 3.1 Aside
| 元素 | 中试 / 临床 | 基础实验 |
|------|-------------|---------|
| 序号 | `protocol-card__index` | 同左 |
| 主标题 | `patientName` | `customerName` |
| 副行 | 申请单号 | 申请单号;课题名称 |
| 主 Tag | 审核结论(无则「待审核」) | 同左 |
| 次 Tag | `bizType` | 同左 |
| 底部小字 | 计划状态 · 质检状态(文案) | 同左;可附审核人/时间 |
### 3.2 基础信息块
- 申请单号
- 患者姓名 **或** 课题名称 + 客户名称(随 `showPatient`)
- 取用时间(文案用现有 `pickupTimeLabel`)
- 审核人、审核时间
### 3.3 需求细胞块
- 标题「需求细胞」+ `N 项`(`protocol-card__block-count`)
- 每条产品用 `protocol-card__sample-item` / `__sample-seq` / `__sample-line` 等
- 展示:项目名称、项目编码、细胞类型 · 规格 · 数量、产品状态 Tag
- 无产品时:`protocol-card__empty` 或现有 fallback 文案
### 3.4 状态摘要块
- 计划状态、质检状态、审核结论(均为 `el-tag`,语义色不变)
### 3.5 操作列
- 事件不变:`review` / `view` / `material` / `toggle-select` / `card-dblclick` / 分页
- 按钮顺序建议:审核 → 查看 → 出库物料(与协议卡「审核优先」一致;图标与现网一致)
## 4. 样式
1. 从 `ProtocolAuditTab.vue` 复制 `.protocol-card*` 及相关响应式规则到 `OutboundReleaseReviewCardList.vue` 的 scoped SCSS。
2. 删除本组件内旧的 `.outbound-release-review-card*` 布局样式;容器可保留 `list-body list-wrap` 与分页栏。
3. 列表容器改为 `display: flex; flex-direction: column; gap: 10px; padding: 16px`(对齐 `.protocol-card-list`)。
4. 允许少量出库修饰(如块 `min-width`),不引入协议专用块名(`--newborn` / `--payment`)。
## 5. 改动面
| 文件 | 变更 |
|------|------|
| `OutboundReleaseReviewCardList.vue` | 模板结构 + 复制 SCSS + 字段映射 |
| Demo HTML | 已存在,可作验收对照;实现后可标已实现或微调 |
不改:`index.vue` 数据流(除非 props 不足,当前已够)、API、后端。
## 6. 测试要点
1. 中试入口:aside 主标题为患者姓名;基础实验为客户名称。
2. 卡片为单列全宽;选中描边;勾选/批量审核仍可用。
3. 多产品时需求细胞条数正确;无产品有空态。
4. 查看 / 审核 / 出库物料按钮行为与改前一致。
5. 窄屏响应式不严重错乱(参考协议卡 media query)。
## 7. 方案取舍
| 方案 | 结论 |
|------|------|
| 复制类名 + 改写出库卡片 DOM | **采用** |
| 抽公共 SCSS | 拒绝(本次各自维护) |
| 仅微调视觉、保留网格 | 拒绝 |