/*
 *   招标项目-代理机构-项目管理-开标--路由表
 * */
import layout from '@/components/layout/layout'
import layout3 from '@/components/layout/layout3'

/* 开标结果*/
export const bidOpening = [{
  path: 'bidOpening',
  component: () => import('@/views/bidding/bidOpening/bidOpeningContent/bidOpeningContent'),
  children: [{
    /* 一步开标查看||两步开标时第一步开标查看*/
    path: 'bidOpeningResult-detail',
    meta: {
      openStageType: '01'// 两步开标时 商务技术开标时
    },
    component: () => import('@/views/bidding/bidOpening/bidOpeningResult/bidOpeningResult-detail')
  }, {
  /* 两步开标时第二步步开标查看*/
    path: 'theSecondStepBidOpeningResult-detail',
    meta: {
      openStageType: '02'// 两步开标时 经济开标时
    },
    component: () => import('@/views/bidding/bidOpening/bidOpeningResult/bidOpeningResult-detail')
  },
  {
    /* 驱动下进入大厅*/
    path: 'bidOpeningHallEntrance',
    component: () => import('@/views/bidding/bidOpening/bidOpeningHallEntrance/bidOpeningHallEntrance')
  }]
}]

/* 开标大厅*/
export const bidOpeningHall = [{
  path: '/bidOpeningHall',
  component: layout,
  redirect: '/bidOpeningHall/bidOpeningTodayList',
  children: [
    // 今日开标列表
    {
      path: 'bidOpeningTodayList',
      meta: {
        path: 'bidOpeningHall',
        redisType: '01' // 是否redis版本 00是 01否
      },
      component: () => import('@/views/bidding/bidOpening/bidOpeningList/bidOpeningToday-list')
    }
  ]
}]
export const bidOpeningHall2 = [{
  path: '/bidOpeningHall',
  component: layout3,
  children: [
    {
      // 开标大厅开标前
      path: 'openingHall',
      component: () => import('@/views/bidding/bidOpening/beforeBidOpening/openingHall')
    },
    {
      // 开标大厅-开标中投标人解密（分包）
      path: 'packageBidOpeningDecryption',
      component: () => import('@/views/bidding/bidOpening/bidOpeningDecrypt/packageBidOpeningDecryption')
    },
    {
      // 开标大厅-开标中投标人解密（不分包）
      path: 'noPackageBidOpeningDecryption',
      component: () => import('@/views/bidding/bidOpening/bidOpeningDecrypt/noPackageBidOpeningDecryption')
    }
  ]
}]
/* =========================redis版路由=====================*/
export const bidOpeningRedis = [{
  path: '/bidOpeningHallRedis',
  component: layout,
  redirect: '/bidOpeningHallRedis/bidOpeningTodayList',
  children: [
    // 今日开标列表
    {
      path: 'bidOpeningTodayList',
      meta: {
        path: 'bidOpeningHallRedis',
        redisType: '00' // 是否redis版本 00是 01否
      },
      component: () => import('@/views/bidding/bidOpening/bidOpeningList/bidOpeningToday-list')
    }
  ]
}]
export const bidOpeningHallRedis = [{
  path: '/bidOpeningHallRedis',
  component: layout3,
  children: [
    // 开标大厅-开标中-（1宫格分包点击查看包 2不分包子页面）
    {
      path: 'packageBidOpeningDecryptionRedis',
      component: () => import('@views/bidding/bidOpening/bidOpeningRedis/packageBidOpeningDecryptionRedis')
    },
    // 开标大厅-开标中（宫格分包）{集中解密，非集中解密公用}
    {
      path: 'noPackageBidOpeningDecryptionRedis',
      component: () => import('@views/bidding/bidOpening/bidOpeningRedis/noPackageBidOpeningDecryptionRedis')
    }
  ]
}]
/* =========================招标开标监控=====================*/
export const bidOpeningMonitor = [
  // 招标项目监督-项目开标列表
  {
    path: 'bidingOpeningMonitor-list',
    component: () => import('@views/bidding/bidOpening/bidOpeningMonitor/bidingOpeningMonitor-list')
  },
  // 项目开标列表-开标前数据查看
  {
    path: 'bidingBeforeOpeningMonitor-detail',
    name: 'bidingBeforeOpeningMonitor-detail',
    meta: { path: 'bidingOpeningMonitor-list' },
    component: () => import('@views/bidding/bidOpening/bidOpeningMonitor/bidingBeforeOpeningMonitor-detail')
  },
  // 项目开标列表-开标数据查看
  {
    path: 'bidingOpeningMonitor-detail',
    name: 'bidingOpeningMonitor-detail',
    meta: { path: 'bidingOpeningMonitor-list' },
    component: () => import('@views/bidding/bidOpening/bidOpeningMonitor/bidOpeningMonitorDetail/bidingOpeningMonitor-detail')
  }
]
export default [...bidOpening, ...bidOpeningHall, ...bidOpeningHall2, ...bidOpeningRedis, ...bidOpeningHallRedis]
