/** 客户管理路由 */ //import Layout from '@/layout/firstLayout' import Layout from '@/layout' const basedataRouter = { path: '/basedata', component: Layout, redirect: 'basedata', 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: '车型' } }, // { // path: '/modulesManager', // component: () => import('@/views/ux/basedata/modulesManager/index'), // name: 'ModulesManager',//命名路由 // meta: { // title: '模板管理', // roles: ['SettleAccount.StockUnsettledDiffReports'],//控制页面角色(可以设置多个角色) // icon: '客户' // } // } ] } 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