Browse Source

收款路由优化

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

16
src/router/index.js

@ -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] }
},
//总部管理员及财务
{
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