import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';

const manufacturer: AppRouteModule = {
  path: '/manufacturer',
  name: 'manufacturer',
  component: LAYOUT,
  redirect: '/manufacturer/index',
  meta: {
    hideChildrenInMenu: true,
    orderNo: 200,
    icon: 'ion:grid-outline',
    title: '厂商管理',
  },
  children: [
    {
      path: 'index',
      name: 'Index',
      component: () => import('/@/views/manufacturer/index.vue'),
      meta: {
        title: '合作厂商列表',
      },
    },
    {
      path: 'operate',
      name: 'operate',
      component: () => import('/@/views/manufacturer/modules/operate.vue'),
      meta: {
        title: '新增厂商',
        hideMenu:true
      },
    },
    {
      path: 'detail',
      name: 'detail',
      component: () => import('/@/views/manufacturer/modules/detail.vue'),
      meta: {
        title: '厂商详情',
        hideMenu:true
      },
    },
  ],
};

export default manufacturer;
