1760 lines
64 KiB
HTML
1760 lines
64 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>方案D:采集协议单 — 新增/编辑弹窗</title>
|
|
<style>
|
|
/* ── Reset & Base ── */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
html {
|
|
font-size: 14px;
|
|
}
|
|
body {
|
|
font-family:
|
|
-apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
|
|
'Helvetica Neue', Arial, sans-serif;
|
|
color: #1e293b;
|
|
background: #e2e8f0;
|
|
min-height: 100vh;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* ── Modal Overlay ── */
|
|
.overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 23, 42, 0.45);
|
|
backdrop-filter: none;
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
padding: 32px 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* ── Dialog Shell ── */
|
|
.dialog {
|
|
width: 1200px;
|
|
max-width: 98vw;
|
|
background: #f5f7fa;
|
|
border-radius: 16px;
|
|
box-shadow:
|
|
0 20px 60px rgba(0, 0, 0, 0.15),
|
|
0 0 0 1px rgba(0, 0, 0, 0.04);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
margin: auto 0;
|
|
}
|
|
|
|
/* ── Dialog Header ── */
|
|
.dialog-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20px 28px;
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
color: #fff;
|
|
flex-shrink: 0;
|
|
}
|
|
.dialog-header h2 {
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
.dialog-header .protocol-id {
|
|
opacity: 0.85;
|
|
font-weight: 400;
|
|
margin-left: 8px;
|
|
}
|
|
.dialog-close {
|
|
width: 36px;
|
|
height: 36px;
|
|
border: none;
|
|
background: rgba(255, 255, 255, 0.18);
|
|
border-radius: 10px;
|
|
color: #fff;
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.2s;
|
|
}
|
|
.dialog-close:hover {
|
|
background: rgba(255, 255, 255, 0.32);
|
|
}
|
|
|
|
/* ── Dialog Body ── */
|
|
.dialog-body {
|
|
padding: 0;
|
|
overflow-y: auto;
|
|
max-height: calc(100vh - 160px);
|
|
flex: 1;
|
|
}
|
|
.dialog-body-inner {
|
|
padding: 24px 28px;
|
|
}
|
|
|
|
/* ── Sticky Tab Bar ── */
|
|
.tab-bar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
background: #f5f7fa;
|
|
padding: 16px 28px 0;
|
|
display: flex;
|
|
gap: 6px;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
.tab-pill {
|
|
padding: 8px 20px;
|
|
border-radius: 8px 8px 0 0;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: #64748b;
|
|
cursor: pointer;
|
|
border: none;
|
|
background: transparent;
|
|
transition: all 0.25s;
|
|
position: relative;
|
|
}
|
|
.tab-pill:hover {
|
|
color: #059669;
|
|
background: rgba(16, 185, 129, 0.05);
|
|
}
|
|
.tab-pill.active {
|
|
background: #fff;
|
|
color: #10b981;
|
|
font-weight: 600;
|
|
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
|
|
}
|
|
.tab-pill.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -1px;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: #fff;
|
|
}
|
|
|
|
/* ── Section Panes (all visible, scroll-to nav) ── */
|
|
.form-section {
|
|
}
|
|
.form-section + .form-section {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* ── Dialog Footer ── */
|
|
.dialog-footer {
|
|
padding: 16px 28px;
|
|
background: #fff;
|
|
border-top: 1px solid #e2e8f0;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
.btn {
|
|
padding: 10px 28px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
border: 1px solid transparent;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.btn-ghost {
|
|
background: #fff;
|
|
border-color: #d1d5db;
|
|
color: #374151;
|
|
}
|
|
.btn-ghost:hover {
|
|
border-color: #10b981;
|
|
color: #10b981;
|
|
background: #ecfdf5;
|
|
}
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
color: #fff;
|
|
border: none;
|
|
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
|
|
}
|
|
.btn-primary:hover {
|
|
box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
|
|
transform: translateY(-1px);
|
|
}
|
|
.btn-primary:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════
|
|
SECTION CARDS
|
|
═══════════════════════════════════════════ */
|
|
.section-card {
|
|
border-radius: 12px;
|
|
padding: 22px 24px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
|
|
transition:
|
|
transform 0.2s,
|
|
box-shadow 0.2s;
|
|
position: relative;
|
|
}
|
|
.section-card:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
}
|
|
.section-card.bg-white {
|
|
background: #fff;
|
|
}
|
|
.section-card.bg-green {
|
|
background: #f0fdf4;
|
|
}
|
|
.section-card.bg-gray {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
/* Section Title */
|
|
.section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 18px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
.section-title-left {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.section-title-left::before {
|
|
content: '';
|
|
width: 3px;
|
|
height: 18px;
|
|
background: #10b981;
|
|
border-radius: 2px;
|
|
margin-right: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
.section-title h3 {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════
|
|
FORM ELEMENTS
|
|
═══════════════════════════════════════════ */
|
|
.form-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 16px 20px;
|
|
}
|
|
.form-grid.col-2 {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
.form-item {
|
|
}
|
|
.form-item.full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
.form-label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
margin-bottom: 6px;
|
|
font-weight: 500;
|
|
}
|
|
.form-label-tip {
|
|
font-size: 12px;
|
|
color: #94a3b8;
|
|
font-weight: 400;
|
|
margin-left: 4px;
|
|
}
|
|
.form-input,
|
|
.form-select,
|
|
.form-textarea {
|
|
width: 100%;
|
|
border-radius: 6px;
|
|
border: 1px solid #d1d5db;
|
|
padding: 8px 12px;
|
|
font-size: 14px;
|
|
color: #1e293b;
|
|
font-family: inherit;
|
|
transition:
|
|
border-color 0.2s,
|
|
box-shadow 0.2s;
|
|
background: #fff;
|
|
}
|
|
.form-input:focus,
|
|
.form-select:focus,
|
|
.form-textarea:focus {
|
|
outline: none;
|
|
border-color: #10b981;
|
|
box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
|
|
}
|
|
.form-input::placeholder {
|
|
color: #94a3b8;
|
|
}
|
|
.form-textarea {
|
|
resize: vertical;
|
|
min-height: 72px;
|
|
line-height: 1.5;
|
|
}
|
|
.form-select {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 10px center;
|
|
padding-right: 30px;
|
|
cursor: pointer;
|
|
}
|
|
.form-input[disabled],
|
|
.form-select[disabled] {
|
|
background: #f1f5f9;
|
|
color: #64748b;
|
|
cursor: not-allowed;
|
|
border-color: #e2e8f0;
|
|
}
|
|
|
|
/* ── Radio Group ── */
|
|
.radio-group {
|
|
display: flex;
|
|
gap: 16px;
|
|
padding-top: 4px;
|
|
}
|
|
.radio-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: #374151;
|
|
}
|
|
.radio-item input[type='radio'] {
|
|
appearance: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid #d1d5db;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
position: relative;
|
|
}
|
|
.radio-item input[type='radio']:checked {
|
|
border-color: #10b981;
|
|
}
|
|
.radio-item input[type='radio']:checked::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: #10b981;
|
|
}
|
|
|
|
/* ── Upload Card Row ── */
|
|
.upload-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
}
|
|
.upload-trigger {
|
|
width: 120px;
|
|
height: 96px;
|
|
border: 2px dashed #a7f3d0;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
background: #f0fdf4;
|
|
}
|
|
.upload-trigger:hover {
|
|
border-color: #10b981;
|
|
border-style: solid;
|
|
background: #ecfdf5;
|
|
}
|
|
.upload-trigger .plus-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background: rgba(16, 185, 129, 0.1);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #10b981;
|
|
font-size: 18px;
|
|
font-weight: 300;
|
|
transition: background 0.2s;
|
|
}
|
|
.upload-trigger:hover .plus-icon {
|
|
background: rgba(16, 185, 129, 0.2);
|
|
}
|
|
.upload-trigger .upload-text {
|
|
font-size: 11px;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.upload-card {
|
|
width: 120px;
|
|
height: 96px;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
background: #f8fafc;
|
|
}
|
|
.upload-card:hover {
|
|
border-color: #10b981;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
}
|
|
.upload-card .thumb-preview {
|
|
width: 100%;
|
|
height: 64px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #f1f5f9;
|
|
}
|
|
.upload-card .thumb-preview svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
stroke: #94a3b8;
|
|
fill: none;
|
|
}
|
|
.upload-card .thumb-name {
|
|
font-size: 10px;
|
|
color: #64748b;
|
|
text-align: center;
|
|
padding: 4px 6px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
border-top: 1px solid #f1f5f9;
|
|
background: #fff;
|
|
}
|
|
.upload-card .delete-btn {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
color: #fff;
|
|
border: none;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
}
|
|
.upload-card:hover .delete-btn {
|
|
display: flex;
|
|
}
|
|
.upload-card .delete-btn:hover {
|
|
background: rgba(220, 38, 38, 0.8);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════
|
|
CLIENT SUB CARDS
|
|
═══════════════════════════════════════════ */
|
|
.client-sub-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 16px;
|
|
}
|
|
.client-sub-card {
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
padding: 18px 20px;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
border: 1px solid rgba(0, 0, 0, 0.03);
|
|
transition:
|
|
transform 0.2s,
|
|
box-shadow 0.2s;
|
|
}
|
|
.client-sub-card:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
|
|
}
|
|
.sub-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 14px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
.sub-card-header .icon {
|
|
font-size: 22px;
|
|
line-height: 1;
|
|
}
|
|
.sub-card-header h4 {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
.sub-card-header .search-link {
|
|
margin-left: auto;
|
|
font-size: 12px;
|
|
color: #10b981;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
}
|
|
.sub-card-header .search-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════
|
|
STATUS BADGES
|
|
═══════════════════════════════════════════ */
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 2px 10px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
}
|
|
.badge-green {
|
|
background: #ecfdf5;
|
|
color: #059669;
|
|
}
|
|
.badge-blue {
|
|
background: #eff6ff;
|
|
color: #2563eb;
|
|
}
|
|
.badge-amber {
|
|
background: #fffbeb;
|
|
color: #d97706;
|
|
}
|
|
.badge-gray {
|
|
background: #f1f5f9;
|
|
color: #64748b;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════
|
|
SAMPLE CARDS (CARD-BASED LAYOUT)
|
|
═══════════════════════════════════════════ */
|
|
.sample-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
.btn-add {
|
|
padding: 8px 18px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
border: none;
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
color: #fff;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
|
|
}
|
|
.btn-add:hover {
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.sample-card {
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 10px;
|
|
padding: 18px 20px;
|
|
margin-bottom: 14px;
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
.sample-card:hover {
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
|
|
}
|
|
.sample-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
.sample-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
.sample-title .sample-num {
|
|
color: #64748b;
|
|
font-weight: 500;
|
|
margin-right: 4px;
|
|
}
|
|
.sample-actions {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.sample-delete {
|
|
width: 28px;
|
|
height: 28px;
|
|
border: none;
|
|
background: transparent;
|
|
color: #94a3b8;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
}
|
|
.sample-delete:hover {
|
|
background: #fef2f2;
|
|
color: #dc2626;
|
|
}
|
|
|
|
/* ── Transport Panel (Collapsible) ── */
|
|
.transport-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: #64748b;
|
|
margin-top: 14px;
|
|
padding: 10px 14px;
|
|
background: #f8fafc;
|
|
border-radius: 8px;
|
|
border: 1px solid #e2e8f0;
|
|
transition: all 0.2s;
|
|
user-select: none;
|
|
}
|
|
.transport-toggle:hover {
|
|
background: #f1f5f9;
|
|
color: #374151;
|
|
}
|
|
.transport-toggle .chevron {
|
|
display: inline-block;
|
|
transition: transform 0.3s;
|
|
font-size: 12px;
|
|
}
|
|
.transport-toggle.expanded .chevron {
|
|
transform: rotate(90deg);
|
|
}
|
|
.transport-toggle .summary {
|
|
margin-left: auto;
|
|
font-size: 12px;
|
|
color: #94a3b8;
|
|
font-weight: 400;
|
|
}
|
|
.transport-body {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition:
|
|
max-height 0.35s ease,
|
|
padding 0.35s ease;
|
|
background: #f8fafc;
|
|
border-radius: 0 0 8px 8px;
|
|
margin-top: 0;
|
|
padding: 0 16px;
|
|
}
|
|
.transport-body.open {
|
|
max-height: 400px;
|
|
padding: 16px;
|
|
margin-top: -1px;
|
|
border: 1px solid #e2e8f0;
|
|
border-top: none;
|
|
}
|
|
|
|
/* ── Empty State ── */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: #94a3b8;
|
|
font-size: 14px;
|
|
}
|
|
.empty-state .empty-icon {
|
|
font-size: 36px;
|
|
margin-bottom: 10px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════
|
|
PAYMENT SECTION
|
|
═══════════════════════════════════════════ */
|
|
.payment-main-card {
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
padding: 18px 20px;
|
|
margin-bottom: 18px;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
border: 1px solid rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.payment-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
margin-top: 18px;
|
|
}
|
|
|
|
/* Detail Card — Collapsible */
|
|
.detail-card {
|
|
background: #fff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
.detail-card:hover {
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
}
|
|
.detail-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 14px 18px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: background 0.2s;
|
|
}
|
|
.detail-header:hover {
|
|
background: #f8fafc;
|
|
}
|
|
.detail-chevron {
|
|
font-size: 12px;
|
|
color: #94a3b8;
|
|
transition: transform 0.3s;
|
|
flex-shrink: 0;
|
|
}
|
|
.detail-card.expanded .detail-chevron {
|
|
transform: rotate(90deg);
|
|
}
|
|
.detail-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
.detail-amount {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
margin-left: 4px;
|
|
}
|
|
.detail-amount.green {
|
|
color: #059669;
|
|
}
|
|
.detail-amount.amber {
|
|
color: #d97706;
|
|
}
|
|
.detail-summary {
|
|
margin-left: auto;
|
|
font-size: 12px;
|
|
color: #94a3b8;
|
|
}
|
|
.detail-delete {
|
|
width: 28px;
|
|
height: 28px;
|
|
border: none;
|
|
background: transparent;
|
|
color: #94a3b8;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
margin-left: 6px;
|
|
}
|
|
.detail-delete:hover {
|
|
background: #fef2f2;
|
|
color: #dc2626;
|
|
}
|
|
.detail-body {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.4s ease;
|
|
}
|
|
.detail-card.expanded .detail-body {
|
|
max-height: 600px;
|
|
}
|
|
.detail-body-inner {
|
|
padding: 0 18px 18px;
|
|
border-top: 1px solid #f1f5f9;
|
|
}
|
|
|
|
/* ── Voucher Upload ── */
|
|
.voucher-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-top: 14px;
|
|
padding-top: 12px;
|
|
border-top: 1px dashed #e2e8f0;
|
|
}
|
|
.voucher-label {
|
|
font-size: 12px;
|
|
color: #94a3b8;
|
|
flex-shrink: 0;
|
|
}
|
|
.btn-upload-sm {
|
|
padding: 5px 14px;
|
|
border-radius: 6px;
|
|
border: 1px solid #a7f3d0;
|
|
background: #f0fdf4;
|
|
color: #059669;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
.btn-upload-sm:hover {
|
|
background: #ecfdf5;
|
|
border-color: #10b981;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════
|
|
RESPONSIVE
|
|
═══════════════════════════════════════════ */
|
|
@media (max-width: 900px) {
|
|
.form-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
.form-grid.col-2 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.client-sub-cards {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.dialog-body-inner {
|
|
padding: 16px;
|
|
}
|
|
}
|
|
@media (max-width: 600px) {
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.upload-row {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
/* ── Page Title (for demo context) ── */
|
|
.demo-page-title {
|
|
text-align: center;
|
|
color: #64748b;
|
|
font-size: 13px;
|
|
padding: 16px;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
/* ── Section divider ── */
|
|
.section-subtitle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #374151;
|
|
margin: 18px 0 14px;
|
|
}
|
|
.section-subtitle::before {
|
|
content: '';
|
|
width: 2px;
|
|
height: 12px;
|
|
background: #10b981;
|
|
border-radius: 1px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="overlay" id="overlay">
|
|
<div class="dialog">
|
|
<!-- ── Header ── -->
|
|
<div class="dialog-header">
|
|
<h2>编辑协议单 <span class="protocol-id">— P2025-0501-001</span></h2>
|
|
<button
|
|
class="dialog-close"
|
|
title="关闭"
|
|
onclick="document.getElementById('overlay').style.display='none'"
|
|
>✕</button
|
|
>
|
|
</div>
|
|
|
|
<!-- ── Sticky Tab Bar ── -->
|
|
<div class="tab-bar" id="tabBar">
|
|
<button
|
|
class="tab-pill active"
|
|
data-section="section-basic"
|
|
onclick="scrollToSection(this, 'section-basic')"
|
|
>基本信息</button
|
|
>
|
|
<button
|
|
class="tab-pill"
|
|
data-section="section-client"
|
|
onclick="scrollToSection(this, 'section-client')"
|
|
>客户信息</button
|
|
>
|
|
<button
|
|
class="tab-pill"
|
|
data-section="section-collect"
|
|
onclick="scrollToSection(this, 'section-collect')"
|
|
>采集信息</button
|
|
>
|
|
<button
|
|
class="tab-pill"
|
|
data-section="section-sample"
|
|
onclick="scrollToSection(this, 'section-sample')"
|
|
>样本及运输</button
|
|
>
|
|
<button
|
|
class="tab-pill"
|
|
data-section="section-payment"
|
|
onclick="scrollToSection(this, 'section-payment')"
|
|
>缴费信息</button
|
|
>
|
|
</div>
|
|
|
|
<!-- ── Body ── -->
|
|
<div class="dialog-body">
|
|
<div class="dialog-body-inner">
|
|
<!-- ════════════════════════════════
|
|
TAB 1: 基本信息
|
|
════════════════════════════════ -->
|
|
<div class="form-section" id="section-basic">
|
|
<div class="section-card bg-white">
|
|
<div class="section-title">
|
|
<div class="section-title-left"><h3>基本信息</h3></div>
|
|
</div>
|
|
<div class="form-grid">
|
|
<div class="form-item">
|
|
<label class="form-label">协议号</label>
|
|
<select class="form-select">
|
|
<option selected>P2025-0501-001</option>
|
|
<option>P2025-0501-002</option>
|
|
<option>P2025-0501-003</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">协议状态</label>
|
|
<select class="form-select">
|
|
<option>待生效</option>
|
|
<option selected>生效中</option>
|
|
<option>已过期</option>
|
|
<option>已作废</option>
|
|
<option>转科研</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">登记日期</label>
|
|
<input type="date" class="form-input" value="2025-05-08" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">采集专员</label>
|
|
<select class="form-select">
|
|
<option>请选择采集专员</option>
|
|
<option selected>李专员</option>
|
|
<option>王专员</option>
|
|
<option>张专员</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">创建时间</label>
|
|
<input type="text" class="form-input" value="2025-05-08 08:30:22" disabled />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">最后更新</label>
|
|
<input type="text" class="form-input" value="2025-05-08 09:15:40" disabled />
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 协议附件 -->
|
|
<div style="margin-top: 18px">
|
|
<div class="form-label" style="margin-bottom: 10px">协议附件</div>
|
|
<div class="upload-row">
|
|
<div class="upload-card">
|
|
<div class="thumb-preview">
|
|
<svg viewBox="0 0 24 24" stroke-width="1.5">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />
|
|
<polyline points="14 2 14 8 20 8" />
|
|
</svg>
|
|
</div>
|
|
<div class="thumb-name">知情同意书.pdf</div>
|
|
<button class="delete-btn" title="删除">✕</button>
|
|
</div>
|
|
<div class="upload-card">
|
|
<div class="thumb-preview">
|
|
<svg viewBox="0 0 24 24" stroke-width="1.5">
|
|
<rect x="3" y="3" width="18" height="18" rx="2" />
|
|
<circle cx="8.5" cy="8.5" r="1.5" />
|
|
<path d="m21 15-5-5L5 21" />
|
|
</svg>
|
|
</div>
|
|
<div class="thumb-name">身份证明.jpg</div>
|
|
<button class="delete-btn" title="删除">✕</button>
|
|
</div>
|
|
<div class="upload-trigger">
|
|
<div class="plus-icon">+</div>
|
|
<div class="upload-text">上传附件</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 备注 -->
|
|
<div style="margin-top: 18px">
|
|
<label class="form-label">备注</label>
|
|
<textarea class="form-textarea" rows="3" placeholder="请输入备注信息">
|
|
客户要求加急处理,产妇预产期为5月8日,需提前安排采集人员到位。</textarea
|
|
>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ════════════════════════════════
|
|
TAB 2: 客户信息
|
|
════════════════════════════════ -->
|
|
<div class="form-section" id="section-client">
|
|
<div class="section-card bg-green">
|
|
<div class="section-title">
|
|
<div class="section-title-left"><h3>客户信息</h3></div>
|
|
</div>
|
|
<div class="client-sub-cards">
|
|
<!-- 母亲信息 -->
|
|
<div class="client-sub-card">
|
|
<div class="sub-card-header">
|
|
<span class="icon">🤱</span>
|
|
<h4>母亲信息</h4>
|
|
<span class="search-link">关联客户 ▸</span>
|
|
</div>
|
|
<div style="margin-bottom: 12px">
|
|
<label class="form-label">关联客户</label>
|
|
<select class="form-select">
|
|
<option selected>王美丽 · 138****5678</option>
|
|
<option>李小红 · 139****1234</option>
|
|
<option>刘婷婷 · 137****5678</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-grid col-2">
|
|
<div class="form-item">
|
|
<label class="form-label">姓名</label>
|
|
<input type="text" class="form-input" value="王美丽" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">电话</label>
|
|
<input type="text" class="form-input" value="138****5678" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">身份证号</label>
|
|
<input type="text" class="form-input" value="3401****1234" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">出生年月</label>
|
|
<input type="month" class="form-input" value="1992-06" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">民族</label>
|
|
<select class="form-select">
|
|
<option selected>汉族</option>
|
|
<option>回族</option>
|
|
<option>满族</option>
|
|
<option>壮族</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">血型</label>
|
|
<select class="form-select">
|
|
<option>A型</option>
|
|
<option selected>B型</option>
|
|
<option>O型</option>
|
|
<option>AB型</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div style="margin-top: 12px">
|
|
<label class="form-label">家庭住址</label>
|
|
<input
|
|
type="text"
|
|
class="form-input"
|
|
value="安徽省合肥市蜀山区望江西路XX小区X栋X单元XXX室"
|
|
style="width: 100%"
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 父亲信息 -->
|
|
<div class="client-sub-card">
|
|
<div class="sub-card-header">
|
|
<span class="icon">👨</span>
|
|
<h4>父亲信息</h4>
|
|
</div>
|
|
<div class="form-grid col-2">
|
|
<div class="form-item">
|
|
<label class="form-label">姓名</label>
|
|
<input type="text" class="form-input" value="张建国" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">电话</label>
|
|
<input type="text" class="form-input" value="139****8901" />
|
|
</div>
|
|
<div class="form-item full-width">
|
|
<label class="form-label">身份证号</label>
|
|
<input type="text" class="form-input" value="3401****5678" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 新生儿信息 -->
|
|
<div class="client-sub-card">
|
|
<div class="sub-card-header">
|
|
<span class="icon">👶</span>
|
|
<h4>新生儿信息</h4>
|
|
</div>
|
|
<div class="form-grid col-2">
|
|
<div class="form-item">
|
|
<label class="form-label">姓名</label>
|
|
<input type="text" class="form-input" value="张小明" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">性别</label>
|
|
<div class="radio-group">
|
|
<label class="radio-item">
|
|
<input type="radio" name="babyGender" checked /> 男
|
|
</label>
|
|
<label class="radio-item">
|
|
<input type="radio" name="babyGender" /> 女
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">分娩时间</label>
|
|
<input type="datetime-local" class="form-input" value="2025-05-08T06:30" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">分娩方式</label>
|
|
<select class="form-select">
|
|
<option>顺产</option>
|
|
<option selected>剖宫产</option>
|
|
<option>助产</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">胎次</label>
|
|
<input type="number" class="form-input" value="1" min="1" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">体重(克)</label>
|
|
<input type="number" class="form-input" value="3250" min="0" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">Apgar 1min</label>
|
|
<input type="number" class="form-input" value="9" min="0" max="10" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">Apgar 5min</label>
|
|
<input type="number" class="form-input" value="10" min="0" max="10" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ════════════════════════════════
|
|
TAB 3: 采集信息
|
|
════════════════════════════════ -->
|
|
<div class="form-section" id="section-collect">
|
|
<div class="section-card bg-white">
|
|
<div class="section-title">
|
|
<div class="section-title-left"><h3>采集信息</h3></div>
|
|
</div>
|
|
<div class="form-grid">
|
|
<div class="form-item">
|
|
<label class="form-label">采集地区</label>
|
|
<select class="form-select">
|
|
<option>华北地区</option>
|
|
<option selected>华东地区</option>
|
|
<option>华南地区</option>
|
|
<option>西南地区</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">采集医院</label>
|
|
<select class="form-select">
|
|
<option>请选择采集医院</option>
|
|
<option>安徽省立医院</option>
|
|
<option selected>合肥市第一人民医院</option>
|
|
<option>安医大一附院</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">采集医护</label>
|
|
<input
|
|
type="text"
|
|
class="form-input"
|
|
value="陈护士"
|
|
placeholder="请输入采集医护姓名"
|
|
/>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">销售人员</label>
|
|
<select class="form-select">
|
|
<option>请选择销售人员</option>
|
|
<option selected>赵经理</option>
|
|
<option>钱经理</option>
|
|
<option>孙经理</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">样本采集时间</label>
|
|
<input type="datetime-local" class="form-input" value="2025-05-08T07:15" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">母血采集时间</label>
|
|
<input type="datetime-local" class="form-input" value="2025-05-08T07:20" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ════════════════════════════════
|
|
TAB 4: 样本及运输信息
|
|
════════════════════════════════ -->
|
|
<div class="form-section" id="section-sample">
|
|
<div class="section-card bg-white">
|
|
<div class="section-title">
|
|
<div class="section-title-left"><h3>样本及运输信息</h3></div>
|
|
</div>
|
|
|
|
<div class="sample-toolbar">
|
|
<button class="btn-add" onclick="alert('添加样本')">+ 添加样本</button>
|
|
</div>
|
|
|
|
<!-- Sample Card 1 -->
|
|
<div class="sample-card">
|
|
<div class="sample-header">
|
|
<div class="sample-title">
|
|
<span class="sample-num">样本 #1 ·</span> 脐血干细胞
|
|
</div>
|
|
<span class="badge badge-green">已入库</span>
|
|
<div class="sample-actions">
|
|
<button class="sample-delete" title="删除样本">🗑</button>
|
|
</div>
|
|
</div>
|
|
<div class="form-grid">
|
|
<div class="form-item">
|
|
<label class="form-label">样本类型</label>
|
|
<select class="form-select">
|
|
<option selected>脐血干细胞</option>
|
|
<option>脐带组织</option>
|
|
<option>胎盘干细胞</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">样本编码</label>
|
|
<select class="form-select">
|
|
<option selected>CB-20250508-001</option>
|
|
<option>CB-20250508-002</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">采集量</label>
|
|
<input type="number" class="form-input" value="120" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">单位</label>
|
|
<select class="form-select">
|
|
<option selected>ml</option>
|
|
<option>cm</option>
|
|
<option>g</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">价格</label>
|
|
<input type="text" class="form-input" value="¥19,800" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">存储年限</label>
|
|
<input type="number" class="form-input" value="20" />
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Transport Panel -->
|
|
<div class="transport-toggle expanded" onclick="toggleTransport(this)">
|
|
<span class="chevron">▶</span>
|
|
运输信息
|
|
<span class="summary">冷链专运 → 华东中心库</span>
|
|
</div>
|
|
<div class="transport-body open">
|
|
<div class="form-grid">
|
|
<div class="form-item">
|
|
<label class="form-label">运输类型</label>
|
|
<select class="form-select">
|
|
<option selected>冷链专运</option>
|
|
<option>常温运输</option>
|
|
<option>快递运输</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">目的站点</label>
|
|
<select class="form-select">
|
|
<option selected>华东中心库</option>
|
|
<option>南京分库</option>
|
|
<option>上海中心库</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">预计到达</label>
|
|
<input type="datetime-local" class="form-input" value="2025-05-09T18:00" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">快递公司</label>
|
|
<select class="form-select">
|
|
<option selected>顺丰</option>
|
|
<option>京东</option>
|
|
<option>中通</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">快递单号</label>
|
|
<input
|
|
type="text"
|
|
class="form-input"
|
|
value="SF1234567890"
|
|
placeholder="请输入快递单号"
|
|
/>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">快递费用</label>
|
|
<input type="text" class="form-input" value="¥50" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Sample Card 2 -->
|
|
<div class="sample-card">
|
|
<div class="sample-header">
|
|
<div class="sample-title">
|
|
<span class="sample-num">样本 #2 ·</span> 脐带组织
|
|
</div>
|
|
<span class="badge badge-blue">运输中</span>
|
|
<div class="sample-actions">
|
|
<button class="sample-delete" title="删除样本">🗑</button>
|
|
</div>
|
|
</div>
|
|
<div class="form-grid">
|
|
<div class="form-item">
|
|
<label class="form-label">样本类型</label>
|
|
<select class="form-select">
|
|
<option>脐血干细胞</option>
|
|
<option selected>脐带组织</option>
|
|
<option>胎盘干细胞</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">样本编码</label>
|
|
<input type="text" class="form-input" value="UC-20250508-001" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">采集量</label>
|
|
<input type="number" class="form-input" value="15" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">单位</label>
|
|
<select class="form-select">
|
|
<option>ml</option>
|
|
<option selected>cm</option>
|
|
<option>g</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">价格</label>
|
|
<input type="text" class="form-input" value="¥9,800" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">存储年限</label>
|
|
<input type="number" class="form-input" value="20" />
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Transport Panel (Collapsed) -->
|
|
<div class="transport-toggle" onclick="toggleTransport(this)">
|
|
<span class="chevron">▶</span>
|
|
运输信息
|
|
<span class="summary">冷链专运 → 华东中心库</span>
|
|
</div>
|
|
<div class="transport-body">
|
|
<div class="form-grid">
|
|
<div class="form-item">
|
|
<label class="form-label">运输类型</label>
|
|
<select class="form-select">
|
|
<option selected>冷链专运</option>
|
|
<option>常温运输</option>
|
|
<option>快递运输</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">目的站点</label>
|
|
<select class="form-select">
|
|
<option selected>华东中心库</option>
|
|
<option>南京分库</option>
|
|
<option>上海中心库</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">预计到达</label>
|
|
<input type="datetime-local" class="form-input" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">快递公司</label>
|
|
<select class="form-select">
|
|
<option>顺丰</option>
|
|
<option selected>京东</option>
|
|
<option>中通</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">快递单号</label>
|
|
<input
|
|
type="text"
|
|
class="form-input"
|
|
value="JD9876543210"
|
|
placeholder="请输入快递单号"
|
|
/>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">快递费用</label>
|
|
<input type="text" class="form-input" value="¥35" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ════════════════════════════════
|
|
TAB 5: 缴费信息
|
|
════════════════════════════════ -->
|
|
<div class="form-section" id="section-payment">
|
|
<div class="section-card bg-gray">
|
|
<div class="section-title">
|
|
<div class="section-title-left"><h3>缴费信息</h3></div>
|
|
</div>
|
|
|
|
<!-- 缴费主表 -->
|
|
<div class="payment-main-card">
|
|
<div class="section-subtitle">缴费主表</div>
|
|
<div class="form-grid">
|
|
<div class="form-item">
|
|
<label class="form-label">缴费模式</label>
|
|
<div class="radio-group">
|
|
<label class="radio-item">
|
|
<input type="radio" name="payMode" /> 趸交
|
|
</label>
|
|
<label class="radio-item">
|
|
<input type="radio" name="payMode" checked /> 分期
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">合同金额</label>
|
|
<input type="text" class="form-input" value="¥42,200" disabled />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">分期期数</label>
|
|
<input type="number" class="form-input" value="3" min="1" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">每期间隔(月)</label>
|
|
<input type="number" class="form-input" value="6" min="1" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">分期开始时间</label>
|
|
<input type="date" class="form-input" value="2025-05-08" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 缴费明细 -->
|
|
<div class="section-subtitle">缴费明细</div>
|
|
<div style="margin-bottom: 14px">
|
|
<button class="btn-add">+ 添加明细</button>
|
|
</div>
|
|
|
|
<div class="payment-details">
|
|
<!-- Detail Card 1 (Expanded) -->
|
|
<div class="detail-card expanded">
|
|
<div class="detail-header" onclick="toggleDetail(this)">
|
|
<span class="detail-chevron">▶</span>
|
|
<span class="detail-title">首付</span>
|
|
<span class="detail-amount green">¥20,000</span>
|
|
<span class="badge badge-green">已缴费</span>
|
|
<span class="detail-summary">微信 · 2025-05-09</span>
|
|
<button class="detail-delete" onclick="event.stopPropagation()" title="删除"
|
|
>🗑</button
|
|
>
|
|
</div>
|
|
<div class="detail-body">
|
|
<div class="detail-body-inner">
|
|
<div class="form-grid" style="margin-top: 16px">
|
|
<div class="form-item">
|
|
<label class="form-label">应缴费金额</label>
|
|
<input type="text" class="form-input" value="¥20,000" disabled />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">转账方式</label>
|
|
<select class="form-select">
|
|
<option>银行卡转账</option>
|
|
<option selected>微信</option>
|
|
<option>支付宝</option>
|
|
<option>现金</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">转账金额</label>
|
|
<input type="text" class="form-input" value="¥20,000" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">转账时间</label>
|
|
<input
|
|
type="datetime-local"
|
|
class="form-input"
|
|
value="2025-05-09T10:30"
|
|
/>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">缴费状态</label>
|
|
<select class="form-select">
|
|
<option>待缴费</option>
|
|
<option selected>已缴费</option>
|
|
<option>已退款</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">应缴费时间</label>
|
|
<input type="date" class="form-input" value="2025-05-08" />
|
|
</div>
|
|
</div>
|
|
<div class="voucher-row">
|
|
<span class="voucher-label">转账凭证</span>
|
|
<div class="upload-card" style="width: 88px; height: 64px">
|
|
<div class="thumb-preview" style="height: 40px">
|
|
<svg
|
|
viewBox="0 0 24 24"
|
|
stroke-width="1.5"
|
|
style="width: 18px; height: 18px"
|
|
>
|
|
<rect x="3" y="3" width="18" height="18" rx="2" />
|
|
<circle cx="8.5" cy="8.5" r="1.5" />
|
|
<path d="m21 15-5-5L5 21" />
|
|
</svg>
|
|
</div>
|
|
<div class="thumb-name">凭证.jpg</div>
|
|
<button class="delete-btn" title="删除">✕</button>
|
|
</div>
|
|
<button class="btn-upload-sm">上传凭证</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Detail Card 2 (Collapsed) -->
|
|
<div class="detail-card">
|
|
<div class="detail-header" onclick="toggleDetail(this)">
|
|
<span class="detail-chevron">▶</span>
|
|
<span class="detail-title">二期款</span>
|
|
<span class="detail-amount amber">¥16,667</span>
|
|
<span class="badge badge-amber">待缴费</span>
|
|
<span class="detail-summary">应缴 2025-06-08</span>
|
|
<button class="detail-delete" onclick="event.stopPropagation()" title="删除"
|
|
>🗑</button
|
|
>
|
|
</div>
|
|
<div class="detail-body">
|
|
<div class="detail-body-inner">
|
|
<div class="form-grid" style="margin-top: 16px">
|
|
<div class="form-item">
|
|
<label class="form-label">应缴费金额</label>
|
|
<input type="text" class="form-input" value="¥16,667" disabled />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">转账方式</label>
|
|
<select class="form-select">
|
|
<option>请选择转账方式</option>
|
|
<option>银行卡转账</option>
|
|
<option>微信</option>
|
|
<option>支付宝</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">转账金额</label>
|
|
<input type="text" class="form-input" placeholder="请输入转账金额" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">转账时间</label>
|
|
<input type="datetime-local" class="form-input" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">缴费状态</label>
|
|
<select class="form-select">
|
|
<option selected>待缴费</option>
|
|
<option>已缴费</option>
|
|
<option>已退款</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">应缴费时间</label>
|
|
<input type="date" class="form-input" value="2025-06-08" />
|
|
</div>
|
|
</div>
|
|
<div class="voucher-row">
|
|
<span class="voucher-label">转账凭证</span>
|
|
<button class="btn-upload-sm">上传凭证</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Detail Card 3 (Collapsed) -->
|
|
<div class="detail-card">
|
|
<div class="detail-header" onclick="toggleDetail(this)">
|
|
<span class="detail-chevron">▶</span>
|
|
<span class="detail-title">尾款</span>
|
|
<span class="detail-amount amber">¥5,533</span>
|
|
<span class="badge badge-amber">待缴费</span>
|
|
<span class="detail-summary">应缴 2025-12-08</span>
|
|
<button class="detail-delete" onclick="event.stopPropagation()" title="删除"
|
|
>🗑</button
|
|
>
|
|
</div>
|
|
<div class="detail-body">
|
|
<div class="detail-body-inner">
|
|
<div class="form-grid" style="margin-top: 16px">
|
|
<div class="form-item">
|
|
<label class="form-label">应缴费金额</label>
|
|
<input type="text" class="form-input" value="¥5,533" disabled />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">转账方式</label>
|
|
<select class="form-select">
|
|
<option>请选择转账方式</option>
|
|
<option>银行卡转账</option>
|
|
<option>微信</option>
|
|
<option>支付宝</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">转账金额</label>
|
|
<input type="text" class="form-input" placeholder="请输入转账金额" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">转账时间</label>
|
|
<input type="datetime-local" class="form-input" />
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">缴费状态</label>
|
|
<select class="form-select">
|
|
<option selected>待缴费</option>
|
|
<option>已缴费</option>
|
|
<option>已退款</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-item">
|
|
<label class="form-label">应缴费时间</label>
|
|
<input type="date" class="form-input" value="2025-12-08" />
|
|
</div>
|
|
</div>
|
|
<div class="voucher-row">
|
|
<span class="voucher-label">转账凭证</span>
|
|
<button class="btn-upload-sm">上传凭证</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> </div
|
|
><!-- /dialog-body -->
|
|
|
|
<!-- ── Footer ── -->
|
|
<div class="dialog-footer">
|
|
<button class="btn btn-ghost">取消</button>
|
|
<button class="btn btn-primary">✓ 确定</button>
|
|
</div> </div
|
|
><!-- /dialog --> </div
|
|
><!-- /overlay -->
|
|
|
|
<script>
|
|
// Scroll-to-section navigation
|
|
function scrollToSection(el, sectionId) {
|
|
var pills = document.querySelectorAll('.tab-pill')
|
|
pills.forEach(function (p) {
|
|
p.classList.remove('active')
|
|
})
|
|
el.classList.add('active')
|
|
var target = document.getElementById(sectionId)
|
|
if (target) {
|
|
var body = document.querySelector('.dialog-body')
|
|
var top = target.offsetTop - 60 // offset for sticky tab bar
|
|
body.scrollTo({ top: top, behavior: 'smooth' })
|
|
}
|
|
}
|
|
|
|
// Transport panel toggle
|
|
function toggleTransport(el) {
|
|
var body = el.nextElementSibling
|
|
var isOpen = body.classList.contains('open')
|
|
|
|
if (isOpen) {
|
|
body.classList.remove('open')
|
|
el.classList.remove('expanded')
|
|
} else {
|
|
body.classList.add('open')
|
|
el.classList.add('expanded')
|
|
}
|
|
}
|
|
|
|
// Detail card toggle
|
|
function toggleDetail(el) {
|
|
var card = el.closest('.detail-card')
|
|
var isExpanded = card.classList.contains('expanded')
|
|
|
|
if (isExpanded) {
|
|
card.classList.remove('expanded')
|
|
} else {
|
|
card.classList.add('expanded')
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|