/* Layout */
import Layout from '@/layout'

// 供应商管理页面
const supplierRoutes = [
  {
    path: '/supplier',
    component: Layout,
    alwaysShow: true,
    name: 'Supplier',
    redirect: '/supplier/list',
    meta: { title: '供应商管理', icon: 'el-icon-s-custom', roles: ['admin'], noCache: true },
    children: [
      {
        path: 'list',
        component: () => import('@/views/authentic/supplier/index'),
        name: 'SupplierList',
        meta: { title: '供应商列表', icon: 'el-icon-menu', affix: true, roles: ['admin'], noCache: true }
      },
      {
        hidden: true,
        path: 'add',
        component: () => import('@/views/authentic/supplier/add'),
        name: 'SupplierAdd',
        meta: { title: '添加供应商', icon: 'el-icon-menu', roles: ['admin'], noCache: true }
      },
      {
        hidden: true,
        path: 'edit',
        component: () => import('@/views/authentic/supplier/edit'),
        name: 'SupplierEdit',
        meta: { title: '修改供应商', icon: 'el-icon-menu', roles: ['admin'], noCache: true }
      }
    ]
  }
]

export default supplierRoutes
