index.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. import Layout from '@/page/index/'
  2. export default [
  3. {
  4. path: '/login',
  5. name: '登录页',
  6. component: () => import(/* webpackChunkName: "page" */ '@/page/login/index'),
  7. meta: {
  8. keepAlive: true,
  9. isTab: false,
  10. isAuth: false,
  11. },
  12. },
  13. {
  14. path: '/lock',
  15. name: '锁屏页',
  16. component: () => import(/* webpackChunkName: "page" */ '@/page/lock/index'),
  17. meta: {
  18. keepAlive: true,
  19. isTab: false,
  20. isAuth: false,
  21. },
  22. },
  23. {
  24. path: '/404',
  25. component: () => import(/* webpackChunkName: "page" */ '@/components/error-page/404'),
  26. name: '404',
  27. meta: {
  28. keepAlive: true,
  29. isTab: false,
  30. isAuth: false,
  31. },
  32. },
  33. {
  34. path: '/403',
  35. component: () => import(/* webpackChunkName: "page" */ '@/components/error-page/403'),
  36. name: '403',
  37. meta: {
  38. keepAlive: true,
  39. isTab: false,
  40. isAuth: false,
  41. },
  42. },
  43. {
  44. path: '/500',
  45. component: () => import(/* webpackChunkName: "page" */ '@/components/error-page/500'),
  46. name: '500',
  47. meta: {
  48. keepAlive: true,
  49. isTab: false,
  50. isAuth: false,
  51. },
  52. },
  53. {
  54. path: '/',
  55. name: '主页',
  56. redirect: '/wel',
  57. },
  58. {
  59. path: '/myiframe',
  60. component: Layout,
  61. redirect: '/myiframe',
  62. children: [
  63. {
  64. path: '/video-setting',
  65. name: '设备管理',
  66. component: () => import(/* webpackChunkName: "page" */ '@/views/management/video-setting/index'),
  67. props: true,
  68. },
  69. {
  70. path: '/generalProcess',
  71. name: '通用流程设置',
  72. component: () => import(/* webpackChunkName: "page" */ '@/views/process/generalProcess/index'),
  73. props: true,
  74. },
  75. {
  76. path: '/processNode',
  77. name: '流程设置',
  78. component: () => import(/* webpackChunkName: "page" */ '@/views/process/processNode/index'),
  79. props: true,
  80. },
  81. {
  82. path: '/nodeConfig',
  83. name: '节点配置',
  84. component: () => import(/* webpackChunkName: "page" */ '@/views/process/processNode/nodeConfig'),
  85. props: true,
  86. },
  87. {
  88. path: ':routerPath',
  89. name: 'iframe',
  90. component: () => import(/* webpackChunkName: "page" */ '@/components/iframe/main'),
  91. props: true,
  92. },
  93. ],
  94. },
  95. {
  96. path: '/test',
  97. name: '测试',
  98. component: () => import('@/views/test'),
  99. },
  100. {
  101. path: '/warehouse-maintenance',
  102. name: '仓库维护',
  103. component: () => import(/* webpackChunkName: "page" */ '@/views/basic-configuration/warehouse-maintenance/index'),
  104. meta: {
  105. keepAlive: true,
  106. isTab: false,
  107. isAuth: false,
  108. },
  109. },
  110. {
  111. path: '/Internet-of-things/Industry-management',
  112. component: Layout,
  113. redirect: '/Internet-of-things/Industry-management/index',
  114. children: [
  115. {
  116. path: 'index',
  117. name: '行业管理',
  118. component: () => import(/* webpackChunkName: "page" */ '@/views/Internet-of-things/Industry-management/index'),
  119. props: true,
  120. },
  121. ],
  122. },
  123. {
  124. path: '/Internet-of-things/Industry-management',
  125. component: Layout,
  126. redirect: '/Internet-of-things/Industry-management/details',
  127. children: [
  128. {
  129. path: 'details',
  130. name: '行业详情',
  131. component: () => import(/* webpackChunkName: "page" */ '@/views/Internet-of-things/Industry-management/details'),
  132. props: true,
  133. },
  134. ],
  135. },
  136. {
  137. path: '/Internet-of-things/product-management',
  138. component: Layout,
  139. redirect: '/Internet-of-things/product-management/index',
  140. children: [
  141. {
  142. path: 'index',
  143. name: '产品管理',
  144. component: () => import(/* webpackChunkName: "page" */ '@/views/Internet-of-things/product-management/index'),
  145. props: true,
  146. },
  147. ],
  148. },
  149. {
  150. path: '/Internet-of-things/equipment-management',
  151. component: Layout,
  152. redirect: '/Internet-of-things/equipment-management/index',
  153. children: [
  154. {
  155. path: 'index',
  156. name: '设备管理',
  157. component: () => import(/* webpackChunkName: "page" */ '@/views/Internet-of-things/equipment-management/index'),
  158. props: true,
  159. },
  160. ],
  161. },
  162. {
  163. path: '/product-material/product',
  164. component: Layout,
  165. redirect: '/product-material/product/index',
  166. children: [
  167. {
  168. path: 'index',
  169. name: '产品维护',
  170. component: () => import(/* webpackChunkName: "page" */ '@/views/product-material/product/index'),
  171. props: true,
  172. },
  173. ],
  174. },
  175. {
  176. path: '/product-material/material',
  177. component: Layout,
  178. redirect: '/product-material/material/index',
  179. children: [
  180. {
  181. path: 'index',
  182. name: '物料维护',
  183. component: () => import(/* webpackChunkName: "page" */ '@/views/product-material/material/index'),
  184. props: true,
  185. },
  186. ],
  187. },
  188. {
  189. path: '/product-material/spu',
  190. component: Layout,
  191. redirect: '/product-material/spu/index',
  192. children: [
  193. {
  194. path: 'index',
  195. name: 'spu维护',
  196. component: () => import(/* webpackChunkName: "page" */ '@/views/product-material/spu/index'),
  197. props: true,
  198. },
  199. ],
  200. },
  201. {
  202. path: '/product-material/warehouse',
  203. component: Layout,
  204. redirect: '/product-material/warehouse/index',
  205. children: [
  206. {
  207. path: 'index',
  208. name: '仓库维护',
  209. component: () => import(/* webpackChunkName: "page" */ '@/views/product-material/warehouse/index'),
  210. props: true,
  211. },
  212. ],
  213. },
  214. {
  215. path: '/product-material/supply',
  216. component: Layout,
  217. redirect: '/product-material/supply/index',
  218. children: [
  219. {
  220. path: 'index',
  221. name: '供应商维护',
  222. component: () => import(/* webpackChunkName: "page" */ '@/views/product-material/supply/index'),
  223. props: true,
  224. },
  225. ],
  226. },
  227. {
  228. path: '/product-material/supply',
  229. component: Layout,
  230. redirect: '/product-material/supply/priceMaintenance',
  231. children: [
  232. {
  233. path: 'priceMaintenance',
  234. name: '供应商价格维护',
  235. component: () => import(/* webpackChunkName: "page" */ '@/views/product-material/supply/priceMaintenance'),
  236. props: true,
  237. },
  238. ],
  239. },
  240. {
  241. path: '/product-material/customer',
  242. component: Layout,
  243. redirect: '/product-material/customer/index',
  244. children: [
  245. {
  246. path: 'index',
  247. name: '客户维护',
  248. component: () => import(/* webpackChunkName: "page" */ '@/views/product-material/customer/index'),
  249. props: true,
  250. },
  251. ],
  252. },
  253. {
  254. path: '/purchase-management/subscribe',
  255. component: Layout,
  256. redirect: '/purchase-management/subscribe/index',
  257. children: [
  258. {
  259. path: 'index',
  260. name: '申购管理',
  261. component: () => import(/* webpackChunkName: "page" */ '@/views/purchase-management/subscribe/index'),
  262. props: true,
  263. },
  264. ],
  265. },
  266. {
  267. path: '/purchase-management/purchase',
  268. component: Layout,
  269. redirect: '/purchase-management/purchase/index',
  270. children: [
  271. {
  272. path: 'index',
  273. name: '待采购',
  274. component: () => import(/* webpackChunkName: "page" */ '@/views/purchase-management/purchase/index'),
  275. props: true,
  276. },
  277. ],
  278. },
  279. {
  280. path: '/purchase-management/deliver-goods',
  281. component: Layout,
  282. redirect: '/purchase-management/deliver-goods/index',
  283. children: [
  284. {
  285. path: 'index',
  286. name: '已采购',
  287. component: () => import(/* webpackChunkName: "page" */ '@/views/purchase-management/deliver-goods/index'),
  288. props: true,
  289. },
  290. ],
  291. },
  292. {
  293. path: '/purchase-management/returnsManagement',
  294. component: Layout,
  295. redirect: '/purchase-management/returnsManagement/index',
  296. children: [
  297. {
  298. path: 'index',
  299. name: '退货管理',
  300. component: () => import(/* webpackChunkName: "page" */ '@/views/purchase-management/returnsManagement/index'),
  301. props: true,
  302. },
  303. ],
  304. },
  305. {
  306. path: '/purchase-management/settlement',
  307. component: Layout,
  308. redirect: '/purchase-management/settlement/purchaseSettlement',
  309. children: [
  310. {
  311. path: 'purchaseSettlement',
  312. name: '采购结算',
  313. component: () => import(/* webpackChunkName: "page" */ '@/views/purchase-management/settlement/purchaseSettlement'),
  314. props: true,
  315. },
  316. ],
  317. },
  318. {
  319. path: '/order-management/order',
  320. component: Layout,
  321. redirect: '/order-management/order/index',
  322. children: [
  323. {
  324. path: 'index',
  325. name: '销售订单',
  326. component: () => import(/* webpackChunkName: "page" */ '@/views/order-management/order/index'),
  327. props: true,
  328. },
  329. ],
  330. },
  331. {
  332. path: '/order-management/order',
  333. component: Layout,
  334. redirect: '/order-management/order/JDorder',
  335. children: [
  336. {
  337. path: 'JDorder',
  338. name: '京东订单',
  339. component: () => import(/* webpackChunkName: "page" */ '@/views/order-management/order/JDorder'),
  340. props: true,
  341. },
  342. ],
  343. },
  344. {
  345. path: '/order-management/afterSales',
  346. component: Layout,
  347. redirect: '/order-management/afterSales/index',
  348. children: [
  349. {
  350. path: 'index',
  351. name: '售后管理',
  352. component: () => import(/* webpackChunkName: "page" */ '@/views/order-management/afterSales/index'),
  353. props: true,
  354. },
  355. ],
  356. },
  357. {
  358. path: '/inventory-management/query',
  359. component: Layout,
  360. redirect: '/inventory-management/query/index',
  361. children: [
  362. {
  363. path: 'index',
  364. name: '库存查询',
  365. component: () => import(/* webpackChunkName: "page" */ '@/views/inventory-management/query/index'),
  366. props: true,
  367. },
  368. ],
  369. },
  370. {
  371. path: '/inventory-management/check',
  372. component: Layout,
  373. redirect: '/inventory-management/check/index',
  374. children: [
  375. {
  376. path: 'index',
  377. name: '库存盘点',
  378. component: () => import(/* webpackChunkName: "page" */ '@/views/inventory-management/check/index'),
  379. props: true,
  380. },
  381. ],
  382. },
  383. {
  384. path: '/inventory-management/combination',
  385. component: Layout,
  386. redirect: '/inventory-management/combination/index',
  387. children: [
  388. {
  389. path: 'index',
  390. name: '产品组合',
  391. component: () => import(/* webpackChunkName: "page" */ '@/views/inventory-management/combination/index'),
  392. props: true,
  393. },
  394. ],
  395. },
  396. {
  397. path: '/inventory-management/bill',
  398. component: Layout,
  399. redirect: '/inventory-management/bill/index',
  400. children: [
  401. {
  402. path: 'index',
  403. name: '单据查看',
  404. component: () => import(/* webpackChunkName: "page" */ '@/views/inventory-management/bill/index'),
  405. props: true,
  406. },
  407. ],
  408. },
  409. {
  410. path: '/inbound-outbound/inbound/cgInbound',
  411. component: Layout,
  412. redirect: '/inbound-outbound/inbound/cgInbound/index',
  413. children: [
  414. {
  415. path: 'index',
  416. name: '采购入库',
  417. component: () => import(/* webpackChunkName: "page" */ '@/views/inbound-outbound/inbound/cgInbound/index'),
  418. props: true,
  419. },
  420. ],
  421. },
  422. {
  423. path: '/inbound-outbound/inbound/manualInbound',
  424. component: Layout,
  425. redirect: '/inbound-outbound/inbound/manualInbound/index',
  426. children: [
  427. {
  428. path: 'index',
  429. name: '手动入库',
  430. component: () => import(/* webpackChunkName: "page" */ '@/views/inbound-outbound/inbound/manualInbound/index'),
  431. props: true,
  432. },
  433. ],
  434. },
  435. {
  436. path: '/inbound-outbound/inbound',
  437. component: Layout,
  438. redirect: '/inbound-outbound/inbound/qualityTesting',
  439. children: [
  440. {
  441. path: 'qualityTesting',
  442. name: '入库质检',
  443. component: () => import(/* webpackChunkName: "page" */ '@/views/inbound-outbound/inbound/qualityTesting'),
  444. props: true,
  445. },
  446. ],
  447. },
  448. {
  449. path: '/inbound-outbound/arrivalInspection',
  450. component: Layout,
  451. redirect: '/inbound-outbound/arrivalInspection/index',
  452. children: [
  453. {
  454. path: 'index',
  455. name: '到货质检',
  456. component: () => import(/* webpackChunkName: "page" */ '@/views/inbound-outbound/arrivalInspection/index'),
  457. props: true,
  458. },
  459. ],
  460. },
  461. {
  462. path: '/inbound-outbound/abnormalManage',
  463. component: Layout,
  464. redirect: '/inbound-outbound/abnormalManage/index',
  465. children: [
  466. {
  467. path: 'index',
  468. name: '异常管理',
  469. component: () => import(/* webpackChunkName: "page" */ '@/views/inbound-outbound/abnormalManage/index'),
  470. props: true,
  471. },
  472. ],
  473. },
  474. {
  475. path: '/inbound-outbound/outbound/salesOutbound',
  476. component: Layout,
  477. redirect: '/inbound-outbound/outbound/salesOutbound/index',
  478. children: [
  479. {
  480. path: 'index',
  481. name: '销售订单出库',
  482. component: () => import(/* webpackChunkName: "page" */ '@/views/inbound-outbound/outbound/salesOutbound/index'),
  483. props: true,
  484. },
  485. ],
  486. },
  487. {
  488. path: '/inbound-outbound/outbound/JDoutbound',
  489. component: Layout,
  490. redirect: '/inbound-outbound/outbound/JDoutbound/index',
  491. children: [
  492. {
  493. path: 'index',
  494. name: '京东订单出库',
  495. component: () => import(/* webpackChunkName: "page" */ '@/views/inbound-outbound/outbound/JDoutbound/index'),
  496. props: true,
  497. },
  498. ],
  499. },
  500. {
  501. path: '/inbound-outbound/outbound/manualOutbound',
  502. component: Layout,
  503. redirect: '/inbound-outbound/outbound/manualOutbound/index',
  504. children: [
  505. {
  506. path: 'index',
  507. name: '手动出库',
  508. component: () => import(/* webpackChunkName: "page" */ '@/views/inbound-outbound/outbound/manualOutbound/index'),
  509. props: true,
  510. },
  511. ],
  512. },
  513. {
  514. path: '/inbound-outbound/transfer',
  515. component: Layout,
  516. redirect: '/inbound-outbound/transfer/index',
  517. children: [
  518. {
  519. path: 'index',
  520. name: '调仓',
  521. component: () => import(/* webpackChunkName: "page" */ '@/views/inbound-outbound/transfer/index'),
  522. props: true,
  523. },
  524. ],
  525. },
  526. {
  527. path: '/inbound-outbound/flow',
  528. component: Layout,
  529. redirect: '/inbound-outbound/flow/index',
  530. children: [
  531. {
  532. path: 'index',
  533. name: '出入库流水',
  534. component: () => import(/* webpackChunkName: "page" */ '@/views/inbound-outbound/flow/index'),
  535. props: true,
  536. },
  537. ],
  538. },
  539. {
  540. path: '/process/backlog',
  541. component: Layout,
  542. redirect: '/process/backlog/index',
  543. children: [
  544. {
  545. path: 'index',
  546. name: '流程审批',
  547. component: () => import(/* webpackChunkName: "page" */ '@/views/process/backlog/index'),
  548. props: true,
  549. },
  550. ],
  551. },
  552. {
  553. path: '/process/examinationApproval',
  554. component: Layout,
  555. redirect: '/process/examinationApproval/index',
  556. children: [
  557. {
  558. path: 'index',
  559. name: '办理',
  560. component: () => import(/* webpackChunkName: "page" */ '@/views/process/examinationApproval/index'),
  561. props: true,
  562. },
  563. ],
  564. },
  565. //````````````````````````````````````````````````````````````````````
  566. {
  567. path: '/equipment',
  568. component: Layout,
  569. redirect: '/equipment/index',
  570. children: [
  571. {
  572. path: 'index',
  573. name: '设备',
  574. component: () => import(/* webpackChunkName: "page" */ '@/views/equipment/index'),
  575. props: true,
  576. },
  577. ],
  578. },
  579. {
  580. path: '*',
  581. redirect: '/404',
  582. },
  583. ]