From 715957e8548459d33a0b8596e58c14747fdaea99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Thu, 2 Jan 2025 18:30:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BD=AE=E6=92=AD=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/mer_admin.js | 12 +- src/router/full-routers.js | 13 + src/utils/index.js | 2 + .../brand/config/popup/add-or-update.vue | 5 + .../operation-management/banner/index.vue | 4 +- .../banner/popup/add-or-update.vue | 30 +- .../operation-management/order/index.vue | 95 +++--- .../order/popup/view-details.vue | 12 +- .../total-order/index.vue | 178 ++++++++++ .../total-order/popup/content.vue | 43 +++ .../total-order/popup/view-details.vue | 309 ++++++++++++++++++ 11 files changed, 633 insertions(+), 70 deletions(-) create mode 100644 src/views/modules/operation-management/total-order/index.vue create mode 100644 src/views/modules/operation-management/total-order/popup/content.vue create mode 100644 src/views/modules/operation-management/total-order/popup/view-details.vue diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js index 82abafa..0f6f260 100644 --- a/src/api/modules/mer_admin.js +++ b/src/api/modules/mer_admin.js @@ -212,11 +212,19 @@ export const mer_admin = { params: data, }); }, - //订单管理 + //全部订单管理 orderPage: (data) => { return $http.request({ method: "get", - url: `/merchant-api/order/page`, + url: `/merchant-api/manager/order/page`, + params: data, + }); + }, + //根据店铺查询订单 + shopOrderPage: (data) => { + return $http.request({ + method: "get", + url: `/merchant-api/manager/merchant/order/page`, params: data, }); }, diff --git a/src/router/full-routers.js b/src/router/full-routers.js index 7760a68..6094dcf 100644 --- a/src/router/full-routers.js +++ b/src/router/full-routers.js @@ -77,6 +77,19 @@ export default { open: null, list: [], }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "总订单管理", + url: "operation-management/total-order/index", + perms: "", + type: 1, + elIcon: "el-icon-menu", + orderNum: 0, + open: null, + list: [], + }, { menuId: getUUID(), parentId: 0, diff --git a/src/utils/index.js b/src/utils/index.js index 81eeef1..b6b4ed7 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -168,6 +168,8 @@ export function getMenu(role) { "wallet/index", "ogistics-fare", "logistics-fare/logistics-template/index", + "bank-card/index", + "operation-management/total-order/index" ]; } else if (role == "ROLE_BRAND_MANAGER") { return [ diff --git a/src/views/modules/brand/config/popup/add-or-update.vue b/src/views/modules/brand/config/popup/add-or-update.vue index cb56f78..ea5f25e 100644 --- a/src/views/modules/brand/config/popup/add-or-update.vue +++ b/src/views/modules/brand/config/popup/add-or-update.vue @@ -3,6 +3,7 @@ \ No newline at end of file diff --git a/src/views/modules/operation-management/banner/index.vue b/src/views/modules/operation-management/banner/index.vue index 7b46852..2f9ca83 100644 --- a/src/views/modules/operation-management/banner/index.vue +++ b/src/views/modules/operation-management/banner/index.vue @@ -261,8 +261,8 @@ export default { return ( ); }, diff --git a/src/views/modules/operation-management/banner/popup/add-or-update.vue b/src/views/modules/operation-management/banner/popup/add-or-update.vue index 50e4e07..4021a5f 100644 --- a/src/views/modules/operation-management/banner/popup/add-or-update.vue +++ b/src/views/modules/operation-management/banner/popup/add-or-update.vue @@ -3,6 +3,7 @@ { + return { name: "轮播图", - url: this.modalData.img, - }, - ]; + url: item, + } + }) }, }, computed: { @@ -200,18 +201,27 @@ export default { render: () => { const handleAvatarSuccess = (res, file, fileList) => { console.log(res, fileList); - this.modalData.img = res.data; + this.modalData.img = fileList + .map((item) => { + return item.response.data; + }) + .join(","); + console.log(this.modalData.img); this.$refs.modal.validate(); }; const handleRemove = (file, fileList) => { console.log(file, fileList); - this.fileList = []; - this.modalData.img = ""; + this.modalData.img = fileList + .map((item) => { + return item.response.data; + }) + .join(","); }; return ( \ No newline at end of file diff --git a/src/views/modules/operation-management/order/index.vue b/src/views/modules/operation-management/order/index.vue index 50cd033..a4ec2a5 100644 --- a/src/views/modules/operation-management/order/index.vue +++ b/src/views/modules/operation-management/order/index.vue @@ -12,7 +12,7 @@ > + + + + \ No newline at end of file diff --git a/src/views/modules/operation-management/total-order/popup/content.vue b/src/views/modules/operation-management/total-order/popup/content.vue new file mode 100644 index 0000000..b16f084 --- /dev/null +++ b/src/views/modules/operation-management/total-order/popup/content.vue @@ -0,0 +1,43 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/operation-management/total-order/popup/view-details.vue b/src/views/modules/operation-management/total-order/popup/view-details.vue new file mode 100644 index 0000000..2ecad38 --- /dev/null +++ b/src/views/modules/operation-management/total-order/popup/view-details.vue @@ -0,0 +1,309 @@ + + + \ No newline at end of file