router.config.js 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753
  1. // eslint-disable-next-line
  2. import {
  3. UserLayout,
  4. BasicLayout,
  5. RouteView,
  6. BlankLayout,
  7. PageView
  8. } from '@/layouts'
  9. export const asyncRouterMap = [
  10. {
  11. path: '/',
  12. name: 'index',
  13. component: BasicLayout,
  14. meta: { title: '首页' },
  15. redirect: '/home',
  16. children: [
  17. {
  18. path: '/home',
  19. name: 'home',
  20. redirect: '/home',
  21. component: PageView,
  22. meta: {
  23. title: '首页',
  24. icon: 'home'
  25. },
  26. hideChildrenInMenu: true,
  27. children: [
  28. {
  29. path: '/home',
  30. name: 'home',
  31. component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
  32. meta: {
  33. title: '首页',
  34. icon: 'home',
  35. hide: true
  36. }
  37. }
  38. ]
  39. },
  40. {
  41. path: '/changePwd',
  42. name: 'changePwd',
  43. component: () => import(/* webpackChunkName: "home" */ '@/views/user/ChangePwd'),
  44. meta: {
  45. title: '修改密码',
  46. icon: 'home'
  47. },
  48. hidden: true
  49. },
  50. // 销售管理
  51. {
  52. path: '/salesManagement',
  53. redirect: '/salesManagement/salesQuery',
  54. component: PageView,
  55. meta: {
  56. title: '销售管理',
  57. icon: 'account-book'
  58. // permission: 'M_salesManagement'
  59. },
  60. children: [
  61. {
  62. path: '/salesManagement/salesQuery',
  63. redirect: '/salesManagement/salesQuery/list',
  64. name: 'salesQuery',
  65. component: RouteView,
  66. meta: {
  67. title: '销售单查询',
  68. icon: 'monitor'
  69. // permission: 'M_salesQuery_list'
  70. },
  71. hideChildrenInMenu: true,
  72. children: [
  73. {
  74. path: 'list',
  75. name: 'salesQueryList',
  76. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/list.vue'),
  77. meta: {
  78. title: '销售单列表',
  79. icon: 'menu',
  80. hidden: true
  81. // permission: 'M_salesQuery_list'
  82. }
  83. },
  84. {
  85. path: 'detail/:id',
  86. name: 'salesDetail',
  87. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/salesDetail.vue'),
  88. meta: {
  89. title: '销售单明细',
  90. icon: 'read',
  91. hidden: true
  92. // permission: 'M_salesDetail'
  93. }
  94. },
  95. {
  96. path: 'salesNew',
  97. name: 'salesNew',
  98. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/salesNew.vue'),
  99. meta: {
  100. title: '新建销售单',
  101. icon: 'plus-square',
  102. hidden: true
  103. // permission: 'M_salesNew'
  104. }
  105. },
  106. {
  107. path: 'salesEdit/:id',
  108. name: 'salesEdit',
  109. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/salesNew.vue'),
  110. meta: {
  111. title: '修改销售单',
  112. icon: 'edit',
  113. hidden: true
  114. // permission: 'M_salesNew'
  115. }
  116. }
  117. ]
  118. },
  119. {
  120. path: '/salesManagement/outboundOrder',
  121. redirect: '/salesManagement/outboundOrder/list',
  122. name: 'outboundOrder',
  123. component: RouteView,
  124. meta: {
  125. title: '出库',
  126. icon: 'export'
  127. // permission: 'M_outboundOrder'
  128. },
  129. hideChildrenInMenu: true,
  130. children: [
  131. {
  132. path: 'list',
  133. name: 'outboundOrderList',
  134. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/list.vue'),
  135. meta: {
  136. title: '出库列表',
  137. icon: 'profile',
  138. hidden: true
  139. // permission: 'M_outboundOrder_list'
  140. }
  141. },
  142. {
  143. path: 'detail/:id',
  144. name: 'outboundOrderDetail',
  145. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/detail.vue'),
  146. meta: {
  147. title: '出库明细',
  148. icon: 'file-done',
  149. hidden: true
  150. // permission: 'B_goodsManage_edit'
  151. }
  152. }
  153. ]
  154. },
  155. {
  156. path: '/salesManagement/urgentItemsOffset',
  157. redirect: '/salesManagement/urgentItemsOffset/list',
  158. name: 'urgentItemsOffset',
  159. component: RouteView,
  160. meta: {
  161. title: '急件冲减',
  162. icon: 'rocket'
  163. // permission: 'M_goodsManage_list'
  164. },
  165. hideChildrenInMenu: true,
  166. children: [
  167. {
  168. path: '/salesManagement/urgentItemsOffset/list',
  169. name: 'urgentItemsOffsetList',
  170. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/urgentItemsOffset/list.vue'),
  171. meta: {
  172. title: '急件冲减列表',
  173. icon: 'profile',
  174. hidden: true
  175. // permission: 'M_goodsManage_list'
  176. }
  177. },
  178. {
  179. path: '/salesManagement/urgentItemsOffset/detail/:id',
  180. name: 'urgentItemsOffsetDetail',
  181. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/urgentItemsOffset/detail.vue'),
  182. meta: {
  183. title: '急件冲减详情',
  184. icon: 'snippets',
  185. hidden: true
  186. // permission: 'B_goodsManage_edit'
  187. }
  188. }
  189. ]
  190. },
  191. {
  192. path: '/salesManagement/salesReturn',
  193. redirect: '/salesManagement/salesReturn/list',
  194. name: 'salesReturn',
  195. component: RouteView,
  196. meta: {
  197. title: '销售退货',
  198. icon: 'fund'
  199. // permission: 'M_salesReturn_list'
  200. },
  201. hideChildrenInMenu: true,
  202. children: [
  203. {
  204. path: 'list',
  205. name: 'salesReturnList',
  206. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/list.vue'),
  207. meta: {
  208. title: '退货单列表',
  209. icon: 'menu',
  210. hidden: true
  211. // permission: 'M_salesReturn_list'
  212. }
  213. },
  214. {
  215. path: 'detail/:id',
  216. name: 'salesReturnDetail',
  217. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/detail.vue'),
  218. meta: {
  219. title: '退货单明细',
  220. icon: 'read',
  221. hidden: true
  222. // permission: 'M_salesReturn'
  223. }
  224. },
  225. {
  226. path: 'salesReturnNew',
  227. name: 'salesReturnNew',
  228. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnNew.vue'),
  229. meta: {
  230. title: '新建退货单',
  231. icon: 'plus-square',
  232. hidden: true
  233. // permission: 'M_salesReturnNew'
  234. }
  235. },
  236. {
  237. path: 'salesReturnEdit/:id',
  238. name: 'salesReturnEdit',
  239. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnNew.vue'),
  240. meta: {
  241. title: '修改退货单',
  242. icon: 'edit',
  243. hidden: true
  244. // permission: 'M_salesReturnEdit'
  245. }
  246. }
  247. ]
  248. },
  249. {
  250. path: '/salesManagement/quotation',
  251. redirect: '/salesManagement/quotation/list',
  252. name: 'quotation',
  253. component: RouteView,
  254. meta: {
  255. title: '报价单',
  256. icon: 'idcard'
  257. // permission: 'M_goodsManage_list'
  258. },
  259. hideChildrenInMenu: true,
  260. children: [
  261. {
  262. path: 'list',
  263. name: 'quotationList',
  264. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/list.vue'),
  265. meta: {
  266. title: '报价单列表',
  267. icon: 'profile',
  268. hidden: true
  269. // permission: 'M_goodsManage_list'
  270. }
  271. },
  272. {
  273. path: 'add',
  274. name: 'quotationAdd',
  275. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/edit.vue'),
  276. meta: {
  277. title: '新增报价单',
  278. icon: 'profile',
  279. hidden: true
  280. // permission: 'M_goodsManage_list'
  281. }
  282. },
  283. {
  284. path: 'edit/:id',
  285. name: 'quotationEdit',
  286. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/edit.vue'),
  287. meta: {
  288. title: '编辑报价单',
  289. icon: 'profile',
  290. hidden: true
  291. // permission: 'M_goodsManage_list'
  292. }
  293. },
  294. {
  295. path: 'detail/:id',
  296. name: 'quotationDetail',
  297. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/detail.vue'),
  298. meta: {
  299. title: '报价单详情',
  300. icon: 'profile',
  301. hidden: true
  302. // permission: 'M_goodsManage_list'
  303. }
  304. }
  305. ]
  306. },
  307. {
  308. path: '/salesManagement/backorder',
  309. redirect: '/salesManagement/backorder/list',
  310. name: 'backorder',
  311. component: RouteView,
  312. meta: {
  313. title: '缺货单',
  314. icon: 'idcard'
  315. // permission: 'M_goodsManage_list'
  316. },
  317. hideChildrenInMenu: true,
  318. children: [
  319. {
  320. path: 'list',
  321. name: 'backorderList',
  322. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/list.vue'),
  323. meta: {
  324. title: '缺货单列表',
  325. icon: 'profile',
  326. hidden: true
  327. // permission: 'M_goodsManage_list'
  328. }
  329. },
  330. {
  331. path: 'detail/:id',
  332. name: 'backorderDetail',
  333. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/detail.vue'),
  334. meta: {
  335. title: '缺货单详情',
  336. icon: 'profile',
  337. hidden: true
  338. // permission: 'M_goodsManage_list'
  339. }
  340. }
  341. ]
  342. },
  343. {
  344. path: '/salesManagement/giftRecord',
  345. redirect: '/salesManagement/giftRecord/list',
  346. name: 'giftRecord',
  347. component: RouteView,
  348. meta: {
  349. title: '赠品记录',
  350. icon: 'idcard'
  351. // permission: 'M_goodsManage_list'
  352. },
  353. hideChildrenInMenu: true,
  354. children: [
  355. {
  356. path: 'list',
  357. name: 'giftRecordList',
  358. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/giftRecord/list.vue'),
  359. meta: {
  360. title: '赠品记录列表',
  361. icon: 'profile',
  362. hidden: true
  363. // permission: 'M_goodsManage_list'
  364. }
  365. }
  366. ]
  367. }
  368. ]
  369. },
  370. // 库存管理
  371. {
  372. path: '/inventoryManagement',
  373. redirect: '/inventoryManagement/inventoryQuery',
  374. component: PageView,
  375. meta: {
  376. title: '库存管理',
  377. icon: 'shop'
  378. // permission: 'M_shop'
  379. },
  380. children: [
  381. {
  382. path: '/inventoryManagement/inventoryQuery',
  383. redirect: '/inventoryManagement/inventoryQuery/list',
  384. name: 'inventoryQuery',
  385. component: RouteView,
  386. meta: {
  387. title: '库存查询',
  388. icon: 'monitor'
  389. // permission: 'M_goodsManage_list'
  390. },
  391. hideChildrenInMenu: true,
  392. children: [
  393. {
  394. path: 'list',
  395. name: 'inventoryQueryList',
  396. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
  397. meta: {
  398. title: '库存列表',
  399. icon: 'monitor',
  400. hidden: true
  401. // permission: 'M_goodsManage_list'
  402. }
  403. },
  404. {
  405. path: 'warehouseDetail/:id',
  406. name: 'inventoryQueryWarehouseDetail',
  407. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
  408. meta: {
  409. title: '出入库明细',
  410. icon: 'monitor',
  411. hidden: true
  412. // permission: 'B_goodsManage_edit'
  413. }
  414. }
  415. ]
  416. },
  417. {
  418. path: '/inventoryManagement/inventoryWarning',
  419. name: 'inventoryWarningList',
  420. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
  421. meta: {
  422. title: '库存预警',
  423. icon: 'alert'
  424. // permission: 'M_goodsShelves_0'
  425. }
  426. },
  427. {
  428. path: '/inventoryManagement/satelliteWarehouseInventory',
  429. name: 'satelliteWarehouseInventoryList',
  430. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/satelliteWarehouseInventory/list.vue'),
  431. meta: {
  432. title: '卫星仓库存',
  433. icon: 'flag'
  434. // permission: 'M_goodsShelves_0'
  435. }
  436. },
  437. {
  438. path: '/inventoryManagement/warehouse',
  439. redirect: '/inventoryManagement/warehouse/list',
  440. name: 'warehouse',
  441. component: RouteView,
  442. meta: {
  443. title: '仓库管理',
  444. icon: 'deployment-unit'
  445. // permission: 'M_goodsManage_list'
  446. },
  447. hideChildrenInMenu: true,
  448. children: [
  449. {
  450. path: 'list',
  451. name: 'warehouseList',
  452. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouse/list.vue'),
  453. meta: {
  454. title: '仓库列表',
  455. icon: 'deployment-unit',
  456. hidden: true
  457. // permission: 'M_goodsManage_list'
  458. }
  459. },
  460. {
  461. path: '/inventoryManagement/storingLocation/:id',
  462. name: 'storingLocationList',
  463. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouse/storingLocation/list.vue'),
  464. meta: {
  465. title: '仓位列表',
  466. icon: 'deployment-unit',
  467. hidden: true
  468. // permission: 'B_goodsManage_edit'
  469. }
  470. }
  471. ]
  472. },
  473. {
  474. path: '/inventoryManagement/inventoryChecking',
  475. redirect: '/inventoryManagement/inventoryChecking/list',
  476. name: 'inventoryChecking',
  477. component: RouteView,
  478. meta: {
  479. title: '库存盘点',
  480. icon: 'monitor'
  481. // permission: 'M_goodsManage_list'
  482. },
  483. hideChildrenInMenu: true,
  484. children: [
  485. {
  486. path: 'list',
  487. name: 'inventoryCheckingList',
  488. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/list.vue'),
  489. meta: {
  490. title: '库存盘点列表',
  491. icon: 'monitor',
  492. hidden: true
  493. // permission: 'M_goodsManage_list'
  494. }
  495. },
  496. {
  497. path: 'overall/:id',
  498. name: 'inventoryCheckingOverall',
  499. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/overall.vue'),
  500. meta: {
  501. title: '盘点人盘点【全盘】',
  502. icon: 'monitor',
  503. hidden: true
  504. // permission: 'B_goodsManage_edit'
  505. }
  506. },
  507. {
  508. path: 'selfDisk/:id',
  509. name: 'inventoryCheckingSelfDisk',
  510. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/selfDisk.vue'),
  511. meta: {
  512. title: '盘点人盘点【自选盘点】',
  513. icon: 'monitor',
  514. hidden: true
  515. // permission: 'B_goodsManage_edit'
  516. }
  517. },
  518. {
  519. path: 'detail/:id',
  520. name: 'inventoryCheckingDetail',
  521. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/detail.vue'),
  522. meta: {
  523. title: '库存盘点详情',
  524. icon: 'monitor',
  525. hidden: true
  526. // permission: 'B_goodsManage_edit'
  527. }
  528. },
  529. {
  530. path: 'makeInventory/:id',
  531. name: 'inventoryCheckingMakeInventory',
  532. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventory.vue'),
  533. meta: {
  534. title: '待盘点【盘点】',
  535. icon: 'monitor',
  536. hidden: true
  537. // permission: 'B_goodsManage_edit'
  538. }
  539. },
  540. {
  541. path: 'makeInventory/detail/:id', /* 待盘点【盘点】详情 */
  542. name: 'inventoryCheckingMakeInventoryDetail',
  543. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventoryDetail.vue'),
  544. meta: {
  545. title: '库存盘点详情',
  546. icon: 'monitor',
  547. hidden: true
  548. // permission: 'B_goodsManage_edit'
  549. }
  550. },
  551. {
  552. path: 'supervisionAudit/:id',
  553. name: 'inventoryCheckingSupervisionAudit',
  554. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/supervisionAudit.vue'),
  555. meta: {
  556. title: '监盘审核',
  557. icon: 'monitor',
  558. hidden: true
  559. // permission: 'B_goodsManage_edit'
  560. }
  561. },
  562. {
  563. path: 'supervisionAudit/detail/:id', /* 监盘审核详情 */
  564. name: 'inventoryCheckingSupervisionAuditDetail',
  565. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/supervisionAuditDetail.vue'),
  566. meta: {
  567. title: '库存盘点详情',
  568. icon: 'monitor',
  569. hidden: true
  570. // permission: 'B_goodsManage_edit'
  571. }
  572. },
  573. {
  574. path: 'financialAudit/detail/:id', /* 财务审核详情 */
  575. name: 'inventoryCheckingFinancialAuditDetail',
  576. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/financialAuditDetail.vue'),
  577. meta: {
  578. title: '库存盘点详情',
  579. icon: 'monitor',
  580. hidden: true
  581. // permission: 'B_goodsManage_edit'
  582. }
  583. }
  584. ]
  585. }
  586. ]
  587. },
  588. // 调拨管理
  589. {
  590. path: '/allocationManagement',
  591. redirect: '/allocationManagement/warehouseAllocation',
  592. component: PageView,
  593. meta: {
  594. title: '调拨管理',
  595. icon: 'cluster'
  596. // permission: 'M_shop'
  597. },
  598. children: [
  599. {
  600. path: '/allocationManagement/warehouseAllocation',
  601. redirect: '/allocationManagement/warehouseAllocation/list',
  602. name: 'warehouseAllocation',
  603. component: RouteView,
  604. meta: {
  605. title: '仓库调拨',
  606. icon: 'gateway'
  607. // permission: 'M_goodsManage_list'
  608. },
  609. hideChildrenInMenu: true,
  610. children: [
  611. {
  612. path: '/allocationManagement/warehouseAllocation/list',
  613. name: 'warehouseAllocationList',
  614. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/list.vue'),
  615. meta: {
  616. title: '仓库调拨列表',
  617. icon: 'gateway',
  618. hidden: true
  619. // permission: 'M_goodsManage_list'
  620. }
  621. },
  622. {
  623. path: '/allocationManagement/warehouseAllocation/add',
  624. name: 'warehouseAllocationAdd',
  625. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/edit.vue'),
  626. meta: {
  627. title: '新增仓库调拨',
  628. icon: 'gateway',
  629. hidden: true
  630. // permission: 'B_goodsManage_edit'
  631. }
  632. },
  633. {
  634. path: '/allocationManagement/warehouseAllocation/edit/:id',
  635. name: 'warehouseAllocationEdit',
  636. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/edit.vue'),
  637. meta: {
  638. title: '编辑仓库调拨',
  639. icon: 'gateway',
  640. hidden: true
  641. // permission: 'B_goodsManage_edit'
  642. }
  643. },
  644. {
  645. path: '/allocationManagement/warehouseAllocation/detail/:id',
  646. name: 'warehouseAllocationEdit',
  647. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/detail.vue'),
  648. meta: {
  649. title: '仓库调拨详情',
  650. icon: 'gateway',
  651. hidden: true
  652. // permission: 'B_goodsManage_edit'
  653. }
  654. }
  655. ]
  656. },
  657. {
  658. path: '/allocationManagement/chainTransferIn',
  659. redirect: '/allocationManagement/chainTransferIn/list',
  660. name: 'chainTransferIn',
  661. component: RouteView,
  662. meta: {
  663. title: '连锁调入',
  664. icon: 'cluster'
  665. // permission: 'M_goodsManage_list'
  666. },
  667. hideChildrenInMenu: true,
  668. children: [
  669. {
  670. path: '/allocationManagement/chainTransferIn/list',
  671. name: 'chainTransferInList',
  672. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/list.vue'),
  673. meta: {
  674. title: '连锁调入列表',
  675. icon: 'cluster',
  676. hidden: true
  677. // permission: 'M_goodsManage_list'
  678. }
  679. },
  680. {
  681. path: '/allocationManagement/chainTransferIn/add',
  682. name: 'chainTransferInAdd',
  683. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/edit.vue'),
  684. meta: {
  685. title: '新增连锁调入',
  686. icon: 'cluster',
  687. hidden: true
  688. // permission: 'B_goodsManage_edit'
  689. }
  690. },
  691. {
  692. path: '/allocationManagement/chainTransferIn/edit/:id',
  693. name: 'chainTransferInEdit',
  694. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/edit.vue'),
  695. meta: {
  696. title: '编辑连锁调入',
  697. icon: 'cluster',
  698. hidden: true
  699. // permission: 'B_goodsManage_edit'
  700. }
  701. },
  702. {
  703. path: '/allocationManagement/chainTransferIn/detail/:id',
  704. name: 'chainTransferInEdit',
  705. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/detail.vue'),
  706. meta: {
  707. title: '连锁调入详情',
  708. icon: 'cluster',
  709. hidden: true
  710. // permission: 'B_goodsManage_edit'
  711. }
  712. }
  713. ]
  714. },
  715. {
  716. path: '/allocationManagement/chainTransferOut',
  717. redirect: '/allocationManagement/chainTransferOut/list',
  718. name: 'chainTransferOut',
  719. component: RouteView,
  720. meta: {
  721. title: '连锁调出',
  722. icon: 'pull-request'
  723. // permission: 'M_goodsManage_list'
  724. },
  725. hideChildrenInMenu: true,
  726. children: [
  727. {
  728. path: '/allocationManagement/chainTransferOut/list',
  729. name: 'chainTransferOutList',
  730. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/list.vue'),
  731. meta: {
  732. title: '连锁调出列表',
  733. icon: 'pull-request',
  734. hidden: true
  735. // permission: 'M_goodsManage_list'
  736. }
  737. },
  738. {
  739. path: '/allocationManagement/chainTransferOut/add',
  740. name: 'chainTransferOutAdd',
  741. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  742. meta: {
  743. title: '新增连锁调出',
  744. icon: 'pull-request',
  745. hidden: true
  746. // permission: 'B_goodsManage_edit'
  747. }
  748. },
  749. {
  750. path: '/allocationManagement/chainTransferOut/edit/:id',
  751. name: 'chainTransferOutEdit',
  752. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  753. meta: {
  754. title: '编辑连锁调出',
  755. icon: 'pull-request',
  756. hidden: true
  757. // permission: 'B_goodsManage_edit'
  758. }
  759. },
  760. {
  761. path: '/allocationManagement/chainTransferOut/detail/:id',
  762. name: 'chainTransferOutEdit',
  763. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/detail.vue'),
  764. meta: {
  765. title: '连锁调出详情',
  766. icon: 'pull-request',
  767. hidden: true
  768. // permission: 'B_goodsManage_edit'
  769. }
  770. }
  771. ]
  772. },
  773. {
  774. path: '/allocationManagement/storeTransferOut',
  775. redirect: '/allocationManagement/storeTransferOut/list',
  776. name: 'storeTransferOut',
  777. component: RouteView,
  778. meta: {
  779. title: '店内调出',
  780. icon: 'gateway'
  781. // permission: 'M_goodsManage_list'
  782. },
  783. hideChildrenInMenu: true,
  784. children: [
  785. {
  786. path: '/allocationManagement/storeTransferOut/list',
  787. name: 'storeTransferOutList',
  788. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/list.vue'),
  789. meta: {
  790. title: '店内调出列表',
  791. icon: 'gateway',
  792. hidden: true
  793. // permission: 'M_goodsManage_list'
  794. }
  795. },
  796. {
  797. path: '/allocationManagement/storeTransferOut/add',
  798. name: 'storeTransferOutAdd',
  799. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  800. meta: {
  801. title: '新增店内调出',
  802. icon: 'gateway',
  803. hidden: true
  804. // permission: 'B_goodsManage_edit'
  805. }
  806. },
  807. {
  808. path: '/allocationManagement/storeTransferOut/edit/:id',
  809. name: 'storeTransferOutEdit',
  810. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  811. meta: {
  812. title: '编辑店内调出',
  813. icon: 'gateway',
  814. hidden: true
  815. // permission: 'B_goodsManage_edit'
  816. }
  817. },
  818. {
  819. path: '/allocationManagement/storeTransferOut/detail/:id',
  820. name: 'storeTransferOutEdit',
  821. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/detail.vue'),
  822. meta: {
  823. title: '店内调出详情',
  824. icon: 'gateway',
  825. hidden: true
  826. // permission: 'B_goodsManage_edit'
  827. }
  828. }
  829. ]
  830. }
  831. ]
  832. },
  833. // 采购管理
  834. {
  835. path: '/purchasingManagement',
  836. redirect: '/purchasingManagement/purchaseOrder',
  837. component: PageView,
  838. meta: {
  839. title: '采购管理',
  840. icon: 'money-collect'
  841. // permission: 'M_shop'
  842. },
  843. children: [
  844. {
  845. path: '/purchasingManagement/purchaseOrder',
  846. redirect: '/purchasingManagement/purchaseOrder/list',
  847. name: 'purchaseOrder',
  848. component: RouteView,
  849. meta: {
  850. title: '采购单管理',
  851. icon: 'money-collect'
  852. // permission: 'M_goodsManage_list'
  853. },
  854. hideChildrenInMenu: true,
  855. children: [
  856. {
  857. path: '/purchasingManagement/purchaseOrder/list',
  858. name: 'purchaseOrderList',
  859. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/list.vue'),
  860. meta: {
  861. title: '采购单列表',
  862. icon: 'money-collect',
  863. hidden: true
  864. // permission: 'M_goodsManage_list'
  865. }
  866. },
  867. {
  868. path: '/purchasingManagement/purchaseOrder/add',
  869. name: 'purchaseOrderAdd',
  870. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/edit.vue'),
  871. meta: {
  872. title: '新增采购单',
  873. icon: 'money-collect',
  874. hidden: true
  875. // permission: 'B_goodsManage_edit'
  876. }
  877. },
  878. {
  879. path: '/purchasingManagement/purchaseOrder/edit/:id',
  880. name: 'purchaseOrderEdit',
  881. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/edit.vue'),
  882. meta: {
  883. title: '编辑采购单',
  884. icon: 'money-collect',
  885. hidden: true
  886. // permission: 'B_goodsManage_edit'
  887. }
  888. },
  889. {
  890. path: '/purchasingManagement/purchaseOrder/detail/:id',
  891. name: 'purchaseOrderDetail',
  892. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/detail.vue'),
  893. meta: {
  894. title: '采购单详情',
  895. icon: 'money-collect',
  896. hidden: true
  897. // permission: 'B_goodsManage_edit'
  898. }
  899. },
  900. {
  901. path: '/purchasingManagement/purchaseOrder/warehousing/:id',
  902. name: 'purchaseOrderWarehousing',
  903. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/warehousing.vue'),
  904. meta: {
  905. title: '入库',
  906. icon: 'money-collect',
  907. hidden: true
  908. // permission: 'B_goodsManage_edit'
  909. }
  910. }
  911. ]
  912. }
  913. ]
  914. },
  915. // 散件管理
  916. {
  917. path: '/bulkManagement',
  918. redirect: '/bulkManagement/purchaseOrder',
  919. component: PageView,
  920. meta: {
  921. title: '散件管理',
  922. icon: 'gold'
  923. // permission: 'M_shop'
  924. },
  925. children: [
  926. {
  927. path: '/bulkManagement/bulkWarehousingOrder',
  928. redirect: '/bulkManagement/bulkWarehousingOrder/list',
  929. name: 'bulkWarehousingOrder',
  930. component: RouteView,
  931. meta: {
  932. title: '散件入库',
  933. icon: 'gold'
  934. // permission: 'M_goodsManage_list'
  935. },
  936. hideChildrenInMenu: true,
  937. children: [
  938. {
  939. path: '/bulkManagement/bulkWarehousingOrder/list',
  940. name: 'bulkWarehousingOrderList',
  941. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/list.vue'),
  942. meta: {
  943. title: '散件入库单列表',
  944. icon: 'gold',
  945. hidden: true
  946. // permission: 'M_goodsManage_list'
  947. }
  948. },
  949. {
  950. path: '/bulkManagement/bulkWarehousingOrder/add',
  951. name: 'bulkWarehousingOrderAdd',
  952. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  953. meta: {
  954. title: '新增散件入库单',
  955. icon: 'gold',
  956. hidden: true
  957. // permission: 'B_goodsManage_edit'
  958. }
  959. },
  960. {
  961. path: '/bulkManagement/bulkWarehousingOrder/edit/:id',
  962. name: 'bulkWarehousingOrderEdit',
  963. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  964. meta: {
  965. title: '编辑散件入库单',
  966. icon: 'gold',
  967. hidden: true
  968. // permission: 'B_goodsManage_edit'
  969. }
  970. },
  971. {
  972. path: '/bulkManagement/bulkWarehousingOrder/detail/:id',
  973. name: 'bulkWarehousingOrderDetail',
  974. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/detail.vue'),
  975. meta: {
  976. title: '散件入库单详情',
  977. icon: 'gold',
  978. hidden: true
  979. // permission: 'B_goodsManage_edit'
  980. }
  981. },
  982. {
  983. path: '/bulkManagement/bulkWarehousingOrder/warehousing/:id',
  984. name: 'bulkWarehousingOrderWarehousing',
  985. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/warehousing.vue'),
  986. meta: {
  987. title: '入库',
  988. icon: 'gold',
  989. hidden: true
  990. // permission: 'B_goodsManage_edit'
  991. }
  992. }
  993. ]
  994. }
  995. ]
  996. },
  997. // 产品管理
  998. {
  999. path: '/productManagement',
  1000. redirect: '/productManagement/productInfo',
  1001. component: PageView,
  1002. meta: {
  1003. title: '产品管理',
  1004. icon: 'shopping'
  1005. // permission: 'M_shop'
  1006. },
  1007. children: [
  1008. {
  1009. path: '/productManagement/productInfo',
  1010. redirect: '/productManagement/productInfo/list',
  1011. name: 'productInfo',
  1012. component: RouteView,
  1013. meta: {
  1014. title: '产品信息管理',
  1015. icon: 'file-text'
  1016. // permission: 'M_goodsManage_list'
  1017. },
  1018. hideChildrenInMenu: true,
  1019. children: [
  1020. {
  1021. path: '/productManagement/productInfo/list',
  1022. name: 'productInfoList',
  1023. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/list.vue'),
  1024. meta: {
  1025. title: '产品信息列表',
  1026. icon: 'file-text',
  1027. hidden: true
  1028. // permission: 'M_goodsManage_list'
  1029. }
  1030. },
  1031. {
  1032. path: '/productManagement/productInfo/add',
  1033. name: 'productInfoAdd',
  1034. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  1035. meta: {
  1036. title: '新增产品',
  1037. icon: 'file-text',
  1038. hidden: true
  1039. // permission: 'B_goodsManage_edit'
  1040. }
  1041. },
  1042. {
  1043. path: '/productManagement/productInfo/edit/:id',
  1044. name: 'productInfoEdit',
  1045. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  1046. meta: {
  1047. title: '编辑产品',
  1048. icon: 'file-text',
  1049. hidden: true
  1050. // permission: 'B_goodsManage_edit'
  1051. }
  1052. }
  1053. ]
  1054. },
  1055. {
  1056. path: '/productManagement/productBrand',
  1057. redirect: '/productManagement/productBrand/list',
  1058. name: 'productBrand',
  1059. component: RouteView,
  1060. meta: {
  1061. title: '产品品牌管理',
  1062. icon: 'sketch'
  1063. // permission: 'M_goodsManage_list'
  1064. },
  1065. hideChildrenInMenu: true,
  1066. children: [
  1067. {
  1068. path: '/productManagement/productBrand/list',
  1069. name: 'productBrandList',
  1070. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productBrand/list.vue'),
  1071. meta: {
  1072. title: '产品品牌列表',
  1073. icon: 'sketch',
  1074. hidden: true
  1075. // permission: 'M_goodsManage_list'
  1076. }
  1077. }
  1078. ]
  1079. },
  1080. {
  1081. path: '/productManagement/productCategory',
  1082. redirect: '/productManagement/productCategory/list',
  1083. name: 'productCategory',
  1084. component: RouteView,
  1085. meta: {
  1086. title: '产品类别管理',
  1087. icon: 'sliders'
  1088. // permission: 'M_goodsManage_list'
  1089. },
  1090. hideChildrenInMenu: true,
  1091. children: [
  1092. {
  1093. path: '/productManagement/productCategory/list',
  1094. name: 'productCategoryList',
  1095. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productCategory/list.vue'),
  1096. meta: {
  1097. title: '产品类别列表',
  1098. icon: 'sliders',
  1099. hidden: true
  1100. // permission: 'M_goodsManage_list'
  1101. }
  1102. }
  1103. ]
  1104. }
  1105. ]
  1106. },
  1107. // 客户管理
  1108. {
  1109. path: '/customerManagement',
  1110. redirect: '/customerManagement/customerInfo',
  1111. component: PageView,
  1112. meta: {
  1113. title: '客户管理',
  1114. icon: 'shopping'
  1115. // permission: 'M_shop'
  1116. },
  1117. children: [
  1118. {
  1119. path: '/customerManagement/customerInfo',
  1120. redirect: '/customerManagement/customerInfo/list',
  1121. name: 'customerInfo',
  1122. component: RouteView,
  1123. meta: {
  1124. title: '客户管理',
  1125. icon: 'idcard'
  1126. // permission: 'M_goodsManage_list'
  1127. },
  1128. hideChildrenInMenu: true,
  1129. children: [
  1130. {
  1131. path: '/customerManagement/customerInfo/list',
  1132. name: 'customerInfoList',
  1133. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/list.vue'),
  1134. meta: {
  1135. title: '客户列表',
  1136. icon: 'profile',
  1137. hidden: true
  1138. // permission: 'M_goodsManage_list'
  1139. }
  1140. },
  1141. {
  1142. path: '/customerManagement/customerInfo/add',
  1143. name: 'customerInfoAdd',
  1144. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  1145. meta: {
  1146. title: '新增客户',
  1147. icon: 'plus-circle',
  1148. hidden: true
  1149. // permission: 'B_goodsManage_edit'
  1150. }
  1151. },
  1152. {
  1153. path: '/customerManagement/customerInfo/edit/:id',
  1154. name: 'customerInfoEdit',
  1155. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  1156. meta: {
  1157. title: '编辑客户',
  1158. icon: 'edit',
  1159. hidden: true
  1160. // permission: 'B_goodsManage_edit'
  1161. }
  1162. }
  1163. ]
  1164. },
  1165. {
  1166. path: '/customerManagement/customerTypeManagement',
  1167. redirect: '/customerManagement/customerTypeManagement/list',
  1168. name: 'customerTypeManagement',
  1169. component: RouteView,
  1170. meta: {
  1171. title: '客户类型管理',
  1172. icon: 'idcard'
  1173. // permission: 'M_goodsManage_list'
  1174. },
  1175. hideChildrenInMenu: true,
  1176. children: [
  1177. {
  1178. path: '/customerManagement/customerTypeManagement/list',
  1179. name: 'customerTypeManagementList',
  1180. component: () => import(/* webpackChunkName: "shop" */ '@/views/customerManagement/customerTypeManagement/list.vue'),
  1181. meta: {
  1182. title: '客户类型列表',
  1183. icon: 'idcard',
  1184. hidden: true
  1185. // permission: 'M_goodsManage_list'
  1186. }
  1187. }
  1188. ]
  1189. }
  1190. ]
  1191. },
  1192. // 财务管理
  1193. {
  1194. path: '/financialManagement',
  1195. redirect: '/financialManagement/warehousingAudit',
  1196. component: PageView,
  1197. meta: {
  1198. title: '财务管理',
  1199. icon: 'gold'
  1200. // permission: 'M_shop'
  1201. },
  1202. children: [
  1203. {
  1204. path: '/financialManagement/warehousingAudit',
  1205. redirect: '/financialManagement/warehousingAudit/list',
  1206. name: 'warehousingAudit',
  1207. component: RouteView,
  1208. meta: {
  1209. title: '入库审核',
  1210. icon: 'gold'
  1211. // permission: 'M_goodsManage_list'
  1212. },
  1213. hideChildrenInMenu: true,
  1214. children: [
  1215. {
  1216. path: 'list',
  1217. name: 'warehousingAuditList',
  1218. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/list.vue'),
  1219. meta: {
  1220. title: '入库审核列表',
  1221. icon: 'gold',
  1222. hidden: true
  1223. // permission: 'M_goodsManage_list'
  1224. }
  1225. },
  1226. {
  1227. path: 'detail/:id',
  1228. name: 'warehousingAuditDetail',
  1229. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/detail.vue'),
  1230. meta: {
  1231. title: '入库审核详情',
  1232. icon: 'gold',
  1233. hidden: true
  1234. // permission: 'B_goodsManage_edit'
  1235. }
  1236. }
  1237. ]
  1238. },
  1239. {
  1240. path: '/financialManagement/inventoryReview',
  1241. redirect: '/financialManagement/inventoryReview/list',
  1242. name: 'inventoryReview',
  1243. component: RouteView,
  1244. meta: {
  1245. title: '盘点审核',
  1246. icon: 'gold'
  1247. // permission: 'M_goodsManage_list'
  1248. },
  1249. hideChildrenInMenu: true,
  1250. children: [
  1251. {
  1252. path: 'list',
  1253. name: 'inventoryReviewList',
  1254. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/list.vue'),
  1255. meta: {
  1256. title: '盘点审核列表',
  1257. icon: 'gold',
  1258. hidden: true
  1259. // permission: 'M_goodsManage_list'
  1260. }
  1261. },
  1262. {
  1263. path: 'detail/:id',
  1264. name: 'inventoryReviewDetail',
  1265. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/detail.vue'),
  1266. meta: {
  1267. title: '盘点审核详情',
  1268. icon: 'gold',
  1269. hidden: true
  1270. // permission: 'B_goodsManage_edit'
  1271. }
  1272. }
  1273. ]
  1274. },
  1275. {
  1276. path: '/financialManagement/financialPayment',
  1277. redirect: '/financialManagement/financialPayment/list',
  1278. name: 'financialPayment',
  1279. component: RouteView,
  1280. meta: {
  1281. title: '财务付款',
  1282. icon: 'gold'
  1283. // permission: 'M_goodsManage_list'
  1284. },
  1285. hideChildrenInMenu: true,
  1286. children: [
  1287. {
  1288. path: 'list',
  1289. name: 'financialPaymentList',
  1290. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialPayment/list.vue'),
  1291. meta: {
  1292. title: '财务付款列表',
  1293. icon: 'gold',
  1294. hidden: true
  1295. // permission: 'M_goodsManage_list'
  1296. }
  1297. }
  1298. ]
  1299. },
  1300. {
  1301. path: '/financialManagement/financialCollection',
  1302. redirect: '/financialManagement/financialCollection/list',
  1303. name: 'financialCollection',
  1304. component: RouteView,
  1305. meta: {
  1306. title: '财务收款',
  1307. icon: 'gold'
  1308. // permission: 'M_goodsManage_list'
  1309. },
  1310. hideChildrenInMenu: true,
  1311. children: [
  1312. {
  1313. path: 'list',
  1314. name: 'financialCollectionList',
  1315. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialCollection/list.vue'),
  1316. meta: {
  1317. title: '财务收款列表',
  1318. icon: 'gold',
  1319. hidden: true
  1320. // permission: 'M_goodsManage_list'
  1321. }
  1322. }
  1323. ]
  1324. },
  1325. {
  1326. path: '/financialManagement/expenseManagement',
  1327. redirect: '/financialManagement/expenseManagement/list',
  1328. name: 'expenseManagement',
  1329. component: RouteView,
  1330. meta: {
  1331. title: '费用管理',
  1332. icon: 'gold'
  1333. // permission: 'M_goodsManage_list'
  1334. },
  1335. hideChildrenInMenu: true,
  1336. children: [
  1337. {
  1338. path: 'list',
  1339. name: 'expenseManagementList',
  1340. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/list.vue'),
  1341. meta: {
  1342. title: '费用单列表',
  1343. icon: 'gold',
  1344. hidden: true
  1345. // permission: 'M_goodsManage_list'
  1346. }
  1347. },
  1348. {
  1349. path: 'add',
  1350. name: 'expenseManagementDetail',
  1351. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  1352. meta: {
  1353. title: '新增费用单',
  1354. icon: 'gold',
  1355. hidden: true
  1356. // permission: 'B_goodsManage_edit'
  1357. }
  1358. },
  1359. {
  1360. path: 'edit/:id',
  1361. name: 'expenseManagementDetail',
  1362. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  1363. meta: {
  1364. title: '编辑费用单',
  1365. icon: 'gold',
  1366. hidden: true
  1367. // permission: 'B_goodsManage_edit'
  1368. }
  1369. }
  1370. ]
  1371. },
  1372. {
  1373. path: '/financialManagement/companyReceivablePayable',
  1374. redirect: '/financialManagement/companyReceivablePayable/list',
  1375. name: 'companyReceivablePayable',
  1376. component: RouteView,
  1377. meta: {
  1378. title: '单位应收应付管理',
  1379. icon: 'gold'
  1380. // permission: 'M_goodsManage_list'
  1381. },
  1382. hideChildrenInMenu: true,
  1383. children: [
  1384. {
  1385. path: 'list',
  1386. name: 'companyReceivablePayableList',
  1387. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/list.vue'),
  1388. meta: {
  1389. title: '单位应收应付列表',
  1390. icon: 'gold',
  1391. hidden: true
  1392. // permission: 'M_goodsManage_list'
  1393. }
  1394. },
  1395. {
  1396. path: 'receipt/:id',
  1397. name: 'companyReceivablePayableReceipt',
  1398. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/receipt.vue'),
  1399. meta: {
  1400. title: '单位收款单',
  1401. icon: 'gold',
  1402. hidden: true
  1403. // permission: 'B_goodsManage_edit'
  1404. }
  1405. },
  1406. {
  1407. path: 'paymentSlip/:id',
  1408. name: 'companyReceivablePayablePaymentSlip',
  1409. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/paymentSlip.vue'),
  1410. meta: {
  1411. title: '单位付款单',
  1412. icon: 'gold',
  1413. hidden: true
  1414. // permission: 'B_goodsManage_edit'
  1415. }
  1416. },
  1417. {
  1418. path: 'detail/:id',
  1419. name: 'companyReceivablePayableDetail',
  1420. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/detail.vue'),
  1421. meta: {
  1422. title: '单位应收应付详情',
  1423. icon: 'gold',
  1424. hidden: true
  1425. // permission: 'B_goodsManage_edit'
  1426. }
  1427. }
  1428. ]
  1429. },
  1430. {
  1431. path: '/financialManagement/companyCollectionPayment',
  1432. redirect: '/financialManagement/companyCollectionPayment/list',
  1433. name: 'companyCollectionPayment',
  1434. component: RouteView,
  1435. meta: {
  1436. title: '单位收付款记录',
  1437. icon: 'gold'
  1438. // permission: 'M_goodsManage_list'
  1439. },
  1440. hideChildrenInMenu: true,
  1441. children: [
  1442. {
  1443. path: 'list',
  1444. name: 'companyCollectionPaymentList',
  1445. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/list.vue'),
  1446. meta: {
  1447. title: '单位收付款记录列表',
  1448. icon: 'gold',
  1449. hidden: true
  1450. // permission: 'M_goodsManage_list'
  1451. }
  1452. },
  1453. {
  1454. path: 'detail/:id',
  1455. name: 'companyCollectionPaymentDetail',
  1456. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/detail.vue'),
  1457. meta: {
  1458. title: '单位收付款记录详情',
  1459. icon: 'gold',
  1460. hidden: true
  1461. // permission: 'B_goodsManage_edit'
  1462. }
  1463. }
  1464. ]
  1465. },
  1466. {
  1467. path: '/financialManagement/withdrawalManagement',
  1468. redirect: '/financialManagement/withdrawalManagement/list',
  1469. name: 'withdrawalManagement',
  1470. component: RouteView,
  1471. meta: {
  1472. title: '提现管理',
  1473. icon: 'gold'
  1474. // permission: 'M_goodsManage_list'
  1475. },
  1476. hideChildrenInMenu: true,
  1477. children: [
  1478. {
  1479. path: 'list',
  1480. name: 'withdrawalManagementList',
  1481. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/withdrawalManagement/list.vue'),
  1482. meta: {
  1483. title: '提现管理列表',
  1484. icon: 'gold',
  1485. hidden: true
  1486. // permission: 'M_goodsManage_list'
  1487. }
  1488. }
  1489. ]
  1490. },
  1491. {
  1492. path: '/financialManagement/ledgerRecord',
  1493. redirect: '/financialManagement/ledgerRecord/list',
  1494. name: 'ledgerRecord',
  1495. component: RouteView,
  1496. meta: {
  1497. title: '分账记录',
  1498. icon: 'gold'
  1499. // permission: 'M_goodsManage_list'
  1500. },
  1501. hideChildrenInMenu: true,
  1502. children: [
  1503. {
  1504. path: 'list',
  1505. name: 'ledgerRecordList',
  1506. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/ledgerRecord/list.vue'),
  1507. meta: {
  1508. title: '分账记录列表',
  1509. icon: 'gold',
  1510. hidden: true
  1511. // permission: 'M_goodsManage_list'
  1512. }
  1513. }
  1514. ]
  1515. }
  1516. ]
  1517. },
  1518. // 基础资料
  1519. {
  1520. path: '/basicData',
  1521. redirect: '/basicData/supplierManagement',
  1522. component: PageView,
  1523. meta: {
  1524. title: '基础资料',
  1525. icon: 'idcard'
  1526. // permission: 'M_shop'
  1527. },
  1528. children: [
  1529. {
  1530. path: '/basicData/supplierManagement',
  1531. redirect: '/basicData/supplierManagement/list',
  1532. name: 'supplierManagement',
  1533. component: RouteView,
  1534. meta: {
  1535. title: '供应商管理',
  1536. icon: 'team'
  1537. // permission: 'M_goodsManage_list'
  1538. },
  1539. hideChildrenInMenu: true,
  1540. children: [
  1541. {
  1542. path: '/basicData/supplierManagement/list',
  1543. name: 'supplierManagementList',
  1544. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/supplierManagement/list.vue'),
  1545. meta: {
  1546. title: '供应商列表',
  1547. icon: 'team',
  1548. hidden: true
  1549. // permission: 'M_goodsManage_list'
  1550. }
  1551. },
  1552. {
  1553. path: '/basicData/supplierManagement/add',
  1554. name: 'supplierManagementAdd',
  1555. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/supplierManagement/edit.vue'),
  1556. meta: {
  1557. title: '新增供应商',
  1558. icon: 'team',
  1559. hidden: true
  1560. // permission: 'B_goodsManage_edit'
  1561. }
  1562. },
  1563. {
  1564. path: '/basicData/supplierManagement/edit/:id',
  1565. name: 'supplierManagementEdit',
  1566. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/supplierManagement/edit.vue'),
  1567. meta: {
  1568. title: '编辑供应商',
  1569. icon: 'team',
  1570. hidden: true
  1571. // permission: 'B_goodsManage_edit'
  1572. }
  1573. }
  1574. ]
  1575. },
  1576. {
  1577. path: '/basicData/expenseType',
  1578. redirect: '/basicData/expenseType/list',
  1579. name: 'expenseType',
  1580. component: RouteView,
  1581. meta: {
  1582. title: '费用类型管理',
  1583. icon: 'sliders'
  1584. // permission: 'M_goodsManage_list'
  1585. },
  1586. hideChildrenInMenu: true,
  1587. children: [
  1588. {
  1589. path: 'list',
  1590. name: 'expenseTypeList',
  1591. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/expenseType/list.vue'),
  1592. meta: {
  1593. title: '费用类型列表',
  1594. icon: 'sliders',
  1595. hidden: true
  1596. // permission: 'M_goodsManage_list'
  1597. }
  1598. }
  1599. ]
  1600. },
  1601. {
  1602. path: '/basicData/processSettings',
  1603. redirect: '/basicData/processSettings/setup',
  1604. name: 'processSettings',
  1605. component: RouteView,
  1606. meta: {
  1607. title: '业务流程设置',
  1608. icon: 'sliders'
  1609. // permission: 'M_goodsManage_list'
  1610. },
  1611. hideChildrenInMenu: true,
  1612. children: [
  1613. {
  1614. path: 'setup',
  1615. name: 'processSettingsSetup',
  1616. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/processSettings/setup.vue'),
  1617. meta: {
  1618. title: '业务流程设置',
  1619. icon: 'sliders',
  1620. hidden: true
  1621. // permission: 'M_goodsManage_list'
  1622. }
  1623. }
  1624. ]
  1625. }
  1626. ]
  1627. },
  1628. // auth
  1629. {
  1630. path: '/auth',
  1631. redirect: '/auth/userList',
  1632. component: PageView,
  1633. meta: {
  1634. title: '权限管理',
  1635. icon: 'lock',
  1636. permission: 'M_auth_0'
  1637. },
  1638. children: [
  1639. {
  1640. path: '/auth/userList',
  1641. name: 'powerUserList',
  1642. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  1643. meta: {
  1644. title: '用户管理',
  1645. icon: 'user',
  1646. permission: 'M_auth_userList'
  1647. }
  1648. },
  1649. {
  1650. path: '/auth/roleList',
  1651. name: 'powerRoleList',
  1652. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  1653. meta: {
  1654. title: '角色管理',
  1655. icon: 'solution',
  1656. permission: 'M_auth_roleList'
  1657. }
  1658. }
  1659. ]
  1660. },
  1661. // 系统设置
  1662. {
  1663. path: '/setting',
  1664. redirect: '/setting/userList',
  1665. component: PageView,
  1666. meta: {
  1667. title: '系统设置',
  1668. icon: 'setting',
  1669. permission: 'M_setting_0'
  1670. },
  1671. children: [
  1672. {
  1673. path: '/setting/dataDictionary',
  1674. name: 'powerDD',
  1675. component: () => import(/* webpackChunkName: "setting" */
  1676. '@/views/power/dataDictionary/dataDictionary.vue'),
  1677. meta: {
  1678. title: '数据字典管理',
  1679. icon: 'database',
  1680. permission: 'M_sys_dataDictionary'
  1681. }
  1682. },
  1683. // {
  1684. // path: '/setting/register',
  1685. // name: 'powerRegister',
  1686. // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
  1687. // meta: {
  1688. // title: '参数管理',
  1689. // icon: 'key',
  1690. // permission: 'M_sys_register'
  1691. // }
  1692. // },
  1693. {
  1694. path: '/setting/OperateJournal',
  1695. name: 'powerOperateJournal',
  1696. component: () => import(/* webpackChunkName: "setting" */
  1697. '@/views/power/OperateJournal/OperateJournal.vue'),
  1698. meta: {
  1699. title: '操作日志',
  1700. icon: 'read',
  1701. permission: 'M_operateJournal'
  1702. }
  1703. }
  1704. ]
  1705. }
  1706. ]
  1707. },
  1708. {
  1709. path: '*',
  1710. redirect: '/404',
  1711. hidden: true
  1712. }
  1713. ]
  1714. /**
  1715. * 基础路由
  1716. * @type { *[] }
  1717. */
  1718. export const constantRouterMap = [
  1719. {
  1720. path: '/user',
  1721. component: UserLayout,
  1722. redirect: '/user/login',
  1723. hidden: true,
  1724. children: [
  1725. {
  1726. path: 'login',
  1727. name: 'login',
  1728. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  1729. },
  1730. {
  1731. path: 'register',
  1732. name: 'register',
  1733. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  1734. },
  1735. {
  1736. path: 'register-result',
  1737. name: 'registerResult',
  1738. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  1739. },
  1740. {
  1741. path: 'recover',
  1742. name: 'recover',
  1743. component: undefined
  1744. }
  1745. ]
  1746. },
  1747. {
  1748. path: '/404',
  1749. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  1750. }
  1751. ]