/*
 * @Author       : WuWei
 * @LastEditors: ChenYaJin
 * @Date         : 2021-04-27 09:47:37
 * @LastEditTime: 2023-08-16 10:07:23
 * @FilePath     : /wisdom-huiguanjia-app/task_package/lib/src/routes.dart
 * @Description  : 任务管理-路由
 */
import 'package:flutter/widgets.dart';
import 'package:task_package/src/pages/scan/components/filter.dart';
import 'pages/detail/equipment/index.dart';
import 'pages/point_form/index.dart';
import 'pages/repair_form/index.dart';
import 'pages/scan/index.dart';
import 'pages/work_instructions/detail/index.dart';
import 'pages/work_instructions/list/index.dart';
import 'pages/hall/index.dart';
import 'pages/dash_board/index.dart';
import 'pages/detail/index.dart';
import 'pages/edit/index.dart';
import 'pages/plan_detail/index.dart';
import 'pages/schedule/index.dart';
import 'pages/statistic/index.dart';
import 'pages/statistic/filter/index.dart';
import 'pages/work_statistic/index.dart';
import 'pages/work_statistic/filter/index.dart';
import 'pages/work_statistic/task_list/task_list.dart';
import 'pages/work_statistic/record_list/index.dart';
import 'pages/index/index.dart';
import 'pages/index/filter/index.dart';
import 'pages/detail/dynamic/index.dart';

Map<String, WidgetBuilder> routes = {
  ///任务首页
  'task/index': (context) => IndexPage(),

  ///任务仪表盘
  'task/dash_board': (context) => DashBoardPage(),

  ///任务统计
  'task/statistic': (context) => StatisticPage(),

  ///任务统计-筛选页
  'task/statistic/filter': (context) => StatisticFilterPage(),

  ///作业管理
  'task/work_statistic/index': (context) => WorkStatisticPage(),

  ///作业管理-筛选
  'task/work_statistic/work_filter': (context) => WorkFilterPage(),

  ///作业管理-任务列表
  'task/work_statistic/task_list': (context) => StatisticTaskListPage(),

  ///作业管理-异常列表
  'task/work_statistic/record_list': (context) => RecordListPage(),

  ///任务编辑、新增
  'task/edit': (context) => EditPage(),

  ///任务详情
  'task/detail': (context) => DetailPage(),

  ///任务动态
  'task/dynamic': (context) => DynamicPage(),

  'task/filter': (context) => FilterPage(),

  ///计划任务详情
  'task/plan_detail': (context) => PlanDetailPage(),

  ///添加子任务
  // 'task/child_add': (context) => ChildTaskAddPage(),

  /// 任务日程
  'task/schedule': (context) => SchedulePage(),

  /// 任务大厅
  'task/hall': (context) => TaskHallList(),

  /// 扫一扫入口
  'task/scan': (context) => ScanTaskPage(),

  /// 作业指导--列表
  'task/work_instructions_list': (context) => WorkInstructionsListPage(),

  /// 作业指导--详情
  'task/work_instructions_detail': (context) => WorkInstructionsDetailPage(),

  /// 点位详情
  'task/point_form': (context) => PointFormPage(),

  /// 任务报修
  'task/repair': (context) => RepairFormPage(),

  /// 选择设备
  'task/equipment': (context) => EquipmentListPage(),

  /// 扫一扫筛选
  'task/scan_filter': (context) => ScanFilterPage(),
};
