reconciliation.scss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844
  1. // 对账管理页面样式
  2. // 定义主题颜色
  3. $primary-color: #007bff;
  4. $primary-hover: #0056b3;
  5. $secondary-color: #6c757d;
  6. $success-color: #28a745;
  7. $warning-color: #ffc107;
  8. $danger-color: #dc3545;
  9. $info-color: #17a2b8;
  10. $background-light: #f8fafc;
  11. $background-white: #ffffff;
  12. $border-color: #e2e8f0;
  13. $text-primary: #1e293b;
  14. $text-secondary: #64748b;
  15. $text-muted: #94a3b8;
  16. .reconciliation-container {
  17. padding: 24px;
  18. max-width: 1400px;
  19. margin: 0 auto;
  20. background-color: $background-light;
  21. // 页面标题和操作按钮
  22. .page-header {
  23. display: flex;
  24. justify-content: space-between;
  25. align-items: center;
  26. margin-bottom: 28px;
  27. padding-bottom: 20px;
  28. border-bottom: 2px solid $border-color;
  29. background-color: $background-white;
  30. padding: 24px;
  31. border-radius: 12px;
  32. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  33. .header-top {
  34. margin-bottom: 0;
  35. }
  36. h2 {
  37. font-size: 28px;
  38. font-weight: 700;
  39. color: $text-primary;
  40. margin: 0;
  41. letter-spacing: -0.5px;
  42. }
  43. .header-actions {
  44. button {
  45. padding: 10px 24px;
  46. font-size: 14px;
  47. font-weight: 500;
  48. border-radius: 8px;
  49. transition: all 0.3s ease;
  50. box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
  51. &:hover {
  52. transform: translateY(-1px);
  53. box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
  54. }
  55. }
  56. }
  57. .back-to-dashboard-btn {
  58. display: inline-flex;
  59. align-items: center;
  60. gap: 8px;
  61. padding: 8px 16px;
  62. background-color: #F2F3F5;
  63. color: #1D2129;
  64. border: 1px solid #E5E6EB;
  65. border-radius: 8px;
  66. font-size: 14px;
  67. font-weight: 500;
  68. cursor: pointer;
  69. transition: all 0.2s ease-in-out;
  70. text-decoration: none;
  71. min-height: 40px;
  72. white-space: nowrap;
  73. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  74. &:hover {
  75. background-color: #F7F8FA;
  76. border-color: rgba(22, 93, 255, 0.3);
  77. color: #1D2129;
  78. transform: translateY(-1px);
  79. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  80. }
  81. &:active {
  82. transform: translateY(0);
  83. background-color: #F2F3F5;
  84. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  85. }
  86. &:focus {
  87. outline: 2px solid rgba(22, 93, 255, 0.3);
  88. outline-offset: 2px;
  89. }
  90. }
  91. }
  92. // 过滤区域
  93. .filter-section {
  94. display: flex;
  95. flex-wrap: wrap;
  96. gap: 20px;
  97. margin-bottom: 28px;
  98. padding: 24px;
  99. background-color: $background-white;
  100. border-radius: 12px;
  101. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  102. .filter-group {
  103. display: flex;
  104. flex-direction: column;
  105. gap: 8px;
  106. min-width: 220px;
  107. label {
  108. font-size: 13px;
  109. font-weight: 600;
  110. color: $text-secondary;
  111. text-transform: uppercase;
  112. letter-spacing: 0.5px;
  113. }
  114. select,
  115. .form-control {
  116. padding: 12px 16px;
  117. border: 1px solid $border-color;
  118. border-radius: 8px;
  119. font-size: 14px;
  120. transition: all 0.3s ease;
  121. background-color: $background-white;
  122. &:focus {
  123. outline: none;
  124. border-color: $primary-color;
  125. box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  126. }
  127. }
  128. .date-range {
  129. display: flex;
  130. align-items: center;
  131. gap: 12px;
  132. .date-input {
  133. flex: 1;
  134. }
  135. span {
  136. font-size: 14px;
  137. color: $text-muted;
  138. font-weight: 500;
  139. }
  140. }
  141. }
  142. }
  143. // 卡片样式
  144. .section-card {
  145. background-color: $background-white;
  146. border-radius: 12px;
  147. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  148. margin-bottom: 28px;
  149. overflow: hidden;
  150. transition: transform 0.3s ease, box-shadow 0.3s ease;
  151. &:hover {
  152. transform: translateY(-2px);
  153. box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  154. }
  155. .section-header {
  156. padding: 20px 24px;
  157. border-bottom: 1px solid $border-color;
  158. background-color: #fafbfc;
  159. h3 {
  160. font-size: 20px;
  161. font-weight: 600;
  162. color: $text-primary;
  163. margin: 0;
  164. display: flex;
  165. align-items: center;
  166. gap: 8px;
  167. }
  168. }
  169. }
  170. // 表格样式
  171. .table-responsive {
  172. overflow-x: auto;
  173. border-radius: 8px;
  174. margin: 0;
  175. background-color: $background-white;
  176. .table {
  177. width: 100%;
  178. border-collapse: collapse;
  179. border-spacing: 0;
  180. margin-bottom: 0;
  181. thead {
  182. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  183. th {
  184. padding: 16px;
  185. text-align: left;
  186. font-size: 13px;
  187. font-weight: 600;
  188. color: white;
  189. white-space: nowrap;
  190. letter-spacing: 0.5px;
  191. text-transform: uppercase;
  192. border-bottom: none;
  193. }
  194. }
  195. tbody {
  196. tr {
  197. border-bottom: 1px solid $border-color;
  198. transition: all 0.3s ease;
  199. position: relative;
  200. overflow: hidden;
  201. &:hover {
  202. background-color: #f8fafc;
  203. transform: translateX(2px);
  204. }
  205. &:last-child {
  206. border-bottom: none;
  207. }
  208. td {
  209. padding: 16px;
  210. font-size: 14px;
  211. color: $text-primary;
  212. vertical-align: middle;
  213. font-weight: 500;
  214. transition: all 0.3s ease;
  215. .btn {
  216. padding: 6px 16px;
  217. font-size: 13px;
  218. border-radius: 6px;
  219. transition: all 0.3s ease;
  220. font-weight: 500;
  221. &:hover {
  222. transform: translateY(-1px);
  223. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  224. }
  225. }
  226. .btn-view {
  227. background-color: $info-color;
  228. color: white;
  229. border: none;
  230. &:hover {
  231. background-color: #138496;
  232. }
  233. }
  234. }
  235. }
  236. .no-data {
  237. text-align: center;
  238. padding: 60px 16px !important;
  239. color: $text-muted;
  240. font-style: normal;
  241. font-size: 15px;
  242. font-weight: 500;
  243. }
  244. }
  245. }
  246. // 小表格样式
  247. .table-small {
  248. thead th,
  249. tbody td {
  250. padding: 12px;
  251. font-size: 13px;
  252. }
  253. thead {
  254. background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  255. }
  256. }
  257. }
  258. // 状态标签样式
  259. .status-badge {
  260. padding: 6px 12px;
  261. border-radius: 50px;
  262. font-size: 12px;
  263. font-weight: 600;
  264. text-align: center;
  265. min-width: 80px;
  266. display: inline-flex;
  267. align-items: center;
  268. justify-content: center;
  269. text-transform: uppercase;
  270. letter-spacing: 0.5px;
  271. transition: all 0.3s ease;
  272. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  273. &:hover {
  274. transform: translateY(-1px);
  275. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  276. }
  277. &.status-pending {
  278. background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  279. color: #c7794c;
  280. }
  281. &.status-partial {
  282. background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
  283. color: #5e4b8b;
  284. }
  285. &.status-completed {
  286. background: linear-gradient(135deg, #c1fcd3 0%, #02b875 100%);
  287. color: white;
  288. }
  289. &.status-discrepancy {
  290. background: linear-gradient(135deg, #ffc6ff 0%, #b967ff 100%);
  291. color: white;
  292. }
  293. }
  294. // 交易类型标签样式
  295. .transaction-type {
  296. padding: 6px 12px;
  297. border-radius: 50px;
  298. font-size: 12px;
  299. font-weight: 600;
  300. text-align: center;
  301. display: inline-flex;
  302. align-items: center;
  303. justify-content: center;
  304. text-transform: uppercase;
  305. letter-spacing: 0.5px;
  306. transition: all 0.3s ease;
  307. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  308. &:hover {
  309. transform: translateY(-1px);
  310. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  311. }
  312. &.transaction-payment {
  313. background: linear-gradient(135deg, #c1fcd3 0%, #02b875 100%);
  314. color: white;
  315. }
  316. &.transaction-expense {
  317. background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  318. color: #c74a50;
  319. }
  320. &.transaction-refund {
  321. background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  322. color: #c7794c;
  323. }
  324. }
  325. // 按钮样式
  326. .btn {
  327. padding: 10px 20px;
  328. border: none;
  329. border-radius: 8px;
  330. font-size: 14px;
  331. font-weight: 500;
  332. cursor: pointer;
  333. transition: all 0.3s ease;
  334. display: inline-flex;
  335. align-items: center;
  336. justify-content: center;
  337. gap: 8px;
  338. text-transform: uppercase;
  339. letter-spacing: 0.5px;
  340. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  341. &:disabled {
  342. opacity: 0.6;
  343. cursor: not-allowed;
  344. transform: none !important;
  345. box-shadow: none;
  346. }
  347. &.btn-primary {
  348. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  349. color: white;
  350. &:hover:not(:disabled) {
  351. transform: translateY(-2px);
  352. box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
  353. }
  354. }
  355. &.btn-secondary {
  356. background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  357. color: $text-primary;
  358. border: 1px solid $border-color;
  359. &:hover:not(:disabled) {
  360. transform: translateY(-2px);
  361. box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  362. background: linear-gradient(135deg, #e6e9f0 0%, #d1d8e0 100%);
  363. }
  364. }
  365. &.btn-sm {
  366. padding: 6px 16px;
  367. font-size: 13px;
  368. text-transform: none;
  369. letter-spacing: normal;
  370. }
  371. // 成功状态按钮
  372. &.btn-success {
  373. background: linear-gradient(135deg, #c1fcd3 0%, #02b875 100%);
  374. color: white;
  375. &:hover:not(:disabled) {
  376. transform: translateY(-2px);
  377. box-shadow: 0 6px 16px rgba(2, 184, 117, 0.4);
  378. }
  379. }
  380. // 危险状态按钮
  381. &.btn-danger {
  382. background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  383. color: #c74a50;
  384. &:hover:not(:disabled) {
  385. transform: translateY(-2px);
  386. box-shadow: 0 6px 16px rgba(255, 154, 158, 0.4);
  387. }
  388. }
  389. }
  390. // 模态框样式
  391. .modal-overlay {
  392. position: fixed;
  393. top: 0;
  394. left: 0;
  395. right: 0;
  396. bottom: 0;
  397. background-color: rgba(0, 0, 0, 0.6);
  398. display: flex;
  399. align-items: center;
  400. justify-content: center;
  401. z-index: 1000;
  402. backdrop-filter: blur(4px);
  403. animation: fadeIn 0.3s ease;
  404. }
  405. @keyframes fadeIn {
  406. from { opacity: 0; }
  407. to { opacity: 1; }
  408. }
  409. .modal-content {
  410. background-color: $background-white;
  411. border-radius: 16px;
  412. box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  413. width: 90%;
  414. max-width: 800px;
  415. max-height: 90vh;
  416. display: flex;
  417. flex-direction: column;
  418. overflow: hidden;
  419. animation: slideIn 0.3s ease;
  420. border: 1px solid $border-color;
  421. }
  422. @keyframes slideIn {
  423. from {
  424. opacity: 0;
  425. transform: translateY(-20px);
  426. }
  427. to {
  428. opacity: 1;
  429. transform: translateY(0);
  430. }
  431. }
  432. .modal-header {
  433. display: flex;
  434. justify-content: space-between;
  435. align-items: center;
  436. padding: 24px 32px;
  437. border-bottom: 1px solid $border-color;
  438. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  439. color: white;
  440. h3 {
  441. font-size: 22px;
  442. font-weight: 600;
  443. margin: 0;
  444. display: flex;
  445. align-items: center;
  446. gap: 10px;
  447. }
  448. .modal-close {
  449. background: rgba(255, 255, 255, 0.2);
  450. border: none;
  451. font-size: 24px;
  452. cursor: pointer;
  453. color: white;
  454. padding: 0;
  455. width: 40px;
  456. height: 40px;
  457. display: flex;
  458. align-items: center;
  459. justify-content: center;
  460. border-radius: 50%;
  461. transition: all 0.3s ease;
  462. &:hover {
  463. background: rgba(255, 255, 255, 0.3);
  464. transform: rotate(90deg);
  465. }
  466. }
  467. }
  468. .modal-body {
  469. padding: 32px;
  470. overflow-y: auto;
  471. flex: 1;
  472. // 详情网格样式
  473. .detail-grid {
  474. display: grid;
  475. grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  476. gap: 20px;
  477. margin-bottom: 32px;
  478. .detail-item {
  479. display: flex;
  480. flex-direction: column;
  481. gap: 8px;
  482. padding: 16px;
  483. background-color: #f8fafc;
  484. border-radius: 12px;
  485. border: 1px solid $border-color;
  486. transition: all 0.3s ease;
  487. &:hover {
  488. transform: translateY(-2px);
  489. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  490. }
  491. &.full-width {
  492. grid-column: 1 / -1;
  493. }
  494. label {
  495. font-size: 13px;
  496. font-weight: 600;
  497. color: $text-secondary;
  498. text-transform: uppercase;
  499. letter-spacing: 0.5px;
  500. }
  501. span {
  502. font-size: 16px;
  503. font-weight: 500;
  504. color: $text-primary;
  505. }
  506. }
  507. }
  508. // 交易记录区域
  509. .transactions-section {
  510. margin-top: 32px;
  511. h4 {
  512. font-size: 18px;
  513. font-weight: 600;
  514. color: $text-primary;
  515. margin-bottom: 20px;
  516. display: flex;
  517. align-items: center;
  518. gap: 8px;
  519. }
  520. }
  521. // 表单样式
  522. .form-group {
  523. margin-bottom: 24px;
  524. label {
  525. display: block;
  526. font-size: 14px;
  527. font-weight: 600;
  528. color: $text-secondary;
  529. margin-bottom: 8px;
  530. text-transform: uppercase;
  531. letter-spacing: 0.5px;
  532. }
  533. .form-control {
  534. width: 100%;
  535. padding: 12px 16px;
  536. border: 1px solid $border-color;
  537. border-radius: 8px;
  538. font-size: 14px;
  539. transition: all 0.3s ease;
  540. background-color: $background-white;
  541. &:focus {
  542. outline: none;
  543. border-color: $primary-color;
  544. box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  545. }
  546. }
  547. textarea {
  548. resize: vertical;
  549. min-height: 100px;
  550. }
  551. }
  552. // 对账预览
  553. .reconciliation-preview {
  554. margin-top: 32px;
  555. padding-top: 24px;
  556. border-top: 1px solid $border-color;
  557. h4 {
  558. font-size: 18px;
  559. font-weight: 600;
  560. color: $text-primary;
  561. margin-bottom: 20px;
  562. display: flex;
  563. align-items: center;
  564. gap: 8px;
  565. }
  566. }
  567. }
  568. .modal-footer {
  569. display: flex;
  570. justify-content: flex-end;
  571. gap: 16px;
  572. padding: 24px 32px;
  573. border-top: 1px solid $border-color;
  574. background-color: #f8fafc;
  575. }
  576. // 对账模态框特定样式
  577. .reconcile-modal {
  578. max-width: 900px;
  579. }
  580. // 响应式设计
  581. @media (max-width: 768px) {
  582. padding: 16px;
  583. .page-header {
  584. flex-direction: column;
  585. gap: 16px;
  586. align-items: stretch;
  587. padding: 16px;
  588. h2 {
  589. font-size: 24px;
  590. text-align: center;
  591. }
  592. .header-actions {
  593. text-align: center;
  594. order: 3;
  595. }
  596. .back-to-dashboard-btn {
  597. justify-content: center;
  598. order: 1;
  599. }
  600. }
  601. .filter-section {
  602. flex-direction: column;
  603. padding: 16px;
  604. .filter-group {
  605. min-width: auto;
  606. width: 100%;
  607. }
  608. }
  609. .section-card {
  610. margin-bottom: 20px;
  611. .section-header {
  612. padding: 16px;
  613. h3 {
  614. font-size: 18px;
  615. }
  616. }
  617. }
  618. .table-responsive {
  619. .table {
  620. thead {
  621. display: none;
  622. }
  623. tbody tr {
  624. display: block;
  625. margin-bottom: 16px;
  626. border-radius: 8px;
  627. border: 1px solid $border-color;
  628. overflow: hidden;
  629. }
  630. tbody td {
  631. display: flex;
  632. justify-content: space-between;
  633. padding: 12px 16px;
  634. border-bottom: 1px solid $border-color;
  635. text-align: right;
  636. &:before {
  637. content: attr(data-label);
  638. font-weight: 600;
  639. color: $text-secondary;
  640. text-align: left;
  641. }
  642. &:last-child {
  643. border-bottom: none;
  644. }
  645. .btn {
  646. padding: 4px 12px;
  647. font-size: 12px;
  648. margin-left: auto;
  649. }
  650. .status-badge,
  651. .transaction-type {
  652. margin-left: auto;
  653. }
  654. }
  655. }
  656. }
  657. .modal-content {
  658. width: 95%;
  659. margin: 10px;
  660. border-radius: 12px;
  661. .modal-header {
  662. padding: 16px 20px;
  663. h3 {
  664. font-size: 18px;
  665. }
  666. }
  667. .modal-body {
  668. padding: 16px;
  669. .detail-grid {
  670. grid-template-columns: 1fr;
  671. gap: 12px;
  672. .detail-item {
  673. padding: 12px;
  674. }
  675. }
  676. .form-group {
  677. margin-bottom: 16px;
  678. }
  679. .transactions-section,
  680. .reconciliation-preview {
  681. margin-top: 20px;
  682. h4 {
  683. font-size: 16px;
  684. }
  685. }
  686. }
  687. .modal-footer {
  688. padding: 16px 20px;
  689. flex-direction: column;
  690. }
  691. }
  692. }
  693. // 超小屏幕适配
  694. @media (max-width: 480px) {
  695. .page-header {
  696. padding: 12px;
  697. }
  698. .filter-section {
  699. padding: 12px;
  700. }
  701. .table-responsive {
  702. .table {
  703. tbody td {
  704. padding: 8px 12px;
  705. font-size: 13px;
  706. }
  707. }
  708. }
  709. .modal-content {
  710. .modal-header {
  711. padding: 12px 16px;
  712. h3 {
  713. font-size: 16px;
  714. }
  715. }
  716. .modal-body {
  717. padding: 12px;
  718. }
  719. .modal-footer {
  720. padding: 12px 16px;
  721. }
  722. }
  723. }
  724. }