export default [
  {
    path: '/login',
    component: '@/pages/login/login',
  },
  {
    path: '/register',
    routes: [
      {
        path: '/register/supplier',
        component: '@/pages/register/supplier',
      },
      {
        path: '/register/expert',
        component: '@/pages/register/expert',
      }
    ]
  },
  {
    path: '/',
    component: '@/layouts/Index',
    routes: [
      {
        path: '/',
        meta: {
          title: '首页',
        },
        redirect: '/index',
      },
      {
        name: 'index',
        path: '/index',
        meta: {
          title: '首页',
          icon: 'icon-shouye',
        },
        component: '@/pages/index',
      },
      // 供应商评价分组
      {
        name: 'supplierEvaluate',
        path: '/supplierEvaluate',
        meta: {
          title: '供应商评价',
          icon: 'icon-youqinglianjie',
        },
        component: '@/layouts/MainLayout',
        routes: [
          {
            name: 'supplierTemplateManage',
            path: '/supplierEvaluate/supplierTemplateManage',
            meta: {
              title: '模板管理',
              icon: 'icon-fenlei',
            },
            component: '@/pages/supplierEvaluateManage/supplierTemplateManage/supplierTemplateManage',
          },
          {
            name: 'supplierTemplateManageAdd',
            path: 'supplierTemplateManageAdd',
            meta: {
              title: '模板管理新增',
              hide: true,
              icon: 'icon-fenlei',
            },
            component: '@/pages/supplierEvaluateManage/supplierTemplateManage/supplierTemplateManageAdd',
          },
          {
            name: 'supplierTemplateManageDetail',
            path: 'supplierTemplateManageDetail',
            meta: {
              title: '模板管理详情',
              hide: true,
              icon: 'icon-fenlei',
            },
            component: '@/pages/supplierEvaluateManage/supplierTemplateManage/supplierTemplateManageDetail',
          },
          {
            name: 'supplierTaskManage',
            path: 'supplierTaskManage',
            meta: {
              title: '任务管理',
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierTaskManage/supplierTaskManage',
          },
          {
            name: 'supplierTaskManageAdd',
            path: 'supplierTaskManageAdd',
            meta: {
              title: '任务管理新增',
              hide: true,
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierTaskManage/supplierTaskManageAdd',
          },
          {
            name: 'supplierEvaluateScore',
            path: 'supplierEvaluateScore',
            meta: {
              title: '评价打分',
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierEvaluateScore/supplierEvaluateScore',
          },
          {
            name: 'supplierEvaluateResult',
            path: 'supplierEvaluateResult',
            meta: {
              title: '评价结果',
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierEvaluateResult/supplierEvaluateResult',
          },
          {
            name: 'supplierEvaluateResultInfo',
            path: 'supplierEvaluateResultInfo',
            meta: {
              title: '评价结果详情',
              hide: true,
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierEvaluateResult/supplierEvaluateResultInfo',
          },
          {
            name: 'supplierEvaluateResultScoreDetail',
            path: 'supplierEvaluateResultScoreDetail',
            meta: {
              title: '评价结果得分明细',
              hide: true,
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierEvaluateResult/supplierEvaluateResultScoreDetail',
          },
          {
            name: 'supplierEvaluateResultScoreByList',
            path: 'supplierEvaluateResultScoreByList',
            meta: {
              title: '评价结果打分情况',
              hide: true,
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierEvaluateResult/supplierEvaluateResultScoreByList',
          },
          {
            name: 'supplierEvaluateResultByZb',
            path: 'supplierEvaluateResultByZb',
            meta: {
              title: '评价结果详情',
              hide: true,
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierEvaluateResult/supplierEvaluateResultByZb',
          },
          {
            name: 'supplierEvaluateResultApproval',
            path: 'supplierEvaluateResultApproval',
            meta: {
              title: '评价结果审批',
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierEvaluateResultApproval/supplierEvaluateResultApproval',
          },
          {
            name: 'supplierEvaluateResultApprovalInfo',
            path: '/supplierEvaluateResultApproval/supplierEvaluateResultApprovalInfo',
            meta: {
              title: '评价审批详情',
              hide: true,
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierEvaluateResultApproval/supplierEvaluateResultApprovalInfo',
          }
        ]
      },
      // 供应商年审分组
      {
        name: 'supplierAnnual',
        path: '/supplierAnnual',
        meta: {
          title: '供应商年审',
          icon: 'icon-fenlei',
        },
        component: '@/layouts/MainLayout',
        routes: [
          {
            name: 'supplierAnnualTemplateManage',
            path: 'supplierAnnualTemplateManage',
            meta: {
              title: '年审模板管理',
              icon: 'icon-fenlei',
            },
            component: '@/pages/supplierAnnualManage/supplierAnnualTemplateManage/supplierAnnualTemplateManage',
          },
          {
            name: 'supplierAnnualTaskManage',
            path: 'supplierAnnualTaskManage',
            meta: {
              title: '年审任务管理',
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierAnnualManage/supplierAnnualTaskManage/supplierAnnualTaskManage',
          },
          {
            name: 'supplierAnnualQuery',
            path: 'supplierAnnualQuery',
            meta: {
              title: '年度查询',
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierAnnualManage/supplierAnnualQuery/supplierAnnualQuery',
          },
          {
            name: 'supplierAnnualResult',
            path: 'supplierAnnualResult',
            meta: {
              title: '年审结果',
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierAnnualManage/supplierAnnualResult/supplierAnnualResult',
          }
        ]
      }
    ]
  },

  {
    exact: true,
    path: '/404',
    component: './404',
  }
];
