router.config.js 77 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179
  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: {
  15. title: '首页'
  16. },
  17. redirect: '/home',
  18. children: [
  19. {
  20. path: '/home',
  21. name: 'home',
  22. redirect: '/home',
  23. component: PageView,
  24. meta: {
  25. title: '首页',
  26. icon: 'home'
  27. },
  28. hideChildrenInMenu: true,
  29. children: [{
  30. path: '/home',
  31. name: 'home',
  32. component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
  33. meta: {
  34. title: '首页',
  35. icon: 'home',
  36. hide: true
  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: '/productManagement',
  53. redirect: '/productManagement/productInfo',
  54. component: PageView,
  55. meta: {
  56. title: '产品管理',
  57. icon: 'shopping',
  58. permission: 'M_productManagement'
  59. },
  60. children: [
  61. {
  62. path: '/productManagement/productInfo',
  63. redirect: '/productManagement/productInfo/list',
  64. name: 'productInfo',
  65. component: RouteView,
  66. meta: {
  67. title: '产品列表',
  68. icon: 'gold',
  69. permission: 'M_productInfoList'
  70. },
  71. hideChildrenInMenu: true,
  72. children: [
  73. {
  74. path: 'list',
  75. name: 'productInfoList',
  76. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/list.vue'),
  77. meta: {
  78. title: '产品列表',
  79. icon: 'gold',
  80. hidden: true,
  81. permission: 'M_productInfoList'
  82. }
  83. },
  84. {
  85. path: 'add',
  86. name: 'productInfoAdd',
  87. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  88. meta: {
  89. title: '新增产品',
  90. icon: 'gold',
  91. hidden: true
  92. // permission: 'B_goodsManage_edit'
  93. }
  94. },
  95. {
  96. path: 'edit/:id/:sn',
  97. name: 'productInfoEdit',
  98. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  99. meta: {
  100. title: '编辑产品',
  101. icon: 'gold',
  102. hidden: true
  103. // permission: 'B_goodsManage_edit'
  104. }
  105. }
  106. ]
  107. },
  108. {
  109. path: '/productManagement/productPricing',
  110. redirect: '/productManagement/productPricing/list',
  111. name: 'productPricing',
  112. component: RouteView,
  113. meta: {
  114. title: '产品定价',
  115. icon: 'transaction',
  116. permission: 'M_productPricingList'
  117. },
  118. hideChildrenInMenu: true,
  119. children: [
  120. {
  121. path: 'list',
  122. name: 'productPricingList',
  123. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productPricing/list.vue'),
  124. meta: {
  125. title: '产品定价列表',
  126. icon: 'transaction',
  127. hidden: true,
  128. permission: 'M_productPricingList'
  129. }
  130. }
  131. ]
  132. },
  133. {
  134. path: '/productManagement/priceChangeRecord',
  135. redirect: '/productManagement/priceChangeRecord/list',
  136. name: 'priceChangeRecord',
  137. component: RouteView,
  138. meta: {
  139. title: '价格变更记录',
  140. icon: 'profile',
  141. permission: 'M_priceChangeRecordList'
  142. },
  143. hideChildrenInMenu: true,
  144. children: [
  145. {
  146. path: 'list',
  147. name: 'priceChangeRecordList',
  148. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/priceChangeRecord/list.vue'),
  149. meta: {
  150. title: '价格变更记录列表',
  151. icon: 'profile',
  152. hidden: true,
  153. permission: 'M_priceChangeRecordList'
  154. }
  155. }
  156. ]
  157. },
  158. {
  159. path: '/productManagement/productLaunchAudit',
  160. redirect: '/productManagement/productLaunchAudit/list',
  161. name: 'productLaunchAudit',
  162. component: RouteView,
  163. meta: {
  164. title: '产品上线审核',
  165. icon: 'rise',
  166. permission: 'M_productLaunchAuditList'
  167. },
  168. hideChildrenInMenu: true,
  169. children: [
  170. {
  171. path: 'list',
  172. name: 'productLaunchAuditList',
  173. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productLaunchAudit/list.vue'),
  174. meta: {
  175. title: '产品上线审核列表',
  176. icon: 'rise',
  177. hidden: true,
  178. permission: 'M_productLaunchAuditList'
  179. }
  180. }
  181. ]
  182. },
  183. {
  184. path: '/productManagement/productOfflineAudit',
  185. redirect: '/productManagement/productOfflineAudit/list',
  186. name: 'productOfflineAudit',
  187. component: RouteView,
  188. meta: {
  189. title: '产品下线审核',
  190. icon: 'fall',
  191. permission: 'M_productOfflineAuditList'
  192. },
  193. hideChildrenInMenu: true,
  194. children: [
  195. {
  196. path: 'list',
  197. name: 'productOfflineAuditList',
  198. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productOfflineAudit/list.vue'),
  199. meta: {
  200. title: '产品下线审核列表',
  201. icon: 'fall',
  202. hidden: true,
  203. permission: 'M_productOfflineAuditList'
  204. }
  205. }
  206. ]
  207. },
  208. {
  209. path: '/productManagement/productLevel',
  210. redirect: '/productManagement/productLevel/list',
  211. name: 'productLevel',
  212. component: RouteView,
  213. meta: {
  214. title: '产品级别管理',
  215. icon: 'fund',
  216. permission: 'M_productLevelList'
  217. },
  218. hideChildrenInMenu: true,
  219. children: [
  220. {
  221. path: 'list',
  222. name: 'productLevelList',
  223. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productLevel/list.vue'),
  224. meta: {
  225. title: '产品级别列表',
  226. icon: 'fund',
  227. hidden: true,
  228. permission: 'M_productLevelList'
  229. }
  230. }
  231. ]
  232. },
  233. {
  234. path: '/productManagement/productBrand',
  235. redirect: '/productManagement/productBrand/list',
  236. name: 'productBrand',
  237. component: RouteView,
  238. meta: {
  239. title: '产品品牌管理',
  240. icon: 'file-ppt',
  241. permission: 'M_productBrandList'
  242. },
  243. hideChildrenInMenu: true,
  244. children: [
  245. {
  246. path: 'list',
  247. name: 'productBrandList',
  248. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productBrand/list.vue'),
  249. meta: {
  250. title: '产品品牌列表',
  251. icon: 'file-ppt',
  252. hidden: true,
  253. permission: 'M_productBrandList'
  254. }
  255. }
  256. ]
  257. },
  258. {
  259. path: '/productManagement/productCategory',
  260. redirect: '/productManagement/productCategory/list',
  261. name: 'productCategory',
  262. component: RouteView,
  263. meta: {
  264. title: '产品分类管理',
  265. icon: 'radar-chart',
  266. permission: 'M_productCategoryList'
  267. },
  268. hideChildrenInMenu: true,
  269. children: [
  270. {
  271. path: 'list',
  272. name: 'productCategoryList',
  273. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productCategory/list.vue'),
  274. meta: {
  275. title: '产品分类列表',
  276. icon: 'radar-chart',
  277. hidden: true,
  278. permission: 'M_productCategoryList'
  279. }
  280. }
  281. ]
  282. },
  283. {
  284. path: '/productManagement/productUniversal',
  285. redirect: '/productManagement/productUniversal/list',
  286. name: 'productUniversal',
  287. component: RouteView,
  288. meta: {
  289. title: '通用产品管理',
  290. icon: 'deployment-unit',
  291. permission: 'M_productUniversalList'
  292. },
  293. hideChildrenInMenu: true,
  294. children: [
  295. {
  296. path: 'list',
  297. name: 'productUniversalList',
  298. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productUniversal/list.vue'),
  299. meta: {
  300. title: '通用产品列表',
  301. icon: 'deployment-unit',
  302. hidden: true,
  303. permission: 'M_productUniversalList'
  304. }
  305. }
  306. ]
  307. }
  308. // 二期
  309. // {
  310. // path: '/productManagement/purchaseBaseLimit',
  311. // redirect: '/productManagement/purchaseBaseLimit/list',
  312. // name: 'purchaseBaseLimit',
  313. // component: RouteView,
  314. // meta: {
  315. // title: '产品采购基数限制',
  316. // icon: 'sliders'
  317. // // permission: 'M_goodsManage_list'
  318. // },
  319. // hideChildrenInMenu: true,
  320. // children: [
  321. // {
  322. // path: 'list',
  323. // name: 'purchaseBaseLimitList',
  324. // component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/purchaseBaseLimit/list.vue'),
  325. // meta: {
  326. // title: '采购基数限制列表',
  327. // icon: 'sliders',
  328. // hidden: true
  329. // // permission: 'M_goodsManage_list'
  330. // }
  331. // }
  332. // ]
  333. // }
  334. ]
  335. },
  336. // 经销商管理
  337. {
  338. path: '/dealerManagement',
  339. redirect: '/dealerManagement/marketingDivisionSet',
  340. component: PageView,
  341. meta: {
  342. title: '经销商管理',
  343. icon: 'idcard',
  344. permission: 'M_dealerManagement'
  345. },
  346. children: [
  347. {
  348. path: '/dealerManagement/marketingDivisionSet',
  349. redirect: '/dealerManagement/marketingDivisionSet/list',
  350. name: 'marketingDivisionSet',
  351. component: RouteView,
  352. meta: {
  353. title: '营销分区设置',
  354. icon: 'setting',
  355. permission: 'M_marketingDivisionSetList'
  356. },
  357. hideChildrenInMenu: true,
  358. children: [
  359. {
  360. path: 'list',
  361. name: 'marketingDivisionSetList',
  362. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/marketingDivisionSet/list.vue'),
  363. meta: {
  364. title: '营销分区列表',
  365. icon: 'setting',
  366. hidden: true,
  367. permission: 'M_marketingDivisionSetList'
  368. }
  369. }
  370. ]
  371. },
  372. {
  373. path: '/dealerManagement/merchantInfoManagement',
  374. redirect: '/dealerManagement/merchantInfoManagement/list',
  375. name: 'merchantInfoManagement',
  376. component: RouteView,
  377. meta: {
  378. title: '经销商资料管理',
  379. icon: 'file-text',
  380. permission: 'M_merchantInfoManagementList'
  381. },
  382. hideChildrenInMenu: true,
  383. children: [
  384. {
  385. path: 'list',
  386. name: 'merchantInfoManagementList',
  387. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/merchantInfoManagement/list.vue'),
  388. meta: {
  389. title: '经销商资料列表',
  390. icon: 'file-text',
  391. hidden: true,
  392. permission: 'M_merchantInfoManagementList'
  393. }
  394. },
  395. {
  396. path: 'add',
  397. name: 'merchantInfoManagementAdd',
  398. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/merchantInfoManagement/edit.vue'),
  399. meta: {
  400. title: '新增经销商',
  401. icon: 'file-text',
  402. hidden: true
  403. // permission: 'B_goodsManage_edit'
  404. }
  405. },
  406. {
  407. path: 'edit/:id',
  408. name: 'merchantInfoManagementEdit',
  409. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/merchantInfoManagement/edit.vue'),
  410. meta: {
  411. title: '编辑经销商',
  412. icon: 'file-text',
  413. hidden: true
  414. // permission: 'B_goodsManage_edit'
  415. }
  416. },
  417. {
  418. path: 'permissionSetting/:sn',
  419. name: 'merchantInfoManagementSet',
  420. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/merchantInfoManagement/permissionSetting.vue'),
  421. meta: {
  422. title: '经销权设置',
  423. icon: 'file-text',
  424. hidden: true
  425. // permission: 'B_goodsManage_edit'
  426. }
  427. }
  428. ]
  429. },
  430. {
  431. path: '/dealerManagement/dealerAccountManagement',
  432. redirect: '/dealerManagement/dealerAccountManagement/list',
  433. name: 'dealerAccountManagement',
  434. component: RouteView,
  435. meta: {
  436. title: '经销商账号管理',
  437. icon: 'team',
  438. permission: 'M_dealerAccountManagementList'
  439. },
  440. hideChildrenInMenu: true,
  441. children: [
  442. {
  443. path: 'list',
  444. name: 'dealerAccountManagementList',
  445. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/dealerAccountManagement/list.vue'),
  446. meta: {
  447. title: '经销商账号列表',
  448. icon: 'team',
  449. hidden: true,
  450. permission: 'M_dealerAccountManagementList'
  451. }
  452. }
  453. ]
  454. },
  455. {
  456. path: '/dealerManagement/dealerRelationshipBinding',
  457. redirect: '/dealerManagement/dealerRelationshipBinding/list',
  458. name: 'dealerRelationshipBinding',
  459. component: RouteView,
  460. meta: {
  461. title: '经销商关系绑定',
  462. icon: 'share-alt',
  463. permission: 'M_dealerRelationshipBindingList'
  464. },
  465. hideChildrenInMenu: true,
  466. children: [
  467. {
  468. path: 'list',
  469. name: 'dealerRelationshipBindingList',
  470. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/dealerRelationshipBinding/list.vue'),
  471. meta: {
  472. title: '经销商关系绑定列表',
  473. icon: 'share-alt',
  474. hidden: true,
  475. permission: 'M_dealerRelationshipBindingList'
  476. }
  477. }
  478. ]
  479. },
  480. {
  481. path: '/dealerManagement/rebateSettings',
  482. redirect: '/dealerManagement/rebateSettings/list',
  483. name: 'rebateSettings',
  484. component: RouteView,
  485. meta: {
  486. title: '差价归属设置',
  487. icon: 'stock',
  488. permission: 'M_rebateSettingsList'
  489. },
  490. hideChildrenInMenu: true,
  491. children: [
  492. {
  493. path: 'list',
  494. name: 'rebateSettingsList',
  495. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/rebateSettings/list.vue'),
  496. meta: {
  497. title: '差价归属设置列表',
  498. icon: 'stock',
  499. hidden: true,
  500. permission: 'M_rebateSettingsList'
  501. }
  502. }
  503. ]
  504. }
  505. ]
  506. },
  507. // 供应商管理
  508. {
  509. path: '/supplierManagement',
  510. redirect: '/supplierManagement/supplierInfo',
  511. component: PageView,
  512. meta: {
  513. title: '供应商管理',
  514. icon: 'team',
  515. permission: 'M_supplierManagement'
  516. },
  517. children: [
  518. {
  519. path: '/supplierManagement/supplierInfo',
  520. redirect: '/supplierManagement/supplierInfo/list',
  521. name: 'supplierInfo',
  522. component: RouteView,
  523. meta: {
  524. title: '供应商列表',
  525. icon: 'team',
  526. permission: 'M_supplierInfoList'
  527. },
  528. hideChildrenInMenu: true,
  529. children: [
  530. {
  531. path: 'list',
  532. name: 'supplierInfoList',
  533. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/list.vue'),
  534. meta: {
  535. title: '供应商列表',
  536. icon: 'team',
  537. hidden: true,
  538. permission: 'M_supplierInfoList'
  539. }
  540. },
  541. {
  542. path: 'add',
  543. name: 'supplierInfoAdd',
  544. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
  545. meta: {
  546. title: '新增供应商',
  547. icon: 'team',
  548. hidden: true
  549. // permission: 'B_goodsManage_edit'
  550. }
  551. },
  552. {
  553. path: 'edit/:id',
  554. name: 'supplierInfoEdit',
  555. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
  556. meta: {
  557. title: '编辑供应商',
  558. icon: 'team',
  559. hidden: true
  560. // permission: 'B_goodsManage_edit'
  561. }
  562. },
  563. {
  564. path: 'associatedProduct/:sn/:name',
  565. name: 'associatedProduct',
  566. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/associatedProduct/add.vue'),
  567. meta: {
  568. title: '关联产品',
  569. icon: 'team',
  570. hidden: true
  571. // permission: 'B_goodsManage_edit'
  572. }
  573. }
  574. ]
  575. },
  576. {
  577. path: '/supplierManagement/associatedProductDetails',
  578. redirect: '/supplierManagement/associatedProductDetails/list',
  579. name: 'associatedProductDetails',
  580. component: RouteView,
  581. meta: {
  582. title: '关联产品明细表',
  583. icon: 'build',
  584. permission: 'M_associatedProductDetailsList'
  585. },
  586. hideChildrenInMenu: true,
  587. children: [
  588. {
  589. path: 'list',
  590. name: 'associatedProductDetailsList',
  591. component: () => import(/* webpackChunkName: "shop" */ '@/views/supplierManagement/associatedProductDetails/list.vue'),
  592. meta: {
  593. title: '关联产品明细列表',
  594. icon: 'build',
  595. hidden: true,
  596. permission: 'M_associatedProductDetailsList'
  597. }
  598. }
  599. ]
  600. }
  601. ]
  602. },
  603. // 采购管理
  604. {
  605. path: '/purchasingManagement',
  606. redirect: '/purchasingManagement/purchaseOrder',
  607. component: PageView,
  608. meta: {
  609. title: '采购管理',
  610. icon: 'money-collect',
  611. permission: 'M_purchasingManagement'
  612. },
  613. children: [
  614. {
  615. path: '/purchasingManagement/bulkWarehousingOrder',
  616. redirect: '/purchasingManagement/bulkWarehousingOrder/list',
  617. name: 'bulkWarehousingOrder',
  618. component: RouteView,
  619. meta: {
  620. title: '散件入库',
  621. icon: 'gold',
  622. permission: 'M_bulkWarehousingOrderList'
  623. },
  624. hideChildrenInMenu: true,
  625. children: [
  626. {
  627. path: 'list',
  628. name: 'bulkWarehousingOrderList',
  629. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/bulkWarehousingOrder/list.vue'),
  630. meta: {
  631. title: '散件入库单列表',
  632. icon: 'gold',
  633. hidden: true,
  634. permission: 'M_bulkWarehousingOrderList'
  635. }
  636. },
  637. {
  638. path: 'add/:id/:sn',
  639. name: 'bulkWarehousingOrderAdd',
  640. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/bulkWarehousingOrder/edit.vue'),
  641. meta: {
  642. title: '新增散件入库单',
  643. icon: 'gold',
  644. hidden: true
  645. }
  646. },
  647. {
  648. path: 'edit/:id/:sn',
  649. name: 'bulkWarehousingOrderEdit',
  650. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/bulkWarehousingOrder/edit.vue'),
  651. meta: {
  652. title: '编辑散件入库单',
  653. icon: 'gold',
  654. hidden: true
  655. }
  656. }
  657. ]
  658. }
  659. ]
  660. },
  661. // 销售管理
  662. {
  663. path: '/salesManagement',
  664. redirect: '/salesManagement/salesQuery',
  665. component: PageView,
  666. meta: {
  667. title: '销售管理',
  668. icon: 'account-book',
  669. permission: 'M_salesManagement'
  670. },
  671. children: [
  672. {
  673. path: '/salesManagement/salesQuery',
  674. redirect: '/salesManagement/salesQuery/list',
  675. name: 'salesQuery',
  676. component: RouteView,
  677. meta: {
  678. title: '销售单查询',
  679. icon: 'monitor',
  680. permission: 'M_salesQueryList'
  681. },
  682. hideChildrenInMenu: true,
  683. children: [
  684. {
  685. path: 'list',
  686. name: 'salesQueryList',
  687. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/list.vue'),
  688. meta: {
  689. title: '销售单列表',
  690. icon: 'monitor',
  691. hidden: true,
  692. permission: 'M_salesQueryList'
  693. }
  694. },
  695. {
  696. path: 'detail/:sn',
  697. name: 'salesDetail',
  698. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/detail.vue'),
  699. meta: {
  700. title: '销售单详情',
  701. icon: 'monitor',
  702. hidden: true
  703. // permission: 'M_salesDetail'
  704. }
  705. },
  706. {
  707. path: 'add/:sn',
  708. name: 'salesAdd',
  709. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  710. meta: {
  711. title: '新增销售单',
  712. icon: 'monitor',
  713. hidden: true
  714. // permission: 'M_salesNew'
  715. }
  716. },
  717. {
  718. path: 'edit/:sn',
  719. name: 'salesEdit',
  720. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  721. meta: {
  722. title: '编辑销售单',
  723. icon: 'monitor',
  724. hidden: true
  725. // permission: 'M_salesNew'
  726. }
  727. },
  728. {
  729. path: 'waitDispatch/:salesBillSn/:dispatchBillSn',
  730. name: 'waitDispatch',
  731. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/waitDispatch/edit.vue'),
  732. meta: {
  733. title: '下推',
  734. icon: 'monitor',
  735. hidden: true
  736. // permission: 'M_salesNew'
  737. }
  738. }
  739. ]
  740. },
  741. {
  742. path: '/salesManagement/examineVerify',
  743. redirect: '/salesManagement/examineVerify/list',
  744. name: 'examineVerify',
  745. component: RouteView,
  746. meta: {
  747. title: '备货审核',
  748. icon: 'audit',
  749. permission: 'M_examineVerifyList'
  750. },
  751. hideChildrenInMenu: true,
  752. children: [
  753. {
  754. path: 'list',
  755. name: 'examineVerifyList',
  756. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/examineVerify/list.vue'),
  757. meta: {
  758. title: '备货审核列表',
  759. icon: 'audit',
  760. hidden: true,
  761. permission: 'M_examineVerifyList'
  762. }
  763. }
  764. ]
  765. },
  766. {
  767. path: '/salesManagement/pushOrderManagement',
  768. redirect: '/salesManagement/pushOrderManagement/list',
  769. name: 'pushOrderManagement',
  770. component: RouteView,
  771. meta: {
  772. title: '下推订单管理',
  773. icon: 'vertical-align-bottom',
  774. permission: 'M_pushOrderManagementList'
  775. },
  776. hideChildrenInMenu: true,
  777. children: [
  778. {
  779. path: 'list',
  780. name: 'pushOrderManagementList',
  781. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/pushOrderManagement/list.vue'),
  782. meta: {
  783. title: '下推订单管理列表',
  784. icon: 'vertical-align-bottom',
  785. hidden: true,
  786. permission: 'M_pushOrderManagementList'
  787. }
  788. },
  789. {
  790. path: 'detail/:sn/:type',
  791. name: 'pushOrderDetail',
  792. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/pushOrderManagement/detail.vue'),
  793. meta: {
  794. title: '下推订单详细',
  795. icon: 'vertical-align-bottom',
  796. hidden: true
  797. // permission: 'M_outboundList'
  798. }
  799. }
  800. ]
  801. },
  802. {
  803. path: '/salesManagement/outboundOrder',
  804. redirect: '/salesManagement/outboundOrder/list',
  805. name: 'outboundOrder',
  806. component: RouteView,
  807. meta: {
  808. title: '出库',
  809. icon: 'export',
  810. permission: 'M_outboundOrderList'
  811. },
  812. hideChildrenInMenu: true,
  813. children: [
  814. {
  815. path: 'list',
  816. name: 'outboundOrderList',
  817. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/list.vue'),
  818. meta: {
  819. title: '出库列表',
  820. icon: 'export',
  821. hidden: true,
  822. permission: 'M_outboundOrderList'
  823. }
  824. },
  825. {
  826. path: 'detail/:sn',
  827. name: 'outboundOrderDetail',
  828. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/detail.vue'),
  829. meta: {
  830. title: '出库明细',
  831. icon: 'export',
  832. hidden: true
  833. }
  834. }
  835. ]
  836. },
  837. {
  838. path: '/salesManagement/salesReturn',
  839. redirect: '/salesManagement/salesReturn/list',
  840. name: 'salesReturn',
  841. component: RouteView,
  842. meta: {
  843. title: '销售退货列表',
  844. icon: 'fund',
  845. permission: 'M_salesReturnList'
  846. },
  847. hideChildrenInMenu: true,
  848. children: [
  849. {
  850. path: 'list',
  851. name: 'salesReturnList',
  852. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/list.vue'),
  853. meta: {
  854. title: '退货单列表',
  855. icon: 'fund',
  856. hidden: true,
  857. permission: 'M_salesReturnList'
  858. }
  859. },
  860. {
  861. path: 'detail/:sn',
  862. name: 'salesReturnDetail',
  863. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/detail.vue'),
  864. meta: {
  865. title: '退货单详情',
  866. icon: 'fund',
  867. hidden: true
  868. // permission: 'M_salesReturn'
  869. }
  870. },
  871. {
  872. path: 'salesReturnGrabEdit/:sn/:buyerSn',
  873. name: 'salesReturnGrabEdit',
  874. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnGrabEdit.vue'),
  875. meta: {
  876. title: '编辑退货单(抓单)',
  877. icon: 'fund',
  878. hidden: true
  879. // permission: 'M_salesReturnGrabEdit'
  880. }
  881. },
  882. {
  883. path: 'salesReturnEdit/:sn/:buyerSn',
  884. name: 'salesReturnEdit',
  885. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnEdit.vue'),
  886. meta: {
  887. title: '编辑退货单(不抓单)',
  888. icon: 'fund',
  889. hidden: true
  890. // permission: 'M_salesReturnEdit'
  891. }
  892. },
  893. {
  894. path: 'check/:sn',
  895. name: 'salesReturnCheck',
  896. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnCheck.vue'),
  897. meta: {
  898. title: '退货单品检',
  899. icon: 'fund',
  900. hidden: true
  901. // permission: 'M_salesReturnCheck'
  902. }
  903. }
  904. ]
  905. },
  906. {
  907. path: '/salesManagement/backorder',
  908. redirect: '/salesManagement/backorder/list',
  909. name: 'backorder',
  910. component: RouteView,
  911. meta: {
  912. title: '销售缺货列表',
  913. icon: 'exception',
  914. permission: 'M_backorderList'
  915. },
  916. hideChildrenInMenu: true,
  917. children: [
  918. {
  919. path: 'list',
  920. name: 'backorderList',
  921. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/list.vue'),
  922. meta: {
  923. title: '缺货单列表',
  924. icon: 'exception',
  925. hidden: true,
  926. permission: 'M_backorderList'
  927. }
  928. }
  929. ]
  930. },
  931. {
  932. path: '/salesManagement/shortageStatisticsC',
  933. redirect: '/salesManagement/shortageStatisticsC/list',
  934. name: 'shortageStatisticsC',
  935. component: RouteView,
  936. meta: {
  937. title: '缺货统计(按客户)',
  938. icon: 'file-done',
  939. permission: 'M_shortageStatisticsCList'
  940. },
  941. hideChildrenInMenu: true,
  942. children: [
  943. {
  944. path: 'list',
  945. name: 'shortageStatisticsCList',
  946. component: () => import(/* webpackChunkName: "shop" */ '@/views/salesManagement/shortageStatisticsC/list.vue'),
  947. meta: {
  948. title: '缺货统计列表',
  949. icon: 'file-done',
  950. hidden: true,
  951. permission: 'M_shortageStatisticsCList'
  952. }
  953. }
  954. ]
  955. },
  956. {
  957. path: '/salesManagement/shortageStatisticsP',
  958. redirect: '/salesManagement/shortageStatisticsP/list',
  959. name: 'shortageStatisticsP',
  960. component: RouteView,
  961. meta: {
  962. title: '缺货统计(按产品)',
  963. icon: 'file-protect',
  964. permission: 'M_shortageStatisticsPList'
  965. },
  966. hideChildrenInMenu: true,
  967. children: [
  968. {
  969. path: 'list',
  970. name: 'shortageStatisticsPList',
  971. component: () => import(/* webpackChunkName: "shop" */ '@/views/salesManagement/shortageStatisticsP/list.vue'),
  972. meta: {
  973. title: '缺货统计列表',
  974. icon: 'file-protect',
  975. hidden: true,
  976. permission: 'M_shortageStatisticsPList'
  977. }
  978. }
  979. ]
  980. }
  981. ]
  982. },
  983. // 库存管理
  984. {
  985. path: '/inventoryManagement',
  986. redirect: '/inventoryManagement/inventoryQuery',
  987. component: PageView,
  988. meta: {
  989. title: '库存管理',
  990. icon: 'shop',
  991. permission: 'M_inventoryManagement'
  992. },
  993. children: [
  994. {
  995. path: '/inventoryManagement/inventoryQuery',
  996. redirect: '/inventoryManagement/inventoryQuery/list',
  997. name: 'inventoryQuery',
  998. component: RouteView,
  999. meta: {
  1000. title: '库存查询',
  1001. icon: 'monitor',
  1002. permission: 'M_inventoryQueryList'
  1003. },
  1004. hideChildrenInMenu: true,
  1005. children: [
  1006. {
  1007. path: 'list',
  1008. name: 'inventoryQueryList',
  1009. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
  1010. meta: {
  1011. title: '库存列表',
  1012. icon: 'monitor',
  1013. hidden: true,
  1014. permission: 'M_inventoryQueryList'
  1015. }
  1016. },
  1017. {
  1018. path: 'warehouseDetail/:sn',
  1019. name: 'inventoryQueryWarehouseDetail',
  1020. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
  1021. meta: {
  1022. title: '出入库明细',
  1023. icon: 'monitor',
  1024. hidden: true
  1025. // permission: 'B_goodsManage_edit'
  1026. }
  1027. }
  1028. ]
  1029. },
  1030. {
  1031. path: '/inventoryManagement/inventoryWarning',
  1032. name: 'inventoryWarningList',
  1033. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
  1034. meta: {
  1035. title: '库存预警',
  1036. icon: 'alert',
  1037. permission: 'M_inventoryWarningList'
  1038. }
  1039. },
  1040. {
  1041. path: '/inventoryManagement/intelligentReplenishment',
  1042. redirect: '/inventoryManagement/intelligentReplenishment/list',
  1043. name: 'intelligentReplenishment',
  1044. component: RouteView,
  1045. meta: {
  1046. title: '智能补货',
  1047. icon: 'monitor',
  1048. permission: 'M_intelligentReplenishmentList'
  1049. },
  1050. hideChildrenInMenu: true,
  1051. children: [
  1052. {
  1053. path: 'list',
  1054. name: 'intelligentReplenishmentList',
  1055. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/intelligentReplenishment/list.vue'),
  1056. meta: {
  1057. title: '智能补货列表',
  1058. icon: 'monitor',
  1059. hidden: true,
  1060. permission: 'M_intelligentReplenishmentList'
  1061. }
  1062. },
  1063. {
  1064. path: 'add/:sn',
  1065. name: 'intelligentReplenishmentAdd',
  1066. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/intelligentReplenishment/edit.vue'),
  1067. meta: {
  1068. title: '新增智能补货',
  1069. icon: 'monitor',
  1070. hidden: true
  1071. }
  1072. },
  1073. {
  1074. path: 'edit/:sn',
  1075. name: 'intelligentReplenishmentEdit',
  1076. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/intelligentReplenishment/edit.vue'),
  1077. meta: {
  1078. title: '编辑智能补货',
  1079. icon: 'monitor',
  1080. hidden: true
  1081. }
  1082. },
  1083. {
  1084. path: 'set',
  1085. name: 'intelligentReplenishmentSet',
  1086. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/intelligentReplenishment/set.vue'),
  1087. meta: {
  1088. title: '基础信息设置',
  1089. icon: 'monitor',
  1090. hidden: true
  1091. }
  1092. },
  1093. {
  1094. path: 'import',
  1095. name: 'intelligentReplenishmentImport',
  1096. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/intelligentReplenishment/import.vue'),
  1097. meta: {
  1098. title: '确认导入',
  1099. icon: 'monitor',
  1100. hidden: true
  1101. }
  1102. },
  1103. {
  1104. path: 'explainXsbz',
  1105. name: 'intelligentReplenishmentExplainXsbz',
  1106. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/intelligentReplenishment/explainXsbz.vue'),
  1107. meta: {
  1108. title: '销售保障法-说明',
  1109. icon: 'monitor',
  1110. hidden: true
  1111. }
  1112. },
  1113. {
  1114. path: 'explainQspj',
  1115. name: 'intelligentReplenishmentExplainQspj',
  1116. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/intelligentReplenishment/explainQspj.vue'),
  1117. meta: {
  1118. title: '趋势平均法-说明',
  1119. icon: 'monitor',
  1120. hidden: true
  1121. }
  1122. }
  1123. ]
  1124. }
  1125. // 二期
  1126. // {
  1127. // path: '/inventoryManagement/inventoryChecking',
  1128. // redirect: '/inventoryManagement/inventoryChecking/list',
  1129. // name: 'inventoryChecking',
  1130. // component: RouteView,
  1131. // meta: {
  1132. // title: '库存盘点',
  1133. // icon: 'reconciliation'
  1134. // // permission: 'M_goodsManage_list'
  1135. // },
  1136. // hideChildrenInMenu: true,
  1137. // children: [
  1138. // {
  1139. // path: 'list',
  1140. // name: 'inventoryCheckingList',
  1141. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/list.vue'),
  1142. // meta: {
  1143. // title: '库存盘点列表',
  1144. // icon: 'reconciliation',
  1145. // hidden: true
  1146. // // permission: 'M_goodsManage_list'
  1147. // }
  1148. // },
  1149. // {
  1150. // path: 'overall/:id',
  1151. // name: 'inventoryCheckingOverall',
  1152. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/overall.vue'),
  1153. // meta: {
  1154. // title: '盘点人盘点【全盘】',
  1155. // icon: 'reconciliation',
  1156. // hidden: true
  1157. // // permission: 'B_goodsManage_edit'
  1158. // }
  1159. // },
  1160. // {
  1161. // path: 'selfDisk/:id',
  1162. // name: 'inventoryCheckingSelfDisk',
  1163. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/selfDisk.vue'),
  1164. // meta: {
  1165. // title: '盘点人盘点【自选盘点】',
  1166. // icon: 'reconciliation',
  1167. // hidden: true
  1168. // // permission: 'B_goodsManage_edit'
  1169. // }
  1170. // },
  1171. // {
  1172. // path: 'detail/:id',
  1173. // name: 'inventoryCheckingDetail',
  1174. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/detail.vue'),
  1175. // meta: {
  1176. // title: '库存盘点详情',
  1177. // icon: 'reconciliation',
  1178. // hidden: true
  1179. // // permission: 'B_goodsManage_edit'
  1180. // }
  1181. // },
  1182. // {
  1183. // path: 'makeInventory/:id',
  1184. // name: 'inventoryCheckingMakeInventory',
  1185. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventory.vue'),
  1186. // meta: {
  1187. // title: '待盘点【盘点】',
  1188. // icon: 'reconciliation',
  1189. // hidden: true
  1190. // // permission: 'B_goodsManage_edit'
  1191. // }
  1192. // },
  1193. // {
  1194. // path: 'makeInventory/detail/:id', /* 待盘点【盘点】详情 */
  1195. // name: 'inventoryCheckingMakeInventoryDetail',
  1196. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventoryDetail.vue'),
  1197. // meta: {
  1198. // title: '库存盘点详情',
  1199. // icon: 'reconciliation',
  1200. // hidden: true
  1201. // // permission: 'B_goodsManage_edit'
  1202. // }
  1203. // },
  1204. // {
  1205. // path: 'financialAudit/detail/:id', /* 财务审核详情 */
  1206. // name: 'inventoryCheckingFinancialAuditDetail',
  1207. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/financialAuditDetail.vue'),
  1208. // meta: {
  1209. // title: '库存盘点详情',
  1210. // icon: 'reconciliation',
  1211. // hidden: true
  1212. // // permission: 'B_goodsManage_edit'
  1213. // }
  1214. // }
  1215. // ]
  1216. // }
  1217. ]
  1218. },
  1219. // 调拨管理
  1220. {
  1221. path: '/allocationManagement',
  1222. redirect: '/allocationManagement/transferOut',
  1223. component: PageView,
  1224. meta: {
  1225. title: '调拨',
  1226. icon: 'cluster',
  1227. permission: 'M_allocationManagement'
  1228. },
  1229. children: [
  1230. {
  1231. path: '/allocationManagement/transferOut',
  1232. redirect: '/allocationManagement/transferOut/list',
  1233. name: 'transferOut',
  1234. component: RouteView,
  1235. meta: {
  1236. title: '调拨列表',
  1237. icon: 'pull-request',
  1238. permission: 'M_transferOutList'
  1239. },
  1240. hideChildrenInMenu: true,
  1241. children: [
  1242. {
  1243. path: 'list',
  1244. name: 'transferOutList',
  1245. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/list.vue'),
  1246. meta: {
  1247. title: '调拨列表',
  1248. icon: 'pull-request',
  1249. hidden: true,
  1250. permission: 'M_transferOutList'
  1251. }
  1252. },
  1253. {
  1254. path: 'add/:sn/:name/:dealerLevel',
  1255. name: 'transferOutAdd',
  1256. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/edit.vue'),
  1257. meta: {
  1258. title: '新增调拨单',
  1259. icon: 'pull-request',
  1260. hidden: true
  1261. // permission: 'B_goodsManage_edit'
  1262. }
  1263. },
  1264. {
  1265. path: 'edit/:sn/:name/:dealerLevel',
  1266. name: 'transferOutEdit',
  1267. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/edit.vue'),
  1268. meta: {
  1269. title: '编辑调拨单',
  1270. icon: 'pull-request',
  1271. hidden: true
  1272. // permission: 'B_goodsManage_edit'
  1273. }
  1274. },
  1275. {
  1276. path: 'detail/:sn',
  1277. name: 'transferOutDetail',
  1278. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/detail.vue'),
  1279. meta: {
  1280. title: '调拨单详情',
  1281. icon: 'pull-request',
  1282. hidden: true
  1283. // permission: 'B_goodsManage_edit'
  1284. }
  1285. }
  1286. ]
  1287. }
  1288. ]
  1289. },
  1290. // 促销管理
  1291. {
  1292. path: '/promotionRulesManagement',
  1293. redirect: '/promotionRulesManagement/promotionRules',
  1294. component: PageView,
  1295. meta: {
  1296. title: '促销管理',
  1297. icon: 'rocket',
  1298. permission: 'M_promotionRulesManagement'
  1299. },
  1300. children: [
  1301. {
  1302. path: '/promotionRulesManagement/promotionRules',
  1303. redirect: '/promotionRulesManagement/promotionRules/list',
  1304. name: 'promotionRules',
  1305. component: RouteView,
  1306. meta: {
  1307. title: '促销规则管理',
  1308. icon: 'thunderbolt',
  1309. permission: 'M_promotionRulesList'
  1310. },
  1311. hideChildrenInMenu: true,
  1312. children: [
  1313. {
  1314. path: 'list',
  1315. name: 'promotionRulesManagementList',
  1316. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/list.vue'),
  1317. meta: {
  1318. title: '促销规则列表',
  1319. icon: 'thunderbolt',
  1320. hidden: true,
  1321. permission: 'M_promotionRulesList'
  1322. }
  1323. },
  1324. {
  1325. path: 'detail/:id/:sn',
  1326. name: 'promotionRulesManagementDetail',
  1327. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/detail.vue'),
  1328. meta: {
  1329. title: '促销规则详情',
  1330. icon: 'thunderbolt',
  1331. hidden: true
  1332. // permission: 'B_goodsManage_edit'
  1333. }
  1334. },
  1335. {
  1336. path: 'rule/:id/:sn',
  1337. name: 'promotionRulesManagementRule',
  1338. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/rule.vue'),
  1339. meta: {
  1340. title: '促销规则设置',
  1341. icon: 'thunderbolt',
  1342. hidden: true
  1343. // permission: 'B_goodsManage_edit'
  1344. }
  1345. }
  1346. ]
  1347. },
  1348. {
  1349. path: '/promotionRulesManagement/orderStatistics',
  1350. redirect: '/promotionRulesManagement/orderStatistics/list',
  1351. name: 'orderStatistics',
  1352. component: RouteView,
  1353. meta: {
  1354. title: '促销订单统计',
  1355. icon: 'contacts',
  1356. permission: 'M_orderStatisticsList'
  1357. },
  1358. hideChildrenInMenu: true,
  1359. children: [
  1360. {
  1361. path: 'list',
  1362. name: 'orderStatisticsList',
  1363. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/orderStatistics/list.vue'),
  1364. meta: {
  1365. title: '订单统计列表',
  1366. icon: 'contacts',
  1367. hidden: true,
  1368. permission: 'M_orderStatisticsList'
  1369. }
  1370. }
  1371. ]
  1372. },
  1373. {
  1374. path: '/promotionRulesManagement/productStatistics',
  1375. redirect: '/promotionRulesManagement/productStatistics/list',
  1376. name: 'productStatistics',
  1377. component: RouteView,
  1378. meta: {
  1379. title: '促销产品统计',
  1380. icon: 'file-ppt',
  1381. permission: 'M_productStatisticsList'
  1382. },
  1383. hideChildrenInMenu: true,
  1384. children: [
  1385. {
  1386. path: 'list',
  1387. name: 'productStatisticsList',
  1388. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/productStatistics/list.vue'),
  1389. meta: {
  1390. title: '产品统计列表',
  1391. icon: 'file-ppt',
  1392. hidden: true,
  1393. permission: 'M_productStatisticsList'
  1394. }
  1395. }
  1396. ]
  1397. }
  1398. ]
  1399. },
  1400. // 财务管理
  1401. {
  1402. path: '/financialManagement',
  1403. redirect: '/financialManagement/returnConfirmation',
  1404. component: PageView,
  1405. meta: {
  1406. title: '财务管理',
  1407. icon: 'property-safety',
  1408. permission: 'M_financialManagement'
  1409. },
  1410. children: [
  1411. // 二期
  1412. // {
  1413. // path: '/financialManagement/inventoryReview',
  1414. // redirect: '/financialManagement/inventoryReview/list',
  1415. // name: 'inventoryReview',
  1416. // component: RouteView,
  1417. // meta: {
  1418. // title: '盘点审核',
  1419. // icon: 'laptop'
  1420. // // permission: 'M_goodsManage_list'
  1421. // },
  1422. // hideChildrenInMenu: true,
  1423. // children: [
  1424. // {
  1425. // path: 'list',
  1426. // name: 'inventoryReviewList',
  1427. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/list.vue'),
  1428. // meta: {
  1429. // title: '盘点审核列表',
  1430. // icon: 'laptop',
  1431. // hidden: true
  1432. // // permission: 'M_goodsManage_list'
  1433. // }
  1434. // },
  1435. // {
  1436. // path: 'detail/:id',
  1437. // name: 'inventoryReviewDetail',
  1438. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/detail.vue'),
  1439. // meta: {
  1440. // title: '盘点审核详情',
  1441. // icon: 'laptop',
  1442. // hidden: true
  1443. // // permission: 'B_goodsManage_edit'
  1444. // }
  1445. // }
  1446. // ]
  1447. // },
  1448. {
  1449. path: '/financialManagement/warehousingConfirmation',
  1450. redirect: '/financialManagement/warehousingConfirmation/list',
  1451. name: 'warehousingConfirmation',
  1452. component: RouteView,
  1453. meta: {
  1454. title: '入库确认',
  1455. icon: 'vertical-align-bottom',
  1456. permission: 'M_warehousingConfirmationList'
  1457. },
  1458. hideChildrenInMenu: true,
  1459. children: [
  1460. {
  1461. path: 'list',
  1462. name: 'warehousingConfirmationList',
  1463. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingConfirmation/list.vue'),
  1464. meta: {
  1465. title: '入库确认列表',
  1466. icon: 'vertical-align-bottom',
  1467. hidden: true,
  1468. permission: 'M_warehousingConfirmationList'
  1469. }
  1470. }
  1471. ]
  1472. },
  1473. {
  1474. path: '/financialManagement/returnConfirmation',
  1475. redirect: '/financialManagement/returnConfirmation/list',
  1476. name: 'returnConfirmation',
  1477. component: RouteView,
  1478. meta: {
  1479. title: '退货确认',
  1480. icon: 'vertical-align-top',
  1481. permission: 'M_returnConfirmationList'
  1482. },
  1483. hideChildrenInMenu: true,
  1484. children: [
  1485. {
  1486. path: 'list',
  1487. name: 'returnConfirmationList',
  1488. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/returnConfirmation/list.vue'),
  1489. meta: {
  1490. title: '退货确认列表',
  1491. icon: 'vertical-align-top',
  1492. hidden: true,
  1493. permission: 'M_returnConfirmationList'
  1494. }
  1495. }
  1496. ]
  1497. },
  1498. {
  1499. path: '/financialManagement/financialCollection',
  1500. redirect: '/financialManagement/financialCollection/list',
  1501. name: 'financialCollection',
  1502. component: RouteView,
  1503. meta: {
  1504. title: '财务收款',
  1505. icon: 'pay-circle',
  1506. permission: 'M_financialCollectionList'
  1507. },
  1508. hideChildrenInMenu: true,
  1509. children: [
  1510. {
  1511. path: 'list',
  1512. name: 'financialCollectionList',
  1513. component: () => import(/* webpackChunkName: "shop" */ '@/views/financialManagement/financialCollection/list.vue'),
  1514. meta: {
  1515. title: '财务收款列表',
  1516. icon: 'pay-circle',
  1517. hidden: true,
  1518. permission: 'M_financialCollectionList'
  1519. }
  1520. }
  1521. ]
  1522. }
  1523. ]
  1524. },
  1525. // 基础设置
  1526. {
  1527. path: '/basicData',
  1528. redirect: '/basicData/warehouse',
  1529. component: PageView,
  1530. meta: {
  1531. title: '基础设置',
  1532. icon: 'pushpin',
  1533. permission: 'M_basicData'
  1534. },
  1535. children: [
  1536. {
  1537. path: '/basicData/warehouse',
  1538. redirect: '/basicData/warehouse/list',
  1539. name: 'warehouse',
  1540. component: RouteView,
  1541. meta: {
  1542. title: '仓库管理',
  1543. icon: 'deployment-unit',
  1544. permission: 'M_warehouseList'
  1545. },
  1546. hideChildrenInMenu: true,
  1547. children: [
  1548. {
  1549. path: 'list',
  1550. name: 'warehouseList',
  1551. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/warehouse/list.vue'),
  1552. meta: {
  1553. title: '仓库列表',
  1554. icon: 'deployment-unit',
  1555. hidden: true,
  1556. permission: 'M_warehouseList'
  1557. }
  1558. },
  1559. {
  1560. path: '/basicData/storingLocation/:sn',
  1561. name: 'storingLocationList',
  1562. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/warehouse/storingLocation/list.vue'),
  1563. meta: {
  1564. title: '仓位列表',
  1565. icon: 'deployment-unit',
  1566. hidden: true
  1567. // permission: 'B_goodsManage_edit'
  1568. }
  1569. }
  1570. ]
  1571. },
  1572. {
  1573. path: '/basicData/transferTypeManagement',
  1574. redirect: '/basicData/transferTypeManagement/list',
  1575. name: 'transferTypeManagement',
  1576. component: RouteView,
  1577. meta: {
  1578. title: '调拨类型管理',
  1579. icon: 'interaction',
  1580. permission: 'M_transferTypeManagementList'
  1581. },
  1582. hideChildrenInMenu: true,
  1583. children: [
  1584. {
  1585. path: 'list',
  1586. name: 'transferTypeManagementList',
  1587. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/transferTypeManagement/list.vue'),
  1588. meta: {
  1589. title: '调拨类型列表',
  1590. icon: 'interaction',
  1591. hidden: true,
  1592. permission: 'M_transferTypeManagementList'
  1593. }
  1594. }
  1595. ]
  1596. }
  1597. ]
  1598. },
  1599. // 报表
  1600. {
  1601. path: '/reportData',
  1602. redirect: '/reportData/countryTypeProvinceSalesDetails',
  1603. component: PageView,
  1604. meta: {
  1605. title: '报表',
  1606. icon: 'project',
  1607. permission: 'M_reportData'
  1608. },
  1609. children: [
  1610. {
  1611. path: '/reportData/salesDetails',
  1612. redirect: '/reportData/salesDetails/list',
  1613. name: 'salesDetails',
  1614. component: RouteView,
  1615. meta: {
  1616. title: '销售明细(开单统计)',
  1617. icon: 'profile',
  1618. permission: 'M_salesDetailsList'
  1619. },
  1620. hideChildrenInMenu: true,
  1621. children: [
  1622. {
  1623. path: 'list',
  1624. name: 'salesDetailsList',
  1625. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesDetails/list.vue'),
  1626. meta: {
  1627. title: '销售明细列表',
  1628. icon: 'profile',
  1629. hidden: true,
  1630. permission: 'M_salesDetailsList'
  1631. }
  1632. }
  1633. ]
  1634. },
  1635. {
  1636. path: '/reportData/allocationOrderTotal',
  1637. redirect: '/reportData/allocationOrderTotal/list',
  1638. name: 'allocationOrderTotal',
  1639. component: RouteView,
  1640. meta: {
  1641. title: '调拨开单统计',
  1642. icon: 'profile',
  1643. permission: 'M_allocationOrderTotalList'
  1644. },
  1645. hideChildrenInMenu: true,
  1646. children: [
  1647. {
  1648. path: 'list',
  1649. name: 'allocationOrderTotalList',
  1650. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationOrderTotal/list.vue'),
  1651. meta: {
  1652. title: '调拨开单列表',
  1653. icon: 'profile',
  1654. hidden: true,
  1655. permission: 'M_allocationOrderTotalList'
  1656. }
  1657. }
  1658. ]
  1659. },
  1660. {
  1661. path: '/reportData/allocationDetails',
  1662. redirect: '/reportData/allocationDetails/list',
  1663. name: 'allocationDetails',
  1664. component: RouteView,
  1665. meta: {
  1666. title: '调拨明细',
  1667. icon: 'profile',
  1668. permission: 'M_allocationDetailsList'
  1669. },
  1670. hideChildrenInMenu: true,
  1671. children: [
  1672. {
  1673. path: 'list',
  1674. name: 'allocationDetailsList',
  1675. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationDetails/list.vue'),
  1676. meta: {
  1677. title: '调拨明细列表',
  1678. icon: 'profile',
  1679. hidden: true,
  1680. permission: 'M_allocationDetailsList'
  1681. }
  1682. }
  1683. ]
  1684. },
  1685. {
  1686. path: '/reportData/salesReturnsReport',
  1687. redirect: '/reportData/salesReturnsReport/list',
  1688. name: 'salesReturnsReport',
  1689. component: RouteView,
  1690. meta: {
  1691. title: '销售退货单报表',
  1692. icon: 'profile',
  1693. permission: 'M_salesReturnsReportList'
  1694. },
  1695. hideChildrenInMenu: true,
  1696. children: [
  1697. {
  1698. path: 'list',
  1699. name: 'salesReturnsReportList',
  1700. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReturnsReport/list.vue'),
  1701. meta: {
  1702. title: '销售退货单报表列表',
  1703. icon: 'profile',
  1704. hidden: true,
  1705. permission: 'M_salesReturnsReportList'
  1706. }
  1707. }
  1708. ]
  1709. },
  1710. {
  1711. path: '/reportData/salesReturnDetailReport',
  1712. redirect: '/reportData/salesReturnDetailReport/list',
  1713. name: 'salesReturnDetailReport',
  1714. component: RouteView,
  1715. meta: {
  1716. title: '销售退货明细报表',
  1717. icon: 'profile',
  1718. permission: 'M_salesReturnDetailReportList'
  1719. },
  1720. hideChildrenInMenu: true,
  1721. children: [{
  1722. path: 'list',
  1723. name: 'salesReturnDetailReportList',
  1724. component: () => import(/* webpackChunkName: "shop" */
  1725. '@/views/reportData/salesReturnDetailReport/list.vue'),
  1726. meta: {
  1727. title: '销售退货明细报表列表',
  1728. icon: 'profile',
  1729. hidden: true,
  1730. permission: 'M_salesReturnDetailReportList'
  1731. }
  1732. }]
  1733. },
  1734. {
  1735. path: '/reportData/salesSlipReport',
  1736. redirect: '/reportData/salesSlipReport/list',
  1737. name: 'salesSlipReport',
  1738. component: RouteView,
  1739. meta: {
  1740. title: '开单销售单报表',
  1741. icon: 'profile',
  1742. permission: 'M_salesSlipReportList'
  1743. },
  1744. hideChildrenInMenu: true,
  1745. children: [{
  1746. path: 'list',
  1747. name: 'salesSlipReportList',
  1748. component: () => import(/* webpackChunkName: "shop" */
  1749. '@/views/reportData/salesSlipReport/list.vue'),
  1750. meta: {
  1751. title: '开单销售单报表列表',
  1752. icon: 'profile',
  1753. hidden: true,
  1754. permission: 'M_salesSlipReportList'
  1755. }
  1756. }]
  1757. },
  1758. {
  1759. path: '/reportData/returnSlipReport',
  1760. redirect: '/reportData/returnSlipReport/list',
  1761. name: 'returnSlipReport',
  1762. component: RouteView,
  1763. meta: {
  1764. title: '开单退货单报表',
  1765. icon: 'profile',
  1766. permission: 'M_returnSlipReportList'
  1767. },
  1768. hideChildrenInMenu: true,
  1769. children: [{
  1770. path: 'list',
  1771. name: 'returnSlipReportList',
  1772. component: () => import(/* webpackChunkName: "shop" */
  1773. '@/views/reportData/returnSlipReport/list.vue'),
  1774. meta: {
  1775. title: '开单退货单报表列表',
  1776. icon: 'profile',
  1777. hidden: true,
  1778. permission: 'M_returnSlipReportList'
  1779. }
  1780. }]
  1781. },
  1782. {
  1783. path: '/reportData/salesAmountReport',
  1784. redirect: '/reportData/salesAmountReport/list',
  1785. name: 'salesAmountReport',
  1786. component: RouteView,
  1787. meta: {
  1788. title: '开单销售报表',
  1789. icon: 'profile',
  1790. permission: 'M_salesAmountReportList'
  1791. },
  1792. hideChildrenInMenu: true,
  1793. children: [{
  1794. path: 'list',
  1795. name: 'salesAmountReportList',
  1796. component: () => import(/* webpackChunkName: "shop" */
  1797. '@/views/reportData/salesAmountReport/list.vue'),
  1798. meta: {
  1799. title: '开单销售报表列表',
  1800. icon: 'profile',
  1801. hidden: true,
  1802. permission: 'M_salesAmountReportList'
  1803. }
  1804. }]
  1805. },
  1806. {
  1807. path: '/reportData/actualSalesReport',
  1808. redirect: '/reportData/actualSalesReport/list',
  1809. name: 'actualSalesReport',
  1810. component: RouteView,
  1811. meta: {
  1812. title: '实售销售报表',
  1813. icon: 'profile',
  1814. permission: 'M_actualSalesReportList'
  1815. },
  1816. hideChildrenInMenu: true,
  1817. children: [
  1818. {
  1819. path: 'list',
  1820. name: 'actualSalesReportList',
  1821. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/actualSalesReport/list.vue'),
  1822. meta: {
  1823. title: '实售销售列表',
  1824. icon: 'profile',
  1825. hidden: true,
  1826. permission: 'M_actualSalesReportList'
  1827. }
  1828. }
  1829. ]
  1830. },
  1831. {
  1832. path: '/reportData/billingReturnReport',
  1833. redirect: '/reportData/billingReturnReport/list',
  1834. name: 'billingReturnReport',
  1835. component: RouteView,
  1836. meta: {
  1837. title: '开单退货报表',
  1838. icon: 'profile',
  1839. permission: 'M_billingReturnReportList'
  1840. },
  1841. hideChildrenInMenu: true,
  1842. children: [
  1843. {
  1844. path: 'list',
  1845. name: 'billingReturnReportList',
  1846. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/billingReturnReport/list.vue'),
  1847. meta: {
  1848. title: '开单退货列表',
  1849. icon: 'profile',
  1850. hidden: true,
  1851. permission: 'M_billingReturnReportList'
  1852. }
  1853. }
  1854. ]
  1855. },
  1856. {
  1857. path: '/reportData/salesReturnReport',
  1858. redirect: '/reportData/salesReturnReport/list',
  1859. name: 'salesReturnReport',
  1860. component: RouteView,
  1861. meta: {
  1862. title: '实售退货报表',
  1863. icon: 'profile',
  1864. permission: 'M_salesReturnReportList'
  1865. },
  1866. hideChildrenInMenu: true,
  1867. children: [
  1868. {
  1869. path: 'list',
  1870. name: 'salesReturnReportList',
  1871. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReturnReport/list.vue'),
  1872. meta: {
  1873. title: '实售退货列表',
  1874. icon: 'profile',
  1875. hidden: true,
  1876. permission: 'M_salesReturnReportList'
  1877. }
  1878. }
  1879. ]
  1880. },
  1881. {
  1882. path: '/reportData/priceDifferenceDetailReport',
  1883. redirect: '/reportData/priceDifferenceDetailReport/list',
  1884. name: 'priceDifferenceDetailReport',
  1885. component: RouteView,
  1886. meta: {
  1887. title: '总部差价明细报表',
  1888. icon: 'profile',
  1889. permission: 'M_priceDifferenceDetailReportList'
  1890. },
  1891. hideChildrenInMenu: true,
  1892. children: [
  1893. {
  1894. path: 'list',
  1895. name: 'priceDifferenceDetailReportList',
  1896. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/priceDifferenceDetailReport/list.vue'),
  1897. meta: {
  1898. title: '总部差价明细列表',
  1899. icon: 'profile',
  1900. hidden: true,
  1901. permission: 'M_priceDifferenceDetailReportList'
  1902. }
  1903. }
  1904. ]
  1905. },
  1906. {
  1907. path: '/reportData/provinceTypeSalesDetails',
  1908. redirect: '/reportData/provinceTypeSalesDetails/list',
  1909. name: 'provinceTypeSalesDetails',
  1910. component: RouteView,
  1911. meta: {
  1912. title: '全国各省品类实际销售明细',
  1913. icon: 'profile',
  1914. permission: 'M_provinceTypeSalesDetailsList'
  1915. },
  1916. hideChildrenInMenu: true,
  1917. children: [
  1918. {
  1919. path: 'list',
  1920. name: 'provinceTypeSalesDetailsList',
  1921. component: () => import(/* webpackChunkName: "shop" */ '@/views/reportData/provinceTypeSalesDetails/list.vue'),
  1922. meta: {
  1923. title: '全国各省品类实际销售明细列表',
  1924. icon: 'profile',
  1925. hidden: true,
  1926. permission: 'M_provinceTypeSalesDetailsList'
  1927. }
  1928. }
  1929. ]
  1930. },
  1931. {
  1932. path: '/reportData/districtTypeSalesDetails',
  1933. redirect: '/reportData/districtTypeSalesDetails/list',
  1934. name: 'districtTypeSalesDetails',
  1935. component: RouteView,
  1936. meta: {
  1937. title: '全国各区品类实际销售明细',
  1938. icon: 'profile',
  1939. permission: 'M_districtTypeSalesDetailsList'
  1940. },
  1941. hideChildrenInMenu: true,
  1942. children: [
  1943. {
  1944. path: 'list',
  1945. name: 'districtTypeSalesDetailsList',
  1946. component: () => import(/* webpackChunkName: "shop" */ '@/views/reportData/districtTypeSalesDetails/list.vue'),
  1947. meta: {
  1948. title: '全国各区品类实际销售明细列表',
  1949. icon: 'profile',
  1950. hidden: true,
  1951. permission: 'M_districtTypeSalesDetailsList'
  1952. }
  1953. }
  1954. ]
  1955. },
  1956. {
  1957. path: '/reportData/regionalPromotionCostStatistics',
  1958. redirect: '/reportData/regionalPromotionCostStatistics/list',
  1959. name: 'regionalPromotionCostStatistics',
  1960. component: RouteView,
  1961. meta: {
  1962. title: '区域促销费用统计',
  1963. icon: 'profile',
  1964. permission: 'M_regionalPromotionCostStatisticsList'
  1965. },
  1966. hideChildrenInMenu: true,
  1967. children: [
  1968. {
  1969. path: 'list',
  1970. name: 'regionalPromotionCostStatisticsList',
  1971. component: () => import(/* webpackChunkName: "shop" */ '@/views/reportData/regionalPromotionCostStatistics/list.vue'),
  1972. meta: {
  1973. title: '区域促销费用统计列表',
  1974. icon: 'profile',
  1975. hidden: true,
  1976. permission: 'M_regionalPromotionCostStatisticsList'
  1977. }
  1978. }
  1979. ]
  1980. },
  1981. {
  1982. path: '/reportData/nationalCustomerCostStatistics',
  1983. redirect: '/reportData/nationalCustomerCostStatistics/list',
  1984. name: 'nationalCustomerCostStatistics',
  1985. component: RouteView,
  1986. meta: {
  1987. title: '全国客户费用统计',
  1988. icon: 'profile',
  1989. permission: 'M_nationalCustomerCostStatisticsList'
  1990. },
  1991. hideChildrenInMenu: true,
  1992. children: [
  1993. {
  1994. path: 'list',
  1995. name: 'nationalCustomerCostStatisticsList',
  1996. component: () => import(/* webpackChunkName: "shop" */ '@/views/reportData/nationalCustomerCostStatistics/list.vue'),
  1997. meta: {
  1998. title: '全国客户费用统计列表',
  1999. icon: 'profile',
  2000. hidden: true,
  2001. permission: 'M_nationalCustomerCostStatisticsList'
  2002. }
  2003. }
  2004. ]
  2005. }
  2006. ]
  2007. },
  2008. // 权限管理
  2009. {
  2010. path: '/auth',
  2011. redirect: '/auth/userList',
  2012. component: PageView,
  2013. meta: {
  2014. title: '权限管理',
  2015. icon: 'lock',
  2016. permission: 'M_auth_0'
  2017. },
  2018. children: [
  2019. {
  2020. path: '/auth/userList',
  2021. name: 'powerUserList',
  2022. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  2023. meta: {
  2024. title: '用户管理',
  2025. icon: 'user',
  2026. permission: 'M_userList'
  2027. }
  2028. },
  2029. {
  2030. path: '/auth/roleList',
  2031. name: 'powerRoleList',
  2032. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  2033. meta: {
  2034. title: '角色管理',
  2035. icon: 'solution',
  2036. permission: 'M_roleList'
  2037. }
  2038. },
  2039. {
  2040. path: '/menusAuth/adminMenus',
  2041. name: 'adminMenus',
  2042. component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/adminMenus.vue'),
  2043. meta: {
  2044. title: '菜单管理',
  2045. icon: 'appstore',
  2046. permission: 'M_menuList'
  2047. }
  2048. }
  2049. ]
  2050. },
  2051. // 系统设置
  2052. {
  2053. path: '/setting',
  2054. redirect: '/setting/userList',
  2055. component: PageView,
  2056. meta: {
  2057. title: '系统设置',
  2058. icon: 'setting',
  2059. permission: 'M_systemSet'
  2060. },
  2061. children: [
  2062. {
  2063. path: '/setting/dataDictionary',
  2064. name: 'powerDD',
  2065. component: () => import(/* webpackChunkName: "setting" */
  2066. '@/views/power/dataDictionary/dataDictionary.vue'),
  2067. meta: {
  2068. title: '数据字典管理',
  2069. icon: 'database',
  2070. permission: 'M_dataD_lookup'
  2071. }
  2072. },
  2073. // {
  2074. // path: '/setting/register',
  2075. // name: 'powerRegister',
  2076. // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
  2077. // meta: {
  2078. // title: '参数管理',
  2079. // icon: 'key',
  2080. // permission: 'M_sys_register'
  2081. // }
  2082. // },
  2083. {
  2084. path: '/setting/OperateJournal',
  2085. name: 'powerOperateJournal',
  2086. component: () => import(/* webpackChunkName: "setting" */
  2087. '@/views/power/OperateJournal/OperateJournal.vue'),
  2088. meta: {
  2089. title: '操作日志',
  2090. icon: 'read',
  2091. permission: 'M_OperateJournalList'
  2092. }
  2093. },
  2094. {
  2095. path: '/setting/noticeManagement',
  2096. redirect: '/setting/noticeManagement/list',
  2097. name: 'noticeManagement',
  2098. component: RouteView,
  2099. meta: {
  2100. title: '公告管理',
  2101. icon: 'sketch',
  2102. permission: 'M_noticeManagementList'
  2103. },
  2104. hideChildrenInMenu: true,
  2105. children: [
  2106. {
  2107. path: 'list',
  2108. name: 'noticeManagementList',
  2109. component: () => import(/* webpackChunkName: "shop" */ '@/views/setting/noticeManagement/list.vue'),
  2110. meta: {
  2111. title: '公告列表',
  2112. icon: 'sketch',
  2113. hidden: true,
  2114. permission: 'M_noticeManagementList'
  2115. }
  2116. }
  2117. ]
  2118. }
  2119. ]
  2120. },
  2121. // 公告
  2122. {
  2123. path: '/notice',
  2124. name: 'notice',
  2125. component: () => import(/* webpackChunkName: "home" */ '@/views/setting/notice/list'),
  2126. meta: {
  2127. title: '公告',
  2128. icon: 'bell'
  2129. },
  2130. hidden: true
  2131. }
  2132. ]
  2133. },
  2134. {
  2135. path: '*',
  2136. redirect: '/404',
  2137. hidden: true
  2138. }
  2139. ]
  2140. /**
  2141. * 基础路由
  2142. * @type { *[] }
  2143. */
  2144. export const constantRouterMap = [
  2145. {
  2146. path: '/user',
  2147. component: UserLayout,
  2148. redirect: '/user/login',
  2149. hidden: true,
  2150. children: [
  2151. {
  2152. path: 'login',
  2153. name: 'login',
  2154. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  2155. },
  2156. {
  2157. path: 'register',
  2158. name: 'register',
  2159. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  2160. },
  2161. {
  2162. path: 'register-result',
  2163. name: 'registerResult',
  2164. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  2165. },
  2166. {
  2167. path: 'recover',
  2168. name: 'recover',
  2169. component: undefined
  2170. }
  2171. ]
  2172. },
  2173. {
  2174. path: '/404',
  2175. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  2176. }
  2177. ]