index.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. // 创建路由实例
  84. const router = createRouter({
  85. history:createWebHashHistory(),
  86. // history: createWebHistory(import.meta.env.BASE_URL), // 使用 history 模式
  87. routes // 路由配置
  88. });
  89. export default router;