|
|
@@ -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>
|