index.ts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. // src/router/index.ts
  2. import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
  3. const routes: RouteRecordRaw[] = [
  4. {
  5. path: '/',
  6. name: 'Index',
  7. meta:{title:'首页'},
  8. component: () => import('@/views/index.vue')
  9. },
  10. {
  11. path: '/login',
  12. name: 'Login',
  13. meta:{title:'登录'},
  14. component: () => import('@/views/login/login.vue')
  15. },
  16. {
  17. path: '/picking',
  18. name: 'PickingList',
  19. meta:{title:'拣货列表'},
  20. component: () => import('@/views/outbound/picking/list/index.vue')
  21. },
  22. {
  23. path: '/picking-task',
  24. name: 'PickingTask',
  25. meta:{title:'拣货任务'},
  26. component: () => import('@/views/outbound/picking/task/index.vue')
  27. },
  28. {
  29. path: '/picking-aisle',
  30. name: 'PickingAisle',
  31. meta:{title:'巷道拣货任务'},
  32. component: () => import('@/views/outbound/pickingAisle/site/index.vue')
  33. },
  34. {
  35. path: '/blind-receiving',
  36. name: 'BlindReceiving',
  37. meta:{title:'盲扫列表'},
  38. component: () => import('@/views/inbound/blindCollection/mode/index.vue')
  39. },
  40. {
  41. path: '/blind-task',
  42. name: 'BlindTask',
  43. meta:{title:'盲扫任务'},
  44. component: () => import('@/views/inbound/blindCollection/task/index.vue')
  45. },
  46. {
  47. path: '/check-move-stock',
  48. name: 'CheckMoveStock',
  49. meta:{title:'复核还库'},
  50. component: () => import('@/views/outbound/check/moveStock/index.vue')
  51. },
  52. {
  53. path: '/piece-dashboard',
  54. name: 'PieceDashboard',
  55. meta:{title:'计件面板'},
  56. component: () => import('@/views/piece/dashboard/index.vue')
  57. },
  58. {
  59. path: '/take-delivery',
  60. name: 'TakeDelivery',
  61. meta:{title:'宝时丰收'},
  62. component: () => import('@/views/inbound/TakeDelivery/task/index.vue')
  63. },
  64. {
  65. path: '/hik-putaway-allocation',
  66. name: 'HikPutawayAllocation',
  67. meta:{title:'海康上架-调度'},
  68. component: () => import('@/views/haikang/putaway/dispatch/index.vue')
  69. },
  70. {
  71. path: '/hik-putaway',
  72. name: 'HikPutaway',
  73. meta:{title:'海康上架'},
  74. component: () => import('@/views/haikang/putaway/putaway/index.vue')
  75. },
  76. {
  77. path: '/hik-box-return',
  78. name: 'HikBoxReturn',
  79. meta:{title:'海康-入库'},
  80. component: () => import('@/views/haikang/boxReturn/boxReturn/index.vue')
  81. },
  82. {
  83. path: '/check-activity',
  84. name: 'CheckActivity',
  85. meta:{title:'复核-活动单'},
  86. component: () => import('@/views/outbound/check/activity/index.vue')
  87. },
  88. {
  89. path: '/check-large',
  90. name: 'CheckLarge',
  91. meta:{title:'复核-大件单'},
  92. component: () => import('@/views/outbound/check/large/index.vue')
  93. },
  94. {
  95. path: '/move-list',
  96. name: 'MoveList',
  97. meta:{title:'移库列表'},
  98. component: () => import('@/views/transfer/move/list/index.vue')
  99. },
  100. {
  101. path: '/move-down',
  102. name: 'MoveDown',
  103. meta:{title:'移库下架'},
  104. component: () => import('@/views/transfer/move/down/index.vue')
  105. },
  106. {
  107. path: '/move-putaway',
  108. name: 'MovePutaway',
  109. meta:{title:'移库上架'},
  110. component: () => import('@/views/transfer/move/putaway/index.vue')
  111. },
  112. {
  113. path: '/returned-register',
  114. name: 'ReturnedRegister',
  115. meta:{title:'退货登记'},
  116. component: () => import('@/views/returned/register/index.vue')
  117. },
  118. {
  119. path: '/processing',
  120. name: 'Processing',
  121. meta:{title:'加工登记'},
  122. component: () => import('@/views/processing/register/index.vue')
  123. },
  124. ];
  125. // 创建路由实例
  126. const router = createRouter({
  127. history:createWebHashHistory(),
  128. // history: createWebHistory(import.meta.env.BASE_URL), // 使用 history 模式
  129. routes // 路由配置
  130. });
  131. export default router;