feat:批量扣款统计、单次扣款统计
This commit is contained in:
1 parent
b8304e13e4
commit
4941745f96
1 file changed
+47
-1
@@ -63,6 +63,39 @@
|
||||
<div :class="{ 'color-success': row.walletCount != 0 }">{{ row.walletCount }}次</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="walletReducePrice" label="批量扣减金额" align="center">
|
||||
<template #default="{ row }">
|
||||
<div :class="{ 'color-success': row.walletReducePrice != 0 }">{{ displayPrice(row.walletReducePrice) }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="walletReduceCount" label="批量扣减次数" align="center">
|
||||
<template #default="{ row }">
|
||||
<div :class="{ 'color-success': row.walletReduceCount != 0 }">{{ row.walletReduceCount }}次</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column prop="walletOncePrice" label="单次充值金额" align="center">
|
||||
<template #default="{ row }">
|
||||
<div :class="{ 'color-success': row.walletOncePrice != 0 }">{{ displayPrice(row.walletOncePrice) }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="walletOnceCount" label="单次充值次数" align="center">
|
||||
<template #default="{ row }">
|
||||
<div :class="{ 'color-success': row.walletOnceCount != 0 }">{{ row.walletOnceCount }}次</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column prop="walletOnceReducePrice" label="单次扣减金额" align="center">
|
||||
<template #default="{ row }">
|
||||
<div :class="{ 'color-success': row.walletOnceReducePrice != 0 }">{{ displayPrice(row.walletOnceReducePrice) }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="walletOnceReduceCount" label="单次扣减次数" align="center">
|
||||
<template #default="{ row }">
|
||||
<div :class="{ 'color-success': row.walletOnceReduceCount != 0 }">{{ row.walletOnceReduceCount }}次</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column prop="orderPayPrice" label="消费金额" align="center">
|
||||
<template #default="{ row }">
|
||||
<div :class="{ 'color-primary': row.orderPayPrice != 0 }">{{ displayPrice(row.orderPayPrice) }}</div>
|
||||
@@ -124,7 +157,20 @@ const exportExcel = () => {
|
||||
|
||||
const getSummaries = (param: any) => {
|
||||
const { columns, data } = param
|
||||
const totalColumns = ["walletPrice", "walletCount", "orderPayPrice", "orderPayCount", "orderRefundPrice", "orderRefundCont"]
|
||||
const totalColumns = [
|
||||
"walletPrice",
|
||||
"walletCount",
|
||||
"orderPayPrice",
|
||||
"orderPayCount",
|
||||
"orderRefundPrice",
|
||||
"orderRefundCont",
|
||||
"walletReducePrice",
|
||||
"walletReduceCount",
|
||||
"walletOncePrice",
|
||||
"walletOnceCount",
|
||||
"walletOnceReducePrice",
|
||||
"walletOnceReduceCount",
|
||||
]
|
||||
const totalRow = Array.from({ length: columns.length })
|
||||
columns.forEach((i: any, index: number) => {
|
||||
if (totalColumns.includes(i.property)) {
|
||||
|
||||
Reference in new issue
Block a user