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 || '暂无' }} -
商品信息
+
商品信息
-
操作信息
+
操作信息