diff --git a/src/api/mall/trade/order/index.ts b/src/api/mall/trade/order/index.ts index 999757bd..364483b8 100644 --- a/src/api/mall/trade/order/index.ts +++ b/src/api/mall/trade/order/index.ts @@ -108,11 +108,28 @@ export interface ProductPropertiesVO { valueName?: string // 属性值的名称 } +/** 交易订单统计 */ +export interface TradeOrderSummaryRespVO { + /** 订单数量 */ + orderCount?: number + /** 订单金额 */ + orderPayPrice?: string + /** 退款单数 */ + afterSaleCount?: number + /** 退款金额 */ + afterSalePrice?: string +} + // 查询交易订单列表 -export const getOrderPage = async (params) => { +export const getOrderPage = async (params: any) => { return await request.get({ url: `/trade/order/page`, params }) } +// 查询交易订单统计 +export const getOrderSummary = async (params: any) => { + return await request.get({ url: `/trade/order/summary`, params }) +} + // 查询交易订单详情 export const getOrder = async (id: number | null) => { return await request.get({ url: `/trade/order/get-detail?id=` + id }) diff --git a/src/views/mall/statistics/trade/components/TradeTrendValue.vue b/src/components/SummaryCard/index.vue similarity index 95% rename from src/views/mall/statistics/trade/components/TradeTrendValue.vue rename to src/components/SummaryCard/index.vue index 10fa9517..52da6da9 100644 --- a/src/views/mall/statistics/trade/components/TradeTrendValue.vue +++ b/src/components/SummaryCard/index.vue @@ -35,8 +35,8 @@ import { propTypes } from '@/utils/propTypes' import { toNumber } from 'lodash-es' -/** 交易状况统计值组件 */ -defineOptions({ name: 'TradeTrendValue' }) +/** 统计卡片 */ +defineOptions({ name: 'SummaryCard' }) defineProps({ title: propTypes.string.def(''), diff --git a/src/views/mall/statistics/member/index.vue b/src/views/mall/statistics/member/index.vue index 0d77f6c7..2390be5e 100644 --- a/src/views/mall/statistics/member/index.vue +++ b/src/views/mall/statistics/member/index.vue @@ -2,7 +2,7 @@
- - - - + diff --git a/src/views/mall/trade/order/index.vue b/src/views/mall/trade/order/index.vue index 653bfcb9..76547f8f 100644 --- a/src/views/mall/trade/order/index.vue +++ b/src/views/mall/trade/order/index.vue @@ -128,6 +128,7 @@ class="!w-280px" clearable placeholder="请输入" + :type="queryType.queryParam === 'userId' ? 'number' : 'text'" >