123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- import layout from "@/views/layout/index.vue";
- export const dynamicRoutes = [{
- path: '/layout',
- name: 'layout',
- component: layout,
- redirect: '/home',
- children: [{
- path: '/home',
- name: 'home',
- icon: "icon-shouye_zhuyehui",
- component: () => import('@/views/home/index.vue'),
- meta: {
- roles: false,
- title: '工作台',
- },
- }, {
- path: '/essentialinfo',
- name: 'essentialinfo',
- icon: "icon-zhuye1",
- component: () => import('@/views/essentialinfo/index.vue'),
- meta: {
- roles: false,
- title: '基本信息',
- },
- }, {
- path: '/usermanagement',
- name: 'usermanagement',
- icon: "icon-icon-",
- component: () => import('@/views/usermanagement/index.vue'),
- redirect: '/usermanagement/user',
- meta: {
- roles: false,
- title: '用户管理',
- },
- children: [{
- path: '/usermanagement/user',
- name: 'user',
- icon: "icon-icon-",
- component: () => import('@/views/usermanagement/user/index.vue'),
- meta: {
- roles: false,
- title: '用户管理',
- },
- }, {
- path: '/usermanagement/company',
- name: 'company',
- icon: "icon-zhuye1",
- component: () => import('@/views/usermanagement/company/index.vue'),
- meta: {
- roles: false,
- title: '公司管理',
- },
- }]
- }, {
- path: '/stockcontrol',
- name: 'stockcontrol',
- icon: "icon-_kucun",
- component: () => import('@/views/stockcontrol/index.vue'),
- redirect: '/stockcontrol/storagePut',
- meta: {
- roles: false,
- title: '库存管理',
- },
- children: [{
- path: '/stockcontrol/storagePut',
- name: 'storagePut',
- icon: "icon-_kucun",
- component: () => import('@/views/stockcontrol/storagePut/index.vue'),
- meta: {
- roles: false,
- title: '入库管理',
- },
- },{
- path: '/stockcontrol/storageFrom',
- name: 'storageFrom',
- icon: "icon-ruku",
- component: () => import('@/views/stockcontrol/storageFrom/index.vue'),
- meta: {
- roles: false,
- title: '出库管理',
- },
- }, {
- path: '/stockcontrol/storageInquire',
- name: 'storageInquire',
- icon: "icon-fenxixiangmuku",
- component: () => import('@/views/stockcontrol/storageInquire/index.vue'),
- meta: {
- roles: false,
- title: '库存查询',
- },
- }, {
- path: '/stockcontrol/transmitReceive',
- name: 'transmitReceive',
- icon: "icon-ruku",
- component: () => import('@/views/stockcontrol/transmitReceive/index.vue'),
- meta: {
- roles: false,
- title: '收发记录',
- },
- },
- ]
- }, {
- path: '/salesmanagement',
- name: 'salesmanagement',
- icon: "icon-chukuliucheng",
- component: () => import('@/views/salesmanagement/index.vue'),
- redirect: '/salesmanagement/sellManage',
- meta: {
- roles: false,
- title: '销售管理',
- },
- children: [{
- path: '/salesmanagement/sellManage',
- name: 'sellManage',
- icon: "icon-chukuliucheng",
- component: () => import('@/views/salesmanagement/sellManage/index.vue'),
- meta: {
- roles: false,
- title: '销售管理',
- },
- }, {
- path: '/salesmanagement/storageOrderGoods',
- name: 'storageOrderGoods',
- icon: "icon-dingdan",
- component: () => import('@/views/salesmanagement/storageOrderGoods/index.vue'),
- meta: {
- roles: false,
- title: '销售订单',
- },
- }]
- }]
- }]
- export const errorRouter = [
- {
- path: '*',
- name: '404',
- component: () => import('@/components/404.vue'),
- meta: {
- title: '404页面'
- }
- }
- ]
- /**
- * notFoundRouter(找不到路由)
- */
- export const notFoundRouter = {
- path: '/:pathMatch(.*)*',
- name: 'notFound',
- redirect: { name: '404' }
- }
|