page_router.dart 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import 'package:cpt_report/modules/device_list/device_list_page.dart';
  2. import 'package:cpt_report/modules/report_finance/report_finance_page.dart';
  3. import 'package:cpt_report/modules/report_labour/report_labour_page.dart';
  4. import 'package:cpt_report/modules/report_list/report_list_page.dart';
  5. import 'package:cpt_report/modules/report_staff_request/report_staff_request_page.dart';
  6. import 'package:get/get.dart';
  7. import 'package:router/path/router_path.dart';
  8. import '../modules/report_labour_vn/report_labour_vn_page.dart';
  9. class ReportPageRouter {
  10. static final routes = [
  11. //设备列表
  12. GetPage(
  13. name: RouterPath.deviceList,
  14. page: () => DeviceListPage(),
  15. ),
  16. //报表列表
  17. GetPage(
  18. name: RouterPath.reportList,
  19. page: () => ReportListPage(),
  20. ),
  21. //财务报表
  22. GetPage(
  23. name: RouterPath.reportFinance,
  24. page: () => ReportFinancePage(),
  25. ),
  26. //员工申请
  27. GetPage(
  28. name: RouterPath.reportStaffRequest,
  29. page: () => ReportStaffRequestPage(),
  30. ),
  31. //用工统计
  32. GetPage(
  33. name: RouterPath.reportCasualLabour,
  34. page: () => ReportLabourPage(),
  35. ),
  36. //用工统计(越南单独页面)
  37. GetPage(
  38. name: RouterPath.reportLabourVN,
  39. page: () => ReportLabourVNPage(),
  40. ),
  41. ];
  42. }