/*
 *   异常处理--路由表
 * */
/* =====================================变更公告-路由表====================================*/
export const changeBulletin = [{
  path: 'changeBulletin',
  component: () => import('@/views/bidding/changeBulletin/changeBulletin/tenderChangeBulletin/changeBulletinContent'),
  children: [
    /* 变更公告列表 */
    {
      path: 'changeBulletinList',
      component: () => import('@/views/bidding/changeBulletin/changeBulletin/tenderChangeBulletin/changeBulletin-list')
    },
    /* 变更公告预览 */
    {
      path: 'makeChangeBulletinPdfDetail',
      meta: {
        status: '01'
      },
      component: () => import('@/views/bidding/changeBulletin/changeBulletin/tenderChangeBulletin/makeChangeBulletinPdf-detail')
    },
    /* 变更公告新增 */
    {
      path: 'changeBulletinAdd',
      component: () => import('@/views/bidding/changeBulletin/changeBulletin/tenderChangeBulletin/changeBulletin-add')
    },
    /* 变更公告编辑 */
    {
      path: 'makeChangeBulletinAdd',
      component: () => import('@/views/bidding/changeBulletin/changeBulletin/tenderChangeBulletin/makeChangeBulletin-add')
    },
    /* 提交变更公告 */
    {
      path: 'submitChangeBulletin',
      component: () => import('@/views/bidding/changeBulletin/changeBulletin/tenderChangeBulletin/submitChangeBulletin')
    },
    /* 变更公告-使用工具制作*/
    {
      path: 'toolMakeChangeBulletin',
      component: () => import('@/views/bidding/changeBulletin/changeBulletin/tenderChangeBulletin/toolMakeChangeBulletin')
    }
  ]
}]
/** ===============变更公告列表=============== * */
export const changeBulletinList = [
  /* 变更公告-预览*/
  {
    path: 'makeTenderingBulletinPdf',
    meta: {
      path: 'tenderBulletin'
    },
    component: () => import('@/views/bidding/bulletin/tenderBulletin/makeTenderingBulletinPdf-detail')
  },
  // 变更公告发布列表
  {
    path: 'changeBulletinPublishList',
    meta: {
      path: 'changeBulletinPublishList'
    },
    component: () => import('@/views/bidding/changeBulletin/changeBulletin/changeBulletinPublish/changeBulletinPublish-list')
  },
  /* 变更公告-发布*/
  {
    path: 'publishChangeBulletin',
    meta: {
      path: 'changeBulletinPublishList'
    },
    component: () => import('@/views/bidding/changeBulletin/changeBulletin/changeBulletinPublish/publishChangeBulletin')
  },
  /* 变更公告-发布-预览*/
  {
    path: 'changeBulletinPdfDetail',
    meta: {
      path: 'changeBulletinPublishList'
    },
    component: () => import('@/views/bidding/changeBulletin/changeBulletin/changeBulletinPublish/publishChangeBulletinPdf-detail')
  }
]
/* ------------工作流--------变更公告-----------*/
export const changeBulletinFlow = [
  // 预览变更公告
  {
    path: 'changeBulletinDetail',
    component: () => import('@/views/bidding/changeBulletin/changeBulletin/tenderChangeBulletin/makeChangeBulletinPdf-detail')
  },
  /* 变更公告编辑 */
  {
    path: 'changeBulletinUpdate',
    component: () => import('@/views/bidding/changeBulletin/changeBulletin/tenderChangeBulletin/changeBulletin-add')
  },
  /* 变更公告富文本编辑器编辑 */
  {
    path: 'makeChangeBulletinAdd',
    component: () => import('@/views/bidding/changeBulletin/changeBulletin/tenderChangeBulletin/makeChangeBulletin-add')
  },
  /* 提交变更公告 */
  {
    path: 'submitChangeBulletin',
    component: () => import('@/views/bidding/changeBulletin/changeBulletin/tenderChangeBulletin/submitChangeBulletin')
  },
  /* 变更公告-使用工具制作*/
  {
    path: 'toolMakeChangeBulletin',
    component: () => import('@/views/bidding/changeBulletin/changeBulletin/tenderChangeBulletin/toolMakeChangeBulletin')
  }
]

/* ==============================重新招标路由表=========================*/
export const rebiddingRecord = [{
  path: 'rebiddingRecord',
  component: () => import('@/views/bidding/changeBulletin/rebiddingRecord/rebiddingRecordContent/rebiddingRecordContent'),
  children: [
    /* 重新招标列表 */
    {
      path: 'rebiddingRecordList',
      component: () => import('@/views/bidding/changeBulletin/rebiddingRecord/tenderRebidding/rebiddingRecord-list')
    },
    /* 重新招标新增 */
    {
      path: 'rebiddingRecordAdd',
      component: () => import('@/views/bidding/changeBulletin/rebiddingRecord/tenderRebidding/rebiddingRecord-add')
    },
    /* 重新招标详情 */
    {
      path: 'rebiddingRecordDetail',
      meta: {
        isShowBackBtn: true
      }, // 详情页是否显示返回按钮
      component: () => import('@/views/bidding/changeBulletin/rebiddingRecord/tenderRebidding/rebiddingRecord-detail')
    }
  ]
}]
/* ==============================终止招标路由表=========================*/
export const stopbiddingRecord = [{
  path: 'stopbiddingRecord',
  component: () => import('@/views/bidding/changeBulletin/stopbiddingRecord/stopbiddingContent/stopbiddingRecordContent'),
  children: [
    /* 终止招标列表 */
    {
      path: 'stopbiddingRecordList',
      component: () => import('@/views/bidding/changeBulletin/stopbiddingRecord/tenderStopbidding/stopbiddingRecord-list')
    },
    /* 终止招标新增 */
    {
      path: 'stopbiddingRecordAdd',
      component: () => import('@/views/bidding/changeBulletin/stopbiddingRecord/tenderStopbidding/stopbiddingRecord-add')
    },
    /* 终止招标编辑 */
    {
      path: 'makeStopbiddingRecordAdd',
      component: () => import('@/views/bidding/changeBulletin/stopbiddingRecord/tenderStopbidding/makeStopbiddingRecord-add')
    },
    /* 终止招标预览 */
    {
      path: 'makeStopbiddingRecordPdfDetail',
      component: () => import('@/views/bidding/changeBulletin/stopbiddingRecord/tenderStopbidding/makeStopbiddingRecordPdf-detail')
    },
    /* 提交终止招标 */
    {
      path: 'submitStopbiddingRecord',
      component: () => import('@/views/bidding/changeBulletin/stopbiddingRecord/tenderStopbidding/submitStopbiddingRecord')
    }
  ]
}]
/** ===============终止公告列表=============== * */
export const stopbiddingRecordList = [{
  // 终止公告发布列表
  path: 'stopbiddingPublish-list',
  component: () => import('@/views/bidding/changeBulletin/stopbiddingRecord/stopbiddingPublish/stopbiddingPublish-list.vue')
},
// 终止公告发布
{
  path: 'stopbiddingPublish-add',
  name: 'stopbiddingPublish-add',
  meta: {
    path: 'stopbiddingPublish-list'
  },
  component: () => import('@/views/bidding/changeBulletin/stopbiddingRecord/stopbiddingPublish/stopbiddingPublish-add.vue')
},
// 终止公告查看
{
  path: 'stopbiddingPublish-detail',
  name: 'stopbiddingPublish-detail',
  meta: {
    path: 'stopbiddingPublish-list'
  },
  component: () => import('@/views/bidding/changeBulletin/stopbiddingRecord/stopbiddingPublish/stopbiddingPublish-detail.vue')
}
]
/* ==============================招标失败路由表=========================*/
export const biddingFailure = [{
  path: 'biddingFailure',
  component: () => import('@/views/bidding/changeBulletin/biddingFailure/biddingFailureContent'),
  children: [
    /* 招标失败列表 */
    {
      path: 'biddingFailureList',
      component: () => import('@/views/bidding/changeBulletin/biddingFailure/biddingFailure-list')
    },
    /* 招标失败编辑 */
    {
      path: 'biddingFailureAdd',
      component: () => import('@/views/bidding/changeBulletin/biddingFailure/biddingFailure-add')
    }
  ]
}]

/* ==============================变更采购方式路由表=========================*/
export const changePurchasingMethod = [{
  path: 'changePurchase',
  component: () => import('@/views/bidding/changeBulletin/changePurchase/tenderChangePurchase/changePurchaseContent'),
  children: [
    /* 变更采购方式列表 */
    {
      path: 'changePurchase-list',
      component: () => import('@/views/bidding/changeBulletin/changePurchase/tenderChangePurchase/changePurchase-list')
    },
    /* 变更采购方式编辑 */
    {
      path: 'changePurchase-add',
      component: () => import('@/views/bidding/changeBulletin/changePurchase/tenderChangePurchase/changePurchase-add')
    },
    /* 变更采购方式查看 */
    {
      path: 'changePurchase-detail',
      component: () => import('@/views/bidding/changeBulletin/changePurchase/tenderChangePurchase/changePurchase-detail')
    }
  ]
}]
export default [...changeBulletin, ...changeBulletinList, ...rebiddingRecord, ...stopbiddingRecord, ...changeBulletinFlow, ...biddingFailure, ...changePurchasingMethod]
