/*
 * 采购计划-建设项目--路由表
 * */
import layout from '@/components/layout/layout'

export const buildingProject = [
  {
    path: '/buildingProject',
    component: layout,
    children: [
      // 建设项目-列表
      {
        path: 'buildingProjectList',
        component: () => import('@/views/purchasePlan/buildingProject/buildingProjectManage/buildingProjectList/buildingProject-list')
      },
      // 建设项目-关联招标项目-列表
      {
        path: 'buildingProjectCorrelationList',
        name: 'BuildingProjectCorrelationList',
        meta: { path: 'buildingProjectList' },
        component: () => import('@/views/purchasePlan/buildingProject/buildingProjectManage/buildingProjectCorrelation/buildingProjectCorrelation-list')
      },
      // 建设项目-新增
      {
        path: 'buildingProjectAdd',
        name: 'BuildingProjectAdd',
        meta: { path: 'buildingProjectList' },
        component: () => import('@/views/purchasePlan/buildingProject/buildingProjectManage/buildingProject/buildingProject-add')
      },
      // 建设项目-详情
      {
        path: 'buildingProjectDetail',
        name: 'BuildingProjectDetail',
        meta: { path: 'buildingProjectList' },
        component: () => import('@/views/purchasePlan/buildingProject/buildingProjectManage/buildingProject/buildingProject-detail')
      },
      // 建设项目审核-列表
      {
        path: 'buildingProjectAuditList',
        component: () => import('@/views/purchasePlan/buildingProject/buildingProjectAudit/buildingProjectAudit-list')
      },
      // 建设项目审核-详情
      {
        path: 'buildingProjectAuditDetail',
        name: 'BuildingProjectAuditDetail',
        meta: { path: 'buildingProjectAuditList' },
        component: () => import('@/views/purchasePlan/buildingProject/buildingProjectAudit/buildingProjectAudit-detail')
      },
      // 建设项目台账-列表
      {
        path: 'buildingProjectLedgerList',
        component: () => import('@/views/purchasePlan/buildingProject/buildingProjectLedger/buildingProjectLedger-list')
      },
      // 建设项目台账-详情
      {
        path: 'buildingProjectLedgerDetail',
        name: 'BuildingProjectLedgerDetail',
        meta: { path: 'buildingProjectLedgerList' },
        component: () => import('@/views/purchasePlan/buildingProject/buildingProjectManage/buildingProject/buildingProject-detail')
      }
    ]
  }
]
/* 建设项目*/
export const buildingProjectFlow = [
  // 建设项目-新增
  {
    path: 'buildingProjectAdd',
    component: () => import('@/views/purchasePlan/buildingProject/buildingProjectManage/buildingProject/buildingProject-add')
  },
  // 建设项目-详情
  {
    path: 'buildingProjectDetail',
    component: () => import('@/views/purchasePlan/buildingProject/buildingProjectManage/buildingProject/buildingProject-detail')
  }
]
export default [...buildingProject, ...buildingProjectFlow]
