/*
 * 项目经理-采购计划 - 集采计划打包
 * */
export const purPlanBale = [
  // 采购计划查寻--集采(委托采购)
  {
    path: 'procurementPlanBaleList',
    meta: {
      path: 'procurementPlanBaleList',
      purchaseOrganization: '01' //  00-自行采购;01-委托采购
    },
    component: () => import('@/views/procurement/procurementPlan/purPlanBale/purPlanBale-list.vue')
  },
  // 采购寻源--自采
  {
    path: 'procurementSourceList',
    meta: {
      path: 'procurementSourceList',
      purchaseOrganization: '00' //  00-自行采购;01-委托采购
    },
    component: () => import('@/views/procurement/procurementPlan/purPlanBale/purPlanBale-list.vue')
  }
]
// 计划打包工作流
export const purPlanBaleFlow = [
  // 计划打包详情查看
  {
    path: 'purPlanPackBaleFlowDetail',
    meta: {
      isFrame: '00' // 判断进入来源 01框架 00集采打包
    },
    component: () =>
      import(
        '@/views/procurement/procurementPlan/purPlanBale/purPlanBaleWork/purPlanBaleFlow-detail.vue'
      )
  },
  // 计划打包编辑
  {
    path: 'procurementPalnBaleAdd',
    component: () =>
      import('@/views/procurement/procurementPlan/purPlanBale/bale/bale-add.vue')
  },
  // 采购方式变更，退回计划，的工作流处理页
  {
    path: 'purPlanPackFlowDetail',
    component: () =>
      import(
        '@/views/procurement/procurementPlan/purPlanBale/purPlanBaleWork/purPlanFlow-detail.vue'
      )
  },
  // 集采转自采工作流处理页
  {
    path: 'purPlanPackTurnFlowDetail',
    component: () =>
      import(
        '@/views/procurement/procurementPlan/purPlanBale/purPlanBaleWork/purPlanTurnFlow-detail.vue'
      )
  },
  // 集采转自采编辑页面
  {
    path: 'procurementPalnTurnAdd',
    component: () =>
      import('@/views/procurement/procurementPlan/purPlanBale/purPlanTurn/turn-add.vue')
  },
  // 退回计划编辑页面
  {
    path: 'procurementPlanBackPlanAdd',
    meta: {
      bizTypeCode: '01' // 01-退回计划
    },
    component: () =>
      import('@/views/procurement/procurementPlan/purPlanBale/backPlan/backPlan-add.vue')
  },
  // 退回上报单位编辑页面
  {
    path: 'procurementPlanReturnReportingUnitAdd',
    meta: {
      bizTypeCode: '01' // 01-退回计划
    },
    component: () =>
      import('@/views/procurement/procurementPlan/purPlanBale/backPlan/backPlan-add.vue')
  },
  // 退回计划/退回上报单位处理页
  {
    path: 'purPlanBackPlanFlowDetail',
    component: () =>
      import(
        '@/views/procurement/procurementPlan/purPlanBale/purPlanBaleWork/purPlanBackFlow-detail.vue'
      )
  },
  // 采购方式变更编辑页面
  {
    path: 'procurementPalnModifyAdd',
    component: () =>
      import('@/views/procurement/procurementPlan/purPlanBale/purPlanModify/modify-add.vue')
  }
]
export default [
  ...purPlanBale, // 集采计划打包
  ...purPlanBaleFlow // 计划打包工作流
]
