/**
 * 计量系统平台路由
 */
// 工作台
import workbench from '../pages/workbench/workbench'

/**
 *计量检定平台路由
 */
import MeterAptitudeManage from '../pages/meter-aptitude/manage/MeterAptitudeManage'
import MeterBeyondAptitudeManage from '../pages/meter-aptitude/beyond/MeterBeyondAptitudeManage'
import MeterAptitudeStandard from '../pages/meter-aptitude/standard/MeterAptitudeStandard'
import MeterSubcontractor from '../pages/meter-subcontract/subcontractor/MeterSubcontractor'
import MeterSendEntrustIndex from '../pages/meter-entrust/send-test/MeterSendEntrustIndex'
import MeterGoOutEntrustIndex from '../pages/meter-entrust/go-out-test/MeterGoOutEntrustIndex'
import MeterReviewEntrust from '../pages/meter-review/MeterReviewEntrust'
import MeterSubpackageTaskIndex from '../pages/meter-subcontract/subpackage-task/MeterSubpackageTaskIndex'
import MeterSubpackageInputIndex from '../pages/meter-subcontract/subpackage-input/MeterSubpackageInputIndex'
import MeterOutTaskDistributeIndex from '../pages/meter-out/task-distribute/MeterOutTaskDistributeIndex'
import MeterOutPersonalTaskIndex from '../pages/meter-out/personal-task/MeterOutPersonalTaskIndex'
import MeterCertificateMakeIndex from '../pages/meter-certificate/make/MeterCertificateMakeIndex'
import MeterCertificateCheckIndex from '../pages/meter-certificate/check/MeterCertificateCheckIndex'
import MeterCertificateIssueIndex from '../pages/meter-certificate/issue/MeterCertificateIssueIndex'
import MeterEntrustReceiveIndex from '../pages/meter-send/receive-sample/MeterEntrustReceiveIndex'
import MeterTaskDistributeIndex from '../pages/meter-send/task-distribute/MeterTaskDistributeIndex'
import MeterSampleFlowIndex from '../pages/meter-send/sample-flow/MeterSampleFlowIndex'
import MeterSampleInputIndex from '../pages/meter-send/sample-input/MeterSampleInputIndex'
import MeterQuoteRegisterIndex from '../pages/meter-business/quote-register/MeterQuoteRegisterIndex'
import MeterContractCheckIndex from '../pages/meter-business/quote-check/MeterContractCheckIndex'
import MeterContractCheckSecondIndex from '../pages/meter-business/quote-check-second/MeterContractCheckSecondIndex'
import MeterContractApprovalIndex from '../pages/meter-business/quote-approval/MeterContractApprovalIndex'
import MeterContractAcceptedIndex from '../pages/meter-business/accepted/MeterContractAcceptedIndex'
import MeterContractRegisterIndex from '../pages/meter-contract/contract-register/MeterContractRegisterIndex'
import MeterContractReviewIndex from '../pages/meter-contract/contract-review/MeterContractReviewIndex'
import MeterContractFileIndex from '../pages/meter-contract/contract-file/MeterContractFileIndex'
import MeterSampleProgress from '../pages/meter-progress/progress-sample/MeterSampleProgress'
import MeterOutSampleProgress from '../pages/meter-progress/out-progress-sample/MeterOutSampleProgress'
import MeterClientOnlineEntrustIndex from '../pages/meter-entrust/client-online/MeterClientOnlineEntrustIndex'
import MeterMeterWarehouseInIndex from '../pages/meter-warehouse/warehouse-in/MeterMeterWarehouseInIndex'
import MeterMeterWarehouseOutIndex from '../pages/meter-warehouse/warehouse-out/MeterMeterWarehouseOutIndex'
import MeterCertificatePrintIndex from '../pages/meter-certificate/print/MeterCertificatePrintIndex'
import MeterCannotSubIndex from '../pages/meter-subcontract/cannot-sub/MeterCannotSubIndex'
import MeterPersonalTask from '../pages/meter-statistics/personal-task/MeterPersonalTask'
import MeterAnnualEntrust from '../pages/meter-statistics/annual-entrust/MeterAnnualEntrust'
import MeterCustomerEntrust from '../pages/meter-statistics/customer-entrust/MeterCustomerEntrust'
import MeterCertificateRate from '../pages/meter-statistics/certificate-rate/MeterCertificateRate'
import MeterSampleQuantity from '../pages/meter-statistics/sample-quantity/MeterSampleQuantity'
import Blank from '~/pages/blank'
export default [
  {
    path: 'workbench',
    component: workbench,
    meta: { title: '工作台' }
  },
  {
    path: 'aptitude',
    component: Blank,
    children: [
      {
        path: 'manage',
        component: MeterAptitudeManage,
        meta: { title: '授权资质管理' }
      },
      {
        path: 'beyond_aptitude',
        component: MeterBeyondAptitudeManage,
        meta: { title: '资质外检测器具' }
      },
      {
        path: 'standard',
        component: MeterAptitudeStandard,
        meta: { title: '检测依据管理' }
      }
    ]
  },
  {
    path: 'subcontract',
    component: Blank,
    children: [
      {
        path: 'subcontractor',
        component: MeterSubcontractor,
        meta: { title: '分包方管理' }
      },
      {
        path: 'task_manage',
        component: MeterSubpackageTaskIndex,
        meta: { title: '分包任务' }
      },
      {
        path: 'task_input',
        component: MeterSubpackageInputIndex,
        meta: { title: '分包数据录入' }
      },
      {
        path: 'cannot_sub',
        component: MeterCannotSubIndex,
        meta: { title: '资质外分包' }
      }
    ]
  },
  {
    path: 'entrust',
    component: Blank,
    children: [
      {
        path: 'client_online',
        component: MeterClientOnlineEntrustIndex,
        meta: { title: '客户在线委托单' }
      },
      {
        path: 'send_test',
        component: MeterSendEntrustIndex,
        meta: { title: '送检委托登记' }
      },
      {
        path: 'go_out_test',
        component: MeterGoOutEntrustIndex,
        meta: { title: '出检委托登记' }
      },
      {
        path: 'entrust_review',
        component: MeterReviewEntrust,
        meta: { title: '委托评审' }
      }
    ]
  },
  {
    path: 'test',
    component: Blank,
    children: [
      {
        path: 'out_task_distribute',
        component: MeterOutTaskDistributeIndex,
        meta: { title: '出检任务分配' }
      },
      {
        path: 'personal_test_task',
        component: MeterOutPersonalTaskIndex,
        meta: { title: '个人检测任务' }
      },
      {
        path: 'send_sample_receive',
        component: MeterEntrustReceiveIndex,
        meta: { title: '收样管理' }
      },
      {
        path: 'send_sample_distribute',
        component: MeterTaskDistributeIndex,
        meta: { title: '任务分配' }
      },
      {
        path: 'send_sample_flow',
        component: MeterSampleFlowIndex,
        meta: { title: '样品流转' }
      },
      {
        path: 'send_sample_input',
        component: MeterSampleInputIndex,
        meta: { title: '样品录入' }
      }
    ]
  },
  {
    path: 'certificate',
    component: Blank,
    children: [
      {
        path: 'certificate_make',
        component: MeterCertificateMakeIndex,
        meta: { title: '证书编制' }
      },
      {
        path: 'certificate_check',
        component: MeterCertificateCheckIndex,
        meta: { title: '证书审核' }
      },
      {
        path: 'certificate_issue',
        component: MeterCertificateIssueIndex,
        meta: { title: '证书签发' }
      },
      {
        path: 'certificate_print',
        component: MeterCertificatePrintIndex,
        meta: { title: '证书打印' }
      }
    ]
  },
  {
    path: 'business',
    component: Blank,
    children: [
      {
        path: 'quote_register',
        component: MeterQuoteRegisterIndex,
        meta: { title: '报价登记' }
      },
      {
        path: 'quote_check',
        component: MeterContractCheckIndex,
        meta: { title: '报价单初审' }
      },
      {
        path: 'quote_check_second',
        component: MeterContractCheckSecondIndex,
        meta: { title: '报价单复审' }
      },
      {
        path: 'quote_approval',
        component: MeterContractApprovalIndex,
        meta: { title: '报价单批准' }
      },
      {
        path: 'acceptance',
        component: MeterContractAcceptedIndex,
        meta: { title: '业务受理' }
      }
    ]
  },
  {
    path: 'contract',
    component: Blank,
    children: [
      {
        path: 'contract_register',
        component: MeterContractRegisterIndex,
        meta: { title: '' }
      },
      {
        path: 'contract_review',
        component: MeterContractReviewIndex,
        meta: { title: '' }
      },
      {
        path: 'contract_file',
        component: MeterContractFileIndex,
        meta: { title: '' }
      }
    ]
  },
  {
    path: 'progress',
    component: Blank,
    children: [
      {
        path: 'sample_progress',
        component: MeterSampleProgress,
        meta: { title: '样品进度查询' }
      },
      {
        path: 'out_sample_progress',
        component: MeterOutSampleProgress,
        meta: { title: '出检样品进度' }
      }
    ]
  },
  {
    path: 'warehouse',
    component: Blank,
    children: [
      {
        path: 'sample_in_store',
        component: MeterMeterWarehouseInIndex,
        meta: { title: '样品入库管理' }
      },
      {
        path: 'sample_out_store',
        component: MeterMeterWarehouseOutIndex,
        meta: { title: '样品出库管理' }
      }
    ]
  },
  {
    path: 'statistics',
    component: Blank,
    children: [
      {
        path: 'personal_task',
        component: MeterPersonalTask,
        meta: { title: '个人检测量统计' }
      },
      {
        path: 'annual_entrust',
        component: MeterAnnualEntrust,
        meta: { title: '年度委托量统计' }
      },
      {
        path: 'customer_entrust',
        component: MeterCustomerEntrust,
        meta: { title: '客户委托量统计' }
      },
      {
        path: 'certificate_rate',
        component: MeterCertificateRate,
        meta: { title: '证书及时率统计' }
      },
      {
        path: 'sample_quantity',
        component: MeterSampleQuantity,
        meta: { title: '器具检测量统计' }
      }
    ]
  }
]
