|
|
@@ -0,0 +1,182 @@
|
|
|
+<template>
|
|
|
+ <ele-page flex-table>
|
|
|
+ <page-search @search="reload"></page-search>
|
|
|
+
|
|
|
+ <common-table ref="pageRef" :pageConfig="pageConfig" :columns="columns">
|
|
|
+ <template #toolbar>
|
|
|
+ <div class="flex items-center mb-4">
|
|
|
+ <el-statistic
|
|
|
+ :value="693700"
|
|
|
+ title="提现累计金额"
|
|
|
+ value-style="font-size:30px"
|
|
|
+ class="mr-10"
|
|
|
+ ></el-statistic>
|
|
|
+ <el-statistic
|
|
|
+ :value="693700"
|
|
|
+ title="待提现金额"
|
|
|
+ value-style="font-size:30px"
|
|
|
+ class="mr-10"
|
|
|
+ ></el-statistic>
|
|
|
+ <el-statistic
|
|
|
+ :value="693700"
|
|
|
+ title="提现中金额"
|
|
|
+ value-style="font-size:30px"
|
|
|
+ class="mr-10"
|
|
|
+ ></el-statistic>
|
|
|
+ <el-statistic
|
|
|
+ :value="693700"
|
|
|
+ title="已提现金额"
|
|
|
+ value-style="font-size:30px"
|
|
|
+ class="mr-10"
|
|
|
+ ></el-statistic>
|
|
|
+ <el-statistic
|
|
|
+ :value="693700"
|
|
|
+ title="平均提现时长"
|
|
|
+ value-style="font-size:30px"
|
|
|
+ class="mr-10"
|
|
|
+ ></el-statistic>
|
|
|
+ <el-statistic
|
|
|
+ :value="693700"
|
|
|
+ title="长期不提现金额"
|
|
|
+ value-style="font-size:30px"
|
|
|
+ class="mr-10"Audit
|
|
|
+ ></el-statistic>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="flex items-center mb-6">
|
|
|
+ <div class="common-title mr-10">交易记录</div>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ v-permission="'finance:withdrawal:batchAudit'"
|
|
|
+ @click="handleStepAudit()"
|
|
|
+ >
|
|
|
+ 一键审核
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <el-radio-group @change="handleStatusChange" v-model="useStatus">
|
|
|
+ <el-radio-button label="全部" value="1" />
|
|
|
+ <el-radio-button label="提现中" value="2" />
|
|
|
+ <el-radio-button label="提现完成" value="3" />
|
|
|
+ <el-radio-button label="提现失败" value="4" />
|
|
|
+ <el-radio-button label="长期不提现用户" value="5" />
|
|
|
+ </el-radio-group>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #action="{ row }">
|
|
|
+ <div>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ link
|
|
|
+ v-permission="'finance:withdrawal:detail'"
|
|
|
+ @click="handleUpdate(row)"
|
|
|
+ >
|
|
|
+ [详情]
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ link
|
|
|
+ v-permission="'finance:withdrawal:audit'"
|
|
|
+ @click="handleChangeStatus(row)"
|
|
|
+ >
|
|
|
+ [审核]
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </common-table>
|
|
|
+
|
|
|
+ </ele-page>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+ import { ref, reactive } from 'vue';
|
|
|
+ import CommonTable from '@/components/CommonPage/CommonTable.vue';
|
|
|
+ import pageSearch from './components/page-search.vue';
|
|
|
+ import { useDictData } from '@/utils/use-dict-data';
|
|
|
+ import request from '@/utils/request';
|
|
|
+
|
|
|
+ defineOptions({ name: 'withdrawal' });
|
|
|
+ const [useStatusDicts] = useDictData(['use_status']);
|
|
|
+
|
|
|
+ const useStatus = ref('1');
|
|
|
+ function handleStatusChange(value) {
|
|
|
+ pageRef.value.reload({ useStatus: value });
|
|
|
+ }
|
|
|
+
|
|
|
+ /** 表格列配置 */
|
|
|
+ const columns = ref([
|
|
|
+ {
|
|
|
+ type: 'selection',
|
|
|
+ columnKey: 'selection',
|
|
|
+ width: 50,
|
|
|
+ align: 'center',
|
|
|
+ fixed: 'left'
|
|
|
+ },
|
|
|
+ { label: '提现时间', prop: 'createTime', align: 'center', width: 180 },
|
|
|
+ { label: '用户UID', prop: 'uid', align: 'center', minWidth: 140 },
|
|
|
+ {
|
|
|
+ label: '支付单号/流水号',
|
|
|
+ prop: 'paymentCode',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 160
|
|
|
+ },
|
|
|
+ { label: '对方账户', prop: 'addressDetail', align: 'center' },
|
|
|
+ { label: '金额', prop: 'money', align: 'center' },
|
|
|
+ {
|
|
|
+ label: '交易状态',
|
|
|
+ prop: 'useStatus',
|
|
|
+ align: 'center',
|
|
|
+ formatter: (row) =>
|
|
|
+ useStatusDicts.value.find((d) => d.dictValue == row.useStatus)
|
|
|
+ ?.dictLabel
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '交易类型',
|
|
|
+ prop: 'paymentType',
|
|
|
+ align: 'center',
|
|
|
+ formatter: (row) =>
|
|
|
+ useStatusDicts.value.find((d) => d.dictValue == row.useStatus)
|
|
|
+ ?.dictLabel
|
|
|
+ },
|
|
|
+ {
|
|
|
+ columnKey: 'action',
|
|
|
+ label: '操作',
|
|
|
+ width: 140,
|
|
|
+ align: 'center',
|
|
|
+ slot: 'action',
|
|
|
+ fixed: 'right'
|
|
|
+ }
|
|
|
+ ]);
|
|
|
+
|
|
|
+ /** 页面组件实例 */
|
|
|
+ const pageRef = ref(null);
|
|
|
+
|
|
|
+ const pageConfig = reactive({
|
|
|
+ pageUrl: '/baseinfo/godown/pagelist',
|
|
|
+ exportUrl: '/baseinfo/godown/export',
|
|
|
+ fileName: '提现管理',
|
|
|
+ cacheKey: 'withdrawalTable'
|
|
|
+ });
|
|
|
+
|
|
|
+ //刷新表格
|
|
|
+ function reload(where) {
|
|
|
+ pageRef.value?.reload(where);
|
|
|
+ }
|
|
|
+
|
|
|
+ //审核
|
|
|
+ function handleAudit(row) {
|
|
|
+ pageRef.value?.messageBoxConfirm({
|
|
|
+ message: '确认审核?',
|
|
|
+ fetch: () => {}
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ //编辑页面
|
|
|
+ const editRef = ref(null);
|
|
|
+ function handleStepAudit(row) {
|
|
|
+ pageRef.value?.messageBoxConfirm({
|
|
|
+ message: '确认一键审核?',
|
|
|
+ fetch: () => {}
|
|
|
+ });
|
|
|
+ }
|
|
|
+</script>
|