/**
 * 计量系统平台路由
 */
// 工作台
import workbench from '../pages/workbench/workbench'
import StandardManage from '../pages/meter-aptitude/standard-manage/StandardManage'
import ExperimentItemManage from '../pages/meter-aptitude/item-manage/ExperimentItemManage'
import EntrustIndex from '../pages/meter-entrust/entrust-register/EntrustIndex'
import ReviewEntrust from '../pages/meter-entrust/entrust-review/ReviewEntrust'
import SampleReceiveIndex from '../pages/soil-sample-manage/sample-receive/SampleReceiveIndex'
import SamplePreparationIndex from '../pages/soil-sample-manage/sample-preparation/SamplePreparationIndex'
import AddressManage from '../pages/soil-sample-manage/sample-address/AddressManage'
import KeepAdress from '../pages/soil-sample-manage/keep-address/AddressManage'
import BackupsManage from '../pages/soil-sample-manage/backups-manage/SampleBackupsIndex'
import SampleTakeIndex from '../pages/soil-sample-manage/sample-take/SampleTakeIndex'
import SurplusManage from '../pages/soil-sample-manage/surplus-manage/SampleSurplusIndex'
import DuplicateManage from '../pages/soil-sample-manage/duplicate-manage/SampleduplicateIndex'
import TestTaskIndex from '../pages/soil-test-manage/test-task-manage/TestTaskIndex'
import TestInputIndex from '../pages/soil-test-manage/test-input/TestInputIndex'
import CheckIndex from '../pages/soil-test-manage/test-data-check/CheckIndex'
import AuditIndex from '../pages/soil-test-manage/test-data-audit/AuditIndex'
import ReportMakeIndex from '../pages/soil-report-manage/report-make/ReportMakeIndex'
import failItem from '../pages/soil-statistics/failItem'
import yearDeclara from '../pages/soil-statistics/yearDeclara'
import MeterCustomerEntrust from '../pages/soil-statistics/customer-entrust/MeterCustomerEntrust'
import MeterPersonalTask from '../pages/soil-statistics/personal-task/MeterPersonalTask'
import MeterAnnualEntrust from '../pages/soil-statistics/annual-entrust/MeterAnnualEntrust'
import ReportAuditIndex from '../pages/soil-report-manage/report-audit/ReportAuditIndex'
import ReportIssueIndex from '../pages/soil-report-manage/report-issue/ReportIssueIndex'
import SampleDisposeIndex from '../pages/soil-sample-manage/sample-dispose/SampleDisposeIndex'
import SurplusDisposeIndex from '../pages/soil-sample-manage/sample-surplus-dispose/SurplusDisposeIndex'
import ClientLocationSearch from '../pages/soil-statistics/client_location/ClientLocationIndex'
import FoodReportManageIndex from '../pages/soil-report-manage/report-manage/FoodReportManageIndex'
import DataConsult from '../pages/soil-test-manage/test-data-consult/DataConsult'
import Blank from '~/pages/blank'
export default [
  {
    path: 'workbench',
    component: workbench,
    meta: { title: '首页' }
  },
  {
    path: 'entrust',
    component: Blank,
    children: [
      {
        path: 'entrust_register',
        component: EntrustIndex,
        meta: { title: '试验委托登记' }
      },
      {
        path: 'review',
        component: ReviewEntrust,
        meta: { title: '试验委托评审' }
      }
    ]
  },
  {
    path: 'sample',
    component: Blank,
    children: [
      {
        path: 'receive',
        component: SampleReceiveIndex,
        meta: { title: '收样室收样' }
      },
      {
        path: 'prepare',
        component: SamplePreparationIndex,
        meta: { title: '开土制备' }
      },
      {
        path: 'take',
        component: SampleTakeIndex,
        meta: { title: '试验室领样' }
      },
      {
        path: 'backups',
        component: BackupsManage,
        meta: { title: '备样管理' }
      },
      {
        path: 'keep',
        component: KeepAdress,
        meta: { title: '留存位置查询' }
      },
      {
        path: 'surplus',
        component: SurplusManage,
        meta: { title: '余样管理' }
      },
      {
        path: 'copy',
        component: DuplicateManage,
        meta: { title: '副样管理' }
      },
      {
        path: 'dispose',
        component: SampleDisposeIndex,
        meta: { title: '样品处理' }
      },
      {
        path: 'surplus_dispose',
        component: SurplusDisposeIndex,
        meta: { title: '余样处理审批' }
      },
      {
        path: 'receive_location',
        component: AddressManage,
        meta: { title: '收样位置管理' }
      }
    ]
  },
  {
    path: 'test',
    component: Blank,
    children: [
      {
        path: 'allot_task',
        component: TestTaskIndex,
        meta: { title: '试验任务分配' }
      },
      {
        path: 'do_test',
        component: TestInputIndex,
        meta: { title: '试样检测' }
      },
      {
        path: 'check',
        component: CheckIndex,
        meta: { title: '数据复核' }
      },
      {
        path: 'audit',
        component: AuditIndex,
        meta: { title: '数据审核' }
      },
      {
        path: 'consult',
        component: DataConsult,
        meta: { title: '数据查阅' }
      }
    ]
  },
  {
    path: 'report',
    component: Blank,
    children: [
      {
        path: 'make_report',
        component: ReportMakeIndex,
        meta: { title: '报告编制' }
      },
      {
        path: 'report_audit',
        component: ReportAuditIndex,
        meta: { title: '报告审核' }
      },
      {
        path: 'report_issue',
        component: ReportIssueIndex,
        meta: { title: '报告签发' }
      },
      {
        path: 'report_manage',
        component: FoodReportManageIndex,
        meta: { title: '报告档案' }
      }
    ]
  },
  {
    path: 'aptitude',
    component: Blank,
    children: [
      {
        path: 'test_basis',
        component: StandardManage,
        meta: { title: '检测依据管理' }
      },
      {
        path: 'experiment',
        component: ExperimentItemManage,
        meta: { title: '试验项目' }
      }
    ]
  },
  {
    path: 'statistics',
    component: Blank,
    children: [
      {
        path: 'fail_item_statistics',
        component: failItem,
        meta: { title: '不合格项目查询' }
      },
      {
        path: 'year_declara_count',
        component: yearDeclara,
        meta: { title: '年度报检量统计' }
      },
      {
        path: 'customer_entrust',
        component: MeterCustomerEntrust,
        meta: { title: '客户委托量统计' }
      },
      {
        path: 'annual_entrust',
        component: MeterAnnualEntrust,
        meta: { title: '年度委托量统计' }
      },
      {
        path: 'personal_task',
        component: MeterPersonalTask,
        meta: { title: '个人检测任务查询' }
      },
      {
        path: 'client_location',
        component: ClientLocationSearch,
        meta: { title: '委托地区查询' }
      }
    ]
  }
]
