/*
* 招标项目-代理机构-立项--路由表
* */
/*
* ===============立项===============
* */
export const bidProjectStepChildren = [
  // 招标项目类型
/*  {
    path: 'bidProjectClassification',
    component: () => import('@/views/bidding/bidProject/bidProjectClassification/bidProjectClassification-add')
  },*/
  // 基本信息
  {
    path: 'bidProjectBase',
    component: () => import('@/views/bidding/bidProject/bidProjectBase/bidProjectBase-add')
  },
  // 相关机构信息
  {
    path: 'bidProjectDepart',
    component: () => import('@/views/bidding/bidProject/bidProjectDepart/bidProjectDepart-add')
  },
  // 物料信息--标的清单
  {
    path: 'bidProjectMateriel',
    component: () => import('@/views/bidding/bidProject/bidProjectMateriel/bidProjectMateriel-add')
  },
  // 标包信息
  {
    path: 'bidProjectPackage',
    component: () => import('@/views/bidding/bidProject/bidProjectPackage/bidProjectPackage-add')
  },
  // 其他信息
  {
    path: 'bidProjectOther',
    component: () => import('@/views/bidding/bidProject/bidProjectOther/bidProjectOther-add')
  },
  // 预览
  {
    path: 'bidProjectPreview',
    component: () => import('@/views/bidding/bidProject/bidProjectPreview/bidProjectPreview-add')
  }
]
// 招标立项
export const bidProjectStep = [
  {
    path: 'bidProjectStep',
    name: 'BidProjectStep',
    meta: {
      path: 'bidProjectStep',
      tenderMethodType: '00' // 区分菜单列表类型 00招标立项 89招标谈判 67招标询比
    },
    component: () => import('@/views/bidding/bidProject/bidProjectStep/bidProjectStep'),
    children: [...bidProjectStepChildren]
  }
]
/* ======================================招标谈判-路由表 start============================================*/
// 招标谈判
export const bidNegotiableProjectStep = [
  {
    path: 'bidNegotiableProjectStep',
    name: 'BidNegotiableProjectStep',
    meta: {
      path: 'bidNegotiableProjectStep',
      tenderMethodType: '89' // 区分菜单列表类型 00招标立项 89招标谈判 67招标询比
    },
    component: () => import('@/views/bidding/bidProject/bidProjectStep/bidProjectStep'),
    children: [...bidProjectStepChildren]
  }
]
// 招标谈判列表
export const bidNegotiableProjectList = [
  // 项目经理-招标谈判列表
  {
    path: 'bidNegotiableProject',
    meta: { path: 'bidNegotiableProject' },
    component: () => import('@/views/bidding/bidProject/bidProjectList/bidNegotiableProject-list')
  },
  // 项目经理-预览招标谈判立项信息
  {
    path: 'bidNegotiableProjectPreview',
    name: 'BidNegotiableProjectPreview',
    meta: {
      path: 'bidNegotiableProject',
      backType: '89' // 00返回项目管理列表 01返回领导-项目管理列表 02返回采购人-项目管理列表 89招标谈判方式 67招标-询价方式
    },
    component: () => import('@/views/bidding/bidProject/bidProjectPreview/bidProjectPreview-detail')
  }
]
/* ======================================招标谈判-路由表 end============================================*/

/* =================================招标询比-路由表 start=================================================*/
// 招标询价方式
export const bidInquiryProjectStep = [
  {
    path: 'bidInquiryProjectStep',
    name: 'BidInquiryProjectStep',
    meta: {
      path: 'bidInquiryProjectStep',
      tenderMethodType: '67' // 区分菜单列表类型 00招标立项 89招标谈判 67招标询比
    },
    component: () => import('@/views/bidding/bidProject/bidProjectStep/bidProjectStep'),
    children: [...bidProjectStepChildren]
  }
]
// 招标询比列表
export const bidInquiryProjectList = [
  // 项目经理-招标询比列表
  {
    path: 'bidInquiryProject',
    meta: { path: 'bidInquiryProject' },
    component: () => import('@/views/bidding/bidProject/bidProjectList/bidInquiryProject-list')
  },
  // 项目经理-预览立项信息
  {
    path: 'bidInquiryProjectview',
    name: 'BidInquiryProjectview',
    meta: {
      path: 'bidInquiryProject',
      backType: '67' // 00返回项目管理列表 01返回领导-项目管理列表 02返回采购人-项目管理列表 89招标谈判方式 67招标-询价方式
    },
    component: () => import('@/views/bidding/bidProject/bidProjectPreview/bidProjectPreview-detail')
  }
]
/* =================================招标询比-路由表 end=================================================*/

/* ==============================单一来源-路由表 start ==============  */
// 招标单一来源方式
export const bidSingleSourceProjectStep = [
  {
    path: 'bidSingleSourceProjectStep',
    name: 'BidSingleSourceProjectStep',
    meta: {
      path: 'bidSingleSourceProjectStep',
      tenderMethodType: '04' // 区分菜单列表类型 00招标立项 89招标谈判 67招标询比 04单一来源
    },
    component: () => import('@/views/bidding/bidProject/bidProjectStep/bidProjectStep'),
    children: [...bidProjectStepChildren]
  }
]
// 招标单一来源列表
export const bidSingleSourceProjectList = [
  // 项目经理-招标单一来源列表
  {
    path: 'bidSingleSourceProject',
    meta: { path: 'bidSingleSourceProject' },
    component: () => import('@/views/bidding/bidProject/bidProjectList/bidSingleSourceProject-list')
  },
  // 项目经理-预览立项信息
  {
    path: 'bidSingleSourceProjectview',
    name: 'BidSingleSourceProjectview',
    meta: {
      path: 'bidSingleSourceProject',
      backType: '04' // 00返回项目管理列表 01返回领导-项目管理列表 02返回采购人-项目管理列表 89招标谈判方式 67招标-询价方式 04单一来源
    },
    component: () => import('@/views/bidding/bidProject/bidProjectPreview/bidProjectPreview-detail')
  }
]
/* ==============================单一来源-路由表 end ==============  */

/* ==============================竞争性磋商-路由表 start ==============  */
// 招标竞争性磋商方式
export const bidConsultationProjectStep = [
  {
    path: 'bidConsultationProjectStep',
    name: 'BidConsultationProjectStep',
    meta: {
      path: 'bidConsultationProjectStep',
      tenderMethodType: '23' // 区分菜单列表类型 00招标立项 89招标谈判 67招标询比 04单一来源 23竞争性磋商
    },
    component: () => import('@/views/bidding/bidProject/bidProjectStep/bidProjectStep'),
    children: [...bidProjectStepChildren]
  }
]
// 招标竞争性磋商列表
export const bidConsultationProjectList = [
  // 项目经理-招标竞争性磋商列表
  {
    path: 'bidConsultationProject',
    meta: { path: 'bidConsultationProject' },
    component: () => import('@/views/bidding/bidProject/bidProjectList/bidConsultationProject-list')
  },
  // 项目经理-预览立项信息
  {
    path: 'bidConsultationProjectview',
    name: 'BidConsultationProjectview',
    meta: {
      path: 'bidConsultationProject',
      backType: '23' // 00返回项目管理列表 01返回领导-项目管理列表 02返回采购人-项目管理列表 89招标谈判方式 67招标-询价方式 04单一来源 23竞争性磋商
    },
    component: () => import('@/views/bidding/bidProject/bidProjectPreview/bidProjectPreview-detail')
  }
]
/* ==============================竞争性磋商-路由表 end ==============  */
export const biddingProjectList = [
  // 项目经理-项目管理列表
  {
    path: 'projectManager',
    meta: { path: 'projectManager' },
    component: () => import('@/views/bidding/bidProject/bidProjectList/tenderProject-list')
  },
  // 项目经理-预览立项信息
  {
    path: 'bidProjectPreview',
    name: 'PreviewProjectDetail',
    meta: {
      path: 'projectManager',
      backType: '00' // 00返回项目管理列表 01返回领导-项目管理列表 02返回采购人-项目管理列表
    },
    component: () => import('@/views/bidding/bidProject/bidProjectPreview/bidProjectPreview-detail')
  },
  // 领导-招标项目列表
  // {
  //   path: 'leaderTenderProject',
  //   meta: { path: 'leaderTenderProject' },
  //   component: () => import('@/views/bidding/bidProject/bidProjectList/leaderTenderProject-list')
  // },
  // 运维项目列表
  // {
  //   path: 'operationManger',
  //   meta: { path: 'operationManger' },
  //   component: () => import('@/views/operationManger/operationManger-list')
  // },
  // 领导-预览立项信息
  {
    path: 'leaderBiddingProjectDetail',
    name: 'leaderBiddingProjectDetail',
    meta: {
      path: 'leaderTenderProject',
      backType: '01' // 00返回项目管理列表 01返回领导-项目管理列表 02返回采购人-项目管理列表
    },
    component: () => import('@/views/bidding/bidProject/bidProjectPreview/bidProjectPreview-detail')
  },
  // // 采购人-招标项目列表
  // {
  //   path: 'buyerTenderProject',
  //   meta: { path: 'buyerTenderProject' },
  //   component: () => import('@/views/bidding/bidProject/bidProjectList/buyerTenderProject-list')
  // },
  // 采购人-预览立项信息
  {
    path: 'buyerTenderProjectDetail',
    name: 'buyerTenderProjectDetail',
    meta: {
      path: 'buyerTenderProject',
      backType: '02' // 00返回项目管理列表 01返回领导-项目管理列表 02返回采购人-项目管理列表
    },
    component: () => import('@/views/bidding/bidProject/bidProjectPreview/bidProjectPreview-detail')
  },
  ...bidNegotiableProjectList, // 招标谈判列表
  ...bidInquiryProjectList, // 招标询比列表
  ...bidSingleSourceProjectList, // 招标单一来源列表
  ...bidConsultationProjectList // 竞争性磋商
]
/* 驱动进入项目信息*/
export const tenderProject = [
  // 驱动进入预览项目信息
  {
    path: 'tenderProject',
    meta: {
      driveIntoView: true
    },
    component: () => import('@/views/bidding/bidProject/bidProjectPreview/bidProjectPreviewComp')
  }]

/* ======================================立项审核-路由表==========================================*/
export const auditProject = [
  // 审核机构招标项目列表
  {
    path: 'auditBidProject',
    meta: { path: 'auditBidProject' },
    component: () => import('@/views/bidding/bidProject/bidProjectAudit/bidProjectAudit-list')
  },
  {
    path: 'bidProjectAudit-detail',
    name: 'BidProjectAuditDetail',
    meta: { path: 'auditBidProject' },
    component: () => import('@/views/bidding/bidProject/bidProjectAudit/bidProjectAudit-detail')
  }
]
export const biddingProjectFlow = [
  // 项目经理-预览立项信息
  {
    path: 'bidProjectPreview',
    name: 'BidProjectPreviewFlow',
    component: () => import('@/views/bidding/bidProject/bidProjectPreview/bidProjectPreview-detail')
  },
  {
    path: 'bidProjectStep',
    name: 'BidProjectFlowStep',
    component: () => import('@/views/bidding/bidProject/bidProjectStep/bidProjectStep'),
    children: [...bidProjectStepChildren]
  }
]
// 认领项目
export const bidProjectClaim = [
  // 认领项目-招标项目列表
  {
    path: 'bidProjectClaimList',
    meta: { path: 'bidProjectClaimList' },
    component: () => import('@/views/bidding/bidProject/bidProjectClaim/bidProjectClaim-list')
  },
  // 认领项目-招标项目列表-预览项目信息
  {
    path: 'bidProjectClaimDetail',
    name: 'bidProjectClaimDetail',
    meta: { path: 'bidProjectClaimList' },
    component: () => import('@/views/bidding/bidProject/bidProjectClaim/bidProjectClaim-detail')
  }
]
export default [...bidProjectStep, ...biddingProjectList, ...biddingProjectFlow, ...bidNegotiableProjectStep, ...bidInquiryProjectStep, ...bidSingleSourceProjectStep, ...bidConsultationProjectStep]
