/*
 *   招标项目-代理机构-项目管理-招标文件/资审文件--路由表
 * */
/* ============================招标/资审驱动进入制作查看-路由表=================================*/
export const tenderDoc = [{
  path: 'tenderDoc',
  component: () => import('@/views/bidding/tenderDoc/tenderDocContent/docContent'),
  children: [
    // 招标文件制作页面
    {
      path: 'tenderProcfilePack-add',
      component: () => import('@/views/bidding/tenderDoc/tenderProcfilePack/tenderProcfilePack-add')
    },
    // 资审文件制作页面
    {
      path: 'tenderZsProcfilePack-add',
      component: () => import('@/views/bidding/tenderDoc/tenderProcfilePack/tenderProcfilePack-add')
    },
    // 招标文件查看/资审文件查看
    {
      path: 'tenderDocInfo-detail',
      component: () => import('@/views/bidding/tenderDoc/tenderProcfile/tenderDocInfo-detail')
    },
    // 项目管理-招标文件标书获期记录列表
    {
      path: 'tenderDocTakeRecordsList-detail',
      component: () => import('@/views/bidding/tenderDoc/tenderProcfile/tenderDocTakeRecordsList-detail')
    },
    // 项目管理-招标文件标书获期记录详情
    {
      path: 'tenderDocTakeRecords-detail',
      component: () => import('@/views/bidding/tenderDoc/tenderProcfile/tenderDocTakeRecords-detail')
    },
    // 项目管理-招标文件下载列表
    {
      path: 'tenderProcfileDownload-detail',
      component: () => import('@/views/bidding/tenderDoc/tenderProcfile/tenderProcfileDownload-detail')
    }
  ]
}]
/* ============================招标/资审驱动菜单查看列表-路由表=================================*/
export const tenderDocList = [
  // 招标文件列表
  {
    path: 'tenderDocFileList',
    meta: {
      path: 'tenderDocFileList',
      fileQualificationType: '01' //  01:后审文件
    },
    component: () => import('@/views/bidding/tenderDoc/tenderDocList/tenderDocFile-list')
  },
  // 资审文件列表
  {
    path: 'tenderZswjDocFileList',
    meta: {
      path: 'tenderZswjDocFileList',
      fileQualificationType: '00' //  00:资审文件
    },
    component: () => import('@/views/bidding/tenderDoc/tenderDocList/tenderDocFile-list')
  },
  // 招标文件查看
  {
    path: 'tenderDocInfoDetail',
    meta: { path: 'tenderDocFileList' },
    component: () => import('@/views/bidding/tenderDoc/tenderProcfile/tenderDocInfo-detail')
  },
  // 资审文件查看
  {
    path: 'tenderZswjDocInfoDetail',
    meta: { path: 'tenderZswjDocFileList' },
    component: () => import('@/views/bidding/tenderDoc/tenderProcfile/tenderDocInfo-detail')
  }
]
/* ===================================招标/资审文件工作流-路由表======================================*/
export const tenderDowFlow = [
  // 招标文件查看/资审文件查看
  {
    path: 'tenderDocInfo-detail',
    meta: {
      flowStatus: true // 工作流进入
    },
    component: () => import('@/views/bidding/tenderDoc/tenderProcfile/tenderDocInfo-detail')
  }
]
/* ===================================招标/资审文件审核-路由表======================================*/
export const auditBidDocument = [
  // 招标文件审核列表
  {
    path: 'tenderDocFileAudit',
    meta: {
      path: 'tenderDocFileAudit',
      fileQualificationType: '01'// 后审文件
    },
    component: () => import('@/views/bidding/tenderDoc/tenderDocAudit/tenderDocFileAudit-list')
  },
  // 资审文件审核列表
  {
    path: 'tenderInformationDocFileAudit',
    meta: {
      path: 'tenderInformationDocFileAudit',
      fileQualificationType: '00'// 资审文件
    },
    component: () => import('@/views/bidding/tenderDoc/tenderDocAudit/tenderDocFileAudit-list')
  },
  // 招标文件审核
  {
    path: 'tenderDocFileAudit-detail',
    meta: { path: 'tenderDocFileAudit' },
    component: () => import('@/views/bidding/tenderDoc/tenderDocAudit/tenderDocFileAudit-detail')
  },
  // 资审文件文件审核
  {
    path: 'tenderInformationDocFileAudit-detail',
    meta: { path: 'tenderInformationDocFileAudit' },
    component: () => import('@/views/bidding/tenderDoc/tenderDocAudit/tenderDocFileAudit-detail')
  }
]
export default [...tenderDoc, ...tenderDocList]
