待入账金额

This commit is contained in:
磷叶 2024-10-29 17:20:31 +08:00
parent 96c0f93257
commit b26044abd6
3 changed files with 23 additions and 0 deletions

View File

@ -76,6 +76,10 @@ export const $showColumns = {
}
},
methods: {
/**
* 隐藏某些列
* @param columns
*/
hideColumn(columns) {
if (this.columns != null) {
this.columns.filter(item => columns.includes(item.key))
@ -84,6 +88,10 @@ export const $showColumns = {
})
}
},
/**
* 删除某些列
* @param columns
*/
removeColumn(columns) {
if (columns != null) {
columns.forEach(column => {

View File

@ -28,6 +28,7 @@
<el-statistic title="设备数" :value="detail.deviceCount" :precision="0" suffix="台"/>
<el-statistic title="账户余额" :value="detail.balance" :precision="2" suffix="元"/>
<el-statistic title="总收入" :value="detail.totalIncome" :precision="2" suffix="元"/>
<el-statistic title="未入账" :value="detail.waitBonusAmount" :precision="2" suffix="元"/>
<el-statistic title="总提现" :value="detail.withDrawlAmount" :precision="2" suffix="元"/>
<el-statistic title="总消费" :value="detail.rechargeAmount" :precision="2" suffix="元"/>
</el-row>

View File

@ -9,6 +9,14 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="用户名" prop="userName">
<el-input
v-model="queryParams.userName"
placeholder="请输入用户名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="备注" prop="remark">
<el-input
v-model="queryParams.remark"
@ -126,6 +134,9 @@
<template v-else-if="column.key === 'balance'">
{{d.row.balance | money}}
</template>
<template v-else-if="column.key === 'waitBonusAmount'">
{{d.row.waitBonusAmount | money}}
</template>
<template v-else-if="column.key === 'realServiceRate'">
{{d.row.realServiceRate | money | defaultValue}} %
</template>
@ -320,6 +331,7 @@ export default {
{key: 'totalIncome', visible: true, label: '收入金额', align: 'center', minWidth: null, sortable: false, width: "120"},
{key: 'withDrawlAmount', visible: true, label: '提现金额', align: 'center', minWidth: null, sortable: false, width: "120"},
{key: 'balance', visible: true, label: '余额', align: 'center', minWidth: null, sortable: true, width: null},
{key: 'waitBonusAmount', visible: true, label: '未入账', align: 'center', minWidth: null, sortable: false, width: null},
{key: 'realServiceRate', visible: true, label: '商户服务费', align: 'center', minWidth: null, sortable: false, width: "120"},
{key: 'agentServiceRate', visible: true, label: '代理服务费', align: 'center', minWidth: null, sortable: false, width: "120"},
{key: 'withdrawServiceRate', visible: true, label: '提现服务费', align: 'center', minWidth: null, sortable: false, width: "120"},
@ -375,6 +387,8 @@ export default {
};
},
created() {
this.removeColumn(['status'])
this.getList();
},
methods: {