/*
 *   招标项目-代理机构-项目管理-招标-邀请函--路由表
 * */
export const invitation = [
  {
    path: 'invitation',
    component: () => import('@/views/bidding/invitation/tenderInvitationContent/invitationContent'),
    children: [
      // 邀请函列表
      {
        path: 'invitationList',
        component: () => import('@/views/bidding/invitation/invitationList/bidInvitation-list')
      }
    ]
  },
  // 新招标公告邀请新增页
  {
    path: 'invitation/newTenderInvitation-add',
    component: () => import('@/views/bidding/invitation/newTenderInvitation/tenderInvitation-add')
  },
  // 新招标公告邀请详情页
  {
    path: 'invitation/newTenderInvitation-detail',
    meta: {
      invitationDetailType: '01' // 邀请函列表详情查看来源 01 为驱动进入 不显示头部返回
    },
    component: () => import('@/views/bidding/invitation/newTenderInvitation/tenderInvitation-detail')
  },
  // 新招标公告邀请详情页查看pdf
  {
    path: 'invitation/newTenderInvitationPdf',
    meta: {
      invitationDetailType: '01' // 邀请函列表详情查看来源 01 为驱动进入 不显示头部返回
    },
    component: () => import('@/views/bidding/invitation/newTenderInvitation/newTenderInvitationPdf-detail')
  },
  // 邀请函-tab页
  {
    path: 'invitation/tabs',
    component: () => import('@/views/bidding/invitation/tenderInvitationContent/invitationTabs'),
    children: [
      /* 邀请函-招标条件*/
      {
        path: 'tenderInvitationInfo-add',
        component: () => import('@/views/bidding/invitation/tenderInvitationInfo/tenderInvitationInfo-add')
      },
      /* 邀请函-项目概况与招标范围*/
      {
        path: 'tenderInvitationExpandInfo-add',
        component: () => import('@/views/bidding/invitation/tenderInvitationExpand/tenderInvitationExpandInfo-add')
      },
      /* 邀请函-招标文件的获取*/
      {
        path: 'tenderDocumentPrice-add',
        component: () => import('@/views/bidding/invitation/tenderDocumentPrice/tenderDocumentPrice-add')
      },
      /* 邀请函-投标人资格要求*/
      {
        path: 'tenderQualification-add',
        component: () => import('@/views/bidding/invitation/tenderQualification/tenderQualification-add')
      },
      /* 邀请函-投标文件的递交*/
      {
        path: 'tenderDocumentSubmit-add',
        component: () => import('@/views/bidding/invitation/tenderDocSubmit/tenderDocumentSubmit-add')
      },
      /* 邀请函-开标时间及地点*/
      {
        path: 'invitationOpenInfo-add',
        component: () => import('@/views/bidding/invitation/invitationOpenInfo/invitationOpenInfo-add')
      },
      /* 邀请函-其他(保证金页面)*/
      {
        path: 'tenderInvitationOtherInfo-add',
        component: () => import('@/views/bidding/invitation/tenderInvitationOtherInfo/tenderInvitationOtherInfo-add')
      },
      /* 邀请函-监督部门*/
      {
        path: 'invitationMonitorDepName-add',
        component: () => import('@/views/bidding/invitation/invtationMonitorDepName/invitationMonitorDepName-add')
      },
      /* 邀请函-联系方式*/
      {
        path: 'invitationContactInformation-add',
        component: () => import('@/views/bidding/invitation/tenderInvitationContact/invitationContactInformation-add')
      },
      /* 邀请函-邀请函*/
      {
        path: 'makeTenderingInvitation-add',
        component: () => import('@/views/bidding/invitation/tenderInvitation/makeTenderingInvitation-add')
      },
      /* 邀请函-使用工具制作公告*/
      {
        path: 'toolMakeInvitation',
        component: () => import('@/views/bidding/invitation/tenderInvitation/toolMakeInvitation')
      },
      /* 邀请函-（不分包）邀请名单*/
      {
        path: 'noPackageInvitationSupplierInfo-add',
        component: () => import('@/views/bidding/invitation/tenderInvitationSupplier/noPackageInvitationSupplierInfo-add')
      },
      /* 邀请函-（分包）邀请名单*/
      {
        path: 'packageInvitationSupplierInfo-add',
        component: () => import('@/views/bidding/invitation/tenderInvitationSupplier/packageInvitationSupplierInfo-add')
      }
    ]
  },
  /* 邀请函-预览*/
  {
    path: 'invitation/tenderInvitationDetail',
    meta: {
      invitationDetailType: '01' // 邀请函列表详情查看来源 01 为驱动进入 不显示头部返回
    },
    component: () => import('@/views/bidding/invitation/tenderInvitationDetail/tenderInvitation-detail')
  },
  /* 邀请函追加邀请函*/
  {
    path: 'invitation/packageAppendSupplierInvitation',
    meta: {
      invitationDetailType: '01' // 邀请函列表详情查看来源 01 为驱动进入 不显示头部返回
    },
    component: () => import('@/views/bidding/invitation/tenderInvitationSupplier/packageAppendSupplierInvitation')
  }
]

export const invitationList = [
  /* 邀请函列表*/
  {
    path: 'tenderInvitation',
    meta: {
      path: 'tenderInvitation'
    },
    component: () => import('@/views/bidding/invitation/invitationList/tenderInvitation-list')
  },
  /* 邀请函列表详情*/
  {
    path: 'tenderInvitationDetail',
    meta: {
      path: 'tenderInvitation',
      invitationDetailType: '00' // 邀请函列表详情查看来源 00 为菜单进入 显示头部返回
    },
    component: () => import('@/views/bidding/invitation/tenderInvitationDetail/tenderInvitation-detail')
  },
  /* 邀请函-不分包追加邀请函*/
  {
    path: 'noPackageAppendSupplierInvitation',
    meta: { path: 'tenderInvitation' },
    component: () => import('@/views/bidding/invitation/tenderInvitationSupplier/noPackageAppendSupplierInvitation')
  },
  /* 邀请函-分包追加邀请函*/
  {
    path: 'packageAppendSupplierInvitation',
    meta: {
      path: 'tenderInvitation',
      invitationDetailType: '00' // 邀请函列表详情查看来源 00 为菜单进入 显示头部返回
    },
    component: () => import('@/views/bidding/invitation/tenderInvitationSupplier/packageAppendSupplierInvitation')
  }
]
export const invitationFlow = [
  /* 工作流审批-邀请函-预览*/
  {
    path: 'tenderInvitationDetail',
    meta: {
      invitationDetailType: '01' // 邀请函列表详情查看来源 01 为驱动进入 不显示头部返回
    },
    component: () => import('@/views/bidding/invitation/tenderInvitationDetail/tenderInvitation-detail')
  }
]
export default [...invitation, ...invitationList]
