From 9b9f414371eb33dc12c129a8f3639eee0df66c12 Mon Sep 17 00:00:00 2001 From: lihuilin Date: Fri, 17 Oct 2025 10:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=98=8E=E7=BB=86=E6=97=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/router/index.js | 55 +- src/utils/menuTreePermission.js | 2 +- .../{refundArea.vue => refundCharge.vue} | 402 +++++--------- .../moneyManage/refundDetail/refundDetail.vue | 28 +- .../moneyManage/refundDetail/refundFinance.vue | 583 +++++++++++++++++++++ .../moneyManage/refundDetail/refundHeader.vue | 443 +++++----------- .../moneyManage/refundDetail/refundService.vue | 424 ++++++--------- 8 files changed, 1064 insertions(+), 877 deletions(-) rename src/views/moneyManage/refundDetail/{refundArea.vue => refundCharge.vue} (56%) create mode 100644 src/views/moneyManage/refundDetail/refundFinance.vue diff --git a/.env.development b/.env.development index e9dfee0..6e2fc08 100644 --- a/.env.development +++ b/.env.development @@ -3,7 +3,7 @@ # VITE_API_BASE='http://54.255.212.181:10704/' # 正式环境 # VITE_API_BASE='http://54.255.212.181:10705/' -VITE_UPLOAD_URL=http://39.101.133.168:8828/hljw/api/aws/upload +# VITE_UPLOAD_URL=http://39.101.133.168:8828/hljw/api/aws/upload # VITE_API_BASE='http://192.168.9.28:8081/' # sunjiabei # VITE_API_BASE='http://192.168.9.28:8081/' @@ -11,6 +11,6 @@ VITE_UPLOAD_URL=http://39.101.133.168:8828/hljw/api/aws/upload # zhangyong # VITE_API_BASE='http://192.168.3.83:8081/' # 本地 -#VITE_API_BASE='http://localhost:8081/' +VITE_API_BASE='http://localhost:8081/' # sunjiabei # VITE_API_BASE='http://192.168.1.70:8081/' \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 4b06429..fb3f966 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -31,7 +31,7 @@ const routes = [ { path: '/goldManage', name: 'goldManage', - meta:{permissionId:3}, + meta: { permissionId: 3 }, children: [ // 审核 { @@ -46,14 +46,14 @@ const routes = [ path: 'rechargeAudit', name: "rechargeAudit", component: () => import("../views/audit/gold/rechargeAudit.vue"), - meta: { permissionId: [28,30,31,32,33,34,35] } // 对应"查看充值审核"id=11、"充值审批"id=12 + meta: { permissionId: [28, 30, 31, 32, 33, 34, 35] } // 对应"查看充值审核"id=11、"充值审批"id=12 }, // 退款审核 { path: 'refundAudit', name: "refundAudit", component: () => import("../views/audit/gold/refundAudit.vue"), - meta: { permissionId: [29,36,37,38,39,40,41] } // 对应"查看退款审核"id=13、"退款审批"id=14 + meta: { permissionId: [29, 36, 37, 38, 39, 40, 41] } // 对应"查看退款审核"id=13、"退款审批"id=14 }, ] }, { @@ -61,13 +61,13 @@ const routes = [ name: "beanAudit", component: () => import("../views/audit/bean/beanAudit.vue"), meta: { permissionId: 15 }, - children: [ + children: [ // 充值审核 { path: 'addbeanAudit', name: "addbeanAudit", component: () => import("../views/audit/bean/beanAudit.vue"), - meta: { permissionId: [42,43,44,45,46,47] } // 对应"查看充值审核"id=11、"充值审批"id=12 + meta: { permissionId: [42, 43, 44, 45, 46, 47] } // 对应"查看充值审核"id=11、"充值审批"id=12 }, ] }, @@ -141,14 +141,14 @@ const routes = [ path: '/rate', name: "rate", component: () => import("../views/managerecharge/rate.vue"), - meta: { permissionId: [16,48,49] } // 对应"汇率查看"id=15、"汇率修改"id=16 + meta: { permissionId: [16, 48, 49] } // 对应"汇率查看"id=15、"汇率修改"id=16 }, // 金币充值 { path: '/coinRecharge', name: "coinRecharge", component: () => import("../views/recharge/gold/coinRecharge.vue"), - meta: { permissionId: 17 }, + meta: { permissionId: 17 }, // redirect: '/coinRecharge/add', children: [ // 金币新增充值 @@ -174,7 +174,7 @@ const routes = [ name: "beanRecharge", component: () => import("../views/recharge/bean/beanRecharge.vue"), // redirect: '/coinRecharge/add', - meta: { permissionId: 18 }, + meta: { permissionId: 18 }, children: [ // 金豆新增充值 { @@ -200,7 +200,7 @@ const routes = [ ] }, - // 金币退款 + // 金币退款 { path: '/coinRefund', name: "coinRefund", @@ -300,10 +300,10 @@ const routes = [ ] }, { - path:'/moneyManage', - name:'moneyManage', - meta:{permissionId:4}, - children:[ + path: '/moneyManage', + name: 'moneyManage', + meta: { permissionId: 4 }, + children: [ // 收款明细 { path: 'receiveDetail', @@ -315,29 +315,36 @@ const routes = [ { path: 'refundDetail', name: "refundDetail", - //component: () => import("../views/moneyManage/refundDetail/refundDetail.vue"), + component: () => import("../views/moneyManage/refundDetail/refundDetail.vue"), meta: { permissionId: 75 }, - children:[ + children: [ // 客服页面 { - path: 'service', + path: 'refundService', name: "refundService", component: () => import("../views/moneyManage/refundDetail/refundService.vue"), - meta: { permissionId: 75 } + meta: { permissionId: 80 } + }, + // 地区财务页面 + { + path: 'refundFinance', + name: "refundFinance", + component: () => import("../views/moneyManage/refundDetail/refundFinance.vue"), + meta: { permissionId: 81 } }, - // 地区财务及地区负责人页面 + // 地区负责人页面 { - path: 'refundArea', - name: "refundArea", - component: () => import("../views/moneyManage/refundDetail/refundArea.vue"), - meta: { permissionId: 75 } + path: 'refundCharge', + name: "refundCharge", + component: () => import("../views/moneyManage/refundDetail/refundCharge.vue"), + meta: { permissionId: 82 } }, //总部管理员及财务 { path: 'refundHeader', name: "refundHeader", component: () => import("../views/moneyManage/refundDetail/refundHeader.vue"), - meta: { permissionId: 75 } + meta: { permissionId: 83 } }, ] }, @@ -429,7 +436,7 @@ router.beforeEach(async (to, from, next) => { // 拿权限id userPermissionIds = getAllPermissionIds(menuTree.value) - console.log("userPermissionIds",userPermissionIds) + console.log("userPermissionIds", userPermissionIds) // 2.4 权限验证(逻辑不变) console.log('to.meta:', to.meta) diff --git a/src/utils/menuTreePermission.js b/src/utils/menuTreePermission.js index ed0b860..e11f59e 100644 --- a/src/utils/menuTreePermission.js +++ b/src/utils/menuTreePermission.js @@ -40,7 +40,7 @@ export const permissionMapping = { receiveService:77, // 收款-地区客服 receiveArea:78, // 收款-地区财务/负责人 receiveHeader:79, // 收款-总部财务/管理员 - refundService:80, // 退款-地区客服 + refundService:80, // 退款-地区客服 refundFinance:81, // 退款-地区财务 refundCharge:82, // 退款-地区负责人 refundHeader:83, // 退款-总部财务/管理员 diff --git a/src/views/moneyManage/refundDetail/refundArea.vue b/src/views/moneyManage/refundDetail/refundCharge.vue similarity index 56% rename from src/views/moneyManage/refundDetail/refundArea.vue rename to src/views/moneyManage/refundDetail/refundCharge.vue index 30754c8..0edaec5 100644 --- a/src/views/moneyManage/refundDetail/refundArea.vue +++ b/src/views/moneyManage/refundDetail/refundCharge.vue @@ -1,4 +1,4 @@ - +