/*
*   ca管理 路由表
* */
import layout from '@/components/layout/layout'
/*
* ===============CA管理===============
* */
export const caManage = [
  {
    path: '/caManage',
    component: layout,
    children: [
      // CA发票管理
      {
        path: 'InvoiceManageList',
        component: () =>
          import('@/views/bidding/caFinance/caManage/invoiceManage-list')
      },
      // CA发票管理单位身份数字证书申请信息
      {
        path: 'certificateInformationDetail',
        component: () =>
          import('@views/bidding/caFinance/caManage/certificateInformation-detail')
      },
      // CA费用统计
      {
        path: 'calculateExpenseList',
        component: () =>
          import('@/views/bidding/caFinance/caManage/calculateExpense-list')
      },
      // 确认CA缴费
      {
        path: 'confirmPaymentList',
        component: () =>
          import('@/views/bidding/caFinance/caManage/confirmPayment-list')
      },
      // CA财务缴费确认审核
      {
        path: 'paymentAuditDetail',
        component: () =>
          import('@/views/bidding/caFinance/caManage/paymentAudit-detail')
      },
      // 发票信息
      {
        path: ':invoice/informationDetail',
        component: () => import('@/views/bidding/caFinance/invoice/information-detail')
      },
      // 录入发票
      {
        path: ':invoice/entryAdd',
        component: () => import('@/views/bidding/caFinance/invoice/entry-add')
      }
    ]
  }
]
/*
* ===============投标服务费管理===============
* */
export const bidServiceFee = [
  {
    path: '/bidServiceFee',
    component: layout,
    children: [
      // 投标服务费财务管理
      {
        path: 'bidServiceFeeManagementList',
        component: () =>
          import('@/views/bidding/caFinance/bidServiceFee/management-list')
      },
      // 投标服务费统计
      {
        path: 'bidServiceFeeStatisticsList',
        component: () =>
          import('@/views/bidding/caFinance/bidServiceFee/statistics-list')
      },
      // 投标服务费详情
      {
        path: ':bidServiceFee/serviceChargeDetail',
        component: () =>
          import('@/views/bidding/caFinance/bidServiceFee/serviceCharge-detail')
      },
      // 发票信息
      {
        path: ':invoice/informationDetail',
        component: () => import('@/views/bidding/caFinance/invoice/information-detail')
      },
      // 录入发票
      {
        path: ':invoice/entryAdd',
        component: () => import('@/views/bidding/caFinance/invoice/entry-add')
      }
    ]
  }
]
/*
* ===============增值服务===============
* */
export const addService = [
  {
    path: '/addService',
    component: layout,
    children: [
      // 增值服务费统计
      {
        path: 'addServiceStatisticsList',
        component: () =>
          import('@/views/bidding/caFinance/addService/statistics-list')
      },
      // 增值服务财务管理
      {
        path: 'addServiceManagementList',
        component: () =>
          import('@/views/bidding/caFinance/addService/management-list')
      },
      // 发票信息
      {
        path: ':invoice/informationDetail',
        component: () => import('@/views/bidding/caFinance/invoice/information-detail')
      },
      // 录入发票
      {
        path: ':invoice/entryAdd',
        component: () => import('@/views/bidding/caFinance/invoice/entry-add')
      }
    ]
  }
]

/*
* ===============培训服务===============
* */
export const trainingServices = [
  {
    path: '/trainingServices',
    component: layout,
    children: [
      // 培训服务费统计
      {
        path: 'trainingServicesStatisticsList',
        component: () =>
          import('@/views/bidding/caFinance/trainingServices/statistics-list')
      },
      // 培训服务财务管理
      {
        path: 'trainingServicesManagementList',
        component: () =>
          import('@/views/bidding/caFinance/trainingServices/management-list')
      },
      // 发票信息
      {
        path: ':invoice/informationDetail',
        component: () => import('@/views/bidding/caFinance/invoice/information-detail')
      },
      // 录入发票
      {
        path: ':invoice/entryAdd',
        component: () => import('@/views/bidding/caFinance/invoice/entry-add')
      }
    ]
  }
]

export default [
  ...caManage,
  ...bidServiceFee,
  ...addService,
  ...trainingServices
]
