/*
 * 采购计划-招标计划--路由表
 * */
import layout from '@/components/layout/layout'

export default [
  /* =======================================================招标计划=======================================================*/
  {
    path: '/tenderPlan',
    component: layout,
    children: [
      // 招标计划-列表
      {
        path: 'tenderPlanList',
        meta: { path: 'tenderPlanList' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanList/tenderPlan-list')
      },
      // 招标计划-新增
      {
        path: 'tenderPlanAdd',
        meta: { path: 'tenderPlanList' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanInfo/tenderPlanInfoStepsBar/steps'),
        name: 'tenderPlanAddContent',
        children: [
          // 招标计划-基本信息
          {
            path: 'baseInfo',
            component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanInfo/baseInfo/baseInfo-add')
          },
          // 招标计划-物料组信息
          {
            path: 'materielInfo',
            component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanInfo/detailInfo/materielInfo-add')
          },
          // 招标计划-办法信息
          {
            path: 'methodInfo',
            component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanInfo/methodInfo/methodInfo-add')
          },
          // 招标计划-供应商信息集合
          {
            path: 'supplierInfo',
            component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanInfo/supplierInfo/supplierInfo-add')
          },
          // 招标计划-招标人信息集合
          {
            path: 'tendereeInfo',
            component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanInfo/tendereeInfo/tendereeInfo-add')
          },
          // 招标计划-评委集合
          {
            path: 'discussInfo',
            component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanInfo/discussInfo/discussInfo-add')
          }
        ]
      },
      // 招标计划-查看
      {
        path: 'tenderPlanBuildDetail',
        name: 'TenderPlanBuildDetail',
        meta: { path: 'tenderPlanList' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanInfo/tenderPlanDetail/tenderPlanBuild-detail')
      },
      /* ===========================招标计划分配--公司管理员===============================*/
      // 招标计划-分配规则
      {
        path: 'tenderPlanFirmClassAllotRule-list',
        meta: { path: 'tenderPlanFirmClassAllotRule-list' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanAllot/tenderPlanFirmClassAllot/tenderPlanFirmClassAllotRule/tenderPlanFirmClassAllotRule-list')
      },
      // 招标计划-分配规则-新增分配规则
      {
        path: 'tenderPlanFirmClassAllotRule-add',
        meta: { path: 'tenderPlanFirmClassAllotRule-list' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanAllot/tenderPlanFirmClassAllot/tenderPlanFirmClassAllotRule/tenderPlanFirmClassAllotRule-add')
      },
      // 招标计划-分配列表
      {
        path: 'tenderPlanFirmClassAllot-list',
        meta: { path: 'tenderPlanFirmClassAllot-list' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanAllot/tenderPlanFirmClassAllot/tenderPlanFirmClassAllot/tenderPlanFirmClassAllot-list')
      },
      // 招标计划-分配查看
      {
        path: 'tenderPlanFirmClassAllot-detail',
        name: 'TenderPlanFirmClassAllotDetail',
        meta: { path: 'tenderPlanFirmClassAllot-list' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanInfo/tenderPlanDetail/tenderPlanBuild-detail')
      },
      /* ===========================招标计划分配--部门管理员===============================*/
      // 招标计划-分配规则
      {
        path: 'tenderPlanSectionClassAllotRule-list',
        meta: { path: 'tenderPlanSectionClassAllotRule-list' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanAllot/tenderPlanSectionClassAllot/tenderPlanSectionClassAllotRule/tenderPlanSectionClassAllotRule-list')
      },
      // 招标计划-分配规则-新增分配规则
      {
        path: 'tenderPlanSectionClassAllotRule-add',
        meta: { path: 'tenderPlanSectionClassAllotRule-list' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanAllot/tenderPlanSectionClassAllot/tenderPlanSectionClassAllotRule/tenderPlanSectionClassAllotRule-add')
      },
      // 招标计划-分配列表
      {
        path: 'tenderPlanSectionClassAllot-list',
        meta: { path: 'tenderPlanSectionClassAllot-list' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanAllot/tenderPlanSectionClassAllot/tenderPlanSectionClassAllot/tenderPlanSectionClassAllot-list')
      },
      // 招标计划-分配查看
      {
        path: 'tenderPlanSectionClassAllot-detail',
        name: 'TenderPlanSectionClassAllotDetail',
        meta: { path: 'tenderPlanSectionClassAllot-list' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanInfo/tenderPlanDetail/tenderPlanBuild-detail')
      }
    ]
  },
  /* ===========================招标计划分配-招标方案审核--系统管理员===============================*/
  {
    path: '/bidInvitation',
    component: layout,
    children: [
      // 招标计划分配-招标方案-审核规则列表
      {
        path: 'bidInvitationPlanAuditRule-list',
        meta: { path: 'bidInvitationPlanAuditRule-list' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanAllot/bidInvitation/bidInvitationPlanAuditRule/bidInvitationPlanAuditRule-list')
      },
      // 新增审核规则
      {
        path: 'bidInvitationPlanAuditRule-add',
        meta: { path: 'bidInvitationPlanAuditRule-list' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanAllot/bidInvitation/bidInvitationPlanAuditRule/bidInvitationPlanAuditRule-add')
      },
      // 招标方案审核
      {
        path: 'bidInvitationPlanAudit-list',
        meta: { path: 'bidInvitationPlanAudit-list' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanAllot/bidInvitation/bidInvitationPlanAudit/bidInvitationPlanAudit-list')
      },
      // 招标计划-招标方案审核
      {
        path: 'bidInvitationPlanAudit-detail',
        name: 'BidInvitationPlanAuditDetail',
        meta: { path: 'bidInvitationPlanAudit-list' },
        component: () => import('@/views/purchasePlan/tenderPlan/tenderPlanInfo/tenderPlanDetail/tenderPlanBuild-detail')
      }
    ]
  }
]
