routes.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. const routes = [{
  2. path: '/',
  3. component: () => import('layouts/MainLayout.vue'),
  4. children: [
  5. {
  6. path: '',
  7. name: 'web_index',
  8. component: () => import('pages/Index.vue')
  9. },
  10. {
  11. path: 'stock',
  12. name: 'stock',
  13. component: () => import('pages/stock/stock.vue'),
  14. children: [{
  15. path: 'management',
  16. name: 'management',
  17. component: () => import('pages/stock/management.vue')
  18. },
  19. {
  20. path: 'stocklist',
  21. name: 'stocklist',
  22. component: () => import('pages/stock/stocklist.vue')
  23. },
  24. {
  25. path: 'stockbinlist',
  26. name: 'stockbinlist',
  27. component: () => import('pages/stock/stockbinlist.vue')
  28. },
  29. {
  30. path: 'emptybin',
  31. name: 'emptybin',
  32. component: () => import('pages/stock/emptybin.vue')
  33. },
  34. {
  35. path: 'occupiedbin',
  36. name: 'occupiedbin',
  37. component: () => import('pages/stock/occupiedbin.vue')
  38. },
  39. {
  40. path: 'binset',
  41. name: 'binset',
  42. component: () => import('pages/stock/binset.vue')
  43. },
  44. // {
  45. // path: 'cyclecount',
  46. // name: 'cyclecount',
  47. // component: () => import('pages/stock/cyclecount.vue')
  48. // },
  49. // {
  50. // path: 'cyclecountrecorder',
  51. // name: 'cyclecountrecorder',
  52. // component: () => import('pages/stock/cyclecountrecorder.vue')
  53. // },
  54. {
  55. path: 'handcount',
  56. name: 'handcount',
  57. component: () => import('pages/stock/handcount.vue')
  58. },
  59. // {
  60. // path: 'handcountrecorder',
  61. // name: 'handcountrecorder',
  62. // component: () => import('pages/stock/handcountrecorder.vue')
  63. // },
  64. // {
  65. // path: 'binset',
  66. // name: 'binset',
  67. // component: () => import('pages/stock/binset.vue')
  68. // },
  69. // {
  70. // path: 'binsize',
  71. // name: 'binsize',
  72. // component: () => import('pages/stock/binsize.vue')
  73. // },
  74. // {
  75. // path: 'property',
  76. // name: 'property',
  77. // component: () => import('pages/stock/property.vue')
  78. // }
  79. ]
  80. },
  81. {
  82. path: 'dashboard',
  83. name: 'dashboard',
  84. component: () => import('pages/dashboard/dashboard.vue'),
  85. children: [
  86. {
  87. path: 'inboundAndOutbound',
  88. name: 'inboundAndOutbound',
  89. component: () => import('pages/dashboard/inboundAndOutbound.vue')
  90. },
  91. {
  92. path:'flows_statements',
  93. name:'flows_statements',
  94. component: () => import('pages/dashboard/flows_statements.vue')
  95. }
  96. ]
  97. },
  98. {
  99. path: 'inbound',
  100. name: 'inbound',
  101. component: () => import('pages/inbound/inbound.vue'),
  102. children: [{
  103. path: 'asn',
  104. name: 'asn',
  105. component: () => import('pages/inbound/asn.vue')
  106. },
  107. {
  108. path: 'predeliverystock',
  109. name: 'predeliverystock',
  110. component: () => import('pages/inbound/predeliverystock.vue')
  111. },
  112. {
  113. path: 'preloadstock',
  114. name: 'preloadstock',
  115. component: () => import('pages/inbound/preloadstock.vue')
  116. },
  117. {
  118. path: 'presortstock',
  119. name: 'presortstock',
  120. component: () => import('pages/inbound/presortstock.vue')
  121. },
  122. {
  123. path: 'sortstock',
  124. name: 'sortstock',
  125. component: () => import('pages/inbound/sortstock.vue')
  126. },
  127. {
  128. path: 'shortage',
  129. name: 'shortage',
  130. component: () => import('pages/inbound/shortage.vue')
  131. },
  132. {
  133. path: 'more',
  134. name: 'more',
  135. component: () => import('pages/inbound/more.vue')
  136. },
  137. {
  138. path: 'asnfinish',
  139. name: 'asnfinish',
  140. component: () => import('pages/inbound/asnfinish.vue')
  141. }
  142. ]
  143. },
  144. {
  145. path: 'container',
  146. name: 'container',
  147. component: () => import('pages/container/container.vue'),
  148. children: [{
  149. path: 'containerlist',
  150. name: 'containerlist',
  151. component: () => import('pages/container/containerlist.vue')
  152. },
  153. {
  154. path: 'containerdetail',
  155. name: 'containerdetail',
  156. component: () => import('pages/container/containerdetail.vue')
  157. },
  158. { path:'containeroperate',
  159. name:'containeroperate',
  160. component: () => import('pages/container/containeroperate.vue')
  161. }
  162. ]
  163. },
  164. {
  165. path: 'outbound',
  166. name: 'outbound',
  167. component: () => import('pages/outbound/outbound.vue'),
  168. children: [{
  169. path: 'dn',
  170. name: 'dn',
  171. component: () => import('pages/outbound/dn.vue')
  172. },
  173. {
  174. path: 'freshorder',
  175. name: 'freshorder',
  176. component: () => import('pages/outbound/freshorder.vue')
  177. },
  178. {
  179. path: 'neworder',
  180. name: 'neworder',
  181. component: () => import('pages/outbound/neworder.vue')
  182. },
  183. {
  184. path: 'pickstock',
  185. name: 'pickstock',
  186. component: () => import('pages/outbound/pickstock.vue')
  187. },
  188. {
  189. path: 'pickedstock',
  190. name: 'pickedstock',
  191. component: () => import('pages/outbound/pickedstock.vue')
  192. },
  193. {
  194. path: 'pickinglist',
  195. name: 'pickinglist',
  196. component: () => import('pages/outbound/pickinglist.vue')
  197. },
  198. {
  199. path: 'shippedstock',
  200. name: 'shippedstock',
  201. component: () => import('pages/outbound/shippedstock.vue')
  202. },
  203. {
  204. path: 'backorder',
  205. name: 'backorder',
  206. component: () => import('pages/outbound/backorder.vue')
  207. },
  208. {
  209. path: 'pod',
  210. name: 'pod',
  211. component: () => import('pages/outbound/pod.vue')
  212. }
  213. ]
  214. },
  215. {
  216. path: 'goods',
  217. name: 'goods',
  218. component: () => import('pages/goods/goods.vue'),
  219. children: [{
  220. path: 'goodslist',
  221. name: 'goodslist',
  222. component: () => import('pages/goods/goodslist.vue')
  223. },
  224. {
  225. path: 'goodsunit',
  226. name: 'goodsunit',
  227. component: () => import('pages/goods/goodsunit.vue')
  228. },
  229. {
  230. path: 'goodsclass',
  231. name: 'goodsclass',
  232. component: () => import('pages/goods/goodsclass.vue')
  233. },
  234. {
  235. path: 'goodsbrand',
  236. name: 'goodsbrand',
  237. component: () => import('pages/goods/goodsbrand.vue')
  238. },
  239. {
  240. path: 'goodscolor',
  241. name: 'goodscolor',
  242. component: () => import('pages/goods/goodscolor.vue')
  243. },
  244. {
  245. path: 'goodsspecs',
  246. name: 'goodsspecs',
  247. component: () => import('pages/goods/goodsspecs.vue')
  248. },
  249. {
  250. path: 'goodsshape',
  251. name: 'goodsshape',
  252. component: () => import('pages/goods/goodsshape.vue')
  253. },
  254. {
  255. path: 'goodsorigin',
  256. name: 'goodsorigin',
  257. component: () => import('pages/goods/goodsorigin.vue')
  258. }
  259. ]
  260. },
  261. {
  262. path: 'taskpage',
  263. name: 'taskpage',
  264. component: () => import('pages/task/taskpage.vue'),
  265. children: [{
  266. path: 'task',
  267. name: 'task',
  268. component: () => import('pages/task/task.vue')
  269. }
  270. ]
  271. },
  272. {
  273. path: 'warehouse',
  274. name: 'warehouse',
  275. component: () => import('pages/warehouse/warehouse.vue'),
  276. children: [{
  277. path: 'warehouseset',
  278. name: 'warehouseset',
  279. component: () => import('pages/warehouse/warehouseset.vue')
  280. },
  281. {
  282. path: 'department',
  283. name: 'department',
  284. component: () => import('pages/warehouse/department.vue')
  285. },
  286. {
  287. path: 'boundcodetype',
  288. name: 'boundcodetype',
  289. component: () => import('pages/warehouse/boundcodetype.vue')
  290. },
  291. {
  292. path: 'boundtype',
  293. name: 'boundtype',
  294. component: () => import('pages/warehouse/boundtype.vue')
  295. },
  296. {
  297. path: 'boundbusiness',
  298. name: 'boundbusiness',
  299. component: () => import('pages/warehouse/boundbusiness.vue')
  300. },
  301. {
  302. path: 'status',
  303. name: 'status',
  304. component: () => import('pages/warehouse/boundstatus.vue')
  305. },
  306. {
  307. path:'product',
  308. name:'product',
  309. component: () => import('pages/warehouse/product.vue')
  310. }
  311. ]
  312. },
  313. {
  314. path: 'staff',
  315. name: 'staff',
  316. component: () => import('pages/staff/staff.vue'),
  317. children: [{
  318. path: 'stafflist',
  319. name: 'stafflist',
  320. component: () => import('pages/staff/stafflist.vue')
  321. },
  322. {
  323. path: 'stafflist_check_code',
  324. name: 'stafflist_check_code',
  325. component: () => import('pages/staff/stafflist_check_code.vue')
  326. },
  327. {
  328. path: 'stafftype',
  329. name: 'stafftype',
  330. component: () => import('pages/staff/stafftype.vue')
  331. }
  332. ]
  333. },
  334. {
  335. path: 'uploadcenter',
  336. name: 'uploadcenter',
  337. component: () => import('pages/uploadcenter/upload.vue'),
  338. children: [{
  339. path: 'initializeupload',
  340. name: 'initializeupload',
  341. component: () => import('pages/uploadcenter/initializeupload.vue')
  342. },
  343. {
  344. path: 'addupload',
  345. name: 'addupload',
  346. component: () => import('pages/uploadcenter/addupload.vue')
  347. }
  348. ]
  349. },
  350. {
  351. path: 'downloadcenter',
  352. name: 'downloadcenter',
  353. component: () => import('pages/downloadcenter/download.vue'),
  354. children: [{
  355. path: 'downloadinbound',
  356. name: 'downloadinbound',
  357. component: () => import('pages/downloadcenter/downloadinbound.vue')
  358. }, {
  359. path: 'downloadoutbound',
  360. name: 'downloadoutbound',
  361. component: () => import('pages/downloadcenter/downloadoutbound.vue')
  362. }, {
  363. path: 'downloadstocklist',
  364. name: 'downloadstocklist',
  365. component: () => import('pages/downloadcenter/downloadstocklist.vue')
  366. }, {
  367. path: 'downloadgoodslist',
  368. name: 'downloadgoodslist',
  369. component: () => import('pages/downloadcenter/downloadgoodslist.vue')
  370. }, {
  371. path: 'downloadbinlist',
  372. name: 'downloadbinlist',
  373. component: () => import('pages/downloadcenter/downloadbinlist.vue')
  374. }]
  375. }
  376. ]
  377. }]
  378. // Always leave this as last one
  379. if (process.env.MODE !== 'ssr') {
  380. routes.push({
  381. path: '*',
  382. component: () => import('pages/Error404.vue')
  383. })
  384. }
  385. export default routes