index.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. import {
  2. createRouter,
  3. createWebHashHistory
  4. } from 'vue-router'
  5. import login from '../views/login.vue'
  6. import main from '../views/main.vue'
  7. import {
  8. routesLXF
  9. } from './routerLXF.js'
  10. import {
  11. jxskRouter
  12. } from './jxskRouter.js'
  13. const routes = [{
  14. path: '/',
  15. name: 'login',
  16. component: login
  17. },
  18. {
  19. path: '/about',
  20. name: 'about',
  21. component: () => import('../views/AboutView.vue')
  22. },
  23. {
  24. path: '/main',
  25. name: 'main',
  26. component: main,
  27. redirect: '/main/working',
  28. children: [{
  29. path: 'equipment',
  30. name: '设备列表',
  31. component: () => import('../views/equipment/index.vue')
  32. },
  33. {
  34. path: 'working',
  35. name: '工作台',
  36. component: () => import('../views/working/index.vue'),
  37. meta: {
  38. keepAlive: true
  39. }
  40. },
  41. {
  42. path: 'home',
  43. name: '我的中心',
  44. component: () => import('../views/home/index.vue')
  45. },
  46. {
  47. path: 'changePassword',
  48. name: '修改密码',
  49. component: () => import('../views/home/changePassword.vue')
  50. },
  51. {
  52. path: 'feedback',
  53. name: '我的反馈',
  54. component: () => import('../views/home/feedback.vue')
  55. },
  56. {
  57. path: 'feedbackSubmit',
  58. name: '我的反馈提交',
  59. component: () => import('../views/home/feedbackSubmit.vue')
  60. },
  61. {
  62. path: 'feedbackDtl',
  63. name: '我的反馈详情',
  64. component: () => import('../views/home/feedbackDtl.vue')
  65. },
  66. {
  67. path: 'message',
  68. name: '消息通知',
  69. component: () => import('../views/message/index.vue')
  70. },
  71. {
  72. path: 'messageList',
  73. name: '消息列表',
  74. component: () => import('../views/message/messageList.vue')
  75. },
  76. {
  77. path: 'iframWinfaster',
  78. name: '官网',
  79. component: () => import('../views/working/iframWinfaster.vue')
  80. },
  81. //流程模块
  82. {
  83. path: 'processApproval',
  84. name: '流程办理',
  85. component: () => import('../views/processApproval/index.vue')
  86. },
  87. {
  88. path: 'processDtl',
  89. name: '流程办理-详情',
  90. component: () => import('../views/processApproval/processDtl.vue')
  91. },
  92. //公共模块
  93. {
  94. path: 'contractTemplateAdd',
  95. name: '销售合同模板新增',
  96. component: () => import('../views/commonModule/contractTemplate/add.vue')
  97. },
  98. {
  99. path: 'contractTemplate',
  100. name: '销售合同模板',
  101. component: () => import('../views/commonModule/contractTemplate/index.vue')
  102. },
  103. {
  104. path: 'multiCompanyConfig',
  105. name: '多公司配置',
  106. component: () => import('../views/commonModule/multiCompanyConfig/index.vue')
  107. },
  108. {
  109. path: 'multiCompanyConfigAdd',
  110. name: '多公司配置新增',
  111. component: () => import('../views/commonModule/multiCompanyConfig/add.vue')
  112. },
  113. //生产管理模块
  114. {
  115. path: 'bomAdd',
  116. name: 'BOM新增',
  117. component: () => import('../views/production/bom/add.vue')
  118. },
  119. {
  120. path: 'bom',
  121. name: 'BOM管理',
  122. component: () => import('../views/production/bom/index.vue')
  123. },
  124. {
  125. path: 'technology',
  126. name: '产线管理',
  127. component: () => import('../views/production/technology/index.vue')
  128. },
  129. {
  130. path: 'technologyadd',
  131. name: '产线管理详情',
  132. component: () => import('../views/production/technology/add.vue')
  133. },
  134. {
  135. path: 'workingProcedure',
  136. name: '工序管理',
  137. component: () => import('../views/production/workingProcedure/index.vue')
  138. },
  139. {
  140. path: 'workingProcedureAdd',
  141. name: '工序管理新增',
  142. component: () => import('../views/production/workingProcedure/add.vue')
  143. },
  144. {
  145. path: 'workshop',
  146. name: '车间配置',
  147. component: () => import('../views/production/workshop/index.vue')
  148. },
  149. {
  150. path: 'workshopAdd',
  151. name: '车间配置新增',
  152. component: () => import('../views/production/workshop/add.vue')
  153. },
  154. {
  155. path: 'factory',
  156. name: '产线配置',
  157. component: () => import('../views/production/factory/index.vue')
  158. },
  159. {
  160. path: 'factoryAdd',
  161. name: '产线配置新增',
  162. component: () => import('../views/production/factory/add.vue')
  163. },
  164. //系统管理
  165. {
  166. path: 'tenantDict',
  167. name: '租户字典',
  168. component: () => import('../views/system/dict/tenantDict.vue')
  169. },
  170. {
  171. path: 'tenantAdd',
  172. name: '租户字典新增',
  173. component: () => import('../views/system/dict/tenantAdd.vue')
  174. },
  175. {
  176. path: 'businessDict',
  177. name: '业务字典',
  178. component: () => import('../views/system/dict/businessDict.vue')
  179. },
  180. {
  181. path: 'businessAdd',
  182. name: '业务字典新增',
  183. component: () => import('../views/system/dict/businessAdd.vue')
  184. },
  185. {
  186. path: 'salesman',
  187. name: '业务员管理',
  188. component: () => import('../views/system/salesman/index.vue')
  189. },
  190. {
  191. path: 'salesmanAdd',
  192. name: '业务员修改',
  193. component: () => import('../views/system/salesman/add.vue')
  194. },
  195. {
  196. path: 'userAdd',
  197. name: '用户管理新增',
  198. component: () => import('../views/system/user/add.vue')
  199. },
  200. {
  201. path: 'dept',
  202. name: '组织架构',
  203. component: () => import('../views/system/dept/index.vue')
  204. },
  205. {
  206. path: 'deptAdd',
  207. name: '组织架构新增',
  208. component: () => import('../views/system/dept/add.vue')
  209. },
  210. {
  211. path: 'xiamenList',
  212. name: '发酵机列表',
  213. component: () => import('../views/equipment/xiamenList.vue')
  214. },
  215. {
  216. path: 'warpKnitting/:id',
  217. name: '经编机',
  218. component: () => import('../views/equipment/warpKnitting.vue')
  219. },
  220. {
  221. path: 'fermentator/:id',
  222. name: '发酵机',
  223. component: () => import('../views/equipment/fermentator.vue')
  224. },
  225. {
  226. path: 'dryer/:id',
  227. name: '干燥机',
  228. component: () => import('../views/equipment/dryer.vue')
  229. },
  230. {
  231. path: 'injectionMolding/:id',
  232. name: '注塑机',
  233. component: () => import('../views/equipment/injectionMolding.vue')
  234. },
  235. {
  236. path: 'assemble/:id',
  237. name: '组装机',
  238. component: () => import('../views/equipment/assemble.vue')
  239. },
  240. {
  241. path: 'packer/:id',
  242. name: '包装机',
  243. component: () => import('../views/equipment/packer.vue')
  244. },
  245. {
  246. path: 'process',
  247. name: '采购单',
  248. component: () => import('../views/process/index.vue')
  249. },
  250. {
  251. path: 'supplierConfig',
  252. name: '供应商',
  253. component: () => import('../views/procurementManagement/supplierConfig/index.vue')
  254. },
  255. {
  256. path: 'supplierConfigAdd',
  257. name: '供应商详情',
  258. component: () => import('../views/procurementManagement/supplierConfig/add.vue')
  259. },
  260. {
  261. path: 'priceConfig',
  262. name: '供应价格',
  263. component: () => import('../views/procurementManagement/priceConfig/index.vue')
  264. },
  265. {
  266. path: 'priceConfigAdd',
  267. name: '供应价格新增',
  268. component: () => import('../views/procurementManagement/priceConfig/add.vue')
  269. },
  270. {
  271. path: 'priceConfigEdit',
  272. name: '供应价格编辑',
  273. component: () => import('../views/procurementManagement/priceConfig/edit.vue')
  274. },
  275. {
  276. path: 'subscribe',
  277. name: '申购',
  278. component: () => import('../views/procurementManagement/subscribe/index.vue')
  279. },
  280. {
  281. path: 'subscribeAdd',
  282. name: '申购新增',
  283. component: () => import('../views/procurementManagement/subscribe/add.vue')
  284. },
  285. {
  286. path: 'procureList',
  287. name: '待采购',
  288. component: () => import('../views/procurementManagement/procureList/index.vue')
  289. },
  290. {
  291. path: 'procureListAdd',
  292. name: '采购提交',
  293. component: () => import('../views/procurementManagement/procureList/add.vue')
  294. },
  295. {
  296. path: 'purchased',
  297. name: '已采购',
  298. component: () => import('../views/procurementManagement/purchased/index.vue')
  299. },
  300. {
  301. path: 'purchasedOne',
  302. name: '采购合同',
  303. component: () => import('../views/procurementManagement/purchasedOne/index.vue')
  304. },
  305. {
  306. path: 'purchasedAdd',
  307. name: '已采购详情',
  308. component: () => import('../views/procurementManagement/purchased/add.vue')
  309. },
  310. //仓库模块
  311. {
  312. path: 'warehouseConfig',
  313. name: '仓库维护',
  314. component: () => import('../views/warehouse/warehouseConfig/index.vue')
  315. },
  316. {
  317. path: 'warehouseConfigAdd',
  318. name: '仓库新增',
  319. component: () => import('../views/warehouse/warehouseConfig/add.vue')
  320. },
  321. {
  322. path: 'manualOutbound',
  323. name: '手动出库',
  324. component: () => import('../views/purchase-sales/inbound-outbound/manualOutbound/index.vue')
  325. },
  326. {
  327. path: 'manualOutboundAdd',
  328. name: '手动出库新增',
  329. component: () => import('../views/purchase-sales/inbound-outbound/manualOutbound/add.vue')
  330. },
  331. {
  332. path: 'manualInbound',
  333. name: '手动入库',
  334. component: () => import('../views/purchase-sales/inbound-outbound/manualInbound/index.vue'),
  335. addPath: '/manualInboundAdd'
  336. },
  337. {
  338. path: 'manualInboundAdd',
  339. name: '手动入库新增',
  340. component: () => import('../views/purchase-sales/inbound-outbound/manualInbound/add.vue')
  341. },
  342. {
  343. path: 'waitInbound',
  344. name: '待入库',
  345. component: () => import('../views/purchase-sales/inbound-outbound/waitInbound/index.vue')
  346. },
  347. {
  348. path: 'waitInboundAdd',
  349. name: '待入库>入库',
  350. component: () => import('../views/purchase-sales/inbound-outbound/waitInbound/add.vue')
  351. },
  352. {
  353. path: 'waitOutbound',
  354. name: '待出库',
  355. component: () => import('../views/purchase-sales/inbound-outbound/waitOutbound/index.vue')
  356. },
  357. {
  358. path: 'waitOutboundAdd',
  359. name: '待出库>出库',
  360. component: () => import('../views/purchase-sales/inbound-outbound/waitOutbound/add.vue')
  361. },
  362. {
  363. path: 'transferWarehouse',
  364. name: '调仓',
  365. component: () => import('../views/purchase-sales/inbound-outbound/transferWarehouse/index.vue')
  366. },
  367. {
  368. path: 'sendTransferWarehouse',
  369. name: '发起调仓',
  370. component: () => import('../views/purchase-sales/inbound-outbound/transferWarehouse/add.vue')
  371. },
  372. {
  373. path: 'inventoryQuery',
  374. name: '库存查询',
  375. component: () => import('../views/purchase-sales/inventory-management/inventoryQuery/index.vue')
  376. },
  377. {
  378. path: 'outInList',
  379. name: '出入库流水',
  380. component: () => import('../views/purchase-sales/inventory-management/outInList/index.vue')
  381. },
  382. // *********************** MES模块路由 ***********************
  383. {
  384. path: 'processes',
  385. name: '工序管理',
  386. component: () => import('../views/MES/processes/index.vue')
  387. },
  388. {
  389. path: 'processesAdd',
  390. name: '工序管理详情',
  391. component: () => import('../views/MES/processes/add.vue')
  392. },
  393. {
  394. path: 'workOrder',
  395. name: '工单管理',
  396. component: () => import('../views/MES/workOrder/index.vue')
  397. },
  398. {
  399. path: 'workOrderAdd',
  400. name: '工单管理新增',
  401. component: () => import('../views/MES/workOrder/add.vue')
  402. },
  403. {
  404. path: 'workOrderDtl',
  405. name: '工单管理详情',
  406. component: () => import('../views/MES/workOrder/details.vue')
  407. },
  408. {
  409. path: 'plan',
  410. name: '生产计划',
  411. component: () => import('../views/MES/produce/plan/index.vue')
  412. },
  413. {
  414. path: 'planAdd',
  415. name: '生产计划新增',
  416. component: () => import('../views/MES/produce/plan/add.vue')
  417. },
  418. {
  419. path: 'planDtl',
  420. name: '生产计划详情',
  421. component: () => import('../views/MES/produce/plan/details.vue')
  422. },
  423. {
  424. path: 'task',
  425. name: '生产任务',
  426. component: () => import('../views/MES/produce/task/index.vue')
  427. },
  428. {
  429. path: 'taskAdd',
  430. name: '生产任务新增',
  431. component: () => import('../views/MES/produce/task/add.vue')
  432. },
  433. {
  434. path: 'productionReport',
  435. name: '生产报工',
  436. component: () => import('../views/MES/productionReport/index.vue')
  437. },
  438. {
  439. path: 'productionReportAdd',
  440. name: '生产报工添加',
  441. component: () => import('../views/MES/productionReport/add.vue')
  442. },
  443. // {
  444. // path: 'reportWorkAdd',
  445. // name: '生产报工新增',
  446. // component: () => import('../views/MES/produceManage/reportWork/add.vue')
  447. // },
  448. // {
  449. // path: 'reportWorkDtl',
  450. // name: '生产报工详情',
  451. // component: () => import('../views/MES/produceManage/reportWork/details.vue')
  452. // },
  453. {
  454. path: 'lineSide',
  455. name: '线边管理',
  456. component: () => import('../views/MES/produceManage/lineSide/index.vue')
  457. },
  458. {
  459. path: 'lineSideAdd',
  460. name: '线边管理新增',
  461. component: () => import('../views/MES/produceManage/lineSide/add.vue')
  462. },
  463. {
  464. path: 'lineSideEdit',
  465. name: '线边处理',
  466. component: () => import('../views/MES/produceManage/lineSide/edit.vue')
  467. },
  468. {
  469. path: 'completeProject',
  470. name: '完工入库',
  471. component: () => import('../views/MES/produceManage/completeProject/index.vue')
  472. },
  473. {
  474. path: 'completeProjectAdd',
  475. name: '完工入库新增',
  476. component: () => import('../views/MES/produceManage/completeProject/add.vue')
  477. },
  478. {
  479. path: 'completeProjectAdd1',
  480. name: 'form表单测试',
  481. component: () => import('../views/MES/produceManage/completeProject1/index.vue')
  482. },
  483. //邮箱模块
  484. {
  485. path: 'email',
  486. name: '邮箱',
  487. component: () => import('../views/email/index.vue')
  488. },
  489. {
  490. path: 'inbox',
  491. name: '收件箱',
  492. component: () => import('../views/email/inbox.vue')
  493. },
  494. {
  495. path: 'mailDtl',
  496. name: '邮件详情',
  497. component: () => import('../views/email/mailDtl.vue')
  498. },
  499. {
  500. path: 'write',
  501. name: '写邮件',
  502. component: () => import('../views/email/write.vue')
  503. },
  504. {
  505. path: 'announcement',
  506. name: '公告',
  507. component: () => import('../views/message/announcement.vue')
  508. },
  509. {
  510. path: "sacnTest",
  511. name: "扫码页面",
  512. component: () => import("../views/system/sacn/index.vue"),
  513. },
  514. {
  515. path: "productLibrary",
  516. name: "产品库",
  517. component: () => import("../views/product-material/companyProduct/index.vue"),
  518. },
  519. {
  520. path: "productLibraryAdd",
  521. name: "产品详情",
  522. component: () => import("../views/product-material/companyProduct/add.vue"),
  523. },
  524. // 尔泓公司产品库
  525. // {
  526. // path: "ehsdCompanyProduct",
  527. // name: "公司产品库",
  528. // component: () => import("../views/product-material/companyProduct/index.vue"),
  529. // },
  530. // {
  531. // path: "ehsdCompanyProductAdd",
  532. // name: "公司产品库详情",
  533. // component: () => import("../views/product-material/companyProduct/add.vue"),
  534. // },
  535. // 尔泓客户产品库
  536. {
  537. path: "ehsdCustomProduct",
  538. name: "客户产品库",
  539. component: () => import("../views/product-material/customProduct/index.vue"),
  540. },
  541. {
  542. path: "ehsdCustomProductAdd",
  543. name: "客户产品库详情",
  544. component: () => import("../views/product-material/customProduct/add.vue"),
  545. },
  546. {
  547. path: "historyMessage",
  548. name: "历史消息",
  549. component: () => import("../views/message/historyMessage.vue"),
  550. },
  551. {
  552. path: "coming",
  553. name: "开发中",
  554. component: () => import("../views/home/coming.vue"),
  555. },
  556. ]
  557. },
  558. ]
  559. routes[2].children = routes[2].children.concat(routesLXF()).concat(jxskRouter())
  560. const router = createRouter({
  561. history: createWebHashHistory(),
  562. routes
  563. })
  564. export default router