sg_router.dart 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. import 'package:cpt_sg/modules/main/main_page.dart';
  2. import 'package:get/get.dart';
  3. import 'package:router/path/router_path.dart';
  4. import '../modules/job/applied_staff/applied_staff_page.dart';
  5. import '../modules/job/applied_staff_detail/applied_staff_detail_page.dart';
  6. import '../modules/job/applied_staff_reviews/applied_staff_reviews_page.dart';
  7. import '../modules/job/job_applied/job_applied_page.dart';
  8. import '../modules/job/revise_add_edit/revise_add_edit_page.dart';
  9. import '../modules/job/revise_applied/revise_applied_page.dart';
  10. import '../modules/job/revise_list/revise_list_page.dart';
  11. import '../modules/job/revise_log/revise_log_page.dart';
  12. import '../modules/labour/job_list/job_list_page.dart';
  13. import '../modules/labour/job_list_edit/job_list_edit_page.dart';
  14. import '../modules/labour/job_template_add/job_template_add_page.dart';
  15. import '../modules/labour/job_template_list/job_template_list_page.dart';
  16. import '../modules/labour/job_title_list/job_title_list_page.dart';
  17. import '../modules/labour/labour_request_add/labour_request_add_page.dart';
  18. import '../modules/labour/labour_request_edit/labour_request_edit_page.dart';
  19. import '../modules/labour/labour_request_list/labour_request_list_page.dart';
  20. import '../modules/report/device_list/device_list_page.dart';
  21. import '../modules/report/report_finance/report_finance_page.dart';
  22. import '../modules/report/report_labour/report_labour_page.dart';
  23. import '../modules/report/report_list/report_list_page.dart';
  24. import '../modules/report/report_staff_request/report_staff_request_page.dart';
  25. /// SG模块路由配置
  26. class SGPageRouter {
  27. static final routes = <GetPage<dynamic>>[
  28. GetPage(
  29. name: RouterPath.SGMain,
  30. page: () => SGMainPage(),
  31. ),
  32. // 新加坡工作列表已申请列表
  33. GetPage(
  34. name: RouterPath.jobListAppliedSG,
  35. page: () => JobAppliedPage(),
  36. ),
  37. GetPage(
  38. name: RouterPath.jobListAppliedStaffListSG,
  39. page: () => AppliedStaffPage(),
  40. ),
  41. GetPage(
  42. name: RouterPath.jobListAppliedStaffDetailSG,
  43. page: () => AppliedStaffDetailPage(),
  44. ),
  45. GetPage(
  46. name: RouterPath.jobListAppliedStaffReviewSG,
  47. page: () => AppliedStaffReviewsPage(),
  48. ),
  49. GetPage(
  50. name: RouterPath.reviseListSG,
  51. page: () => ReviseListPage(),
  52. ),
  53. GetPage(
  54. name: RouterPath.reviseLogSG,
  55. page: () => ReviseLogPage(),
  56. ),
  57. GetPage(
  58. name: RouterPath.reviseEditSG,
  59. page: () => ReviseAddEditPage(),
  60. ),
  61. GetPage(
  62. name: RouterPath.reviseAppliedSG,
  63. page: () => ReviseAppliedPage(),
  64. ),
  65. // 工作标题列表
  66. GetPage(
  67. name: RouterPath.jobTitleListSG,
  68. page: () => JobTitleListPage(),
  69. ),
  70. // 工作模板列表
  71. GetPage(
  72. name: RouterPath.jobTemplateListSG,
  73. page: () => JobTemplateListPage(),
  74. ),
  75. // 添加模板
  76. GetPage(
  77. name: RouterPath.jobTemplateAddSG,
  78. page: () => JobTemplateAddPage(),
  79. ),
  80. // 用工的编辑
  81. GetPage(
  82. name: RouterPath.labourRequestEditSG,
  83. page: () => LabourRequestEditPage(),
  84. ),
  85. // 用工请求
  86. GetPage(
  87. name: RouterPath.labourRequestSG,
  88. page: () => LabourRequestListPage(),
  89. ),
  90. // 用工请求添加
  91. GetPage(
  92. name: RouterPath.labourRequestAddSG,
  93. page: () => LabourRequestAddPage(),
  94. ),
  95. // 新加坡工作列表
  96. GetPage(
  97. name: RouterPath.jobListSG,
  98. page: () => JobListPage(),
  99. ),
  100. // 新加坡工作列表编辑
  101. GetPage(
  102. name: RouterPath.jobListEditSG,
  103. page: () => JobListEditPage(),
  104. ),
  105. //设备列表
  106. GetPage(
  107. name: RouterPath.deviceListSG,
  108. page: () => DeviceListPage(),
  109. ),
  110. //报表列表
  111. GetPage(
  112. name: RouterPath.reportListSG,
  113. page: () => ReportListPage(),
  114. ),
  115. //财务报表
  116. GetPage(
  117. name: RouterPath.reportFinanceSG,
  118. page: () => ReportFinancePage(),
  119. ),
  120. //员工申请
  121. GetPage(
  122. name: RouterPath.reportStaffRequestSG,
  123. page: () => ReportStaffRequestPage(),
  124. ),
  125. //用工统计
  126. GetPage(
  127. name: RouterPath.reportCasualLabourSG,
  128. page: () => ReportLabourPage(),
  129. ),
  130. ];
  131. }