/**
 * 计量系统平台路由
 */
// 工作台
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 ReceiveSampleIndex from '../pages/soil-alone-sample/EntrustIndex'
import InstockIndex from '../pages/soil-alone-sample-instock/EntrustIndex'
import OutstockIndex from '../pages/soil-alone-sample-manage/soil-alone-sample-outstock/EntrustIndex'
import StorehousePlace from '../pages/soil-alone-sample-manage/storehouse-place-manage/AddressManage'
import StorehouseSample from '../pages/soil-alone-sample-manage/storehouse-sample-manage/storehouseSampleIndex'
import ReviewEntrust from '../pages/meter-entrust/entrust-review/ReviewEntrust'
import SampleReceiveIndex from '../pages/soil-sample-manage/sample-receive/SampleReceiveIndex'
import AloneKeepIndex from '../pages/soil-sample-manage/sample-alone-keep/SampleReceiveIndex'
import SamplePreparationIndex from '../pages/soil-sample-manage/sample-preparation/SamplePreparationIndex'
import SamplePreparationCheckIndex from '../pages/soil-sample-manage/sample-preparation-check/SamplePreparationIndex'
import AddressManage from '../pages/soil-sample-manage/sample-address/AddressManage'
import KeepAdress from '../pages/soil-sample-manage/keep-address/AddressManage'
import BoxManage from '../pages/soil-sample-manage/sample-box/BoxManage'
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 SampleProgressDetail from '../pages/soil-statistics/sample-progress/SampleProgressDetail'
import ExperimrntProgressDetail from '../pages/soil-statistics/experiment-progress/ExperimrntProgressDetail'
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 SoilRecordTemplate from '../pages/soil-record-template-manage/SoilRecordTemplate'
import SoilItemReportTemplate from '../pages/soil-report-manage/soil-item-report-template/SoilItemReportTemplate'
import SoilSummarySheet from '../pages/soil-report-manage/soil-summary-sheet/SoilSummarySheetTemplate'

import SoilExpReportMakeIndex from '../pages/soil-exp-report/report-make/SoilExpReportMakeIndex'
import SoilExpReportCheckIndex from '../pages/soil-exp-report/report-check/SoilExpReportCheckIndex'
import SoilExpReportIssueIndex from '../pages/soil-exp-report/report-issue/SoilExpReportIssueIndex'
import SoilExpReportEndIndex from '../pages/soil-exp-report/report-end/SoilExpReportEndIndex'
import OpenSoilTemplate from '../pages/soil-sample-manage/open-soil-template-manage/OpenSoilTemplate'
import Blank from '~/pages/blank'
export default [
  {
    path: 'workbench',
    component: workbench,
    meta: { title: '首页' }
  },
  {
    path: 'alone_sample',
    component: Blank,
    meta: { title: '样品管理' },
    children: [
      {
        path: 'receive_sample',
        component: ReceiveSampleIndex,
        meta: { title: '收样管理' }
      },
      {
        path: 'instock',
        component: InstockIndex,
        meta: { title: '入库管理' }
      },
      {
        path: 'outstock',
        component: OutstockIndex,
        meta: { title: '出库管理' }
      },
      {
        path: 'storehouse_place',
        component: StorehousePlace,
        meta: { title: '库房位置管理' }
      },
      {
        path: 'storehouse_sample',
        component: StorehouseSample,
        meta: { title: '库房样品管理' }
      }
    ]
  },
  {
    path: 'entrust',
    component: Blank,
    meta: { title: '委托单管理' },
    children: [
      {
        path: 'entrust_register',
        component: EntrustIndex,
        meta: { title: '试验委托登记' }
      },
      {
        path: 'review',
        component: ReviewEntrust,
        meta: { title: '试验委托评审' }
      }
    ]
  },
  {
    path: 'sample',
    component: Blank,
    meta: { title: '试样管理' },
    children: [
      {
        path: 'receive',
        component: SampleReceiveIndex,
        meta: { title: '样品分波' }
      },
      {
        path: 'alone_keep',
        component: AloneKeepIndex,
        meta: { title: '独立留存' }
      },
      {
        path: 'prepare',
        component: SamplePreparationIndex,
        meta: { title: '开土制备' }
      },
      {
        path: 'prepare_check',
        component: SamplePreparationCheckIndex,
        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: 'box',
        component: BoxManage,
        meta: { title: '盒号管理' }
      },
      {
        path: 'open_soil_template',
        component: OpenSoilTemplate,
        meta: { title: '开土制备记录模板' }
      }
    ]
  },
  {
    path: 'test',
    component: Blank,
    meta: { title: '检测管理' },
    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,
    meta: { title: '报告管理' },
    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: 'item_report',
        component: SoilItemReportTemplate,
        meta: { title: '试验项目报告模板' }
      },
      {
        path: 'summary_sheet',
        component: SoilSummarySheet,
        meta: { title: '汇总表报告模板' }
      }
    ]
  },

  {
    path: 'soil_exp_report',
    component: Blank,
    meta: { title: '试验项目报告管理' },
    children: [
      {
        path: 'make',
        component: SoilExpReportMakeIndex,
        meta: { title: '项目报告编制' }
      },
      {
        path: 'check',
        component: SoilExpReportCheckIndex,
        meta: { title: '项目报告审核' }
      },
      {
        path: 'issue',
        component: SoilExpReportIssueIndex,
        meta: { title: '项目报告签发' }
      },
      {
        path: 'end',
        component: SoilExpReportEndIndex,
        meta: { title: '项目报告汇总' }
      }
    ]
  },

  {
    path: 'aptitude',
    component: Blank,
    meta: { title: '资质管理' },
    children: [
      {
        path: 'test_basis',
        component: StandardManage,
        meta: { title: '检测依据管理' }
      },
      {
        path: 'experiment',
        component: ExperimentItemManage,
        meta: { title: '试验项目' }
      },
      {
        path: 'record_template',
        component: SoilRecordTemplate,
        meta: { title: '原始记录模板管理' }
      }
    ]
  },
  {
    path: 'statistics',
    component: Blank,
    meta: { title: '统计查询' },
    children: [
      {
        path: 'fail_item_statistics',
        component: failItem,
        meta: { title: '不合格项目查询' }
      },
      {
        path: 'sample_progress',
        component: SampleProgressDetail,
        meta: { title: '样品进度查询' }
      },
      {
        path: 'experiment_progress',
        component: ExperimrntProgressDetail,
        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: '委托地区查询' }
      }
    ]
  }
]
