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: 'supplierEvaluateRuleManage',
            path: 'supplierEvaluateRuleManage',
            meta: {
              title: '评价规则管理',
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierEvaluateRuleManage/supplierEvaluateRuleManage',
          },
          {
            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: 'supplierTaskManageDetail',
            path: 'supplierTaskManageDetail',
            meta: {
              title: '任务管理详情',
              hide: true,
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierTaskManage/supplierTaskManageDetail',
          },
          {
            name: 'supplierEvaluateScore',
            path: 'supplierEvaluateScore',
            meta: {
              title: '评价打分',
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierEvaluateScore/supplierEvaluateScore',
          },
          {
            name: 'supplierEvaluateScoreDetail',
            path: 'supplierEvaluateScoreDetail',
            meta: {
              title: '评价打分详情',
              hide: true,
              icon: 'icon-liebiaomoshi',
            },
            component: '@/pages/supplierEvaluateManage/supplierEvaluateScore/supplierEvaluateScoreDetail',
          },
          {
            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',
          }
        ]
      },
      {
        path: '/backend',
        name: 'backend',
        icon: 'smile',
        component: '@/layouts/MainLayout',
        routes: [
          {
            path: '/backend/workbenches',
            name: 'workbenches',
            icon: 'smile',
            component: '@/pages/supplier/backend/workbenches/index',
          },
          {
            path: '/backend/cooperateEnterprise',
            name: 'cooperateEnterprise',
            icon: 'smile',
            component: '@/pages/supplier/backend/cooperateEnterprise/index',
          },
          {
            path: '/backend/changeProgressInquiry',
            name: 'changeProgressInquiry',
            icon: 'smile',
            component: '@/pages/supplier/backend/changeProgressInquiry/index',
          },
          {
            path: '/backend/supplierNews',
            name: 'supplierNews',
            icon: 'smile',
            component: '@/pages/supplier/backend/supplierNews/index',
          },
        ],
      },
      {
        path: '/informationRetrieval',
        name: 'informationRetrieval',
        icon: 'smile',
        component: '@/layouts/MainLayout',
        routes: [
          {
            path: '/informationRetrieval/registrationQuery',
            name: 'registrationQuery',
            icon: 'smile',
            component: '@/pages/supplier/informationRetrieval/registrationQuery/index',
          },
          {
            path: '/informationRetrieval/groupQualifiedSupplierQuery',
            name: 'groupQualifiedSupplierQuery',
            icon: 'smile',
            component: '@/pages/supplier/informationRetrieval/groupQualifiedSupplierQuery/index',
          },
          {
            path: '/informationRetrieval/mySupplierInquiry',
            name: 'mySupplierInquiry',
            icon: 'smile',
            component: '@/pages/supplier/informationRetrieval/mySupplierInquiry/index',
          },
        ]
      },
      {
        path: '/informationManagement',
        name: 'informationManagement',
        icon: 'smile',
        component: '@/layouts/MainLayout',
        routes: [
          {
            path: '/informationManagement/SupplierRegisterAgent',
            name: 'SupplierRegisterAgent',
            icon: 'smile',
            component: '@/pages/supplier/informationManagement/SupplierRegisterAgent/index',
          },
          {
            path: '/informationManagement/SupplierChangeManage',
            name: 'SupplierChangeManage',
            icon: 'smile',
            component: '@/pages/supplier/informationManagement/SupplierChangeManage/index',
          },
          {
            path: '/informationManagement/SupplierChangeReviewManage',
            name: 'SupplierChangeReviewManage',
            icon: 'smile',
            component: '@/pages/supplier/informationManagement/SupplierChangeReviewManage/index',
          },
        ]
      },
      {
        path: '/admission',
        name: 'admission',
        icon: 'smile',
        component: '@/layouts/MainLayout',
        routes: [
          {
            path: '/admission/admissionManagement',
            name: 'admissionManagement',
            icon: 'smile',
            component: '@/pages/supplier/admission/admissionManagement/index',
          },
          {
            path: '/admission/admissionReviewManagement',
            name: 'admissionReviewManagement',
            icon: 'smile',
            component: '@/pages/supplier/admission/admissionReviewManagement/index',
          },
          {
            path: '/admission/SupplierEntryReview',
            name: 'SupplierEntryReview',
            icon: 'smile',
            component: '@/pages/supplier/admission/SupplierEntryReview/index',
          },
          {
            path: '/admission/SupplierCategoryEntry',
            name: 'SupplierCategoryEntry',
            icon: 'smile',
            component: '@/pages/supplier/admission/SupplierCategoryEntry/index',
          },
          {
            path: '/admission/SupplierCategoryEntryReview',
            name: 'SupplierCategoryEntryReview',
            icon: 'smile',
            component: '@/pages/supplier/admission/SupplierCategoryEntryReview/index',
          },
        ]
      },
      {
        path: '/category',
        name: 'category',
        icon: 'smile',
        component: '@/layouts/MainLayout',
        routes: [
          {
            path: '/category/category-manage',
            name: 'categoryManage',
            icon: 'smile',
            component: '@/pages/supplier/category/CategoryManage/index',
          },
          {
            path: '/category/category-library-manage',
            name: 'categoryLibraryManage',
            icon: 'smile',
            component: '@/pages/supplier/category/CategoryLibraryManage/index',
          },
          {
            path: '/category/category-library-review',
            name: 'categoryLibraryReview',
            icon: 'smile',
            component: '@/pages/supplier/category/CategoryLibraryReview/index',
          },
          {
            path: '/category/supplier-entry-manage',
            name: 'supplierEntryManage',
            icon: 'smile',
            component: '@/pages/supplier/category/SupplierEntryManage/index',
          },
          {
            path: '/category/supplier-entry-review',
            name: 'supplierEntryReview',
            icon: 'smile',
            component: '@/pages/supplier/category/SupplierEntryReview/index',
          },
        ]
      },
      {
        path: '/supplierBlacklist',
        name: 'supplierBlacklist',
        icon: 'smile',
        component: '@/layouts/MainLayout',
        routes: [
          {
            path: '/supplierBlacklist/manage',
            name: 'blacklistManage',
            icon: 'smile',
            component: '@/pages/supplier/supplierBlacklist/blacklistManage/index',
          },
          {
            path: '/supplierBlacklist/audit',
            name: 'blacklistAudit',
            icon: 'smile',
            component: '@/pages/supplier/supplierBlacklist/blacklistAudit/index',
          },
        ],
      },
      {
        path: '/supplierExit',
        icon: 'smile',
        name: 'supplierExit',
        routes: [
          {
            path: '/supplierExit/manage',
            name: 'supplierExitManage',
            icon: 'smile',
            component: '@/pages/supplier/supplierExit/supplierExitManage/index',
          },
          {
            path: '/supplierExit/audit',
            name: 'supplierExitAudit',
            icon: 'smile',
            component: '@/pages/supplier/supplierExit/supplierExitAudit/index',
          },
        ],
      },
      {
        path: '/supplierMessage',
        icon: 'smile',
        name: 'supplierMessage',
        component: '@/pages/supplier/supplierMessage/index',
      },
    ]
  },

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