From fc6090f1c0f1f34c0bc61a2dae4555a0faff8be1 Mon Sep 17 00:00:00 2001
From: guoxing <1369478551@qq.com>
Date: Mon, 11 Dec 2023 15:59:45 +0800
Subject: [PATCH] 2023-12-11
---
src/api/order/order.js | 22 ++
src/layout/components/Sidebar/index.vue | 184 +++++++++-------
src/router/index.js | 14 +-
src/views/order/distributionCount.vue | 276 ++++++++++++++++++++++++
src/views/order/index.vue | 2 +-
5 files changed, 419 insertions(+), 79 deletions(-)
create mode 100644 src/views/order/distributionCount.vue
diff --git a/src/api/order/order.js b/src/api/order/order.js
index 39973ea..78a45a4 100644
--- a/src/api/order/order.js
+++ b/src/api/order/order.js
@@ -34,5 +34,27 @@ export default {
},
+ // 获取配货列表
+ distributionList: function(data) {
+ return request({
+ url: '/lpksreservoorder/orderListByStore',
+ method: 'post',
+ data: data
+ });
+ },
+
+ // 导出报表
+ distributionExportExcel: function(data) {
+ return request({
+ url: '/lpksreservoorder/exportExcelByStore',
+ method: 'post',
+ responseType: 'blob', // 表明返回服务器返回的数据类型
+ data: data,
+ headers: {
+ 'Content-Type': 'application/json'
+ }
+ });
+ },
+
}
\ No newline at end of file
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index acad6b7..6436afa 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -69,7 +69,7 @@
name: "/marketingCard/index",
path: "/marketingCard/index",
},
-
+
{
alwaysShow: true,
component: "pickupCardSet",
@@ -132,83 +132,117 @@
name: "/commodity/index",
path: "/commodity/index"
},
- {
- alwaysShow: true,
- component: "order",
- meta: {
- icon: "el-icon-menu",
- title: "订单信息",
- },
- name: "/order/index",
- path: "/order/index"
+
+ {alwaysShow: true,
+ component: "order",
+ meta: {
+ icon: "el-icon-menu",
+ title: "订单管理",
},
- {
- alwaysShow: true,
- component: "print",
- meta: {
- icon: "el-icon-menu",
- title: "打印电子卡",
+ name: "/order",
+ path: "/order",
+ children: [
+ {
+ alwaysShow: true,
+ component: "index",
+ meta: {
+ icon: "el-icon-help",
+ title: "订单统计",
+ },
+ name: "/order/index",
+ path: "/order/index",
},
- name: "/print/index",
- path: "/print/index"
- }
- // {
- // alwaysShow: true,
- // component: "network",
- // meta: {
- // icon: "el-icon-menu",
- // title: "网点管理",
- // },
- // name: "/network/index",
- // path: "/network/index"
- // },
- // {
- // alwaysShow: true,
- // component: "statisticalReport",
- // meta: {
- // icon: "el-icon-menu",
- // title: "统计报表",
- // },
- // name: "/statisticalReport/index",
- // path: "/statisticalReport/index",
- // children: [
+ {
+ alwaysShow: true,
+ component: "distributionCount",
+ meta: {
+ icon: "el-icon-help",
+ title: "配货统计",
+ },
+ name: "/order/distributionCount",
+ path: "/order/distributionCount",
+ },
+
+ ]
+ },
- // {
- // alwaysShow: true,
- // component: "index",
- // meta: {
- // icon: "el-icon-help",
- // title: "提货卡汇总",
- // },
- // name: "/statisticalReport/index",
- // path: "/statisticalReport/index",
- // },
- // {
- // alwaysShow: true,
- // component: "collectionSummary",
- // meta: {
- // icon: "el-icon-help",
- // title: "提货汇总",
- // },
- // name: "/statisticalReport/collectionSummary",
- // path: "/statisticalReport/collectionSummary",
- // },
- // {
- // alwaysShow: true,
- // component: "deliveryDetails",
- // meta: {
- // icon: "el-icon-help",
- // title: "客户提货明细",
- // },
- // name: "/statisticalReport/deliveryDetails",
- // path: "/statisticalReport/deliveryDetails",
- // },
- // ]
- // },
- ],
- };
- },
- computed: {
+ // {
+ // alwaysShow: true,
+ // component: "order",
+ // meta: {
+ // icon: "el-icon-menu",
+ // title: "订单信息",
+ // },
+ // name: "/order/index",
+ // path: "/order/index"
+ // },
+ {
+ alwaysShow: true,
+ component: "print",
+ meta: {
+ icon: "el-icon-menu",
+ title: "打印电子卡",
+ },
+ name: "/print/index",
+ path: "/print/index"
+ }
+ // {
+ // alwaysShow: true,
+ // component: "network",
+ // meta: {
+ // icon: "el-icon-menu",
+ // title: "网点管理",
+ // },
+ // name: "/network/index",
+ // path: "/network/index"
+ // },
+ // {
+ // alwaysShow: true,
+ // component: "statisticalReport",
+ // meta: {
+ // icon: "el-icon-menu",
+ // title: "统计报表",
+ // },
+ // name: "/statisticalReport/index",
+ // path: "/statisticalReport/index",
+ // children: [
+
+ // {
+ // alwaysShow: true,
+ // component: "index",
+ // meta: {
+ // icon: "el-icon-help",
+ // title: "提货卡汇总",
+ // },
+ // name: "/statisticalReport/index",
+ // path: "/statisticalReport/index",
+ // },
+ // {
+ // alwaysShow: true,
+ // component: "collectionSummary",
+ // meta: {
+ // icon: "el-icon-help",
+ // title: "提货汇总",
+ // },
+ // name: "/statisticalReport/collectionSummary",
+ // path: "/statisticalReport/collectionSummary",
+ // },
+ // {
+ // alwaysShow: true,
+ // component: "deliveryDetails",
+ // meta: {
+ // icon: "el-icon-help",
+ // title: "客户提货明细",
+ // },
+ // name: "/statisticalReport/deliveryDetails",
+ // path: "/statisticalReport/deliveryDetails",
+ // },
+ // ]
+ // },
+ ],
+ };
+ },
+ computed: {
...mapGetters(["sidebar"]),
// routes() {
// f4d2e507-c4ed-451c-b364-04c08f962045
diff --git a/src/router/index.js b/src/router/index.js
index cfb0f66..4d2f596 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -149,15 +149,23 @@ export const constantRoutes = [
},
{
path: '/order',
- component: Layout,
- redirect: '/order/index',
+ component: Layout,
+ redirect: '/order/index',
children: [{
path: '/order/index',
component: () =>
import('@/views/order/index.vue'),
name: 'index',
meta: {
- title: '订单列表'
+ title: '订单统计'
+ }
+ },{
+ path: '/order/distributionCount',
+ component: () =>
+ import('@/views/order/distributionCount.vue'),
+ name: 'distributionCount',
+ meta: {
+ title: '配货统计'
}
},]
},{
diff --git a/src/views/order/distributionCount.vue b/src/views/order/distributionCount.vue
new file mode 100644
index 0000000..1f61de7
--- /dev/null
+++ b/src/views/order/distributionCount.vue
@@ -0,0 +1,276 @@
+
+
+
+
+
+
+
+ {{ searchxianshitit }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/order/index.vue b/src/views/order/index.vue
index 9fedcbd..cb5ff29 100644
--- a/src/views/order/index.vue
+++ b/src/views/order/index.vue
@@ -252,7 +252,7 @@
})
- req.exportExcel(this.page).then((resp) => {
+ req.exportExcel(this.page.params).then((resp) => {
loading.close()
const blob = new Blob([resp], {
type: 'application/vnd.ms-excel'