You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

188 lines
6.1 KiB

/** 客户管理路由 */
//import Layout from '@/layout/firstLayout'
2 years ago
import Layout from '@/layout'
const basedataRouter = {
path: '/basedata',
2 years ago
component: Layout,
redirect: 'basedata',
name: 'BaseData',
//hidden: false,
2 years ago
meta: {
//requiresAuth: false,
title: '基础数据',
2 years ago
index: 0,
//type: 'crm',
2 years ago
icon: '基础数据',
//keepAlive: false,
2 years ago
},
children: [
{
path: '/centralizedControl',
2 years ago
component: () => import('@/views/ux/basedata/centralizedControl/index'),
name: 'CentralizedControl',//命名路由
meta: {
title: '期间设置',
roles: ['SettleAccount.CentralizedControls'],
icon: '期间'
}
},
{
path: '/factory',
component: () => import('@/views/ux/basedata/factory/index'),
name: 'Factory',//命名路由
meta: { title: '工厂设置', roles: ['SettleAccount.Factorys'], icon: '工厂' }
2 years ago
},
{
path: '/codeSetting',
2 years ago
component: () => import('@/views/ux/basedata/codeSetting/index'),
name: 'codeSetting',//命名路由
meta: { title: '通用代码设置', roles: ['SettleAccount.CodeSettings'], icon: '通用' }
},
{
path: '/material',
component: () => import('@/views/ux/basedata/material/index'),
name: 'material',//命名路由
meta: { title: '物料主数据', roles: ['SettleAccount.Materials'], icon: '物料' }
2 years ago
},
{
path: '/customerStorageLocation',
component: () => import('@/views/ux/basedata/customerStorageLocation/index'),
name: 'customerStorageLocation',
2 years ago
meta: {
title: '客户存储地点',
roles: ['SettleAccount.CustomerStorageLocations'],
icon: '客户'
2 years ago
}
},
{
path: '/partsSettlement',
component: () => import('@/views/ux/basedata/partsSettlement/index'),
name: 'partsSettlement',//命名路由
meta: { title: '零件匹配关系', roles: ['SettleAccount.MaterialRelationships'], icon: '零件' }
},
{
path: '/materialRelationSupplier',
component: () => import('@/views/ux/basedata/materialRelationSupplier/index'),
name: 'materialRelationSupplier',//命名路由
2 years ago
meta: {
title: '供应商零件设置',
roles: ['SettleAccount.SupplierItemSetUps'],//控制页面角色(可以设置多个角色)
icon: '供应商'
2 years ago
}
},
{
path: '/carMaterialConfig',
component: () => import('@/views/ux/basedata/carMaterialConfig/index'),
name: 'CarMaterialConfig',//命名路由
2 years ago
meta: {
title: '车型代码与零件匹配',
roles: ['SettleAccount.CarMaterialConfigs'],//控制页面角色(可以设置多个角色)
icon: '车型'
2 years ago
}
},
// {
// path: '/modulesManager',
// component: () => import('@/views/ux/basedata/modulesManager/index'),
// name: 'ModulesManager',//命名路由
// meta: {
// title: '模板管理',
// roles: ['SettleAccount.StockUnsettledDiffReports'],//控制页面角色(可以设置多个角色)
// icon: '客户'
// }
// }
2 years ago
]
}
export default basedataRouter
// /** 客户管理路由 */
// //import Layout from '@/layout/firstLayout'
// import Layout from '@/layout'
// const basedataRouter = {
// path: '/centralizedControl',
// component: Layout,
// redirect: '/centralizedControl',
// name: 'basedata',
// //hidden: false,
// meta: {
// //requiresAuth: false,
// title: '基础数据',
// index: 0,
// //type: 'crm',
// icon: '基础数据',
// //keepAlive: false,
// },
// children: [
// {
// path: 'centralizedControl',
// component: () => import('@/views/ux/basedata/centralizedControl/index'),
// name: 'CentralizedControl',//命名路由
// meta: {
// title: '期间设置',
// roles: ['SettleAccount.CentralizedControls'],
// icon: '期间'
// }
// },
// {
// path: 'factory',
// component: () => import('@/views/ux/basedata/factory/index'),
// name: 'Factory',//命名路由
// meta: { title: '工厂设置', roles: ['SettleAccount.Factorys'], icon: '工厂' }
// },
// {
// path: 'codeSetting',
// component: () => import('@/views/ux/basedata/codeSetting/index'),
// name: 'codeSetting',//命名路由
// meta: { title: '通用代码设置', roles: ['SettleAccount.CodeSettings'], icon: '通用' }
// },
// {
// path: 'material',
// component: () => import('@/views/ux/basedata/material/index'),
// name: 'material',//命名路由
// meta: { title: '物料主数据', roles: ['SettleAccount.Materials'], icon: '物料' }
// },
// {
// path: 'customerStorageLocation',
// component: () => import('@/views/ux/basedata/customerStorageLocation/index'),
// name: 'customerStorageLocation',
// meta: {
// title: '客户存储地点',
// roles: ['SettleAccount.CustomerStorageLocations'],
// icon: '客户'
// }
// },
// {
// path: 'partsSettlement',
// component: () => import('@/views/ux/basedata/partsSettlement/index'),
// name: 'partsSettlement',//命名路由
// meta: { title: '零件匹配关系', roles: ['SettleAccount.MaterialRelationships'], icon: '零件' }
// },
// {
// path: 'materialRelationSupplier',
// component: () => import('@/views/ux/basedata/materialRelationSupplier/index'),
// name: 'materialRelationSupplier',//命名路由
// meta: {
// title: '供应商零件设置',
// roles: ['SettleAccount.SupplierItemSetUps'],//控制页面角色(可以设置多个角色)
// icon: '供应商'
// }
// },
// {
// path: 'carMaterialConfig',
// component: () => import('@/views/ux/basedata/carMaterialConfig/index'),
// name: 'CarMaterialConfig',//命名路由
// meta: {
// title: '车型代码与零件匹配',
// roles: ['SettleAccount.CarMaterialConfigs'],//控制页面角色(可以设置多个角色)
// icon: '车型'
// }
// }
// ]
// }
// export default basedataRouter