demo-protocol-form-d.html 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759
  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>方案D:采集协议单 — 新增/编辑弹窗</title>
  7. <style>
  8. /* ── Reset & Base ── */
  9. *,
  10. *::before,
  11. *::after {
  12. box-sizing: border-box;
  13. margin: 0;
  14. padding: 0;
  15. }
  16. html {
  17. font-size: 14px;
  18. }
  19. body {
  20. font-family:
  21. -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
  22. 'Helvetica Neue', Arial, sans-serif;
  23. color: #1e293b;
  24. background: #e2e8f0;
  25. min-height: 100vh;
  26. line-height: 1.6;
  27. }
  28. /* ── Modal Overlay ── */
  29. .overlay {
  30. position: fixed;
  31. inset: 0;
  32. background: rgba(15, 23, 42, 0.45);
  33. backdrop-filter: none;
  34. z-index: 1000;
  35. display: flex;
  36. align-items: flex-start;
  37. justify-content: center;
  38. padding: 32px 0;
  39. overflow-y: auto;
  40. }
  41. /* ── Dialog Shell ── */
  42. .dialog {
  43. width: 1200px;
  44. max-width: 98vw;
  45. background: #f5f7fa;
  46. border-radius: 16px;
  47. box-shadow:
  48. 0 20px 60px rgba(0, 0, 0, 0.15),
  49. 0 0 0 1px rgba(0, 0, 0, 0.04);
  50. display: flex;
  51. flex-direction: column;
  52. overflow: hidden;
  53. flex-shrink: 0;
  54. margin: auto 0;
  55. }
  56. /* ── Dialog Header ── */
  57. .dialog-header {
  58. display: flex;
  59. align-items: center;
  60. justify-content: space-between;
  61. padding: 20px 28px;
  62. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  63. color: #fff;
  64. flex-shrink: 0;
  65. }
  66. .dialog-header h2 {
  67. font-size: 17px;
  68. font-weight: 600;
  69. letter-spacing: 0.3px;
  70. }
  71. .dialog-header .protocol-id {
  72. opacity: 0.85;
  73. font-weight: 400;
  74. margin-left: 8px;
  75. }
  76. .dialog-close {
  77. width: 36px;
  78. height: 36px;
  79. border: none;
  80. background: rgba(255, 255, 255, 0.18);
  81. border-radius: 10px;
  82. color: #fff;
  83. font-size: 20px;
  84. cursor: pointer;
  85. display: flex;
  86. align-items: center;
  87. justify-content: center;
  88. transition: background 0.2s;
  89. }
  90. .dialog-close:hover {
  91. background: rgba(255, 255, 255, 0.32);
  92. }
  93. /* ── Dialog Body ── */
  94. .dialog-body {
  95. padding: 0;
  96. overflow-y: auto;
  97. max-height: calc(100vh - 160px);
  98. flex: 1;
  99. }
  100. .dialog-body-inner {
  101. padding: 24px 28px;
  102. }
  103. /* ── Sticky Tab Bar ── */
  104. .tab-bar {
  105. position: sticky;
  106. top: 0;
  107. z-index: 100;
  108. background: #f5f7fa;
  109. padding: 16px 28px 0;
  110. display: flex;
  111. gap: 6px;
  112. border-bottom: 1px solid #e2e8f0;
  113. }
  114. .tab-pill {
  115. padding: 8px 20px;
  116. border-radius: 8px 8px 0 0;
  117. font-size: 13px;
  118. font-weight: 500;
  119. color: #64748b;
  120. cursor: pointer;
  121. border: none;
  122. background: transparent;
  123. transition: all 0.25s;
  124. position: relative;
  125. }
  126. .tab-pill:hover {
  127. color: #059669;
  128. background: rgba(16, 185, 129, 0.05);
  129. }
  130. .tab-pill.active {
  131. background: #fff;
  132. color: #10b981;
  133. font-weight: 600;
  134. box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  135. }
  136. .tab-pill.active::after {
  137. content: '';
  138. position: absolute;
  139. bottom: -1px;
  140. left: 0;
  141. right: 0;
  142. height: 2px;
  143. background: #fff;
  144. }
  145. /* ── Section Panes (all visible, scroll-to nav) ── */
  146. .form-section {
  147. }
  148. .form-section + .form-section {
  149. margin-top: 20px;
  150. }
  151. /* ── Dialog Footer ── */
  152. .dialog-footer {
  153. padding: 16px 28px;
  154. background: #fff;
  155. border-top: 1px solid #e2e8f0;
  156. display: flex;
  157. justify-content: flex-end;
  158. gap: 12px;
  159. flex-shrink: 0;
  160. }
  161. .btn {
  162. padding: 10px 28px;
  163. border-radius: 8px;
  164. font-size: 14px;
  165. font-weight: 500;
  166. cursor: pointer;
  167. transition: all 0.2s;
  168. border: 1px solid transparent;
  169. display: inline-flex;
  170. align-items: center;
  171. gap: 6px;
  172. }
  173. .btn-ghost {
  174. background: #fff;
  175. border-color: #d1d5db;
  176. color: #374151;
  177. }
  178. .btn-ghost:hover {
  179. border-color: #10b981;
  180. color: #10b981;
  181. background: #ecfdf5;
  182. }
  183. .btn-primary {
  184. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  185. color: #fff;
  186. border: none;
  187. box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  188. }
  189. .btn-primary:hover {
  190. box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  191. transform: translateY(-1px);
  192. }
  193. .btn-primary:active {
  194. transform: translateY(0);
  195. }
  196. /* ═══════════════════════════════════════════
  197. SECTION CARDS
  198. ═══════════════════════════════════════════ */
  199. .section-card {
  200. border-radius: 12px;
  201. padding: 22px 24px;
  202. margin-bottom: 20px;
  203. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  204. transition:
  205. transform 0.2s,
  206. box-shadow 0.2s;
  207. position: relative;
  208. }
  209. .section-card:hover {
  210. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  211. }
  212. .section-card.bg-white {
  213. background: #fff;
  214. }
  215. .section-card.bg-green {
  216. background: #f0fdf4;
  217. }
  218. .section-card.bg-gray {
  219. background: #f8fafc;
  220. }
  221. /* Section Title */
  222. .section-title {
  223. display: flex;
  224. align-items: center;
  225. justify-content: space-between;
  226. margin-bottom: 18px;
  227. padding-bottom: 12px;
  228. border-bottom: 1px solid #e2e8f0;
  229. }
  230. .section-title-left {
  231. display: flex;
  232. align-items: center;
  233. }
  234. .section-title-left::before {
  235. content: '';
  236. width: 3px;
  237. height: 18px;
  238. background: #10b981;
  239. border-radius: 2px;
  240. margin-right: 10px;
  241. flex-shrink: 0;
  242. }
  243. .section-title h3 {
  244. font-size: 15px;
  245. font-weight: 600;
  246. color: #1e293b;
  247. }
  248. /* ═══════════════════════════════════════════
  249. FORM ELEMENTS
  250. ═══════════════════════════════════════════ */
  251. .form-grid {
  252. display: grid;
  253. grid-template-columns: repeat(3, 1fr);
  254. gap: 16px 20px;
  255. }
  256. .form-grid.col-2 {
  257. grid-template-columns: repeat(2, 1fr);
  258. }
  259. .form-item {
  260. }
  261. .form-item.full-width {
  262. grid-column: 1 / -1;
  263. }
  264. .form-label {
  265. display: block;
  266. font-size: 12px;
  267. color: #64748b;
  268. margin-bottom: 6px;
  269. font-weight: 500;
  270. }
  271. .form-label-tip {
  272. font-size: 12px;
  273. color: #94a3b8;
  274. font-weight: 400;
  275. margin-left: 4px;
  276. }
  277. .form-input,
  278. .form-select,
  279. .form-textarea {
  280. width: 100%;
  281. border-radius: 6px;
  282. border: 1px solid #d1d5db;
  283. padding: 8px 12px;
  284. font-size: 14px;
  285. color: #1e293b;
  286. font-family: inherit;
  287. transition:
  288. border-color 0.2s,
  289. box-shadow 0.2s;
  290. background: #fff;
  291. }
  292. .form-input:focus,
  293. .form-select:focus,
  294. .form-textarea:focus {
  295. outline: none;
  296. border-color: #10b981;
  297. box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
  298. }
  299. .form-input::placeholder {
  300. color: #94a3b8;
  301. }
  302. .form-textarea {
  303. resize: vertical;
  304. min-height: 72px;
  305. line-height: 1.5;
  306. }
  307. .form-select {
  308. appearance: none;
  309. 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");
  310. background-repeat: no-repeat;
  311. background-position: right 10px center;
  312. padding-right: 30px;
  313. cursor: pointer;
  314. }
  315. .form-input[disabled],
  316. .form-select[disabled] {
  317. background: #f1f5f9;
  318. color: #64748b;
  319. cursor: not-allowed;
  320. border-color: #e2e8f0;
  321. }
  322. /* ── Radio Group ── */
  323. .radio-group {
  324. display: flex;
  325. gap: 16px;
  326. padding-top: 4px;
  327. }
  328. .radio-item {
  329. display: flex;
  330. align-items: center;
  331. gap: 6px;
  332. cursor: pointer;
  333. font-size: 14px;
  334. color: #374151;
  335. }
  336. .radio-item input[type='radio'] {
  337. appearance: none;
  338. width: 16px;
  339. height: 16px;
  340. border: 2px solid #d1d5db;
  341. border-radius: 50%;
  342. cursor: pointer;
  343. transition: all 0.2s;
  344. position: relative;
  345. }
  346. .radio-item input[type='radio']:checked {
  347. border-color: #10b981;
  348. }
  349. .radio-item input[type='radio']:checked::after {
  350. content: '';
  351. position: absolute;
  352. top: 50%;
  353. left: 50%;
  354. transform: translate(-50%, -50%);
  355. width: 8px;
  356. height: 8px;
  357. border-radius: 50%;
  358. background: #10b981;
  359. }
  360. /* ── Upload Card Row ── */
  361. .upload-row {
  362. display: flex;
  363. gap: 12px;
  364. flex-wrap: wrap;
  365. align-items: flex-start;
  366. }
  367. .upload-trigger {
  368. width: 120px;
  369. height: 96px;
  370. border: 2px dashed #a7f3d0;
  371. border-radius: 8px;
  372. display: flex;
  373. flex-direction: column;
  374. align-items: center;
  375. justify-content: center;
  376. gap: 6px;
  377. cursor: pointer;
  378. transition: all 0.2s;
  379. background: #f0fdf4;
  380. }
  381. .upload-trigger:hover {
  382. border-color: #10b981;
  383. border-style: solid;
  384. background: #ecfdf5;
  385. }
  386. .upload-trigger .plus-icon {
  387. width: 28px;
  388. height: 28px;
  389. border-radius: 50%;
  390. background: rgba(16, 185, 129, 0.1);
  391. display: flex;
  392. align-items: center;
  393. justify-content: center;
  394. color: #10b981;
  395. font-size: 18px;
  396. font-weight: 300;
  397. transition: background 0.2s;
  398. }
  399. .upload-trigger:hover .plus-icon {
  400. background: rgba(16, 185, 129, 0.2);
  401. }
  402. .upload-trigger .upload-text {
  403. font-size: 11px;
  404. color: #94a3b8;
  405. }
  406. .upload-card {
  407. width: 120px;
  408. height: 96px;
  409. border: 1px solid #e2e8f0;
  410. border-radius: 8px;
  411. overflow: hidden;
  412. position: relative;
  413. cursor: pointer;
  414. transition: all 0.2s;
  415. background: #f8fafc;
  416. }
  417. .upload-card:hover {
  418. border-color: #10b981;
  419. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  420. }
  421. .upload-card .thumb-preview {
  422. width: 100%;
  423. height: 64px;
  424. display: flex;
  425. align-items: center;
  426. justify-content: center;
  427. background: #f1f5f9;
  428. }
  429. .upload-card .thumb-preview svg {
  430. width: 24px;
  431. height: 24px;
  432. stroke: #94a3b8;
  433. fill: none;
  434. }
  435. .upload-card .thumb-name {
  436. font-size: 10px;
  437. color: #64748b;
  438. text-align: center;
  439. padding: 4px 6px;
  440. white-space: nowrap;
  441. overflow: hidden;
  442. text-overflow: ellipsis;
  443. border-top: 1px solid #f1f5f9;
  444. background: #fff;
  445. }
  446. .upload-card .delete-btn {
  447. position: absolute;
  448. top: 4px;
  449. right: 4px;
  450. width: 20px;
  451. height: 20px;
  452. border-radius: 50%;
  453. background: rgba(0, 0, 0, 0.5);
  454. color: #fff;
  455. border: none;
  456. font-size: 12px;
  457. cursor: pointer;
  458. display: none;
  459. align-items: center;
  460. justify-content: center;
  461. line-height: 1;
  462. }
  463. .upload-card:hover .delete-btn {
  464. display: flex;
  465. }
  466. .upload-card .delete-btn:hover {
  467. background: rgba(220, 38, 38, 0.8);
  468. }
  469. /* ═══════════════════════════════════════════
  470. CLIENT SUB CARDS
  471. ═══════════════════════════════════════════ */
  472. .client-sub-cards {
  473. display: grid;
  474. grid-template-columns: repeat(3, 1fr);
  475. gap: 16px;
  476. }
  477. .client-sub-card {
  478. background: #fff;
  479. border-radius: 10px;
  480. padding: 18px 20px;
  481. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  482. border: 1px solid rgba(0, 0, 0, 0.03);
  483. transition:
  484. transform 0.2s,
  485. box-shadow 0.2s;
  486. }
  487. .client-sub-card:hover {
  488. transform: translateY(-1px);
  489. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  490. }
  491. .sub-card-header {
  492. display: flex;
  493. align-items: center;
  494. gap: 8px;
  495. margin-bottom: 14px;
  496. padding-bottom: 10px;
  497. border-bottom: 1px solid #f1f5f9;
  498. }
  499. .sub-card-header .icon {
  500. font-size: 22px;
  501. line-height: 1;
  502. }
  503. .sub-card-header h4 {
  504. font-size: 14px;
  505. font-weight: 600;
  506. color: #1e293b;
  507. }
  508. .sub-card-header .search-link {
  509. margin-left: auto;
  510. font-size: 12px;
  511. color: #10b981;
  512. cursor: pointer;
  513. font-weight: 500;
  514. }
  515. .sub-card-header .search-link:hover {
  516. text-decoration: underline;
  517. }
  518. /* ═══════════════════════════════════════════
  519. STATUS BADGES
  520. ═══════════════════════════════════════════ */
  521. .badge {
  522. display: inline-block;
  523. padding: 2px 10px;
  524. border-radius: 20px;
  525. font-size: 12px;
  526. font-weight: 500;
  527. white-space: nowrap;
  528. }
  529. .badge-green {
  530. background: #ecfdf5;
  531. color: #059669;
  532. }
  533. .badge-blue {
  534. background: #eff6ff;
  535. color: #2563eb;
  536. }
  537. .badge-amber {
  538. background: #fffbeb;
  539. color: #d97706;
  540. }
  541. .badge-gray {
  542. background: #f1f5f9;
  543. color: #64748b;
  544. }
  545. /* ═══════════════════════════════════════════
  546. SAMPLE CARDS (CARD-BASED LAYOUT)
  547. ═══════════════════════════════════════════ */
  548. .sample-toolbar {
  549. display: flex;
  550. align-items: center;
  551. gap: 12px;
  552. margin-bottom: 16px;
  553. }
  554. .btn-add {
  555. padding: 8px 18px;
  556. border-radius: 8px;
  557. font-size: 13px;
  558. font-weight: 500;
  559. cursor: pointer;
  560. transition: all 0.2s;
  561. border: none;
  562. background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  563. color: #fff;
  564. display: inline-flex;
  565. align-items: center;
  566. gap: 6px;
  567. box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
  568. }
  569. .btn-add:hover {
  570. box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  571. transform: translateY(-1px);
  572. }
  573. .sample-card {
  574. background: #fff;
  575. border: 1px solid #e2e8f0;
  576. border-radius: 10px;
  577. padding: 18px 20px;
  578. margin-bottom: 14px;
  579. transition: box-shadow 0.2s;
  580. }
  581. .sample-card:hover {
  582. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  583. }
  584. .sample-header {
  585. display: flex;
  586. align-items: center;
  587. gap: 10px;
  588. margin-bottom: 16px;
  589. padding-bottom: 12px;
  590. border-bottom: 1px solid #f1f5f9;
  591. }
  592. .sample-title {
  593. font-size: 14px;
  594. font-weight: 600;
  595. color: #1e293b;
  596. }
  597. .sample-title .sample-num {
  598. color: #64748b;
  599. font-weight: 500;
  600. margin-right: 4px;
  601. }
  602. .sample-actions {
  603. margin-left: auto;
  604. display: flex;
  605. align-items: center;
  606. gap: 8px;
  607. }
  608. .sample-delete {
  609. width: 28px;
  610. height: 28px;
  611. border: none;
  612. background: transparent;
  613. color: #94a3b8;
  614. border-radius: 6px;
  615. cursor: pointer;
  616. font-size: 14px;
  617. display: flex;
  618. align-items: center;
  619. justify-content: center;
  620. transition: all 0.2s;
  621. }
  622. .sample-delete:hover {
  623. background: #fef2f2;
  624. color: #dc2626;
  625. }
  626. /* ── Transport Panel (Collapsible) ── */
  627. .transport-toggle {
  628. display: flex;
  629. align-items: center;
  630. gap: 6px;
  631. cursor: pointer;
  632. font-size: 13px;
  633. font-weight: 500;
  634. color: #64748b;
  635. margin-top: 14px;
  636. padding: 10px 14px;
  637. background: #f8fafc;
  638. border-radius: 8px;
  639. border: 1px solid #e2e8f0;
  640. transition: all 0.2s;
  641. user-select: none;
  642. }
  643. .transport-toggle:hover {
  644. background: #f1f5f9;
  645. color: #374151;
  646. }
  647. .transport-toggle .chevron {
  648. display: inline-block;
  649. transition: transform 0.3s;
  650. font-size: 12px;
  651. }
  652. .transport-toggle.expanded .chevron {
  653. transform: rotate(90deg);
  654. }
  655. .transport-toggle .summary {
  656. margin-left: auto;
  657. font-size: 12px;
  658. color: #94a3b8;
  659. font-weight: 400;
  660. }
  661. .transport-body {
  662. max-height: 0;
  663. overflow: hidden;
  664. transition:
  665. max-height 0.35s ease,
  666. padding 0.35s ease;
  667. background: #f8fafc;
  668. border-radius: 0 0 8px 8px;
  669. margin-top: 0;
  670. padding: 0 16px;
  671. }
  672. .transport-body.open {
  673. max-height: 400px;
  674. padding: 16px;
  675. margin-top: -1px;
  676. border: 1px solid #e2e8f0;
  677. border-top: none;
  678. }
  679. /* ── Empty State ── */
  680. .empty-state {
  681. text-align: center;
  682. padding: 40px 20px;
  683. color: #94a3b8;
  684. font-size: 14px;
  685. }
  686. .empty-state .empty-icon {
  687. font-size: 36px;
  688. margin-bottom: 10px;
  689. opacity: 0.5;
  690. }
  691. /* ═══════════════════════════════════════════
  692. PAYMENT SECTION
  693. ═══════════════════════════════════════════ */
  694. .payment-main-card {
  695. background: #fff;
  696. border-radius: 10px;
  697. padding: 18px 20px;
  698. margin-bottom: 18px;
  699. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  700. border: 1px solid rgba(0, 0, 0, 0.03);
  701. }
  702. .payment-details {
  703. display: flex;
  704. flex-direction: column;
  705. gap: 12px;
  706. margin-top: 18px;
  707. }
  708. /* Detail Card — Collapsible */
  709. .detail-card {
  710. background: #fff;
  711. border: 1px solid #e2e8f0;
  712. border-radius: 10px;
  713. overflow: hidden;
  714. transition: box-shadow 0.2s;
  715. }
  716. .detail-card:hover {
  717. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  718. }
  719. .detail-header {
  720. display: flex;
  721. align-items: center;
  722. gap: 10px;
  723. padding: 14px 18px;
  724. cursor: pointer;
  725. user-select: none;
  726. transition: background 0.2s;
  727. }
  728. .detail-header:hover {
  729. background: #f8fafc;
  730. }
  731. .detail-chevron {
  732. font-size: 12px;
  733. color: #94a3b8;
  734. transition: transform 0.3s;
  735. flex-shrink: 0;
  736. }
  737. .detail-card.expanded .detail-chevron {
  738. transform: rotate(90deg);
  739. }
  740. .detail-title {
  741. font-size: 14px;
  742. font-weight: 600;
  743. color: #1e293b;
  744. }
  745. .detail-amount {
  746. font-size: 14px;
  747. font-weight: 700;
  748. margin-left: 4px;
  749. }
  750. .detail-amount.green {
  751. color: #059669;
  752. }
  753. .detail-amount.amber {
  754. color: #d97706;
  755. }
  756. .detail-summary {
  757. margin-left: auto;
  758. font-size: 12px;
  759. color: #94a3b8;
  760. }
  761. .detail-delete {
  762. width: 28px;
  763. height: 28px;
  764. border: none;
  765. background: transparent;
  766. color: #94a3b8;
  767. border-radius: 6px;
  768. cursor: pointer;
  769. font-size: 14px;
  770. display: flex;
  771. align-items: center;
  772. justify-content: center;
  773. transition: all 0.2s;
  774. margin-left: 6px;
  775. }
  776. .detail-delete:hover {
  777. background: #fef2f2;
  778. color: #dc2626;
  779. }
  780. .detail-body {
  781. max-height: 0;
  782. overflow: hidden;
  783. transition: max-height 0.4s ease;
  784. }
  785. .detail-card.expanded .detail-body {
  786. max-height: 600px;
  787. }
  788. .detail-body-inner {
  789. padding: 0 18px 18px;
  790. border-top: 1px solid #f1f5f9;
  791. }
  792. /* ── Voucher Upload ── */
  793. .voucher-row {
  794. display: flex;
  795. align-items: center;
  796. gap: 12px;
  797. margin-top: 14px;
  798. padding-top: 12px;
  799. border-top: 1px dashed #e2e8f0;
  800. }
  801. .voucher-label {
  802. font-size: 12px;
  803. color: #94a3b8;
  804. flex-shrink: 0;
  805. }
  806. .btn-upload-sm {
  807. padding: 5px 14px;
  808. border-radius: 6px;
  809. border: 1px solid #a7f3d0;
  810. background: #f0fdf4;
  811. color: #059669;
  812. font-size: 12px;
  813. cursor: pointer;
  814. transition: all 0.2s;
  815. }
  816. .btn-upload-sm:hover {
  817. background: #ecfdf5;
  818. border-color: #10b981;
  819. }
  820. /* ═══════════════════════════════════════════
  821. RESPONSIVE
  822. ═══════════════════════════════════════════ */
  823. @media (max-width: 900px) {
  824. .form-grid {
  825. grid-template-columns: repeat(2, 1fr);
  826. }
  827. .form-grid.col-2 {
  828. grid-template-columns: 1fr;
  829. }
  830. .client-sub-cards {
  831. grid-template-columns: 1fr;
  832. }
  833. .dialog-body-inner {
  834. padding: 16px;
  835. }
  836. }
  837. @media (max-width: 600px) {
  838. .form-grid {
  839. grid-template-columns: 1fr;
  840. }
  841. .upload-row {
  842. flex-direction: column;
  843. }
  844. }
  845. /* ── Page Title (for demo context) ── */
  846. .demo-page-title {
  847. text-align: center;
  848. color: #64748b;
  849. font-size: 13px;
  850. padding: 16px;
  851. letter-spacing: 1px;
  852. }
  853. /* ── Section divider ── */
  854. .section-subtitle {
  855. display: flex;
  856. align-items: center;
  857. gap: 6px;
  858. font-size: 13px;
  859. font-weight: 600;
  860. color: #374151;
  861. margin: 18px 0 14px;
  862. }
  863. .section-subtitle::before {
  864. content: '';
  865. width: 2px;
  866. height: 12px;
  867. background: #10b981;
  868. border-radius: 1px;
  869. }
  870. </style>
  871. </head>
  872. <body>
  873. <div class="overlay" id="overlay">
  874. <div class="dialog">
  875. <!-- ── Header ── -->
  876. <div class="dialog-header">
  877. <h2>编辑协议单 <span class="protocol-id">— P2025-0501-001</span></h2>
  878. <button
  879. class="dialog-close"
  880. title="关闭"
  881. onclick="document.getElementById('overlay').style.display='none'"
  882. >✕</button
  883. >
  884. </div>
  885. <!-- ── Sticky Tab Bar ── -->
  886. <div class="tab-bar" id="tabBar">
  887. <button
  888. class="tab-pill active"
  889. data-section="section-basic"
  890. onclick="scrollToSection(this, 'section-basic')"
  891. >基本信息</button
  892. >
  893. <button
  894. class="tab-pill"
  895. data-section="section-client"
  896. onclick="scrollToSection(this, 'section-client')"
  897. >客户信息</button
  898. >
  899. <button
  900. class="tab-pill"
  901. data-section="section-collect"
  902. onclick="scrollToSection(this, 'section-collect')"
  903. >采集信息</button
  904. >
  905. <button
  906. class="tab-pill"
  907. data-section="section-sample"
  908. onclick="scrollToSection(this, 'section-sample')"
  909. >样本及运输</button
  910. >
  911. <button
  912. class="tab-pill"
  913. data-section="section-payment"
  914. onclick="scrollToSection(this, 'section-payment')"
  915. >缴费信息</button
  916. >
  917. </div>
  918. <!-- ── Body ── -->
  919. <div class="dialog-body">
  920. <div class="dialog-body-inner">
  921. <!-- ════════════════════════════════
  922. TAB 1: 基本信息
  923. ════════════════════════════════ -->
  924. <div class="form-section" id="section-basic">
  925. <div class="section-card bg-white">
  926. <div class="section-title">
  927. <div class="section-title-left"><h3>基本信息</h3></div>
  928. </div>
  929. <div class="form-grid">
  930. <div class="form-item">
  931. <label class="form-label">协议号</label>
  932. <select class="form-select">
  933. <option selected>P2025-0501-001</option>
  934. <option>P2025-0501-002</option>
  935. <option>P2025-0501-003</option>
  936. </select>
  937. </div>
  938. <div class="form-item">
  939. <label class="form-label">协议状态</label>
  940. <select class="form-select">
  941. <option>待生效</option>
  942. <option selected>生效中</option>
  943. <option>已过期</option>
  944. <option>已作废</option>
  945. <option>转科研</option>
  946. </select>
  947. </div>
  948. <div class="form-item">
  949. <label class="form-label">登记日期</label>
  950. <input type="date" class="form-input" value="2025-05-08" />
  951. </div>
  952. <div class="form-item">
  953. <label class="form-label">采集专员</label>
  954. <select class="form-select">
  955. <option>请选择采集专员</option>
  956. <option selected>李专员</option>
  957. <option>王专员</option>
  958. <option>张专员</option>
  959. </select>
  960. </div>
  961. <div class="form-item">
  962. <label class="form-label">创建时间</label>
  963. <input type="text" class="form-input" value="2025-05-08 08:30:22" disabled />
  964. </div>
  965. <div class="form-item">
  966. <label class="form-label">最后更新</label>
  967. <input type="text" class="form-input" value="2025-05-08 09:15:40" disabled />
  968. </div>
  969. </div>
  970. <!-- 协议附件 -->
  971. <div style="margin-top: 18px">
  972. <div class="form-label" style="margin-bottom: 10px">协议附件</div>
  973. <div class="upload-row">
  974. <div class="upload-card">
  975. <div class="thumb-preview">
  976. <svg viewBox="0 0 24 24" stroke-width="1.5">
  977. <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />
  978. <polyline points="14 2 14 8 20 8" />
  979. </svg>
  980. </div>
  981. <div class="thumb-name">知情同意书.pdf</div>
  982. <button class="delete-btn" title="删除">✕</button>
  983. </div>
  984. <div class="upload-card">
  985. <div class="thumb-preview">
  986. <svg viewBox="0 0 24 24" stroke-width="1.5">
  987. <rect x="3" y="3" width="18" height="18" rx="2" />
  988. <circle cx="8.5" cy="8.5" r="1.5" />
  989. <path d="m21 15-5-5L5 21" />
  990. </svg>
  991. </div>
  992. <div class="thumb-name">身份证明.jpg</div>
  993. <button class="delete-btn" title="删除">✕</button>
  994. </div>
  995. <div class="upload-trigger">
  996. <div class="plus-icon">+</div>
  997. <div class="upload-text">上传附件</div>
  998. </div>
  999. </div>
  1000. </div>
  1001. <!-- 备注 -->
  1002. <div style="margin-top: 18px">
  1003. <label class="form-label">备注</label>
  1004. <textarea class="form-textarea" rows="3" placeholder="请输入备注信息">
  1005. 客户要求加急处理,产妇预产期为5月8日,需提前安排采集人员到位。</textarea
  1006. >
  1007. </div>
  1008. </div>
  1009. </div>
  1010. <!-- ════════════════════════════════
  1011. TAB 2: 客户信息
  1012. ════════════════════════════════ -->
  1013. <div class="form-section" id="section-client">
  1014. <div class="section-card bg-green">
  1015. <div class="section-title">
  1016. <div class="section-title-left"><h3>客户信息</h3></div>
  1017. </div>
  1018. <div class="client-sub-cards">
  1019. <!-- 母亲信息 -->
  1020. <div class="client-sub-card">
  1021. <div class="sub-card-header">
  1022. <span class="icon">🤱</span>
  1023. <h4>母亲信息</h4>
  1024. <span class="search-link">关联客户 ▸</span>
  1025. </div>
  1026. <div style="margin-bottom: 12px">
  1027. <label class="form-label">关联客户</label>
  1028. <select class="form-select">
  1029. <option selected>王美丽 · 138****5678</option>
  1030. <option>李小红 · 139****1234</option>
  1031. <option>刘婷婷 · 137****5678</option>
  1032. </select>
  1033. </div>
  1034. <div class="form-grid col-2">
  1035. <div class="form-item">
  1036. <label class="form-label">姓名</label>
  1037. <input type="text" class="form-input" value="王美丽" />
  1038. </div>
  1039. <div class="form-item">
  1040. <label class="form-label">电话</label>
  1041. <input type="text" class="form-input" value="138****5678" />
  1042. </div>
  1043. <div class="form-item">
  1044. <label class="form-label">身份证号</label>
  1045. <input type="text" class="form-input" value="3401****1234" />
  1046. </div>
  1047. <div class="form-item">
  1048. <label class="form-label">出生年月</label>
  1049. <input type="month" class="form-input" value="1992-06" />
  1050. </div>
  1051. <div class="form-item">
  1052. <label class="form-label">民族</label>
  1053. <select class="form-select">
  1054. <option selected>汉族</option>
  1055. <option>回族</option>
  1056. <option>满族</option>
  1057. <option>壮族</option>
  1058. </select>
  1059. </div>
  1060. <div class="form-item">
  1061. <label class="form-label">血型</label>
  1062. <select class="form-select">
  1063. <option>A型</option>
  1064. <option selected>B型</option>
  1065. <option>O型</option>
  1066. <option>AB型</option>
  1067. </select>
  1068. </div>
  1069. </div>
  1070. <div style="margin-top: 12px">
  1071. <label class="form-label">家庭住址</label>
  1072. <input
  1073. type="text"
  1074. class="form-input"
  1075. value="安徽省合肥市蜀山区望江西路XX小区X栋X单元XXX室"
  1076. style="width: 100%"
  1077. />
  1078. </div>
  1079. </div>
  1080. <!-- 父亲信息 -->
  1081. <div class="client-sub-card">
  1082. <div class="sub-card-header">
  1083. <span class="icon">👨</span>
  1084. <h4>父亲信息</h4>
  1085. </div>
  1086. <div class="form-grid col-2">
  1087. <div class="form-item">
  1088. <label class="form-label">姓名</label>
  1089. <input type="text" class="form-input" value="张建国" />
  1090. </div>
  1091. <div class="form-item">
  1092. <label class="form-label">电话</label>
  1093. <input type="text" class="form-input" value="139****8901" />
  1094. </div>
  1095. <div class="form-item full-width">
  1096. <label class="form-label">身份证号</label>
  1097. <input type="text" class="form-input" value="3401****5678" />
  1098. </div>
  1099. </div>
  1100. </div>
  1101. <!-- 新生儿信息 -->
  1102. <div class="client-sub-card">
  1103. <div class="sub-card-header">
  1104. <span class="icon">👶</span>
  1105. <h4>新生儿信息</h4>
  1106. </div>
  1107. <div class="form-grid col-2">
  1108. <div class="form-item">
  1109. <label class="form-label">姓名</label>
  1110. <input type="text" class="form-input" value="张小明" />
  1111. </div>
  1112. <div class="form-item">
  1113. <label class="form-label">性别</label>
  1114. <div class="radio-group">
  1115. <label class="radio-item">
  1116. <input type="radio" name="babyGender" checked /> 男
  1117. </label>
  1118. <label class="radio-item">
  1119. <input type="radio" name="babyGender" /> 女
  1120. </label>
  1121. </div>
  1122. </div>
  1123. <div class="form-item">
  1124. <label class="form-label">分娩时间</label>
  1125. <input type="datetime-local" class="form-input" value="2025-05-08T06:30" />
  1126. </div>
  1127. <div class="form-item">
  1128. <label class="form-label">分娩方式</label>
  1129. <select class="form-select">
  1130. <option>顺产</option>
  1131. <option selected>剖宫产</option>
  1132. <option>助产</option>
  1133. </select>
  1134. </div>
  1135. <div class="form-item">
  1136. <label class="form-label">胎次</label>
  1137. <input type="number" class="form-input" value="1" min="1" />
  1138. </div>
  1139. <div class="form-item">
  1140. <label class="form-label">体重(克)</label>
  1141. <input type="number" class="form-input" value="3250" min="0" />
  1142. </div>
  1143. <div class="form-item">
  1144. <label class="form-label">Apgar 1min</label>
  1145. <input type="number" class="form-input" value="9" min="0" max="10" />
  1146. </div>
  1147. <div class="form-item">
  1148. <label class="form-label">Apgar 5min</label>
  1149. <input type="number" class="form-input" value="10" min="0" max="10" />
  1150. </div>
  1151. </div>
  1152. </div>
  1153. </div>
  1154. </div>
  1155. </div>
  1156. <!-- ════════════════════════════════
  1157. TAB 3: 采集信息
  1158. ════════════════════════════════ -->
  1159. <div class="form-section" id="section-collect">
  1160. <div class="section-card bg-white">
  1161. <div class="section-title">
  1162. <div class="section-title-left"><h3>采集信息</h3></div>
  1163. </div>
  1164. <div class="form-grid">
  1165. <div class="form-item">
  1166. <label class="form-label">采集地区</label>
  1167. <select class="form-select">
  1168. <option>华北地区</option>
  1169. <option selected>华东地区</option>
  1170. <option>华南地区</option>
  1171. <option>西南地区</option>
  1172. </select>
  1173. </div>
  1174. <div class="form-item">
  1175. <label class="form-label">采集医院</label>
  1176. <select class="form-select">
  1177. <option>请选择采集医院</option>
  1178. <option>安徽省立医院</option>
  1179. <option selected>合肥市第一人民医院</option>
  1180. <option>安医大一附院</option>
  1181. </select>
  1182. </div>
  1183. <div class="form-item">
  1184. <label class="form-label">采集医护</label>
  1185. <input
  1186. type="text"
  1187. class="form-input"
  1188. value="陈护士"
  1189. placeholder="请输入采集医护姓名"
  1190. />
  1191. </div>
  1192. <div class="form-item">
  1193. <label class="form-label">销售人员</label>
  1194. <select class="form-select">
  1195. <option>请选择销售人员</option>
  1196. <option selected>赵经理</option>
  1197. <option>钱经理</option>
  1198. <option>孙经理</option>
  1199. </select>
  1200. </div>
  1201. <div class="form-item">
  1202. <label class="form-label">样本采集时间</label>
  1203. <input type="datetime-local" class="form-input" value="2025-05-08T07:15" />
  1204. </div>
  1205. <div class="form-item">
  1206. <label class="form-label">母血采集时间</label>
  1207. <input type="datetime-local" class="form-input" value="2025-05-08T07:20" />
  1208. </div>
  1209. </div>
  1210. </div>
  1211. </div>
  1212. <!-- ════════════════════════════════
  1213. TAB 4: 样本及运输信息
  1214. ════════════════════════════════ -->
  1215. <div class="form-section" id="section-sample">
  1216. <div class="section-card bg-white">
  1217. <div class="section-title">
  1218. <div class="section-title-left"><h3>样本及运输信息</h3></div>
  1219. </div>
  1220. <div class="sample-toolbar">
  1221. <button class="btn-add" onclick="alert('添加样本')">+ 添加样本</button>
  1222. </div>
  1223. <!-- Sample Card 1 -->
  1224. <div class="sample-card">
  1225. <div class="sample-header">
  1226. <div class="sample-title">
  1227. <span class="sample-num">样本 #1 ·</span> 脐血干细胞
  1228. </div>
  1229. <span class="badge badge-green">已入库</span>
  1230. <div class="sample-actions">
  1231. <button class="sample-delete" title="删除样本">🗑</button>
  1232. </div>
  1233. </div>
  1234. <div class="form-grid">
  1235. <div class="form-item">
  1236. <label class="form-label">样本类型</label>
  1237. <select class="form-select">
  1238. <option selected>脐血干细胞</option>
  1239. <option>脐带组织</option>
  1240. <option>胎盘干细胞</option>
  1241. </select>
  1242. </div>
  1243. <div class="form-item">
  1244. <label class="form-label">样本编码</label>
  1245. <select class="form-select">
  1246. <option selected>CB-20250508-001</option>
  1247. <option>CB-20250508-002</option>
  1248. </select>
  1249. </div>
  1250. <div class="form-item">
  1251. <label class="form-label">采集量</label>
  1252. <input type="number" class="form-input" value="120" />
  1253. </div>
  1254. <div class="form-item">
  1255. <label class="form-label">单位</label>
  1256. <select class="form-select">
  1257. <option selected>ml</option>
  1258. <option>cm</option>
  1259. <option>g</option>
  1260. </select>
  1261. </div>
  1262. <div class="form-item">
  1263. <label class="form-label">价格</label>
  1264. <input type="text" class="form-input" value="¥19,800" />
  1265. </div>
  1266. <div class="form-item">
  1267. <label class="form-label">存储年限</label>
  1268. <input type="number" class="form-input" value="20" />
  1269. </div>
  1270. </div>
  1271. <!-- Transport Panel -->
  1272. <div class="transport-toggle expanded" onclick="toggleTransport(this)">
  1273. <span class="chevron">▶</span>
  1274. 运输信息
  1275. <span class="summary">冷链专运 → 华东中心库</span>
  1276. </div>
  1277. <div class="transport-body open">
  1278. <div class="form-grid">
  1279. <div class="form-item">
  1280. <label class="form-label">运输类型</label>
  1281. <select class="form-select">
  1282. <option selected>冷链专运</option>
  1283. <option>常温运输</option>
  1284. <option>快递运输</option>
  1285. </select>
  1286. </div>
  1287. <div class="form-item">
  1288. <label class="form-label">目的站点</label>
  1289. <select class="form-select">
  1290. <option selected>华东中心库</option>
  1291. <option>南京分库</option>
  1292. <option>上海中心库</option>
  1293. </select>
  1294. </div>
  1295. <div class="form-item">
  1296. <label class="form-label">预计到达</label>
  1297. <input type="datetime-local" class="form-input" value="2025-05-09T18:00" />
  1298. </div>
  1299. <div class="form-item">
  1300. <label class="form-label">快递公司</label>
  1301. <select class="form-select">
  1302. <option selected>顺丰</option>
  1303. <option>京东</option>
  1304. <option>中通</option>
  1305. </select>
  1306. </div>
  1307. <div class="form-item">
  1308. <label class="form-label">快递单号</label>
  1309. <input
  1310. type="text"
  1311. class="form-input"
  1312. value="SF1234567890"
  1313. placeholder="请输入快递单号"
  1314. />
  1315. </div>
  1316. <div class="form-item">
  1317. <label class="form-label">快递费用</label>
  1318. <input type="text" class="form-input" value="¥50" />
  1319. </div>
  1320. </div>
  1321. </div>
  1322. </div>
  1323. <!-- Sample Card 2 -->
  1324. <div class="sample-card">
  1325. <div class="sample-header">
  1326. <div class="sample-title">
  1327. <span class="sample-num">样本 #2 ·</span> 脐带组织
  1328. </div>
  1329. <span class="badge badge-blue">运输中</span>
  1330. <div class="sample-actions">
  1331. <button class="sample-delete" title="删除样本">🗑</button>
  1332. </div>
  1333. </div>
  1334. <div class="form-grid">
  1335. <div class="form-item">
  1336. <label class="form-label">样本类型</label>
  1337. <select class="form-select">
  1338. <option>脐血干细胞</option>
  1339. <option selected>脐带组织</option>
  1340. <option>胎盘干细胞</option>
  1341. </select>
  1342. </div>
  1343. <div class="form-item">
  1344. <label class="form-label">样本编码</label>
  1345. <input type="text" class="form-input" value="UC-20250508-001" />
  1346. </div>
  1347. <div class="form-item">
  1348. <label class="form-label">采集量</label>
  1349. <input type="number" class="form-input" value="15" />
  1350. </div>
  1351. <div class="form-item">
  1352. <label class="form-label">单位</label>
  1353. <select class="form-select">
  1354. <option>ml</option>
  1355. <option selected>cm</option>
  1356. <option>g</option>
  1357. </select>
  1358. </div>
  1359. <div class="form-item">
  1360. <label class="form-label">价格</label>
  1361. <input type="text" class="form-input" value="¥9,800" />
  1362. </div>
  1363. <div class="form-item">
  1364. <label class="form-label">存储年限</label>
  1365. <input type="number" class="form-input" value="20" />
  1366. </div>
  1367. </div>
  1368. <!-- Transport Panel (Collapsed) -->
  1369. <div class="transport-toggle" onclick="toggleTransport(this)">
  1370. <span class="chevron">▶</span>
  1371. 运输信息
  1372. <span class="summary">冷链专运 → 华东中心库</span>
  1373. </div>
  1374. <div class="transport-body">
  1375. <div class="form-grid">
  1376. <div class="form-item">
  1377. <label class="form-label">运输类型</label>
  1378. <select class="form-select">
  1379. <option selected>冷链专运</option>
  1380. <option>常温运输</option>
  1381. <option>快递运输</option>
  1382. </select>
  1383. </div>
  1384. <div class="form-item">
  1385. <label class="form-label">目的站点</label>
  1386. <select class="form-select">
  1387. <option selected>华东中心库</option>
  1388. <option>南京分库</option>
  1389. <option>上海中心库</option>
  1390. </select>
  1391. </div>
  1392. <div class="form-item">
  1393. <label class="form-label">预计到达</label>
  1394. <input type="datetime-local" class="form-input" />
  1395. </div>
  1396. <div class="form-item">
  1397. <label class="form-label">快递公司</label>
  1398. <select class="form-select">
  1399. <option>顺丰</option>
  1400. <option selected>京东</option>
  1401. <option>中通</option>
  1402. </select>
  1403. </div>
  1404. <div class="form-item">
  1405. <label class="form-label">快递单号</label>
  1406. <input
  1407. type="text"
  1408. class="form-input"
  1409. value="JD9876543210"
  1410. placeholder="请输入快递单号"
  1411. />
  1412. </div>
  1413. <div class="form-item">
  1414. <label class="form-label">快递费用</label>
  1415. <input type="text" class="form-input" value="¥35" />
  1416. </div>
  1417. </div>
  1418. </div>
  1419. </div>
  1420. </div>
  1421. </div>
  1422. <!-- ════════════════════════════════
  1423. TAB 5: 缴费信息
  1424. ════════════════════════════════ -->
  1425. <div class="form-section" id="section-payment">
  1426. <div class="section-card bg-gray">
  1427. <div class="section-title">
  1428. <div class="section-title-left"><h3>缴费信息</h3></div>
  1429. </div>
  1430. <!-- 缴费主表 -->
  1431. <div class="payment-main-card">
  1432. <div class="section-subtitle">缴费主表</div>
  1433. <div class="form-grid">
  1434. <div class="form-item">
  1435. <label class="form-label">缴费模式</label>
  1436. <div class="radio-group">
  1437. <label class="radio-item">
  1438. <input type="radio" name="payMode" /> 趸交
  1439. </label>
  1440. <label class="radio-item">
  1441. <input type="radio" name="payMode" checked /> 分期
  1442. </label>
  1443. </div>
  1444. </div>
  1445. <div class="form-item">
  1446. <label class="form-label">合同金额</label>
  1447. <input type="text" class="form-input" value="¥42,200" disabled />
  1448. </div>
  1449. <div class="form-item">
  1450. <label class="form-label">分期期数</label>
  1451. <input type="number" class="form-input" value="3" min="1" />
  1452. </div>
  1453. <div class="form-item">
  1454. <label class="form-label">每期间隔(月)</label>
  1455. <input type="number" class="form-input" value="6" min="1" />
  1456. </div>
  1457. <div class="form-item">
  1458. <label class="form-label">分期开始时间</label>
  1459. <input type="date" class="form-input" value="2025-05-08" />
  1460. </div>
  1461. </div>
  1462. </div>
  1463. <!-- 缴费明细 -->
  1464. <div class="section-subtitle">缴费明细</div>
  1465. <div style="margin-bottom: 14px">
  1466. <button class="btn-add">+ 添加明细</button>
  1467. </div>
  1468. <div class="payment-details">
  1469. <!-- Detail Card 1 (Expanded) -->
  1470. <div class="detail-card expanded">
  1471. <div class="detail-header" onclick="toggleDetail(this)">
  1472. <span class="detail-chevron">▶</span>
  1473. <span class="detail-title">首付</span>
  1474. <span class="detail-amount green">¥20,000</span>
  1475. <span class="badge badge-green">已缴费</span>
  1476. <span class="detail-summary">微信 · 2025-05-09</span>
  1477. <button class="detail-delete" onclick="event.stopPropagation()" title="删除"
  1478. >🗑</button
  1479. >
  1480. </div>
  1481. <div class="detail-body">
  1482. <div class="detail-body-inner">
  1483. <div class="form-grid" style="margin-top: 16px">
  1484. <div class="form-item">
  1485. <label class="form-label">应缴费金额</label>
  1486. <input type="text" class="form-input" value="¥20,000" disabled />
  1487. </div>
  1488. <div class="form-item">
  1489. <label class="form-label">转账方式</label>
  1490. <select class="form-select">
  1491. <option>银行卡转账</option>
  1492. <option selected>微信</option>
  1493. <option>支付宝</option>
  1494. <option>现金</option>
  1495. </select>
  1496. </div>
  1497. <div class="form-item">
  1498. <label class="form-label">转账金额</label>
  1499. <input type="text" class="form-input" value="¥20,000" />
  1500. </div>
  1501. <div class="form-item">
  1502. <label class="form-label">转账时间</label>
  1503. <input
  1504. type="datetime-local"
  1505. class="form-input"
  1506. value="2025-05-09T10:30"
  1507. />
  1508. </div>
  1509. <div class="form-item">
  1510. <label class="form-label">缴费状态</label>
  1511. <select class="form-select">
  1512. <option>待缴费</option>
  1513. <option selected>已缴费</option>
  1514. <option>已退款</option>
  1515. </select>
  1516. </div>
  1517. <div class="form-item">
  1518. <label class="form-label">应缴费时间</label>
  1519. <input type="date" class="form-input" value="2025-05-08" />
  1520. </div>
  1521. </div>
  1522. <div class="voucher-row">
  1523. <span class="voucher-label">转账凭证</span>
  1524. <div class="upload-card" style="width: 88px; height: 64px">
  1525. <div class="thumb-preview" style="height: 40px">
  1526. <svg
  1527. viewBox="0 0 24 24"
  1528. stroke-width="1.5"
  1529. style="width: 18px; height: 18px"
  1530. >
  1531. <rect x="3" y="3" width="18" height="18" rx="2" />
  1532. <circle cx="8.5" cy="8.5" r="1.5" />
  1533. <path d="m21 15-5-5L5 21" />
  1534. </svg>
  1535. </div>
  1536. <div class="thumb-name">凭证.jpg</div>
  1537. <button class="delete-btn" title="删除">✕</button>
  1538. </div>
  1539. <button class="btn-upload-sm">上传凭证</button>
  1540. </div>
  1541. </div>
  1542. </div>
  1543. </div>
  1544. <!-- Detail Card 2 (Collapsed) -->
  1545. <div class="detail-card">
  1546. <div class="detail-header" onclick="toggleDetail(this)">
  1547. <span class="detail-chevron">▶</span>
  1548. <span class="detail-title">二期款</span>
  1549. <span class="detail-amount amber">¥16,667</span>
  1550. <span class="badge badge-amber">待缴费</span>
  1551. <span class="detail-summary">应缴 2025-06-08</span>
  1552. <button class="detail-delete" onclick="event.stopPropagation()" title="删除"
  1553. >🗑</button
  1554. >
  1555. </div>
  1556. <div class="detail-body">
  1557. <div class="detail-body-inner">
  1558. <div class="form-grid" style="margin-top: 16px">
  1559. <div class="form-item">
  1560. <label class="form-label">应缴费金额</label>
  1561. <input type="text" class="form-input" value="¥16,667" disabled />
  1562. </div>
  1563. <div class="form-item">
  1564. <label class="form-label">转账方式</label>
  1565. <select class="form-select">
  1566. <option>请选择转账方式</option>
  1567. <option>银行卡转账</option>
  1568. <option>微信</option>
  1569. <option>支付宝</option>
  1570. </select>
  1571. </div>
  1572. <div class="form-item">
  1573. <label class="form-label">转账金额</label>
  1574. <input type="text" class="form-input" placeholder="请输入转账金额" />
  1575. </div>
  1576. <div class="form-item">
  1577. <label class="form-label">转账时间</label>
  1578. <input type="datetime-local" class="form-input" />
  1579. </div>
  1580. <div class="form-item">
  1581. <label class="form-label">缴费状态</label>
  1582. <select class="form-select">
  1583. <option selected>待缴费</option>
  1584. <option>已缴费</option>
  1585. <option>已退款</option>
  1586. </select>
  1587. </div>
  1588. <div class="form-item">
  1589. <label class="form-label">应缴费时间</label>
  1590. <input type="date" class="form-input" value="2025-06-08" />
  1591. </div>
  1592. </div>
  1593. <div class="voucher-row">
  1594. <span class="voucher-label">转账凭证</span>
  1595. <button class="btn-upload-sm">上传凭证</button>
  1596. </div>
  1597. </div>
  1598. </div>
  1599. </div>
  1600. <!-- Detail Card 3 (Collapsed) -->
  1601. <div class="detail-card">
  1602. <div class="detail-header" onclick="toggleDetail(this)">
  1603. <span class="detail-chevron">▶</span>
  1604. <span class="detail-title">尾款</span>
  1605. <span class="detail-amount amber">¥5,533</span>
  1606. <span class="badge badge-amber">待缴费</span>
  1607. <span class="detail-summary">应缴 2025-12-08</span>
  1608. <button class="detail-delete" onclick="event.stopPropagation()" title="删除"
  1609. >🗑</button
  1610. >
  1611. </div>
  1612. <div class="detail-body">
  1613. <div class="detail-body-inner">
  1614. <div class="form-grid" style="margin-top: 16px">
  1615. <div class="form-item">
  1616. <label class="form-label">应缴费金额</label>
  1617. <input type="text" class="form-input" value="¥5,533" disabled />
  1618. </div>
  1619. <div class="form-item">
  1620. <label class="form-label">转账方式</label>
  1621. <select class="form-select">
  1622. <option>请选择转账方式</option>
  1623. <option>银行卡转账</option>
  1624. <option>微信</option>
  1625. <option>支付宝</option>
  1626. </select>
  1627. </div>
  1628. <div class="form-item">
  1629. <label class="form-label">转账金额</label>
  1630. <input type="text" class="form-input" placeholder="请输入转账金额" />
  1631. </div>
  1632. <div class="form-item">
  1633. <label class="form-label">转账时间</label>
  1634. <input type="datetime-local" class="form-input" />
  1635. </div>
  1636. <div class="form-item">
  1637. <label class="form-label">缴费状态</label>
  1638. <select class="form-select">
  1639. <option selected>待缴费</option>
  1640. <option>已缴费</option>
  1641. <option>已退款</option>
  1642. </select>
  1643. </div>
  1644. <div class="form-item">
  1645. <label class="form-label">应缴费时间</label>
  1646. <input type="date" class="form-input" value="2025-12-08" />
  1647. </div>
  1648. </div>
  1649. <div class="voucher-row">
  1650. <span class="voucher-label">转账凭证</span>
  1651. <button class="btn-upload-sm">上传凭证</button>
  1652. </div>
  1653. </div>
  1654. </div>
  1655. </div>
  1656. </div>
  1657. </div>
  1658. </div>
  1659. </div> </div
  1660. ><!-- /dialog-body -->
  1661. <!-- ── Footer ── -->
  1662. <div class="dialog-footer">
  1663. <button class="btn btn-ghost">取消</button>
  1664. <button class="btn btn-primary">✓ 确定</button>
  1665. </div> </div
  1666. ><!-- /dialog --> </div
  1667. ><!-- /overlay -->
  1668. <script>
  1669. // Scroll-to-section navigation
  1670. function scrollToSection(el, sectionId) {
  1671. var pills = document.querySelectorAll('.tab-pill')
  1672. pills.forEach(function (p) {
  1673. p.classList.remove('active')
  1674. })
  1675. el.classList.add('active')
  1676. var target = document.getElementById(sectionId)
  1677. if (target) {
  1678. var body = document.querySelector('.dialog-body')
  1679. var top = target.offsetTop - 60 // offset for sticky tab bar
  1680. body.scrollTo({ top: top, behavior: 'smooth' })
  1681. }
  1682. }
  1683. // Transport panel toggle
  1684. function toggleTransport(el) {
  1685. var body = el.nextElementSibling
  1686. var isOpen = body.classList.contains('open')
  1687. if (isOpen) {
  1688. body.classList.remove('open')
  1689. el.classList.remove('expanded')
  1690. } else {
  1691. body.classList.add('open')
  1692. el.classList.add('expanded')
  1693. }
  1694. }
  1695. // Detail card toggle
  1696. function toggleDetail(el) {
  1697. var card = el.closest('.detail-card')
  1698. var isExpanded = card.classList.contains('expanded')
  1699. if (isExpanded) {
  1700. card.classList.remove('expanded')
  1701. } else {
  1702. card.classList.add('expanded')
  1703. }
  1704. }
  1705. </script>
  1706. </body>
  1707. </html>