import { Layout } from '@/utils/routerHelper'
const pre = 'goods'

export default {
  path: `/${pre}`,
  component: Layout,
  name: `${pre}`,
  meta: {
    title: '商品管理',
    icon: 'vi-eos-icons:role-binding',
    alwaysShow: true
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/Goods/list/index.vue'),
      name: `${pre}-list`,
      meta: {
        title: '商品列表'
      }
    },
    {
      path: 'classify',
      component: () => import('@/views/Goods/classify/index.vue'),
      name: `${pre}-classify`,
      meta: {
        title: '商品分类'
      }
    },
    {
      path: 'brand',
      component: () => import('@/views/Goods/brand/index.vue'),
      name: `${pre}-brand`,
      meta: {
        title: '品牌列表'
      }
    },
    {
      path: 'edit/:type/:id',
      component: () => import('@/views/Goods/edit/add.vue'),
      name: `${pre}-edit`,
      meta: {
        title: '添加修改商品'
      }
    },
    {
      path: 'rule',
      component: () => import('@/views/Goods/rule/index.vue'),
      name: `${pre}-rule`,
      meta: {
        title: '商品规格'
      }
    },
    {
      path: 'unit',
      component: () => import('@/views/Goods/unit/index.vue'),
      name: `${pre}-unit`,
      meta: {
        title: '单位列表'
      }
    }
  ]
}
