fetch(add): 账户管理

This commit is contained in:
sexygoat
2026-01-23 17:18:24 +08:00
parent 339abca4c0
commit b53fea43c6
93 changed files with 7094 additions and 3153 deletions

View File

@@ -4,13 +4,28 @@
<!-- 搜索栏 -->
<ElForm :inline="true" :model="searchForm" class="search-form">
<ElFormItem label="客户账号">
<ElInput v-model="searchForm.accountNo" placeholder="请输入客户账号" clearable style="width: 200px" />
<ElInput
v-model="searchForm.accountNo"
placeholder="请输入客户账号"
clearable
style="width: 200px"
/>
</ElFormItem>
<ElFormItem label="客户名称">
<ElInput v-model="searchForm.customerName" placeholder="请输入客户名称" clearable style="width: 200px" />
<ElInput
v-model="searchForm.customerName"
placeholder="请输入客户名称"
clearable
style="width: 200px"
/>
</ElFormItem>
<ElFormItem label="客户类型">
<ElSelect v-model="searchForm.customerType" placeholder="请选择" clearable style="width: 150px">
<ElSelect
v-model="searchForm.customerType"
placeholder="请选择"
clearable
style="width: 150px"
>
<ElOption label="代理商" value="agent" />
<ElOption label="企业客户" value="enterprise" />
</ElSelect>
@@ -38,12 +53,16 @@
</ElTableColumn>
<ElTableColumn label="可提现金额" prop="availableAmount" width="150">
<template #default="scope">
<span style="color: var(--el-color-success)"> ¥{{ scope.row.availableAmount.toFixed(2) }} </span>
<span style="color: var(--el-color-success)">
¥{{ scope.row.availableAmount.toFixed(2) }}
</span>
</template>
</ElTableColumn>
<ElTableColumn label="待入账金额" prop="pendingAmount" width="150">
<template #default="scope">
<span style="color: var(--el-color-warning)"> ¥{{ scope.row.pendingAmount.toFixed(2) }} </span>
<span style="color: var(--el-color-warning)">
¥{{ scope.row.pendingAmount.toFixed(2) }}
</span>
</template>
</ElTableColumn>
<ElTableColumn label="已提现金额" prop="withdrawnAmount" width="150">
@@ -67,7 +86,7 @@
:total="pagination.total"
:page-sizes="[10, 20, 50, 100]"
layout="total, sizes, prev, pager, next, jumper"
style="margin-top: 20px; justify-content: flex-end"
style="justify-content: flex-end; margin-top: 20px"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
/>
@@ -84,18 +103,30 @@
</ElTag>
</ElDescriptionsItem>
<ElDescriptionsItem label="联系电话">{{ currentRow?.phone }}</ElDescriptionsItem>
<ElDescriptionsItem label="佣金总额">¥{{ currentRow?.totalCommission.toFixed(2) }}</ElDescriptionsItem>
<ElDescriptionsItem label="佣金总额"
>¥{{ currentRow?.totalCommission.toFixed(2) }}</ElDescriptionsItem
>
<ElDescriptionsItem label="可提现金额">
<span style="color: var(--el-color-success)"> ¥{{ currentRow?.availableAmount.toFixed(2) }} </span>
<span style="color: var(--el-color-success)">
¥{{ currentRow?.availableAmount.toFixed(2) }}
</span>
</ElDescriptionsItem>
<ElDescriptionsItem label="待入账金额">
<span style="color: var(--el-color-warning)"> ¥{{ currentRow?.pendingAmount.toFixed(2) }} </span>
<span style="color: var(--el-color-warning)">
¥{{ currentRow?.pendingAmount.toFixed(2) }}
</span>
</ElDescriptionsItem>
<ElDescriptionsItem label="已提现金额">¥{{ currentRow?.withdrawnAmount.toFixed(2) }}</ElDescriptionsItem>
<ElDescriptionsItem label="已提现金额"
>¥{{ currentRow?.withdrawnAmount.toFixed(2) }}</ElDescriptionsItem
>
<ElDescriptionsItem label="提现次数">{{ currentRow?.withdrawCount }}</ElDescriptionsItem>
<ElDescriptionsItem label="最后提现时间">{{ currentRow?.lastWithdrawTime }}</ElDescriptionsItem>
<ElDescriptionsItem label="最后提现时间">{{
currentRow?.lastWithdrawTime
}}</ElDescriptionsItem>
<ElDescriptionsItem label="注册时间">{{ currentRow?.createTime }}</ElDescriptionsItem>
<ElDescriptionsItem label="备注" :span="2">{{ currentRow?.remark || '无' }}</ElDescriptionsItem>
<ElDescriptionsItem label="备注" :span="2">{{
currentRow?.remark || '无'
}}</ElDescriptionsItem>
</ElDescriptions>
</ElDialog>
</div>