Browse Source

收款路由优化

zhangrenyuan/feature-20251104133449-现金管理二期
ZhangYong 3 weeks ago
parent
commit
a96d43c25c
  1. 32
      src/router/index.js
  2. 6
      src/utils/menuUtils.js
  3. 10
      src/views/moneyManage/receiveDetail/receiveDetail.vue

32
src/router/index.js

@ -25,7 +25,7 @@ const routes = [
path: 'workbench',
name: "workbench",
component: () => import("../views/workspace/index.vue"),
meta: { permissionId: 2 }
meta: { permissionId: 2 }
},
//金币管理
{
@ -45,14 +45,14 @@ const routes = [
path: 'rechargeAudit',
name: "rechargeAudit",
component: () => import("../views/audit/gold/rechargeAudit.vue"),
meta: { permissionId: [6,7,8,9,10,11,12] }
meta: { permissionId: [6, 7, 8, 9, 10, 11, 12] }
},
// 退款审核
{
path: 'refundAudit',
name: "refundAudit",
component: () => import("../views/audit/gold/refundAudit.vue"),
meta: { permissionId: [13,14,15,16,17,18,19] }
meta: { permissionId: [13, 14, 15, 16, 17, 18, 19] }
},
]
}, {
@ -66,7 +66,7 @@ const routes = [
path: 'addbeanAudit',
name: "addbeanAudit",
component: () => import("../views/audit/bean/beanAudit.vue"),
meta: { permissionId: [21,22,23,24,25,26] }
meta: { permissionId: [21, 22, 23, 24, 25, 26] }
},
]
},
@ -139,7 +139,7 @@ const routes = [
path: '/rate',
name: "rate",
component: () => import("../views/managerecharge/rate.vue"),
meta: { permissionId: [27,28,29] }
meta: { permissionId: [27, 28, 29] }
},
// 金币充值
@ -216,7 +216,7 @@ const routes = [
path: 'detail',
name: "coinRefundDetail",
component: () => import("../views/refund/gold/coinRefundDetail.vue"),
meta: { permissionId:49 }
meta: { permissionId: 49 }
}
]
},
@ -306,7 +306,7 @@ const routes = [
path: 'receiveDetail',
name: "receiveDetail",
meta: { permissionId: 74 },
children:[
children: [
// 客服页面
{
path: 'receiveService',
@ -314,17 +314,23 @@ const routes = [
component: () => import("../views/moneyManage/receiveDetail/receiveDetail.vue"),
meta: { permissionId: 60 }
},
// 地区财务及地区负责人页面
// 地区负责人页面
{
path: 'receiveArea',
name: "receiveArea",
path: 'receiveManager',
name: "receiveManager",
component: () => import("../views/moneyManage/receiveDetail/receiveDetail.vue"),
meta: { permissionId: [67, 79] }
},
{//地区财务
path: 'receiveFinance',
name: "receiveFinance",
component: () => import("../views/moneyManage/receiveDetail/receiveDetail.vue"),
meta: { permissionId: [67,79] }
meta: { permissionId: [67, 79] }
},
//总部管理员及财务
{
path: 'receiveHead',
name: "receiveHead",
path: 'receiveHeader',
name: "receiveHeader",
component: () => import("../views/moneyManage/receiveDetail/receiveDetail.vue"),
meta: { permissionId: 91 }
},

6
src/utils/menuUtils.js

@ -78,9 +78,9 @@ export const getRoutePath = (menu) => {
'收款明细': '/moneyManage/receiveDetail',
'收款-地区客服':'/moneyManage/receiveDetail/receiveService',
'收款-地区财务':'/moneyManage/receiveDetail/receiveArea',
'收款-地区负责人':'/moneyManage/receiveDetail/receiveArea',
'收款-总部财务':'/moneyManage/receiveDetail/receiveHead',
'收款-地区财务':'/moneyManage/receiveDetail/receiveFinance',
'收款-地区负责人':'/moneyManage/receiveDetail/receiveManager',
'收款-总部财务':'/moneyManage/receiveDetail/receiveHeader',
'退款明细': '/moneyManage/refundDetail',

10
src/views/moneyManage/receiveDetail/receiveDetail.vue

@ -1493,8 +1493,16 @@ const throttledsubmitRefund = _.throttle(submitRefund, 5000, {
onMounted(async function () {
await getAdminData()
await getActivitys()
if (hasMenuPermission(menuTree.value, 77) && hasMenuPermission(menuTree.value, 78) && hasMenuPermission(menuTree.value, 79)) {
if (adminData.value.roleId == 2) {
superAdmin.value = true
if(adminData.value.markets == '总部' || adminData.value.markets == '研发部'){
console.log('提示了吗');
ElMessageBox.alert('管理员账号只能看到所属地区对应地区财务数据,请注意设置所属地区','注意',{
type:'warning'
})
}
getlist()
} else if (hasMenuPermission(menuTree.value, 77)) {
checkKefu()

Loading…
Cancel
Save