index.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  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. },
  38. {
  39. path: 'home',
  40. name: '我的中心',
  41. component: () => import('../views/home/index.vue')
  42. },
  43. {
  44. path: 'changePassword',
  45. name: '修改密码',
  46. component: () => import('../views/home/changePassword.vue')
  47. },
  48. {
  49. path: 'feedback',
  50. name: '我的反馈',
  51. component: () => import('../views/home/feedback.vue')
  52. },
  53. {
  54. path: 'feedbackSubmit',
  55. name: '我的反馈提交',
  56. component: () => import('../views/home/feedbackSubmit.vue')
  57. },
  58. {
  59. path: 'feedbackDtl',
  60. name: '我的反馈详情',
  61. component: () => import('../views/home/feedbackDtl.vue')
  62. },
  63. {
  64. path: 'message',
  65. name: '消息通知',
  66. component: () => import('../views/message/index.vue')
  67. },
  68. {
  69. path: 'messageList',
  70. name: '消息列表',
  71. component: () => import('../views/message/messageList.vue')
  72. },
  73. {
  74. path: 'iframWinfaster',
  75. name: '官网',
  76. component: () => import('../views/working/iframWinfaster.vue')
  77. },
  78. //公共模块
  79. {
  80. path: 'contractTemplateAdd',
  81. name: '销售合同模板新增',
  82. component: () => import('../views/commonModule/contractTemplate/add.vue')
  83. },
  84. {
  85. path: 'contractTemplate',
  86. name: '销售合同模板',
  87. component: () => import('../views/commonModule/contractTemplate/index.vue')
  88. },
  89. {
  90. path: 'multiCompanyConfig',
  91. name: '多公司配置',
  92. component: () => import('../views/commonModule/multiCompanyConfig/index.vue')
  93. },
  94. {
  95. path: 'multiCompanyConfigAdd',
  96. name: '多公司配置新增',
  97. component: () => import('../views/commonModule/multiCompanyConfig/add.vue')
  98. },
  99. //生产管理模块
  100. {
  101. path: 'bomAdd',
  102. name: 'BOM新增',
  103. component: () => import('../views/production/bom/add.vue')
  104. },
  105. {
  106. path: 'bom',
  107. name: 'BOM管理',
  108. component: () => import('../views/production/bom/index.vue')
  109. },
  110. {
  111. path: 'technology',
  112. name: '工艺管理',
  113. component: () => import('../views/production/technology/index.vue')
  114. },
  115. {
  116. path: 'technologyadd',
  117. name: '工艺管理新增',
  118. component: () => import('../views/production/technology/add.vue')
  119. },
  120. {
  121. path: 'workingProcedure',
  122. name: '工序管理',
  123. component: () => import('../views/production/workingProcedure/index.vue')
  124. },
  125. {
  126. path: 'workingProcedureAdd',
  127. name: '工序管理新增',
  128. component: () => import('../views/production/workingProcedure/add.vue')
  129. },
  130. {
  131. path: 'workshop',
  132. name: '车间配置',
  133. component: () => import('../views/production/workshop/index.vue')
  134. },
  135. {
  136. path: 'workshopAdd',
  137. name: '车间配置新增',
  138. component: () => import('../views/production/workshop/add.vue')
  139. },
  140. {
  141. path: 'factory',
  142. name: '产线配置',
  143. component: () => import('../views/production/factory/index.vue')
  144. },
  145. {
  146. path: 'factoryAdd',
  147. name: '产线配置新增',
  148. component: () => import('../views/production/factory/add.vue')
  149. },
  150. //系统管理
  151. {
  152. path: 'tenantDict',
  153. name: '租户字典',
  154. component: () => import('../views/system/dict/tenantDict.vue')
  155. },
  156. {
  157. path: 'tenantAdd',
  158. name: '租户字典新增',
  159. component: () => import('../views/system/dict/tenantAdd.vue')
  160. },
  161. {
  162. path: 'businessDict',
  163. name: '业务字典',
  164. component: () => import('../views/system/dict/businessDict.vue')
  165. },
  166. {
  167. path: 'businessAdd',
  168. name: '业务字典新增',
  169. component: () => import('../views/system/dict/businessAdd.vue')
  170. },
  171. {
  172. path: 'user',
  173. name: '用户管理',
  174. component: () => import('../views/system/user/index.vue')
  175. },
  176. {
  177. path: 'userAdd',
  178. name: '用户管理新增',
  179. component: () => import('../views/system/user/add.vue')
  180. },
  181. {
  182. path: 'dept',
  183. name: '组织架构',
  184. component: () => import('../views/system/dept/index.vue')
  185. },
  186. {
  187. path: 'deptAdd',
  188. name: '组织架构新增',
  189. component: () => import('../views/system/dept/add.vue')
  190. },
  191. {
  192. path: 'xiamenList',
  193. name: '发酵机列表',
  194. component: () => import('../views/equipment/xiamenList.vue')
  195. },
  196. {
  197. path: 'warpKnitting/:id',
  198. name: '经编机',
  199. component: () => import('../views/equipment/warpKnitting.vue')
  200. },
  201. {
  202. path: 'fermentator/:id',
  203. name: '发酵机',
  204. component: () => import('../views/equipment/fermentator.vue')
  205. },
  206. {
  207. path: 'dryer/:id',
  208. name: '干燥机',
  209. component: () => import('../views/equipment/dryer.vue')
  210. },
  211. {
  212. path: 'process',
  213. name: '采购单',
  214. component: () => import('../views/process/index.vue')
  215. },
  216. {
  217. path: 'supplierConfig',
  218. name: '供应商',
  219. component: () => import('../views/procurementManagement/supplierConfig/index.vue')
  220. },
  221. {
  222. path: 'supplierConfigAdd',
  223. name: '供应商详情',
  224. component: () => import('../views/procurementManagement/supplierConfig/add.vue')
  225. },
  226. {
  227. path: 'priceConfig',
  228. name: '供应价格',
  229. component: () => import('../views/procurementManagement/priceConfig/index.vue')
  230. },
  231. {
  232. path: 'priceConfigAdd',
  233. name: '供应价格新增',
  234. component: () => import('../views/procurementManagement/priceConfig/add.vue')
  235. },
  236. {
  237. path: 'priceConfigEdit',
  238. name: '供应价格编辑',
  239. component: () => import('../views/procurementManagement/priceConfig/edit.vue')
  240. },
  241. {
  242. path: 'subscribe',
  243. name: '申购',
  244. component: () => import('../views/procurementManagement/subscribe/index.vue')
  245. },
  246. {
  247. path: 'subscribeAdd',
  248. name: '申购新增',
  249. component: () => import('../views/procurementManagement/subscribe/add.vue')
  250. },
  251. {
  252. path: 'procureList',
  253. name: '待采购',
  254. component: () => import('../views/procurementManagement/procureList/index.vue')
  255. },
  256. {
  257. path: 'procureListAdd',
  258. name: '采购提交',
  259. component: () => import('../views/procurementManagement/procureList/add.vue')
  260. },
  261. {
  262. path: 'purchased',
  263. name: '已采购',
  264. component: () => import('../views/procurementManagement/purchased/index.vue')
  265. },
  266. {
  267. path: 'purchasedAdd',
  268. name: '已采购详情',
  269. component: () => import('../views/procurementManagement/purchased/add.vue')
  270. },
  271. //仓库模块
  272. {
  273. path: 'warehouseConfig',
  274. name: '仓库维护',
  275. component: () => import('../views/warehouse/warehouseConfig/index.vue')
  276. },
  277. {
  278. path: 'warehouseConfigAdd',
  279. name: '仓库新增',
  280. component: () => import('../views/warehouse/warehouseConfig/add.vue')
  281. },
  282. {
  283. path: 'manualOutbound',
  284. name: '手动出库',
  285. component: () => import('../views/purchase-sales/inbound-outbound/manualOutbound/index.vue')
  286. },
  287. {
  288. path: 'manualOutboundAdd',
  289. name: '手动出库新增',
  290. component: () => import('../views/purchase-sales/inbound-outbound/manualOutbound/add.vue')
  291. },
  292. {
  293. path: 'manualInbound',
  294. name: '手动入库',
  295. component: () => import('../views/purchase-sales/inbound-outbound/manualInbound/index.vue'),
  296. addPath: '/manualInboundAdd'
  297. },
  298. {
  299. path: 'manualInboundAdd',
  300. name: '手动入库新增',
  301. component: () => import('../views/purchase-sales/inbound-outbound/manualInbound/add.vue')
  302. },
  303. {
  304. path: 'waitInbound',
  305. name: '待入库',
  306. component: () => import('../views/purchase-sales/inbound-outbound/waitInbound/index.vue')
  307. },
  308. {
  309. path: 'waitInboundAdd',
  310. name: '待入库>入库',
  311. component: () => import('../views/purchase-sales/inbound-outbound/waitInbound/add.vue')
  312. },
  313. {
  314. path: 'waitOutbound',
  315. name: '待出库',
  316. component: () => import('../views/purchase-sales/inbound-outbound/waitOutbound/index.vue')
  317. },
  318. {
  319. path: 'waitOutboundAdd',
  320. name: '待出库>出库',
  321. component: () => import('../views/purchase-sales/inbound-outbound/waitOutbound/add.vue')
  322. },
  323. {
  324. path: 'transferWarehouse',
  325. name: '调仓',
  326. component: () => import('../views/purchase-sales/inbound-outbound/transferWarehouse/index.vue')
  327. },
  328. {
  329. path: 'sendTransferWarehouse',
  330. name: '发起调仓',
  331. component: () => import('../views/purchase-sales/inbound-outbound/transferWarehouse/add.vue')
  332. },
  333. {
  334. path: 'inventoryQuery',
  335. name: '库存查询',
  336. component: () => import('../views/purchase-sales/inventory-management/inventoryQuery/index.vue')
  337. },
  338. {
  339. path: 'outInList',
  340. name: '出入库流水',
  341. component: () => import('../views/purchase-sales/inventory-management/outInList/index.vue')
  342. },
  343. // *********************** MES模块路由 ***********************
  344. {
  345. path: 'workOrder',
  346. name: '工单管理',
  347. component: () => import('../views/MES/workOrder/index.vue')
  348. },
  349. {
  350. path: 'workOrderAdd',
  351. name: '工单管理新增',
  352. component: () => import('../views/MES/workOrder/add.vue')
  353. },
  354. {
  355. path: 'workOrderDtl',
  356. name: '工单管理详情',
  357. component: () => import('../views/MES/workOrder/details.vue')
  358. },
  359. {
  360. path: 'plan',
  361. name: '生产计划',
  362. component: () => import('../views/MES/produce/plan/index.vue')
  363. },
  364. {
  365. path: 'planAdd',
  366. name: '生产计划新增',
  367. component: () => import('../views/MES/produce/plan/add.vue')
  368. },
  369. {
  370. path: 'planDtl',
  371. name: '生产计划详情',
  372. component: () => import('../views/MES/produce/plan/details.vue')
  373. },
  374. {
  375. path: 'task',
  376. name: '生产任务',
  377. component: () => import('../views/MES/produce/task/index.vue')
  378. },
  379. {
  380. path: 'taskAdd',
  381. name: '生产任务新增',
  382. component: () => import('../views/MES/produce/task/add.vue')
  383. },
  384. {
  385. path: 'reportWork',
  386. name: '生产报工',
  387. component: () => import('../views/MES/produceManage/reportWork/index.vue')
  388. },
  389. {
  390. path: 'reportWorkAdd',
  391. name: '生产报工新增',
  392. component: () => import('../views/MES/produceManage/reportWork/add.vue')
  393. },
  394. {
  395. path: 'reportWorkDtl',
  396. name: '生产报工详情',
  397. component: () => import('../views/MES/produceManage/reportWork/details.vue')
  398. },
  399. {
  400. path: 'lineSide',
  401. name: '线边管理',
  402. component: () => import('../views/MES/produceManage/lineSide/index.vue')
  403. },
  404. {
  405. path: 'lineSideAdd',
  406. name: '线边管理新增',
  407. component: () => import('../views/MES/produceManage/lineSide/add.vue')
  408. },
  409. {
  410. path: 'lineSideEdit',
  411. name: '线边处理',
  412. component: () => import('../views/MES/produceManage/lineSide/edit.vue')
  413. },
  414. {
  415. path: 'completeProject',
  416. name: '完工入库',
  417. component: () => import('../views/MES/produceManage/completeProject/index.vue')
  418. },
  419. {
  420. path: 'completeProjectAdd',
  421. name: '完工入库新增',
  422. component: () => import('../views/MES/produceManage/completeProject/add.vue')
  423. },
  424. {
  425. path: 'completeProjectAdd1',
  426. name: 'form表单测试',
  427. component: () => import('../views/MES/produceManage/completeProject1/index.vue')
  428. },
  429. //邮箱模块
  430. {
  431. path: 'email',
  432. name: '邮箱',
  433. component: () => import('../views/email/index.vue')
  434. },
  435. {
  436. path: 'inbox',
  437. name: '收件箱',
  438. component: () => import('../views/email/inbox.vue')
  439. },
  440. {
  441. path: 'mailDtl',
  442. name: '邮件详情',
  443. component: () => import('../views/email/mailDtl.vue')
  444. },
  445. {
  446. path: 'write',
  447. name: '写邮件',
  448. component: () => import('../views/email/write.vue')
  449. },
  450. {
  451. path: "sacnTest",
  452. name: "扫码页面",
  453. component: () => import("../views/system/sacn/index.vue"),
  454. }
  455. ]
  456. },
  457. ]
  458. routes[2].children = routes[2].children.concat(routesLXF()).concat(jxskRouter())
  459. const router = createRouter({
  460. history: createWebHashHistory(),
  461. routes
  462. })
  463. export default router