/*
 *   合同管理/协议采购-路由表
 * */
import layout from '@/components/layout/layout'
export default [
  {
    path: '/contractManagement',
    component: layout,
    children: [
      {
        path: 'purchaseAgreement-list',
        name: 'PurchaseAgreementList',
        meta: {
          path: 'purchaseAgreement-list'
        },
        component: () => import('@/views/contractManagement/purchaseAgreement/purchaseAgreement-list')
      },
      // 执行协议采购页
      {
        path: 'purchaseAgreement',
        name: 'PurchaseAgreement',
        meta: { path: 'purchaseAgreement-list' },
        component: () => import('@/views/contractManagement/purchaseAgreement/purchaseAgreement')
      },
      // 工具制作协议采购
      {
        path: 'purchaseAgreementToolMake',
        name: 'PurchaseAgreementToolMake',
        meta: {
          path: 'purchaseAgreement-list'
        },
        component: () => import('@/views/contractManagement/purchaseAgreement/toolMake')
      },
      // 协议采购详情页
      {
        path: 'purchaseAgreementDetail',
        name: 'PurchaseAgreementDetail',
        meta: {
          path: 'purchaseAgreement-list'
        },
        component: () => import('@/views/contractManagement/purchaseAgreement/purchaseAgreementInfo/purchaseAgreement-detail')
      },
      // 附件详情页
      {
        path: 'purchaseAgreementPdfDetail',
        name: 'PurchaseAgreementPdfDetail',
        meta: {
          path: 'purchaseAgreement-list'
        },
        component: () => import('@/views/contractManagement/purchaseAgreement/purchaseAgreementInfo/purchaseAgreementPdf-detail')
      }
    ]
  },
  /* 领导监察 */
  {
    path: '/leaderContractManagement',
    component: layout,
    children: [
      {
        path: 'leaderPurchaseAgreement-list',
        name: 'LeaderPurchaseAgreementList',
        meta: {
          path: 'leaderPurchaseAgreement-list'
        },
        component: () => import('@/views/contractManagement/purchaseAgreement/purchaseAgreement-list')
      },
      // 协议采购详情页
      {
        path: 'leaderPurchaseAgreementDetail',
        name: 'LeaderPurchaseAgreementDetail',
        meta: {
          path: 'leaderPurchaseAgreement-list'
        },
        component: () => import('@/views/contractManagement/purchaseAgreement/purchaseAgreementInfo/purchaseAgreement-detail')
      },
      // 附件详情页
      {
        path: 'leaderPurchaseAgreementPdfDetail',
        name: 'LeaderPurchaseAgreementPdfDetail',
        meta: {
          path: 'leaderPurchaseAgreement-list'
        },
        component: () => import('@/views/contractManagement/purchaseAgreement/purchaseAgreementInfo/purchaseAgreementPdf-detail')
      }
    ]
  }
]
