vn_router.dart 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. import 'package:cpt_vn/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_detail/applied_staff_detail_page.dart';
  5. import '../modules/job/applied_staff_reviews/applied_staff_reviews_page.dart';
  6. import '../modules/job/applied_workflow/applied_workflow_page.dart';
  7. import '../modules/job/attendance_review_list/attendance_review_page.dart';
  8. import '../modules/job/job_applied/job_applied_page.dart';
  9. import '../modules/job/job_applied_edit/job_applied_edit_page.dart';
  10. import '../modules/job/job_list/job_list_page.dart';
  11. import '../modules/job/job_list_detail/job_list_detail_page.dart';
  12. import '../modules/job/sign_in_sign_out/sign_in_sign_out_page.dart';
  13. import '../modules/labour/labour_request_add/labour_request_add_page.dart';
  14. import '../modules/labour/labour_request_list/labour_request_list_page.dart';
  15. import '../modules/labour/labour_request_workflow/labour_request_workflow_page.dart';
  16. import '../modules/labour/labour_review_edit/labour_review_edit_page.dart';
  17. import '../modules/labour/labour_review_list/labour_review_page.dart';
  18. import '../modules/labour/labour_review_workflow/labour_request_workflow_page.dart';
  19. import '../modules/labour/labour_template_add/labour_template_add_page.dart';
  20. import '../modules/labour/labour_template_list/labour_template_list_page.dart';
  21. import '../modules/report/device_list/device_list_page.dart';
  22. import '../modules/report/report_finance/report_finance_page.dart';
  23. import '../modules/report/report_labour_vn/report_labour_vn_page.dart';
  24. import '../modules/report/report_list/report_list_page.dart';
  25. import '../modules/report/report_staff_request/report_staff_request_page.dart';
  26. /// UK模块路由配置
  27. class VNPageRouter {
  28. static final routes = <GetPage<dynamic>>[
  29. //首页
  30. GetPage(
  31. name: RouterPath.main,
  32. page: () => VNMainPage(),
  33. ),
  34. //用工请求列表
  35. GetPage(
  36. name: RouterPath.jobLabourRequestList,
  37. page: () => LabourRequestListPage(),
  38. ),
  39. //用工请求添加
  40. GetPage(
  41. name: RouterPath.jobLabourRequestAdd,
  42. page: () => LabourRequestAddPage(),
  43. ),
  44. //用工请求状态修改工作流
  45. GetPage(
  46. name: RouterPath.jobLabourRequestWorkflow,
  47. page: () => LabourRequestWorkflowPage(),
  48. ),
  49. //用工请求状态修改工作流
  50. GetPage(
  51. name: RouterPath.labourTemplateList,
  52. page: () => LabourTemplateListPage(),
  53. ),
  54. //用工请求状态修改工作流
  55. GetPage(
  56. name: RouterPath.labourTemplateAdd,
  57. page: () => LabourTemplateAddPage(),
  58. ),
  59. //用工请求审核列表
  60. GetPage(
  61. name: RouterPath.labourReviewList,
  62. page: () => LabourReviewPage(),
  63. ),
  64. //用工请求审核编辑
  65. GetPage(
  66. name: RouterPath.labourReviewEdit,
  67. page: () => LabourReviewEditPage(),
  68. ),
  69. //用工请求审核工作流
  70. GetPage(
  71. name: RouterPath.labourReviewWorkflow,
  72. page: () => LabourReviewWorkflowPage(),
  73. ),
  74. //签到签出
  75. GetPage(
  76. name: RouterPath.jobSignInSignOut,
  77. page: () => SignInSignOutPage(),
  78. ),
  79. //工作列表
  80. GetPage(
  81. name: RouterPath.jobList,
  82. page: () => JobListPage(),
  83. ),
  84. //工作列表详情
  85. GetPage(
  86. name: RouterPath.jobListDetail,
  87. page: () => JobListDetailPage(),
  88. ),
  89. //工作已申请列表
  90. GetPage(
  91. name: RouterPath.jobAppliedStaffList,
  92. page: () => JobAppliedPage(),
  93. ),
  94. //工作已申请列表
  95. GetPage(
  96. name: RouterPath.jobAppliedStaffWorkflow,
  97. page: () => AppliedWorkflowPage(),
  98. ),
  99. //编辑申请
  100. GetPage(
  101. name: RouterPath.jobAppliedStaffEdit,
  102. page: () => JobAppliedEditPage(),
  103. ),
  104. //员工详情
  105. GetPage(
  106. name: RouterPath.jobAppliedStaffDetail,
  107. page: () => AppliedStaffDetailPage(),
  108. ),
  109. //员工评价
  110. GetPage(
  111. name: RouterPath.jobAppliedStaffReviews,
  112. page: () => AppliedStaffReviewsPage(),
  113. ),
  114. //工作考勤的审核列表
  115. GetPage(
  116. name: RouterPath.jobAttendanceReviewList,
  117. page: () => AttendanceReviewPage(),
  118. ),
  119. //设备列表
  120. GetPage(
  121. name: RouterPath.deviceList,
  122. page: () => DeviceListPage(),
  123. ),
  124. //报表列表
  125. GetPage(
  126. name: RouterPath.reportList,
  127. page: () => ReportListPage(),
  128. ),
  129. //财务报表
  130. GetPage(
  131. name: RouterPath.reportFinance,
  132. page: () => ReportFinancePage(),
  133. ),
  134. //员工申请
  135. GetPage(
  136. name: RouterPath.reportStaffRequest,
  137. page: () => ReportStaffRequestPage(),
  138. ),
  139. //用工统计(越南单独页面)
  140. GetPage(
  141. name: RouterPath.reportLabourVN,
  142. page: () => ReportLabourVNPage(),
  143. ),
  144. ];
  145. }