/*
 * 采购路由表
 * */
// ------------------------------------采购立项 start-------------------------------------------------
export const procurementProject = [
  {
  // 创建采购单第一步项目信息
    path: 'procurementBaseContentAdd',
    meta: { path: 'procurementBaseContentAdd', pathType: '02' },
    component: () =>
      import('@/views/procurement/procurementProject/procurementProjectContent/procurementBaseContent-add.vue')
  },
  // 创建采购单第二步-项目规则
  {
    path: 'procurementRuleContentAdd',
    meta: { path: 'procurementRuleContentAdd' },
    component: () =>
      import('@/views/procurement/procurementProject/procurementProjectContent/procurementRuleContent-add.vue')

  }]
// ------------------------------------采购立项 End-------------------------------------------------

// 采购单预览页面
//
export const procurementView = [
  // 驱动 预览tab页
  {
    path: 'procurementContentTabs',
    name: 'procurementContentTabs',
    meta: { path: 'procurementContentTabs', procurementRole: '11' }, // procurementRole角色 11 项目经理 12供应商
    component: () =>
      import('@/views/procurement/procurementProject/procurementProjectContent/procurementContentTabs.vue'),
    children: [
      // 采购单信息
      {
        path: 'procurementProjectContentDetail',
        name: 'procurementProjectContentDetail',
        meta: { path: 'procurementView', procurementRole: '11' }, // procurementRole角色 11 项目经理 12供应商

        component: () =>
          import('@/views/procurement/procurementProject/procurementProjectContent/procurementProjectContent-add.vue')
      },
      // 采购公告
      {
        path: 'procurementParticpatingBulletin',
        meta: { path: 'procurementParticpatingBulletin', procurementRole: '11' },
        component: () =>
          import('@/views/procurement/procurementProject/procurementProjectLetter/procurementProjectLetter.vue')
      },
      // 采购单变更
      {
        path: 'procurementAlterRecord',
        meta: { path: 'procurementAlterRecord', procurementRole: '11' },
        component: () =>
          import('@/views/procurement/procurementProject/procurementProjectAlter/procurementProjectAlter-detail.vue')
      }
    ]
  },
  // 采购单变更Pdf查看
  {
    path: 'procurementAlterRecordPdf',
    meta: { path: 'procurementAlterRecordPdf', procurementRole: '11' },
    component: () =>
      import('@/views/procurement/procurementProject/procurementProjectAlter/procurementProjectAlterPdf-detail.vue')
  }
]
// 招标采购查看采购单信息页面
export const procurementBiddings = [
  // 驱动 预览tab页
  {
    path: 'procBidContentDetail',
    name: 'procBidContentDetail',
    meta: { path: 'biDManageList' },

    component: () =>
      import('@/views/procurement/procurementProject/procurementProjectContent/procBidsProjectContent-detail.vue')
  }
]
export default [
  ...procurementProject, // 采购立项
  ...procurementView, // 采购驱动预览
  ...procurementBiddings // 招标采购 采购单预览
]
