uk_router.dart 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. import 'package:cpt_uk/modules/attendance/device_list/device_list_page.dart';
  2. import 'package:cpt_uk/modules/attendance/e_attendance_list/e_attendance_list_page.dart';
  3. import 'package:cpt_uk/modules/attendance/security_registration/security_registration_page.dart';
  4. import 'package:cpt_uk/modules/job/job_applied_staff_detail/applied_staff_detail_page.dart';
  5. import 'package:cpt_uk/modules/job/job_applied_staff_reviews/applied_staff_reviews_page.dart';
  6. import 'package:cpt_uk/modules/job/job_applied_workflow/applied_workflow_page.dart';
  7. import 'package:cpt_uk/modules/job/job_category/job_category_page.dart';
  8. import 'package:cpt_uk/modules/job/job_list/job_list_page.dart';
  9. import 'package:cpt_uk/modules/job/job_list_detail/job_list_detail_page.dart';
  10. import 'package:cpt_uk/modules/job/labour_request_add/labour_request_add_page.dart';
  11. import 'package:cpt_uk/modules/job/labour_request_list/labour_request_list_page.dart';
  12. import 'package:cpt_uk/modules/job/labour_request_workflow/labour_request_workflow_page.dart';
  13. import 'package:cpt_uk/modules/job/template_add/template_add_page.dart';
  14. import 'package:cpt_uk/modules/job/template_list/template_list_page.dart';
  15. import 'package:cpt_uk/modules/main/main_page.dart';
  16. import 'package:cpt_uk/modules/report/labour_report/labour_report_page.dart';
  17. import 'package:cpt_uk/modules/report/report_list/report_list_page.dart';
  18. import 'package:get/get.dart';
  19. import 'package:router/path/router_path.dart';
  20. import '../modules/job/job_applied/job_applied_page.dart';
  21. import '../modules/job/job_applied_edit/job_applied_edit_page.dart';
  22. import '../modules/review/attendance_review_list/attendance_review_page.dart';
  23. import '../modules/review/labour_review_edit/labour_review_edit_page.dart';
  24. import '../modules/review/labour_review_list/labour_review_page.dart';
  25. import '../modules/review/labour_review_workflow/labour_request_workflow_page.dart';
  26. /// UK模块路由配置
  27. class UKPageRouter {
  28. static final routes = <GetPage<dynamic>>[
  29. //首页
  30. GetPage(
  31. name: RouterPath.UKMain,
  32. page: () => UKMainPage(),
  33. ),
  34. //工作的子模块列表
  35. GetPage(
  36. name: RouterPath.UKJobCategory,
  37. page: () => JobCategoryPage(),
  38. ),
  39. //工作模板列表
  40. GetPage(
  41. name: RouterPath.UKTemplateList,
  42. page: () => UKTemplateListPage(),
  43. ),
  44. //工作模板列表添加与编辑
  45. GetPage(
  46. name: RouterPath.UKTemplateAdd,
  47. page: () => UKTemplateAddPage(),
  48. ),
  49. //工作用工请求列表
  50. GetPage(
  51. name: RouterPath.UKLabourList,
  52. page: () => UKLabourRequestListPage(),
  53. ),
  54. //工作用工请求的添加与编辑
  55. GetPage(
  56. name: RouterPath.UKLabourAdd,
  57. page: () => UKLabourRequestAddPage(),
  58. ),
  59. //工作用工请求的操作流
  60. GetPage(
  61. name: RouterPath.UKLabourWorlkflow,
  62. page: () => UKLabourRequestWorkflowPage(),
  63. ),
  64. //工作列表
  65. GetPage(
  66. name: RouterPath.UKJobList,
  67. page: () => UKJobListPage(),
  68. ),
  69. //工作列表详情
  70. GetPage(
  71. name: RouterPath.UKJobListDetail,
  72. page: () => UKJobListDetailPage(),
  73. ),
  74. //工作列表已申请列表
  75. GetPage(
  76. name: RouterPath.UKJobApplied,
  77. page: () => UKJobAppliedPage(),
  78. ),
  79. //工作列表已申请列表添加员工列表
  80. GetPage(
  81. name: RouterPath.UKJobAppliedEdit,
  82. page: () => UKJobAppliedEditPage(),
  83. ),
  84. //工作列表已申请列表员工详情
  85. GetPage(
  86. name: RouterPath.UKJobAppliedStaffDetail,
  87. page: () => UKAppliedStaffDetailPage(),
  88. ),
  89. //工作列表已申请列表员工评论列表
  90. GetPage(
  91. name: RouterPath.UKJobAppliedStaffReview,
  92. page: () => UKAppliedStaffReviewsPage(),
  93. ),
  94. //工作列表已申请操作流
  95. GetPage(
  96. name: RouterPath.UKJobAppliedWorkflow,
  97. page: () => UKAppliedWorkflowPage(),
  98. ),
  99. //工作列表用工请求审核
  100. GetPage(
  101. name: RouterPath.UKLabourReviewList,
  102. page: () => UKLabourReviewPage(),
  103. ),
  104. //工作列表用工请求审核编辑
  105. GetPage(
  106. name: RouterPath.UKLabourReviewEdit,
  107. page: () => UKLabourReviewEditPage(),
  108. ),
  109. //工作列表用工请求审核的操作流
  110. GetPage(
  111. name: RouterPath.UKLabourReviewWorkflow,
  112. page: () => UKLabourReviewWorkflowPage(),
  113. ),
  114. //考勤的审核列表
  115. GetPage(
  116. name: RouterPath.UKAttendanceReviewList,
  117. page: () => UKAttendanceReviewPage(),
  118. ),
  119. //设备列表
  120. GetPage(
  121. name: RouterPath.UKDeviceList,
  122. page: () => UKDeviceListPage(),
  123. ),
  124. //电子考勤列表
  125. GetPage(
  126. name: RouterPath.UKAttendanceList,
  127. page: () => UKEAttendanceListPage(),
  128. ),
  129. //门卫签到列表
  130. GetPage(
  131. name: RouterPath.UKSecurityRegistration,
  132. page: () => UKSecurityRegistrationPage(),
  133. ),
  134. //报表
  135. GetPage(
  136. name: RouterPath.UKReportList,
  137. page: () => UKReportListPage(),
  138. ),
  139. //报表 - Labour
  140. GetPage(
  141. name: RouterPath.UKReportLabour,
  142. page: () => UKLabourReportPage(),
  143. ),
  144. ];
  145. }