From a1bd58544b28f8b5b89a2350edf83cbf63a0cce7 Mon Sep 17 00:00:00 2001 From: xk_chenlianjie <15255791639@163.com> Date: Mon, 19 Feb 2024 11:31:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/order/orderInfo.js | 25 +++ src/views/dashboard/admin/index.vue | 214 +++++++++++++++++----- src/views/order/orderListDetail.vue | 10 +- src/views/order/orderRefundList.vue | 2 +- src/views/order/orderRefundListDetail.vue | 8 +- 5 files changed, 200 insertions(+), 59 deletions(-) diff --git a/src/api/order/orderInfo.js b/src/api/order/orderInfo.js index 3d8d86a..fe07c14 100644 --- a/src/api/order/orderInfo.js +++ b/src/api/order/orderInfo.js @@ -76,6 +76,22 @@ export default { data: orderInfo }) }, + getMainDataOne() { + // 首页订单数据 + return request({ + url: `/${service_name}/${group_name}/getMainData1`, + method: 'post' + // data: orderInfo + }) + }, + getMainDataTwo(time) { + // 首页订单统计 + return request({ + url: `/${service_name}/${group_name}/getMainData2`, + method: 'post', + data: time + }) + }, exportExcel(page) { // 导出 return request({ @@ -85,6 +101,15 @@ export default { responseType: 'blob' }) }, + RefundexportExcel(page) { + // 导出 + return request({ + url: `/${service_name}/${group_name}/getRefundOrderExport`, + method: 'post', + data: page, + responseType: 'blob' + }) + }, deleteById(id) { // 根据id删除 return request({ diff --git a/src/views/dashboard/admin/index.vue b/src/views/dashboard/admin/index.vue index f4e1628..42b3152 100644 --- a/src/views/dashboard/admin/index.vue +++ b/src/views/dashboard/admin/index.vue @@ -12,25 +12,25 @@
今日订单总数
-
200
+
{{ orderData.total }}
- 待核销订单 - (10) + 待退款订单 + ({{ orderData.daiTuiKuan }})
- 已核销订单 - (10) + 待核销订单 + ({{ orderData.daiHeXiao }})
- 已完成订单 - (10) + 已核销订单 + ({{ orderData.yiHeXiao }})
- 待退款订单 - (10) + 已退款订单 + ({{ orderData.yiTuiKuan }})
@@ -104,12 +104,12 @@
本月订单总数
-
10000
+
{{ month }}
10% 同比上周
本周订单数量
-
10000
+
{{ week }}
10% 同比上周
@@ -128,7 +128,7 @@ :picker-options="pickerOptions" > - 查询 + 查询
@@ -142,6 +142,7 @@ diff --git a/src/views/order/orderListDetail.vue b/src/views/order/orderListDetail.vue index fc2abd4..7fdbc76 100644 --- a/src/views/order/orderListDetail.vue +++ b/src/views/order/orderListDetail.vue @@ -4,7 +4,7 @@
当前订单状态:{{ detailData.orderStatus | orderStatus }}
- + {{ detailData.orderCode }} {{ detailData.customerPhone }} {{ detailData.integral }} @@ -13,13 +13,13 @@ {{ detailData.takeCode }} - + {{ detailData.customerName }} {{ detailData.customerPhone }} {{ detailData.remark || '暂无' }} -
商品信息
+
商品信息
-
操作信息
+
操作信息