ProfitShareOrder.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  1. <template>
  2. <div class="profit-share-apply">
  3. <!-- 搜索条件 -->
  4. <el-card class="search-card">
  5. <el-form :model="searchForm" label-width="140px" inline>
  6. <el-form-item label="商户分账指令流水号">
  7. <el-input
  8. v-model="searchForm.out_separate_no"
  9. placeholder="请输入商户分账指令流水号"
  10. clearable
  11. style="width: 300px"
  12. @keyup.enter="handleSearch"
  13. />
  14. </el-form-item>
  15. <el-form-item label="分账状态">
  16. <el-select v-model="searchForm.status" placeholder="请选择分账状态" clearable style="width: 150px">
  17. <el-option label="全部" value="" />
  18. <el-option label="待处理" value="PENDING" />
  19. <el-option label="处理中" value="PROCESSING" />
  20. <el-option label="已受理" value="ACCEPTED" />
  21. <el-option label="成功" value="SUCCESS" />
  22. <el-option label="失败" value="FAIL" />
  23. </el-select>
  24. </el-form-item>
  25. <el-form-item>
  26. <el-button type="primary" @click="handleSearch">查询</el-button>
  27. <el-button @click="handleReset">重置</el-button>
  28. </el-form-item>
  29. </el-form>
  30. </el-card>
  31. <!-- 统计数据 -->
  32. <el-card class="stats-card" v-if="statsData">
  33. <el-row :gutter="20">
  34. <el-col :span="6">
  35. <div class="stat-item">
  36. <div class="stat-label">总分账金额</div>
  37. <div class="stat-value">¥{{ formatAmountToYuan(statsData.total_amount) }}</div>
  38. </div>
  39. </el-col>
  40. <el-col :span="6">
  41. <div class="stat-item">
  42. <div class="stat-label">商户分账总金额</div>
  43. <div class="stat-value merchant">¥{{ formatAmountToYuan(statsData.merchant_total_amount) }}</div>
  44. </div>
  45. </el-col>
  46. <el-col :span="6">
  47. <div class="stat-item">
  48. <div class="stat-label">用户分账总金额</div>
  49. <div class="stat-value user">¥{{ formatAmountToYuan(statsData.user_total_amount) }}</div>
  50. </div>
  51. </el-col>
  52. <el-col :span="6">
  53. <div class="stat-item">
  54. <div class="stat-label">待分账总金额</div>
  55. <div class="stat-value pending">¥{{ formatAmountToYuan(statsData.pending_amount) }}</div>
  56. </div>
  57. </el-col>
  58. </el-row>
  59. </el-card>
  60. <!-- 列表数据 -->
  61. <el-card class="table-card">
  62. <template #header>
  63. <div class="table-header">
  64. <div class="header-title">分账申请记录列表</div>
  65. </div>
  66. </template>
  67. <el-table
  68. v-loading="loading"
  69. :data="tableData"
  70. border
  71. stripe
  72. style="width: 100%"
  73. :header-cell-style="{background: '#f8f9fa', color: '#606266'}"
  74. highlight-current-row
  75. >
  76. <el-table-column prop="id" label="ID" width="80" align="center" />
  77. <el-table-column label="用户信息" width="200">
  78. <template #default="{ row }">
  79. <div class="user-info">
  80. <div class="user-detail-item">
  81. <span class="label">ID:</span>
  82. <span class="value">{{ row.user_id }}</span>
  83. </div>
  84. <div class="user-detail-item">
  85. <span class="label">昵称:</span>
  86. <span class="value">{{ row.user?.nickname || '-' }}</span>
  87. </div>
  88. <div class="user-detail-item">
  89. <span class="label">用户名:</span>
  90. <span class="value">{{ row.user?.username || '-' }}</span>
  91. </div>
  92. <div class="user-detail-item">
  93. <span class="label">手机:</span>
  94. <span class="value">{{ row.user?.mobile || '-' }}</span>
  95. </div>
  96. </div>
  97. </template>
  98. </el-table-column>
  99. <el-table-column label="分账指令流水号" min-width="240">
  100. <template #default="{ row }">
  101. <div class="order-numbers">
  102. <div class="order-number-item">
  103. <span class="label">商户:</span>
  104. <span class="value">{{ row.out_separate_no }}</span>
  105. </div>
  106. <div class="order-number-item">
  107. <span class="label">平台:</span>
  108. <span class="value">{{ row.separate_no || '--'}}</span>
  109. </div>
  110. </div>
  111. </template>
  112. </el-table-column>
  113. <el-table-column prop="total_amt" label="分账总金额(元)" width="140" align="right">
  114. <template #default="{ row }">
  115. <span style="font-weight: 600; color: #e6a23c; font-size: 16px">¥{{ formatAmountToYuan(row.total_amt) }}</span>
  116. </template>
  117. </el-table-column>
  118. <el-table-column label="接收方商户信息" width="220">
  119. <template #default="{ row }">
  120. <div class="merchant-info">
  121. <div class="merchant-no" :title="row.recv_merchant_no">商户号: {{ row.recv_merchant_no }}</div>
  122. <div class="merchant-no" :title="row.merchant_no">分账商户号: {{ row.merchant_no }}</div>
  123. <div class="amount-details">
  124. <div class="amount-row">
  125. <span class="label">分账金额:</span>
  126. <span class="value">¥{{ formatAmountToYuan(row.total_amt - row.separate_value) }}</span>
  127. </div>
  128. </div>
  129. </div>
  130. </template>
  131. </el-table-column>
  132. <el-table-column label="分账接收方信息" width="180">
  133. <template #default="{ row }">
  134. <div class="receiver-info">
  135. <div class="receiver-no">编号: {{ row.recv_no }}</div>
  136. <div class="amount-details">
  137. <div class="amount-row">
  138. <span class="label">总金额:</span>
  139. <span class="value">¥{{ formatAmountToYuan(getTotalSeparateAmount(row)) }}</span>
  140. </div>
  141. <div class="amount-row">
  142. <span class="label">手续费:</span>
  143. <span class="value fee">-¥{{ formatAmountToYuan(row.fee_amt) }}</span>
  144. </div>
  145. <div class="divider"></div>
  146. <div class="amount-row total">
  147. <span class="label">实际分账:</span>
  148. <span class="value total">¥{{ formatAmountToYuan(row.separate_value) }}</span>
  149. </div>
  150. </div>
  151. </div>
  152. </template>
  153. </el-table-column>
  154. <el-table-column prop="status" label="分账状态" width="120" align="center">
  155. <template #default="{ row }">
  156. <span :class="['status-badge', `status-${row.status.toLowerCase()}`]">{{ getStatusText(row.status) }}</span>
  157. </template>
  158. </el-table-column>
  159. <el-table-column prop="fail_reason" label="分账失败原因" min-width="180" />
  160. <el-table-column prop="create_time" label="创建时间" width="180" align="center" />
  161. <el-table-column prop="update_time" label="更新时间" width="180" align="center" />
  162. <el-table-column label="操作" width="180" fixed="right">
  163. <template #default="{ row }">
  164. <div v-if="row.status === 'PENDING'">
  165. <el-button type="success" size="small" @click="handleApprove(row)">通过</el-button>
  166. <el-button type="danger" size="small" @click="handleReject(row)">驳回</el-button>
  167. </div>
  168. <div>
  169. <el-button
  170. type="primary"
  171. size="small"
  172. link
  173. @click="showBalanceRecordDialog(row.user_id)"
  174. >
  175. 资金明细
  176. </el-button>
  177. </div>
  178. </template>
  179. </el-table-column>
  180. </el-table>
  181. <!-- 分页 -->
  182. <el-pagination
  183. v-model:current-page="pagination.page"
  184. v-model:page-size="pagination.limit"
  185. :total="pagination.total"
  186. :page-sizes="[10, 20, 50, 100]"
  187. layout="total, sizes, prev, pager, next, jumper"
  188. @size-change="handleSizeChange"
  189. @current-change="handleCurrentChange"
  190. class="pagination"
  191. />
  192. </el-card>
  193. <!-- 驳回对话框 -->
  194. <el-dialog
  195. v-model="rejectDialogVisible"
  196. title="驳回分账申请"
  197. width="500px"
  198. destroy-on-close
  199. >
  200. <el-form label-width="100px">
  201. <el-form-item label="驳回原因" required>
  202. <el-input
  203. v-model="rejectForm.reason"
  204. type="textarea"
  205. :rows="3"
  206. placeholder="请输入驳回原因"
  207. />
  208. </el-form-item>
  209. </el-form>
  210. <template #footer>
  211. <span class="dialog-footer">
  212. <el-button @click="rejectDialogVisible = false">取消</el-button>
  213. <el-button type="primary" @click="submitReject" :loading="rejectLoading">确定</el-button>
  214. </span>
  215. </template>
  216. </el-dialog>
  217. <!-- 资金明细对话框 -->
  218. <el-dialog
  219. v-model="balanceRecordDialogVisible"
  220. title="资金明细"
  221. width="800px"
  222. @close="closeBalanceRecordDialog"
  223. >
  224. <el-table
  225. v-loading="balanceRecordLoading"
  226. :data="balanceRecords"
  227. stripe
  228. style="width: 100%"
  229. >
  230. <el-table-column prop="id" label="ID" width="80" />
  231. <el-table-column prop="type_text" label="类型" width="100" />
  232. <el-table-column prop="amount" label="金额" width="120" align="right">
  233. <template #default="scope">
  234. <span :class="scope.row.amount > 0 ? 'amount-increase' : 'amount-decrease'">
  235. {{ scope.row.amount > 0 ? '+' : '' }}{{ scope.row.amount }}
  236. </span>
  237. </template>
  238. </el-table-column>
  239. <el-table-column prop="balance" label="余额" width="120" align="right" />
  240. <el-table-column prop="description" label="描述" show-overflow-tooltip />
  241. <el-table-column prop="create_time" label="时间" width="160" />
  242. </el-table>
  243. <!-- 资金明细分页 -->
  244. <div class="pagination-container" style="margin-top: 20px;">
  245. <el-pagination
  246. v-model:current-page="balanceRecordPagination.page"
  247. v-model:page-size="balanceRecordPagination.limit"
  248. :total="balanceRecordPagination.total"
  249. :page-sizes="[10, 20, 50]"
  250. background
  251. layout="total, sizes, prev, pager, next, jumper"
  252. @size-change="handleBalanceRecordSizeChange"
  253. @current-change="handleBalanceRecordCurrentChange"
  254. />
  255. </div>
  256. <template #footer>
  257. <span class="dialog-footer">
  258. <el-button @click="closeBalanceRecordDialog">关闭</el-button>
  259. </span>
  260. </template>
  261. </el-dialog>
  262. </div>
  263. </template>
  264. <script>
  265. export default {
  266. name: "ProfitShareOrder",
  267. inheritAttrs: false,
  268. props: {
  269. axiosInstance: {
  270. type: Object,
  271. default: null
  272. }
  273. },
  274. data() {
  275. return {
  276. loading: false,
  277. rejectLoading: false,
  278. balanceRecordLoading: false,
  279. searchForm: {
  280. out_separate_no: '',
  281. status: ''
  282. },
  283. tableData: [],
  284. statsData: null,
  285. pagination: {
  286. page: 1,
  287. limit: 10,
  288. total: 0
  289. },
  290. // 驳回对话框相关
  291. rejectDialogVisible: false,
  292. rejectForm: {
  293. orderId: null,
  294. reason: ''
  295. },
  296. // 资金明细对话框相关
  297. balanceRecordDialogVisible: false,
  298. balanceRecords: [],
  299. balanceRecordPagination: {
  300. page: 1,
  301. limit: 10,
  302. total: 0
  303. },
  304. currentUserId: null
  305. }
  306. },
  307. async created() {
  308. this.fetchData()
  309. },
  310. methods: {
  311. // 计算用户分账总金额(实际分账+手续费)
  312. getTotalSeparateAmount(row) {
  313. // 处理字符串和数字类型的金额值
  314. const separateValue = parseFloat(row.separate_value) || 0;
  315. const feeAmt = parseFloat(row.fee_amt) || 0;
  316. return separateValue + feeAmt;
  317. },
  318. // 格式化金额显示(分转元)
  319. formatAmountToYuan(amount) {
  320. if (amount === null || amount === undefined || amount === '') {
  321. return '-';
  322. }
  323. // 如果是字符串,先转换为浮点数
  324. const numericAmount = typeof amount === 'string' ? parseFloat(amount) : amount;
  325. // 将分转换为元并保留两位小数
  326. return (numericAmount / 100).toFixed(2);
  327. },
  328. // 获取分账状态文本
  329. getStatusText(status) {
  330. const statusMap = {
  331. 'PENDING': '待处理',
  332. 'PROCESSING': '处理中',
  333. 'ACCEPTED': '已受理',
  334. 'SUCCESS': '成功',
  335. 'FAIL': '失败'
  336. }
  337. return statusMap[status] || status
  338. },
  339. // 获取列表数据
  340. async fetchData() {
  341. if (!this.axiosInstance) {
  342. this.$message.error('无法获取请求实例')
  343. return
  344. }
  345. this.loading = true
  346. try {
  347. const params = {
  348. page: this.pagination.page,
  349. limit: this.pagination.limit,
  350. out_separate_no: this.searchForm.out_separate_no,
  351. status: this.searchForm.status
  352. }
  353. const res = await this.axiosInstance.get('/lakala/profit_share_order', { params })
  354. if (res.code === 200) {
  355. this.tableData = res.page.data
  356. this.pagination.total = res.page.total
  357. this.pagination.limit = res.page.per_page
  358. // 获取统计数据并计算商户分账总金额
  359. if (res.data?.stats) {
  360. // 商户分账总金额 = 总分账金额 - 用户分账总金额
  361. res.data.stats.merchant_total_amount = res.data.stats.total_amount - res.data.stats.user_total_amount;
  362. this.statsData = res.data.stats;
  363. } else {
  364. this.statsData = null;
  365. }
  366. } else {
  367. this.$message.error(res.msg || res.message || '获取数据失败')
  368. }
  369. } catch (error) {
  370. console.error('获取分账申请记录列表失败:', error)
  371. this.$message.error('获取数据失败: ' + (error.message || '未知错误'))
  372. } finally {
  373. this.loading = false
  374. }
  375. },
  376. // 查询
  377. handleSearch() {
  378. this.pagination.page = 1
  379. this.fetchData()
  380. },
  381. // 重置
  382. handleReset() {
  383. this.searchForm = {
  384. out_separate_no: '',
  385. status: ''
  386. }
  387. this.pagination.page = 1
  388. this.fetchData()
  389. },
  390. // 通过分账申请
  391. async handleApprove(row) {
  392. try {
  393. await this.$confirm('确认通过该分账申请吗?', '提示', {
  394. confirmButtonText: '确定',
  395. cancelButtonText: '取消',
  396. type: 'warning'
  397. });
  398. const res = await this.axiosInstance.put(`/lakala/profit_share_order/${row.id}/approve`);
  399. if (res.code === 200) {
  400. this.$message.success('操作成功');
  401. this.fetchData(); // 刷新列表
  402. } else {
  403. this.$message.error(res.msg || res.message || '操作失败');
  404. }
  405. } catch (error) {
  406. if (error !== 'cancel') {
  407. console.error('通过分账申请失败:', error);
  408. this.$message.error('操作失败: ' + (error.message || '未知错误'));
  409. }
  410. }
  411. },
  412. // 显示驳回对话框
  413. handleReject(row) {
  414. this.rejectForm.orderId = row.id;
  415. this.rejectForm.reason = '';
  416. this.rejectDialogVisible = true;
  417. },
  418. // 提交驳回
  419. async submitReject() {
  420. if (!this.rejectForm.reason) {
  421. this.$message.warning('请输入驳回原因');
  422. return;
  423. }
  424. this.rejectLoading = true;
  425. try {
  426. const res = await this.axiosInstance.put(`/lakala/profit_share_order/${this.rejectForm.orderId}/reject`, {
  427. reason: this.rejectForm.reason
  428. });
  429. if (res.code === 200) {
  430. this.$message.success('驳回成功');
  431. this.rejectDialogVisible = false;
  432. this.fetchData(); // 刷新列表
  433. } else {
  434. this.$message.error(res.msg || res.message || '驳回失败');
  435. }
  436. } catch (error) {
  437. console.error('驳回分账申请失败:', error);
  438. this.$message.error('驳回失败: ' + (error.message || '未知错误'));
  439. } finally {
  440. this.rejectLoading = false;
  441. }
  442. },
  443. // 分页相关
  444. handleSizeChange(val) {
  445. this.pagination.limit = val;
  446. this.pagination.page = 1;
  447. this.fetchData();
  448. },
  449. handleCurrentChange(val) {
  450. this.pagination.page = val;
  451. this.fetchData();
  452. },
  453. // 显示资金明细对话框
  454. showBalanceRecordDialog(userId) {
  455. this.currentUserId = userId;
  456. this.balanceRecordDialogVisible = true;
  457. this.getBalanceRecords();
  458. },
  459. // 关闭资金明细对话框
  460. closeBalanceRecordDialog() {
  461. this.balanceRecordDialogVisible = false;
  462. this.balanceRecords = [];
  463. this.balanceRecordPagination.page = 1;
  464. this.balanceRecordPagination.total = 0;
  465. this.currentUserId = null;
  466. },
  467. // 获取资金明细
  468. async getBalanceRecords() {
  469. if (!this.axiosInstance) {
  470. this.$message.error('无法获取请求实例');
  471. return;
  472. }
  473. try {
  474. this.balanceRecordLoading = true;
  475. const params = {
  476. user_id: this.currentUserId,
  477. page: this.balanceRecordPagination.page,
  478. limit: this.balanceRecordPagination.limit
  479. };
  480. const res = await this.axiosInstance.get('/balpay/log', { params });
  481. if (res.code === 200) {
  482. this.balanceRecords = res.page?.data || [];
  483. this.balanceRecordPagination.total = res.page?.total || 0;
  484. } else {
  485. this.$message.error(res.msg || '获取资金明细失败');
  486. }
  487. } catch (error) {
  488. console.error('获取资金明细失败:', error);
  489. this.$message.error('获取资金明细失败');
  490. } finally {
  491. this.balanceRecordLoading = false;
  492. }
  493. },
  494. // 资金明细分页处理
  495. handleBalanceRecordSizeChange(size) {
  496. this.balanceRecordPagination.limit = size;
  497. this.balanceRecordPagination.page = 1;
  498. this.getBalanceRecords();
  499. },
  500. handleBalanceRecordCurrentChange(page) {
  501. this.balanceRecordPagination.page = page;
  502. this.getBalanceRecords();
  503. }
  504. }
  505. }
  506. </script>
  507. <style scoped>
  508. .profit-share-apply {
  509. padding: 20px;
  510. }
  511. .search-card {
  512. margin-bottom: 20px;
  513. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  514. border-radius: 8px;
  515. }
  516. .search-card ::v-deep(.el-card__header) {
  517. background-color: #f5f7fa;
  518. font-weight: bold;
  519. }
  520. .stats-card {
  521. margin-bottom: 20px;
  522. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  523. border-radius: 8px;
  524. }
  525. .stat-item {
  526. display: flex;
  527. flex-direction: column;
  528. align-items: center;
  529. justify-content: center;
  530. padding: 20px 0;
  531. text-align: center;
  532. }
  533. .stat-label {
  534. font-size: 14px;
  535. color: #606266;
  536. margin-bottom: 8px;
  537. }
  538. .stat-value {
  539. font-size: 20px;
  540. font-weight: 600;
  541. color: #303133;
  542. }
  543. .stat-value.merchant {
  544. color: #409eff;
  545. }
  546. .stat-value.user {
  547. color: #67c23a;
  548. }
  549. .stat-value.pending {
  550. color: #e6a23c;
  551. }
  552. .table-card {
  553. margin-bottom: 20px;
  554. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  555. border-radius: 8px;
  556. overflow: hidden;
  557. }
  558. .table-header {
  559. display: flex;
  560. justify-content: space-between;
  561. align-items: center;
  562. }
  563. .header-title {
  564. font-size: 18px;
  565. font-weight: bold;
  566. color: #303133;
  567. }
  568. .pagination {
  569. margin-top: 20px;
  570. text-align: right;
  571. }
  572. .user-info {
  573. display: flex;
  574. flex-direction: column;
  575. gap: 4px;
  576. }
  577. .user-detail-item {
  578. display: flex;
  579. font-size: 12px;
  580. }
  581. .user-detail-item .label {
  582. width: 50px;
  583. font-weight: 500;
  584. color: #606266;
  585. flex-shrink: 0;
  586. }
  587. .user-detail-item .value {
  588. flex: 1;
  589. color: #303133;
  590. word-break: break-all;
  591. }
  592. .order-numbers {
  593. display: flex;
  594. flex-direction: column;
  595. gap: 4px;
  596. }
  597. .order-number-item {
  598. display: flex;
  599. }
  600. .order-number-item .label {
  601. width: 40px;
  602. font-weight: 500;
  603. color: #606266;
  604. text-align: right;
  605. margin-right: 8px;
  606. flex-shrink: 0;
  607. }
  608. .order-number-item .value {
  609. flex: 1;
  610. color: #303133;
  611. word-break: break-all;
  612. }
  613. .amount-calculation {
  614. font-size: 12px;
  615. }
  616. .amount-calculation.detail {
  617. padding: 12px;
  618. background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ed 100%);
  619. border-radius: 6px;
  620. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  621. }
  622. .amount-calculation .main-amount,
  623. .amount-calculation .fee-amount,
  624. .amount-calculation .result-amount {
  625. display: flex;
  626. justify-content: space-between;
  627. margin-bottom: 5px;
  628. }
  629. .amount-calculation .amount {
  630. font-weight: 600;
  631. color: #303133;
  632. text-align: right;
  633. }
  634. .amount-calculation .result-amount .amount {
  635. color: #67c23a;
  636. font-weight: 700;
  637. font-size: 14px;
  638. }
  639. .amount-calculation .divider {
  640. height: 1px;
  641. background: linear-gradient(to right, transparent, #c0c4cc, transparent);
  642. margin: 6px 0;
  643. }
  644. .merchant-info {
  645. padding: 8px;
  646. background: linear-gradient(135deg, #e8f4ff 0%, #d0e6ff 100%);
  647. border-radius: 4px;
  648. font-size: 12px;
  649. }
  650. .merchant-info .merchant-no {
  651. margin-bottom: 5px;
  652. color: #606266;
  653. font-weight: 500;
  654. }
  655. .receiver-info {
  656. padding: 8px;
  657. background: linear-gradient(135deg, #e8f4ff 0%, #d0e6ff 100%);
  658. border-radius: 4px;
  659. font-size: 12px;
  660. }
  661. .amount-details {
  662. margin-top: 5px;
  663. }
  664. .amount-row {
  665. display: flex;
  666. justify-content: space-between;
  667. margin-bottom: 3px;
  668. }
  669. .amount-row .label {
  670. color: #606266;
  671. }
  672. .amount-row .value {
  673. font-weight: 500;
  674. color: #303133;
  675. }
  676. .amount-row .value.fee {
  677. color: #f56c6c;
  678. }
  679. .amount-row.total {
  680. font-weight: 700;
  681. margin-top: 3px;
  682. padding-top: 3px;
  683. border-top: 1px solid #dcdfe6;
  684. }
  685. .amount-row.total .value {
  686. color: #67c23a;
  687. font-size: 14px;
  688. }
  689. .status-badge {
  690. padding: 4px 8px;
  691. border-radius: 12px;
  692. font-size: 12px;
  693. font-weight: 500;
  694. }
  695. .status-pending {
  696. background-color: #f0f9eb;
  697. color: #67c23a;
  698. }
  699. .status-processing {
  700. background-color: #ecf5ff;
  701. color: #409eff;
  702. }
  703. .status-accepted {
  704. background-color: #e6f3ff;
  705. color: #3a86ff;
  706. }
  707. .status-success {
  708. background-color: #f0f9eb;
  709. color: #67c23a;
  710. }
  711. .status-fail {
  712. background-color: #fef0f0;
  713. color: #f56c6c;
  714. }
  715. .el-table ::v-deep(.el-table__header-wrapper) th {
  716. background-color: #f5f7fa;
  717. color: #606266;
  718. font-weight: 600;
  719. }
  720. .el-table ::v-deep(.el-table__row:hover) td {
  721. background-color: #f5f9ff !important;
  722. }
  723. .dialog-footer {
  724. display: flex;
  725. justify-content: flex-end;
  726. padding: 10px 0;
  727. }
  728. ::v-deep(.el-dialog__header) {
  729. background-color: #f5f7fa;
  730. border-bottom: 1px solid #ebeef5;
  731. font-weight: bold;
  732. }
  733. ::v-deep(.el-form-item__label) {
  734. font-weight: 500;
  735. }
  736. .amount-increase {
  737. color: #67c23a;
  738. }
  739. .amount-decrease {
  740. color: #f56c6c;
  741. }
  742. .pagination-container {
  743. display: flex;
  744. justify-content: flex-end;
  745. margin-top: 20px;
  746. }
  747. </style>