demo-protocol-form-d.html 56 KB

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