/*
 * 采购计划-委托合同--路由表
 * */
import layout from '@/components/layout/layout'

// 委托合同
export const consignContract = [
  {
    path: '/consignContract',
    component: layout,
    children: [
      // 委托合同-列表
      {
        path: 'consignContractList',
        component: () => import('@/views/purchasePlan/consignContract/consignContractManage/consignContractList/consignContract-list')
      },
      // 委托合同-关联招标项目-列表
      {
        path: 'consignContractCorrelationList',
        name: 'ConsignContractCorrelationList',
        meta: { path: 'consignContractList' },
        component: () => import('@/views/purchasePlan/consignContract/consignContractManage/consignContractCorrelation/consignContractCorrelation-list')
      },
      // 委托合同-新增
      {
        path: 'consignContractAdd',
        name: 'ConsignContractAdd',
        meta: { path: 'consignContractList' },
        component: () => import('@/views/purchasePlan/consignContract/consignContractManage/consignContract/consignContract-add')
      },
      // 委托合同-查看
      {
        path: 'consignContractDetail',
        name: 'ConsignContractDetail',
        meta: { path: 'consignContractList' },
        component: () => import('@/views/purchasePlan/consignContract/consignContractManage/consignContract/consignContract-detail')
      },
      /* ========================委托代理合同审核======================*/
      // 委托代理合同审核-列表
      {
        path: 'consignContractAuditList',
        component: () => import('@/views/purchasePlan/consignContract/consignContractAudit/consignContractAudit-list')
      },
      // 委托代理合同审核-详情
      {
        path: 'consignContractAuditDetail',
        name: 'ConsignContractAuditDetail',
        meta: { path: 'consignContractAuditList' },
        component: () => import('@/views/purchasePlan/consignContract/consignContractAudit/consignContractAudit-detail')
      },
      /* ========================委托代理合同台账======================*/
      // 委托代理合同台账-列表
      {
        path: 'consignContractLedgerList',
        component: () => import('@/views/purchasePlan/consignContract/consignContractLedger/consignContractLedger-list')
      },
      // 委托代理合同台账-查看
      {
        path: 'consignContractLedgerDetail',
        name: 'ConsignContractLedgerDetail',
        meta: { path: 'consignContractLedgerList' },
        component: () => import('@/views/purchasePlan/consignContract/consignContractManage/consignContract/consignContract-detail')
      }
    ]
  }
]
/* 委托合同工作流路由表*/
export const consignContractFlow = [
  // 委托合同-查看
  {
    path: 'consignContractDetail',
    meta: {
      editStatus: '01' // 01 工作流进入页面
    },
    component: () => import('@/views/purchasePlan/consignContract/consignContractManage/consignContract/consignContract-detail')
  },
  // 委托合同-新增
  {
    path: 'consignContractAdd',
    meta: {
      editStatus: '01' // 01 工作流驳回编辑
    },
    component: () => import('@/views/purchasePlan/consignContract/consignContractManage/consignContract/consignContract-add')
  }
]
export default [...consignContract, ...consignContractFlow]
