Browse Source

收款路由优化

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

30
src/router/index.js

@ -45,14 +45,14 @@ const routes = [
path: 'rechargeAudit', path: 'rechargeAudit',
name: "rechargeAudit", name: "rechargeAudit",
component: () => import("../views/audit/gold/rechargeAudit.vue"), 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', path: 'refundAudit',
name: "refundAudit", name: "refundAudit",
component: () => import("../views/audit/gold/refundAudit.vue"), 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', path: 'addbeanAudit',
name: "addbeanAudit", name: "addbeanAudit",
component: () => import("../views/audit/bean/beanAudit.vue"), 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', path: '/rate',
name: "rate", name: "rate",
component: () => import("../views/managerecharge/rate.vue"), component: () => import("../views/managerecharge/rate.vue"),
meta: { permissionId: [27,28,29] }
meta: { permissionId: [27, 28, 29] }
}, },
// 金币充值 // 金币充值
@ -216,7 +216,7 @@ const routes = [
path: 'detail', path: 'detail',
name: "coinRefundDetail", name: "coinRefundDetail",
component: () => import("../views/refund/gold/coinRefundDetail.vue"), component: () => import("../views/refund/gold/coinRefundDetail.vue"),
meta: { permissionId:49 }
meta: { permissionId: 49 }
} }
] ]
}, },
@ -306,7 +306,7 @@ const routes = [
path: 'receiveDetail', path: 'receiveDetail',
name: "receiveDetail", name: "receiveDetail",
meta: { permissionId: 74 }, meta: { permissionId: 74 },
children:[
children: [
// 客服页面 // 客服页面
{ {
path: 'receiveService', path: 'receiveService',
@ -314,17 +314,23 @@ const routes = [
component: () => import("../views/moneyManage/receiveDetail/receiveDetail.vue"), component: () => import("../views/moneyManage/receiveDetail/receiveDetail.vue"),
meta: { permissionId: 60 } 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"), 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"), component: () => import("../views/moneyManage/receiveDetail/receiveDetail.vue"),
meta: { permissionId: 91 } meta: { permissionId: 91 }
}, },

6
src/utils/menuUtils.js

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

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

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

Loading…
Cancel
Save