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

const logisticsRoutes = [
  {
    path: '/logistics',
    component: Layout,
    alwaysShow: true,
    redirect: '/logistics/supplier-list',
    name: 'Logistics',
    meta: { title: '授权牌物流', noCache: true },
    children: [
      {
        path: 'supplier-list',
        component: () => import('@/views/admin/logistics-licensed/index'),
        name: 'LicensedSupplierList',
        meta: { title: '供应商列表', noCache: true }
      },
      {
        path: 'club-list',
        component: () => import('@/views/admin/logistics-licensed/club/index'),
        name: 'LicensedClubList',
        meta: { title: '授权机构', noCache: true }
      },
      {
        path: 'club-detail',
        component: () => import('@/views/admin/logistics-licensed/club/detail'),
        name: 'LicensedClubDetail',
        meta: { title: '机构详情', noCache: true }
      },
      {
        path: 'device-list',
        component: () => import('@/views/admin/logistics-licensed/club/device/index'),
        name: 'LicensedDeviceList',
        meta: { title: '认证设备', noCache: true }
      },
      {
        path: 'device-detail',
        component: () => import('@/views/admin/logistics-licensed/club/device/detail'),
        name: 'LicensedDeviceDetail',
        meta: { title: '设备详情', noCache: true }
      },
      {
        path: 'licensed-record',
        component: () => import('@/views/admin/logistics-licensed/licensed-record'),
        name: 'LicensedRecord',
        meta: { title: '寄送记录', noCache: true }
      }
    ]
  }
]

export default logisticsRoutes
