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

/**
 *计量检定平台路由
 */
import MeterAptitudeManage from '../pages/meter-aptitude/manage/MeterAptitudeManage'
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 Blank from '~/pages/blank'
export default [
  {
    path: 'workbench',
    component: workbench,
    meta: { title: '工作台' }
  },
  {
    path: 'aptitude',
    component: Blank,
    children: [
      {
        path: 'manage',
        component: MeterAptitudeManage,
        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: 'entrust',
    component: Blank,
    children: [
      {
        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: '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: '' }
      }
    ]
  }
]
