1132 lines
33 KiB
HTML
1132 lines
33 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<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;
|
|
--text-muted: #64748b;
|
|
--text-label: #334155;
|
|
--border: #d9e8e2;
|
|
--border-soft: #e2e8f0;
|
|
--bg-page: #f1f5f9;
|
|
--surface: #ffffff;
|
|
--table-head: #f8fafc;
|
|
--shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
--radius: 10px;
|
|
--radius-sm: 8px;
|
|
--mask: rgba(15, 23, 42, 0.35);
|
|
--warn: #d97706;
|
|
--warn-bg: #fffbeb;
|
|
--danger: #dc2626;
|
|
--danger-bg: #fef2f2;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
color: var(--text);
|
|
background: var(--bg-page);
|
|
}
|
|
|
|
button,
|
|
summary {
|
|
font-family: inherit;
|
|
}
|
|
|
|
.page {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.banner {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border-soft);
|
|
padding: 14px 24px 16px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.banner h1 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.banner p {
|
|
margin: 6px 0 0;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
max-width: 920px;
|
|
}
|
|
|
|
.banner p strong {
|
|
color: var(--primary-dark);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.scheme-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.scheme-row span {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.scheme-btn {
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition:
|
|
background 0.15s,
|
|
border-color 0.15s,
|
|
color 0.15s;
|
|
}
|
|
|
|
.scheme-btn:hover {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.scheme-btn.is-active {
|
|
background: var(--primary);
|
|
border-color: var(--primary);
|
|
color: #fff;
|
|
}
|
|
|
|
.scheme-btn.is-rec::after {
|
|
content: '推荐';
|
|
margin-left: 6px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
padding: 1px 5px;
|
|
border-radius: 4px;
|
|
background: rgba(255, 255, 255, 0.22);
|
|
}
|
|
|
|
.scheme-btn:not(.is-active).is-rec::after {
|
|
background: var(--primary-bg);
|
|
color: var(--primary-dark);
|
|
}
|
|
|
|
.toggle {
|
|
margin-left: auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
height: 32px;
|
|
padding: 0 10px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
font-size: 12px;
|
|
color: var(--text-label);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toggle input {
|
|
accent-color: var(--primary);
|
|
}
|
|
|
|
.stage {
|
|
flex: 1;
|
|
position: relative;
|
|
min-height: 0;
|
|
}
|
|
|
|
.backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--mask);
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
padding: 16px 16px 24px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.dialog {
|
|
background: var(--surface);
|
|
border-radius: var(--radius);
|
|
box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
|
|
display: none;
|
|
flex-direction: column;
|
|
max-height: calc(100vh - 140px);
|
|
width: min(1120px, 100%);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dialog.is-show {
|
|
display: flex;
|
|
}
|
|
|
|
.dialog--current {
|
|
width: min(640px, 100%);
|
|
}
|
|
|
|
.dialog--stack {
|
|
width: min(760px, 100%);
|
|
}
|
|
|
|
.dialog-head {
|
|
flex-shrink: 0;
|
|
padding: 16px 22px 14px;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
}
|
|
|
|
.dialog-head__row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.dialog-head h2 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.icon-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
background: #f1f5f9;
|
|
color: var(--text);
|
|
}
|
|
|
|
.sample-meta {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 8px 24px;
|
|
margin-top: 12px;
|
|
padding: 10px 14px;
|
|
background: var(--table-head);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.meta-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.meta-row .k {
|
|
color: var(--text-label);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.meta-row .v {
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.verdict {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
height: 24px;
|
|
padding: 0 8px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
background: #f1f5f9;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.chip svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.chip--ok {
|
|
background: var(--primary-bg);
|
|
color: #047857;
|
|
}
|
|
|
|
.chip--bad {
|
|
background: var(--danger-bg);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.chip--warn {
|
|
background: var(--warn-bg);
|
|
color: var(--warn);
|
|
}
|
|
|
|
.dialog-body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
padding: 18px 22px;
|
|
}
|
|
|
|
.dialog--split .dialog-body {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
|
|
gap: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.evidence-pane {
|
|
min-width: 0;
|
|
overflow: auto;
|
|
padding: 16px 18px 18px 22px;
|
|
border-right: 1px solid var(--border-soft);
|
|
background: #fcfdfd;
|
|
}
|
|
|
|
.form-pane {
|
|
min-width: 0;
|
|
overflow: auto;
|
|
padding: 16px 22px 18px 18px;
|
|
background: var(--surface);
|
|
}
|
|
|
|
.pane-title {
|
|
margin: 0 0 10px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.block {
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: 8px;
|
|
background: var(--surface);
|
|
margin-bottom: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.block > summary {
|
|
list-style: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
background: var(--surface);
|
|
}
|
|
|
|
.block > summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.block > summary:hover {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.block-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chev {
|
|
width: 14px;
|
|
height: 14px;
|
|
color: var(--text-muted);
|
|
transition: transform 0.15s;
|
|
}
|
|
|
|
details[open] > summary .chev {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.block-body {
|
|
padding: 0 12px 12px;
|
|
border-top: 1px solid #f1f5f9;
|
|
}
|
|
|
|
.kv-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 10px 20px;
|
|
padding-top: 12px;
|
|
}
|
|
|
|
.kv {
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.kv.span {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.kv dt {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-label);
|
|
}
|
|
|
|
.kv dd {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
word-break: break-word;
|
|
}
|
|
|
|
.tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 20px;
|
|
padding: 0 7px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tag--success {
|
|
background: var(--primary-bg);
|
|
color: #047857;
|
|
}
|
|
|
|
.tag--info {
|
|
background: #f1f5f9;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.tag--danger {
|
|
background: var(--danger-bg);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.tag--warn {
|
|
background: var(--warn-bg);
|
|
color: var(--warn);
|
|
}
|
|
|
|
.checks {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px 16px;
|
|
}
|
|
|
|
.check {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.box {
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 3px;
|
|
border: 1px solid #86efac;
|
|
background: var(--primary-bg);
|
|
color: #047857;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.box--off {
|
|
border-color: #fecaca;
|
|
background: var(--danger-bg);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.subhead {
|
|
margin: 12px 0 8px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.wo-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px 24px;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.task-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.task {
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
background: #fff;
|
|
}
|
|
|
|
.task__h {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.task__b {
|
|
padding: 8px 10px;
|
|
display: grid;
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.task__b b {
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
}
|
|
|
|
.process-item {
|
|
margin-top: 8px;
|
|
padding: 8px 10px;
|
|
border: 1px dashed #d1fae5;
|
|
border-radius: 8px;
|
|
background: #f8fffb;
|
|
}
|
|
|
|
.empty {
|
|
padding: 10px 0 4px;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.field {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.field label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.radios {
|
|
display: flex;
|
|
gap: 16px;
|
|
height: 36px;
|
|
align-items: center;
|
|
}
|
|
|
|
.radios label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin: 0;
|
|
cursor: pointer;
|
|
font-weight: 400;
|
|
}
|
|
|
|
textarea,
|
|
.input-like {
|
|
width: 100%;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 8px 10px;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
resize: vertical;
|
|
outline: none;
|
|
}
|
|
|
|
textarea:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
|
|
}
|
|
|
|
.attach-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.upload-card {
|
|
width: 120px;
|
|
height: 88px;
|
|
border: 1px dashed #a7f3d0;
|
|
border-radius: 8px;
|
|
background: #f0fdf4;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
color: #047857;
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.hint {
|
|
margin: 8px 0 0;
|
|
font-size: 12px;
|
|
color: var(--text-label);
|
|
}
|
|
|
|
.dialog-foot {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
padding: 12px 22px;
|
|
border-top: 1px solid var(--border-soft);
|
|
background: var(--table-head);
|
|
}
|
|
|
|
.btn {
|
|
height: 36px;
|
|
padding: 0 16px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
border: 1px solid var(--border);
|
|
background: #fff;
|
|
color: var(--text);
|
|
}
|
|
|
|
.btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.btn--main {
|
|
background: var(--primary);
|
|
border-color: var(--primary);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn--main:hover {
|
|
background: var(--primary-dark);
|
|
border-color: var(--primary-dark);
|
|
}
|
|
|
|
.note {
|
|
margin: 0 0 12px;
|
|
padding: 8px 10px;
|
|
border-radius: 8px;
|
|
background: #f8fafc;
|
|
border: 1px solid var(--border-soft);
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.tabs {
|
|
display: flex;
|
|
gap: 0;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
margin: 0 -18px 12px;
|
|
padding: 0 18px;
|
|
}
|
|
|
|
.tab {
|
|
height: 36px;
|
|
padding: 0 14px;
|
|
border: none;
|
|
background: transparent;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -1px;
|
|
}
|
|
|
|
.tab.is-active {
|
|
color: var(--primary-dark);
|
|
border-bottom-color: var(--primary);
|
|
}
|
|
|
|
.tab-panel {
|
|
display: none;
|
|
}
|
|
|
|
.tab-panel.is-show {
|
|
display: block;
|
|
}
|
|
|
|
.fail-only {
|
|
display: none;
|
|
}
|
|
|
|
body.is-fail .pass-only {
|
|
display: none;
|
|
}
|
|
|
|
body.is-fail .fail-only {
|
|
display: inline-flex;
|
|
}
|
|
|
|
body.is-fail .fail-block {
|
|
display: block;
|
|
}
|
|
|
|
.current-hint {
|
|
margin: 0 0 14px;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.dialog--split .dialog-body {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.evidence-pane {
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
max-height: 46vh;
|
|
}
|
|
|
|
.kv-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* {
|
|
transition: none !important;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="page">
|
|
<header class="banner">
|
|
<h1>入库放行审核弹窗 · 如何展示接收 / 质检 / 生产信息</h1>
|
|
<p>
|
|
审核时需要对照样本链路做结论,但不该把「查看详情」整页塞进表单。
|
|
<strong>推荐方案 A:左侧滚动看证据,右侧固定填结论</strong>——表单始终在视野内,顶部用 3
|
|
枚状态 Tag 2 秒扫读是否可放行,需要时再展开细节。实现时可复用现有查看弹窗里的接收字段、质检分组与生产任务卡片。
|
|
</p>
|
|
<div class="scheme-row">
|
|
<span>方案</span>
|
|
<button type="button" class="scheme-btn" data-scheme="current">现状</button>
|
|
<button type="button" class="scheme-btn is-active is-rec" data-scheme="a">A 左右分栏</button>
|
|
<button type="button" class="scheme-btn" data-scheme="b">B 折叠叠放</button>
|
|
<button type="button" class="scheme-btn" data-scheme="c">C 证据 Tab</button>
|
|
<label class="toggle">
|
|
<input id="failToggle" type="checkbox" />
|
|
模拟质检不通过
|
|
</label>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="stage">
|
|
<div class="backdrop">
|
|
<!-- 现状 -->
|
|
<section id="dlg-current" class="dialog dialog--current" aria-label="现状审核弹窗">
|
|
<div class="dialog-head">
|
|
<div class="dialog-head__row">
|
|
<h2>入库放行审核</h2>
|
|
<button class="icon-btn" type="button" aria-label="关闭" tabindex="-1">
|
|
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M6 6l12 12M18 6L6 18" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div class="sample-meta">
|
|
<div class="meta-row"><span class="k">实验室入库编码</span><span class="v">UBMC202608003</span></div>
|
|
<div class="meta-row"><span class="k">样本编码</span><span class="v">KYJZ2026080009</span></div>
|
|
</div>
|
|
</div>
|
|
<div class="dialog-body">
|
|
<p class="current-hint">当前弹窗只有身份摘要 + 结论表单,看不到接收 / 质检 / 生产,审核员必须先点「查看」再回来填结论。</p>
|
|
<div id="form-current"></div>
|
|
</div>
|
|
<div class="dialog-foot" data-foot></div>
|
|
</section>
|
|
|
|
<!-- 方案 A -->
|
|
<section id="dlg-a" class="dialog dialog--split is-show" aria-label="方案A 左右分栏">
|
|
<div class="dialog-head">
|
|
<div class="dialog-head__row">
|
|
<h2>入库放行审核</h2>
|
|
<button class="icon-btn" type="button" aria-label="关闭" tabindex="-1">
|
|
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M6 6l12 12M18 6L6 18" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div class="sample-meta">
|
|
<div class="meta-row"><span class="k">实验室入库编码</span><span class="v">UBMC202608003</span></div>
|
|
<div class="meta-row"><span class="k">样本编码</span><span class="v">KYJZ2026080009</span></div>
|
|
</div>
|
|
<div class="verdict" data-verdict></div>
|
|
</div>
|
|
<div class="dialog-body">
|
|
<div class="evidence-pane">
|
|
<p class="pane-title">样本证据(只读)</p>
|
|
<div data-evidence></div>
|
|
</div>
|
|
<div class="form-pane">
|
|
<p class="pane-title">审核操作</p>
|
|
<p class="note">看完左侧证据后再填结论。不通过时建议写明原因。</p>
|
|
<div data-form></div>
|
|
</div>
|
|
</div>
|
|
<div class="dialog-foot" data-foot></div>
|
|
</section>
|
|
|
|
<!-- 方案 B -->
|
|
<section id="dlg-b" class="dialog dialog--stack" aria-label="方案B 折叠叠放">
|
|
<div class="dialog-head">
|
|
<div class="dialog-head__row">
|
|
<h2>入库放行审核</h2>
|
|
<button class="icon-btn" type="button" aria-label="关闭" tabindex="-1">
|
|
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M6 6l12 12M18 6L6 18" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div class="sample-meta">
|
|
<div class="meta-row"><span class="k">实验室入库编码</span><span class="v">UBMC202608003</span></div>
|
|
<div class="meta-row"><span class="k">样本编码</span><span class="v">KYJZ2026080009</span></div>
|
|
</div>
|
|
<div class="verdict" data-verdict></div>
|
|
</div>
|
|
<div class="dialog-body">
|
|
<p class="note">证据与表单同一列滚动。弹窗更窄,但填结论时可能滚离证据区。</p>
|
|
<div data-evidence></div>
|
|
<div data-form></div>
|
|
</div>
|
|
<div class="dialog-foot" data-foot></div>
|
|
</section>
|
|
|
|
<!-- 方案 C -->
|
|
<section id="dlg-c" class="dialog dialog--split" aria-label="方案C 证据Tab">
|
|
<div class="dialog-head">
|
|
<div class="dialog-head__row">
|
|
<h2>入库放行审核</h2>
|
|
<button class="icon-btn" type="button" aria-label="关闭" tabindex="-1">
|
|
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M6 6l12 12M18 6L6 18" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div class="sample-meta">
|
|
<div class="meta-row"><span class="k">实验室入库编码</span><span class="v">UBMC202608003</span></div>
|
|
<div class="meta-row"><span class="k">样本编码</span><span class="v">KYJZ2026080009</span></div>
|
|
</div>
|
|
<div class="verdict" data-verdict></div>
|
|
</div>
|
|
<div class="dialog-body">
|
|
<div class="evidence-pane">
|
|
<div class="tabs" role="tablist">
|
|
<button type="button" class="tab is-active" data-tab="recv">接收信息</button>
|
|
<button type="button" class="tab" data-tab="qc">质检信息</button>
|
|
<button type="button" class="tab" data-tab="prod">生产信息</button>
|
|
</div>
|
|
<div class="tab-panel is-show" data-panel="recv" data-ev-recv></div>
|
|
<div class="tab-panel" data-panel="qc" data-ev-qc></div>
|
|
<div class="tab-panel" data-panel="prod" data-ev-prod></div>
|
|
</div>
|
|
<div class="form-pane">
|
|
<p class="pane-title">审核操作</p>
|
|
<p class="note">Tab 降低一屏密度,但无法同时对照三类证据。</p>
|
|
<div data-form></div>
|
|
</div>
|
|
</div>
|
|
<div class="dialog-foot" data-foot></div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<template id="tpl-verdict">
|
|
<span class="chip chip--ok pass-only">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M5 12l5 5L20 7" /></svg>
|
|
接收 已接收
|
|
</span>
|
|
<span class="chip chip--ok pass-only">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M5 12l5 5L20 7" /></svg>
|
|
门禁质检 全部通过
|
|
</span>
|
|
<span class="chip chip--bad fail-only">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M6 6l12 12M18 6L6 18" /></svg>
|
|
门禁质检 存在不通过
|
|
</span>
|
|
<span class="chip chip--ok">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M5 12l5 5L20 7" /></svg>
|
|
生产 已完成
|
|
</span>
|
|
</template>
|
|
|
|
<template id="tpl-recv">
|
|
<details class="block" open>
|
|
<summary>
|
|
<span class="block-title">接收信息</span>
|
|
<svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9l6 6 6-6" /></svg>
|
|
</summary>
|
|
<div class="block-body">
|
|
<dl class="kv-grid">
|
|
<div class="kv"><dt>接收时间</dt><dd>2026-08-10 14:22</dd></div>
|
|
<div class="kv"><dt>接收经手人</dt><dd>张敏</dd></div>
|
|
<div class="kv"><dt>实验室入库编码</dt><dd>UBMC202608003</dd></div>
|
|
<div class="kv"><dt>接收温度(℃)</dt><dd>4.2℃</dd></div>
|
|
<div class="kv"><dt>结论</dt><dd><span class="tag tag--success">接收</span></dd></div>
|
|
<div class="kv span">
|
|
<dt>检查项</dt>
|
|
<dd>
|
|
<div class="checks">
|
|
<span class="check"><span class="box"><svg viewBox="0 0 24 24" width="10" height="10" fill="none" stroke="currentColor" stroke-width="3"><path d="M5 12l4 4L19 7"/></svg></span>包装完好</span>
|
|
<span class="check"><span class="box"><svg viewBox="0 0 24 24" width="10" height="10" fill="none" stroke="currentColor" stroke-width="3"><path d="M5 12l4 4L19 7"/></svg></span>无渗漏</span>
|
|
<span class="check"><span class="box"><svg viewBox="0 0 24 24" width="10" height="10" fill="none" stroke="currentColor" stroke-width="3"><path d="M5 12l4 4L19 7"/></svg></span>标识清晰</span>
|
|
</div>
|
|
</dd>
|
|
</div>
|
|
<div class="kv span"><dt>备注</dt><dd>—</dd></div>
|
|
</dl>
|
|
<p class="subhead">生产接收</p>
|
|
<dl class="kv-grid" style="padding-top: 0">
|
|
<div class="kv"><dt>处理时间</dt><dd>2026-08-10 16:05</dd></div>
|
|
<div class="kv"><dt>处理人</dt><dd>李伟</dd></div>
|
|
</dl>
|
|
</div>
|
|
</details>
|
|
</template>
|
|
|
|
<template id="tpl-qc">
|
|
<details class="block" open>
|
|
<summary>
|
|
<span class="block-title">
|
|
质检信息
|
|
<span class="tag tag--success pass-only">门禁通过</span>
|
|
<span class="tag tag--danger fail-only">门禁不通过</span>
|
|
</span>
|
|
<svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9l6 6 6-6" /></svg>
|
|
</summary>
|
|
<div class="block-body">
|
|
<p class="subhead">样本接收质检(入库门禁)</p>
|
|
<div class="wo-row">
|
|
<div class="kv"><dt>工单号</dt><dd>QC2026080012</dd></div>
|
|
<div class="kv"><dt>工单状态</dt><dd><span class="tag tag--success">已完成</span></dd></div>
|
|
</div>
|
|
<div class="task-grid">
|
|
<article class="task">
|
|
<div class="task__h">无菌检测 <span class="tag tag--success">通过</span></div>
|
|
<div class="task__b">任务号 <b>QCT-0812-01</b></div>
|
|
</article>
|
|
<article class="task">
|
|
<div class="task__h">细胞活性 <span class="tag tag--success">通过</span></div>
|
|
<div class="task__b">任务号 <b>QCT-0812-02</b></div>
|
|
</article>
|
|
<article class="task pass-only">
|
|
<div class="task__h">病原筛查 <span class="tag tag--success">通过</span></div>
|
|
<div class="task__b">任务号 <b>QCT-0812-03</b></div>
|
|
</article>
|
|
<article class="task fail-only fail-block">
|
|
<div class="task__h">病原筛查 <span class="tag tag--danger">不通过</span></div>
|
|
<div class="task__b">任务号 <b>QCT-0812-03</b> · 结论备注:HBsAg 阳性,需复核</div>
|
|
</article>
|
|
</div>
|
|
<p class="subhead">生产过程质检</p>
|
|
<div class="process-item">
|
|
<div class="wo-row" style="padding-top: 0">
|
|
<div class="kv"><dt>质检对象</dt><dd>CP-UBMC-001 · 脐血单个核细胞</dd></div>
|
|
<div class="kv"><dt>生产工单</dt><dd>PW2026080008</dd></div>
|
|
</div>
|
|
<div class="task-grid">
|
|
<article class="task">
|
|
<div class="task__h">内毒素 <span class="tag tag--success">通过</span></div>
|
|
<div class="task__b">任务号 <b>QCT-0814-01</b></div>
|
|
</article>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</details>
|
|
</template>
|
|
|
|
<template id="tpl-prod">
|
|
<details class="block" open>
|
|
<summary>
|
|
<span class="block-title">生产信息</span>
|
|
<svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 9l6 6 6-6" /></svg>
|
|
</summary>
|
|
<div class="block-body">
|
|
<div class="wo-row">
|
|
<div class="kv"><dt>工单号</dt><dd>PW2026080008</dd></div>
|
|
<div class="kv"><dt>工单状态</dt><dd><span class="tag tag--success">已完成</span></dd></div>
|
|
</div>
|
|
<div class="task-grid">
|
|
<article class="task">
|
|
<div class="task__h">分离制备 <span class="tag tag--success">通过</span></div>
|
|
<div class="task__b">任务号 <b>PT-0808-01</b><br />完成时间 <b>2026-08-12 11:20</b></div>
|
|
</article>
|
|
<article class="task">
|
|
<div class="task__h">冻存入库 <span class="tag tag--success">通过</span></div>
|
|
<div class="task__b">任务号 <b>PT-0808-02</b><br />完成时间 <b>2026-08-13 09:40</b></div>
|
|
</article>
|
|
</div>
|
|
</div>
|
|
</details>
|
|
</template>
|
|
|
|
<template id="tpl-form">
|
|
<div class="field">
|
|
<label>审核结论</label>
|
|
<div class="radios">
|
|
<label><input type="radio" name="c" value="tg" checked /> 通过</label>
|
|
<label><input type="radio" name="c" value="btg" /> 不通过</label>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<label>备注</label>
|
|
<textarea rows="3" placeholder="可选"></textarea>
|
|
</div>
|
|
<div class="field">
|
|
<label>附件</label>
|
|
<div class="attach-row">
|
|
<div class="upload-card">
|
|
<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14" /></svg>
|
|
上传附件
|
|
</div>
|
|
</div>
|
|
<p class="hint">支持拖拽或点击上传,单文件不超过 20MB</p>
|
|
</div>
|
|
</template>
|
|
|
|
<template id="tpl-foot">
|
|
<button type="button" class="btn">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 6l12 12M18 6L6 18" /></svg>
|
|
取消
|
|
</button>
|
|
<button type="button" class="btn btn--main">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M5 12l5 5L20 7" /></svg>
|
|
确定
|
|
</button>
|
|
</template>
|
|
|
|
<script>
|
|
const clone = (id) => document.getElementById(id).content.cloneNode(true)
|
|
|
|
function fillEvidence(root) {
|
|
root.appendChild(clone('tpl-recv'))
|
|
root.appendChild(clone('tpl-qc'))
|
|
root.appendChild(clone('tpl-prod'))
|
|
}
|
|
|
|
document.querySelectorAll('[data-verdict]').forEach((el) => el.appendChild(clone('tpl-verdict')))
|
|
document.querySelectorAll('[data-evidence]').forEach(fillEvidence)
|
|
document.querySelector('[data-ev-recv]').appendChild(clone('tpl-recv'))
|
|
document.querySelector('[data-ev-qc]').appendChild(clone('tpl-qc'))
|
|
document.querySelector('[data-ev-prod]').appendChild(clone('tpl-prod'))
|
|
let formSeq = 0
|
|
function mountForm(el) {
|
|
const node = clone('tpl-form')
|
|
const name = `c${formSeq++}`
|
|
node.querySelectorAll('input[type="radio"]').forEach((r) => {
|
|
r.name = name
|
|
})
|
|
el.appendChild(node)
|
|
}
|
|
mountForm(document.getElementById('form-current'))
|
|
document.querySelectorAll('[data-form]').forEach(mountForm)
|
|
document.querySelectorAll('[data-foot]').forEach((el) => el.appendChild(clone('tpl-foot')))
|
|
|
|
const dialogs = {
|
|
current: document.getElementById('dlg-current'),
|
|
a: document.getElementById('dlg-a'),
|
|
b: document.getElementById('dlg-b'),
|
|
c: document.getElementById('dlg-c')
|
|
}
|
|
|
|
document.querySelectorAll('.scheme-btn').forEach((btn) => {
|
|
btn.addEventListener('click', () => {
|
|
document.querySelectorAll('.scheme-btn').forEach((b) => b.classList.remove('is-active'))
|
|
btn.classList.add('is-active')
|
|
Object.values(dialogs).forEach((d) => d.classList.remove('is-show'))
|
|
dialogs[btn.dataset.scheme].classList.add('is-show')
|
|
})
|
|
})
|
|
|
|
document.getElementById('failToggle').addEventListener('change', (e) => {
|
|
document.body.classList.toggle('is-fail', e.target.checked)
|
|
})
|
|
|
|
document.querySelectorAll('.tab').forEach((tab) => {
|
|
tab.addEventListener('click', () => {
|
|
const pane = tab.closest('.evidence-pane')
|
|
pane.querySelectorAll('.tab').forEach((t) => t.classList.remove('is-active'))
|
|
pane.querySelectorAll('.tab-panel').forEach((p) => p.classList.remove('is-show'))
|
|
tab.classList.add('is-active')
|
|
pane.querySelector(`[data-panel="${tab.dataset.tab}"]`).classList.add('is-show')
|
|
})
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|