feat:【mall 商城】会员统计【antd】50% 全部完成

This commit is contained in:
YunaiV
2025-10-19 19:42:07 +08:00
parent b2b43f2d19
commit 936806bd2d
2 changed files with 76 additions and 66 deletions

View File

@@ -1,3 +1,4 @@
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { MallMemberStatisticsApi } from '#/api/mall/statistics/member';
import { fenToYuan } from '@vben/utils';
@@ -89,3 +90,41 @@ export function getAreaChartOptions(
],
};
}
/** VXE Grid 表格列配置 */
export function getAreaTableColumns(): VxeTableGridOptions['columns'] {
return [
{
field: 'areaName',
title: '省份',
minWidth: 80,
sortable: true,
showOverflow: 'tooltip',
},
{
field: 'userCount',
title: '会员数量',
minWidth: 100,
sortable: true,
},
{
field: 'orderCreateUserCount',
title: '订单创建数量',
minWidth: 120,
sortable: true,
},
{
field: 'orderPayUserCount',
title: '订单支付数量',
minWidth: 120,
sortable: true,
},
{
field: 'orderPayPrice',
title: '订单支付金额',
minWidth: 120,
sortable: true,
formatter: 'formatFenToYuanAmount',
},
];
}