From 1afa287f5d0d032f70cc0bdbc75fcde1137b8bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Fri, 15 May 2026 14:01:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/match/order.js | 9 + src/views/match/order/index.vue | 430 ++++++++++++++++++++------------ 2 files changed, 286 insertions(+), 153 deletions(-) diff --git a/src/api/match/order.js b/src/api/match/order.js index 5d8b518..0a79f45 100644 --- a/src/api/match/order.js +++ b/src/api/match/order.js @@ -175,4 +175,13 @@ export const orderExportGet = (params) => { */ export const orderSetstatusPatch = (data) => { return http.patch('/order/setstatus', data); +}; + +/** + * 获取订单统计数据 + * @param {Object} params - 查询参数 + * @returns {Promise<{totalOriginalAmount: number, totalDiscountAmount: number, totalActualAmount: number, totalRefundAmount: number}>} + */ +export const orderStatsGet = (params) => { + return http.get('/order/stats', { params }); }; \ No newline at end of file diff --git a/src/views/match/order/index.vue b/src/views/match/order/index.vue index 8a1a3cd..1371dda 100644 --- a/src/views/match/order/index.vue +++ b/src/views/match/order/index.vue @@ -1,7 +1,33 @@