
/*
 * 大唐&京能-采购员-订单管理
 * */
export const procurementOrderManagement = [
  /** ---------------------------------大唐订单管理------------------------------------- */
// 订单管理列表
  {
    path: 'procurementOrderList',
    name: 'procurementOrderList',
    meta: { path: 'procurementOrderList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderContent/procurementOrderContent.vue')
  },
  // 订单管理-确认接单或者作废或者查看详情
  {
    path: 'procurementOrderNotarize',
    name: 'procurementOrderNotarize',
    meta: { path: 'procurementOrderList' },
    component: () =>
      import(
        '@/views/procurement/procurementOrder/procurementOrderAdd/procurementOrderNotarize-add.vue'
      )
  },
  // 订单管理-提交订单
  {
    path: 'procurementOrderSubmit',
    name: 'procurementOrderSubmit',
    meta: { path: 'procurementOrderList' },
    component: () =>
      import('@/views/procurement/procurementOrder/procurementOrderAdd/procurementOrderSubmit-add.vue')
  },
  // 代理-订单管理列表
  {
    path: 'procurementOrderAgentList',
    name: 'procurementOrderAgentList',
    meta: { path: 'procurementOrderAgentList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderList/procurementOrderAgent-list.vue')
  },
  // 供应商-订单确认列表
  {
    path: 'procurementOrderConfirmList',
    name: 'procurementOrderConfirmList',
    meta: { path: 'procurementOrderConfirmList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderList/procurementOrderConfirm-list.vue')
  },
  /** ---------------------------------京能订单管理-发货订单管理------------------------------------- */
  // 发货订单管理-订单列表
  {
    path: 'procurementOrderDeliverList',
    name: 'ProcurementOrderDeliverList',
    meta: { path: 'procurementOrderDeliverList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderDeliver/procurementOrderDeliver-list.vue') // 列表页
  },

  // 发货订单管理-订单详情页
  {
    path: 'procurementOrderDeliverHandleDetail',
    name: 'ProcurementOrderDeliverHandleDetail',
    meta: { path: 'procurementOrderDeliverList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderDeliver/procurementOrderDeliverHandle-detail.vue')
  },
  // 发货订单管理-处理订单
  {
    path: 'procurementOrderDeliverHandleAdd',
    name: 'ProcurementOrderDeliverHandleAdd',
    meta: { path: 'procurementOrderDeliverList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderDeliver/procurementOrderDeliverHandle-add.vue')
  },

  // 发货订单管理-新增发货
  {
    path: 'procurementOrderDeliverAdd',
    name: 'ProcurementOrderDeliverAdd',
    meta: { path: 'procurementOrderDeliverList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderDeliver/procurementOrderDeliver-add.vue')
  },
  // 发货订单管理-发货详情
  {
    path: 'procurementOrderDeliverDetail',
    name: 'ProcurementOrderDeliverDetail',
    meta: { path: 'procurementOrderDeliverList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderDeliver/procurementOrderDeliver-detail.vue')
  },

  // 发货订单管理-收款申请
  {
    path: 'procurementOrderCollectionAdd',
    name: 'ProcurementOrderCollectionAdd',
    meta: { path: 'procurementOrderDeliverList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderDeliver/procurementOrderCollection-add.vue')
  },

  // 发货订单管理-收款申请详情
  {
    path: 'procurementOrderCollectionDetail',
    name: 'ProcurementOrderCollectionDetail',
    meta: { path: 'procurementOrderDeliverList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderDeliver/procurementOrderCollection-detail.vue')
  },

  /** ---------------------------------京能订单管理-收货订单管理------------------------------------- */
  // 收货订单管理-订单列表
  {
    path: 'procurementOrderReceiveList',
    name: 'ProcurementOrderReceiveList',
    meta: { path: 'procurementOrderReceiveList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderReceive/procurementOrderReceive-list.vue') // 列表页
  },

  // 收货订单管理-处理订单详情页
  {
    path: 'procurementOrderReceiveHandleDetail',
    name: 'ProcurementOrderReceiveHandleDetail',
    meta: { path: 'procurementOrderReceiveList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderReceive/procurementOrderReceiveHandle-detail.vue')
  },

  // 收货订单管理-处理订单
  {
    path: 'procurementOrderReceiveHandleAdd',
    name: 'ProcurementOrderReceiveHandleAdd',
    meta: { path: 'procurementOrderReceiveList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderReceive/procurementOrderReceiveHandle-add.vue')
  },
  // 收货订单管理-确认收货
  {
    path: 'procurementOrderReceiveAdd',
    name: 'procurementOrderReceiveAdd',
    meta: { path: 'procurementOrderReceiveList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderReceive/procurementOrderReceive-add.vue')
  },
  // 收货订单管理-确认收货
  {
    path: 'procurementOrderReceiveDetail',
    name: 'ProcurementOrderReceiveDetail',
    meta: { path: 'procurementOrderReceiveList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderReceive/procurementOrderReceive-detail.vue')
  },
  // 收货订单管理-收款申请确认
  {
    path: 'procurementOrderCollectionConfirm',
    name: 'ProcurementOrderCollectionConfirm',
    meta: { path: 'procurementOrderReceiveList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderReceive/procurementOrderCollection-add.vue')
  },

  // 收货订单管理-收款申请确认详情
  {
    path: 'procurementOrderCollectionConfirmDetail',
    name: 'ProcurementOrderCollectionConfirmDetail',
    meta: { path: 'procurementOrderReceiveList' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderReceive/procurementOrderCollection-detail.vue')
  },

  // 收货订单管理-处理订单确认 type 00 订单确认 type 01 订单行项目退回
  {
    path: 'procurementOrderConfirmDetail',
    name: 'ProcurementOrderConfirmDetail',
    meta: { path: 'procurementOrderReceiveList', typeCode: '00' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderReceive/procurementOrderConfirm-detail.vue')
  }
]
// 订单管理工作流
export const purOrderFlow = [
  {
    path: 'purOrderArrirmFlowDetail', // 订单确认
    component: () =>
      import(
        '@/views/procurement/procurementOrder/purOrderFlow/affirmOrderFlow-detail.vue'
      )
  },
  // 中选审核-查看详情
  {
    path: 'hooseAuditFlowDetail',
    component: () => import('@/views/procurement/procurementResult/procurementResultFlow/hooseAuditFlow-detail.vue')
  },
  // 中选审核-驳回
  {
    path: 'goodsAllotAddFlow',
    component: () => import('@/views/procurement/procurementResult/procurementResultFlow/hooseAuditFlow-add.vue')
  },
  // 订单计划退回处理
  {
    path: 'purOrderPlanReturnDetail',
    component: () =>
      import(
        '@/views/procurement/procurementOrder/procurementOrderReceive/procurementOrderPlanReturn-detail.vue'
      )
  },
  // 订单管理-订单项目退回驳回重编辑 type 00 订单确认 type 01 订单行项目退回
  {
    path: 'procurementOrderLineItemReturnReEdit',
    meta: { typeCode: '01' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderReceive/procurementOrderConfirm-detail.vue')
  },
  // 收货订单管理-处理订单确认 type 00 订单确认 type 01 订单行项目退回
  {
    path: 'procurementOrderConfirmDetail',
    meta: { path: 'procurementOrderReceiveList', typeCode: '00' },
    component: () => import('@/views/procurement/procurementOrder/procurementOrderReceive/procurementOrderConfirm-detail.vue')
  }
]
export default [
  ...procurementOrderManagement, // 订单管理
  ...purOrderFlow // 订单管理工作流
]
