router.config.js 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717
  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_shop'
  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: 'file-text'
  69. // permission: 'M_goodsManage_list'
  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: 'file-text',
  80. hidden: true
  81. // permission: 'M_goodsManage_list'
  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: 'file-text',
  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: 'file-text',
  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: 'sketch'
  116. // permission: 'M_goodsManage_list'
  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: 'sketch',
  127. hidden: true
  128. // permission: 'M_goodsManage_list'
  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: 'sketch'
  141. // permission: 'M_goodsManage_list'
  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: 'sketch',
  152. hidden: true
  153. // permission: 'M_goodsManage_list'
  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: 'sketch'
  166. // permission: 'M_goodsManage_list'
  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: 'sketch',
  177. hidden: true
  178. // permission: 'M_goodsManage_list'
  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: 'sketch'
  191. // permission: 'M_goodsManage_list'
  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: 'sketch',
  202. hidden: true
  203. // permission: 'M_goodsManage_list'
  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: 'sketch'
  216. // permission: 'M_goodsManage_list'
  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: 'sketch',
  227. hidden: true
  228. // permission: 'M_goodsManage_list'
  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: 'sketch'
  241. // permission: 'M_goodsManage_list'
  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: 'sketch',
  252. hidden: true
  253. // permission: 'M_goodsManage_list'
  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: 'sliders'
  266. // permission: 'M_goodsManage_list'
  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: 'sliders',
  277. hidden: true
  278. // permission: 'M_goodsManage_list'
  279. }
  280. }
  281. ]
  282. }
  283. // 二期
  284. // {
  285. // path: '/productManagement/purchaseBaseLimit',
  286. // redirect: '/productManagement/purchaseBaseLimit/list',
  287. // name: 'purchaseBaseLimit',
  288. // component: RouteView,
  289. // meta: {
  290. // title: '产品采购基数限制',
  291. // icon: 'sliders'
  292. // // permission: 'M_goodsManage_list'
  293. // },
  294. // hideChildrenInMenu: true,
  295. // children: [
  296. // {
  297. // path: 'list',
  298. // name: 'purchaseBaseLimitList',
  299. // component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/purchaseBaseLimit/list.vue'),
  300. // meta: {
  301. // title: '采购基数限制列表',
  302. // icon: 'sliders',
  303. // hidden: true
  304. // // permission: 'M_goodsManage_list'
  305. // }
  306. // }
  307. // ]
  308. // }
  309. ]
  310. },
  311. // 经销商管理
  312. {
  313. path: '/dealerManagement',
  314. redirect: '/dealerManagement/marketingDivisionSet',
  315. component: PageView,
  316. meta: {
  317. title: '经销商管理',
  318. icon: 'shopping'
  319. // permission: 'M_shop'
  320. },
  321. children: [
  322. {
  323. path: '/dealerManagement/marketingDivisionSet',
  324. redirect: '/dealerManagement/marketingDivisionSet/list',
  325. name: 'marketingDivisionSet',
  326. component: RouteView,
  327. meta: {
  328. title: '营销分区设置',
  329. icon: 'sketch'
  330. // permission: 'M_goodsManage_list'
  331. },
  332. hideChildrenInMenu: true,
  333. children: [
  334. {
  335. path: 'list',
  336. name: 'marketingDivisionSetList',
  337. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/marketingDivisionSet/list.vue'),
  338. meta: {
  339. title: '营销分区列表',
  340. icon: 'sketch',
  341. hidden: true
  342. // permission: 'M_goodsManage_list'
  343. }
  344. }
  345. ]
  346. },
  347. // {
  348. // path: '/dealerManagement/userManagement',
  349. // redirect: '/dealerManagement/userManagement/list',
  350. // name: 'dealerManagementUserManagement',
  351. // component: RouteView,
  352. // meta: {
  353. // title: '营销部用户管理',
  354. // icon: 'sketch'
  355. // // permission: 'M_goodsManage_list'
  356. // },
  357. // hideChildrenInMenu: true,
  358. // children: [
  359. // {
  360. // path: 'list',
  361. // name: 'userManagementList',
  362. // component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/userManagement/list.vue'),
  363. // meta: {
  364. // title: '营销部用户列表',
  365. // icon: 'sketch',
  366. // hidden: true
  367. // // permission: 'M_goodsManage_list'
  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_goodsManage_list'
  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_goodsManage_list'
  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: 'sketch'
  438. // permission: 'M_goodsManage_list'
  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: 'sketch',
  449. hidden: true
  450. // permission: 'M_goodsManage_list'
  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: 'sketch'
  463. // permission: 'M_goodsManage_list'
  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: 'sketch',
  474. hidden: true
  475. // permission: 'M_goodsManage_list'
  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: 'sketch'
  488. // permission: 'M_goodsManage_list'
  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: 'sketch',
  499. hidden: true
  500. // permission: 'M_goodsManage_list'
  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_shop'
  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_goodsManage_list'
  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_goodsManage_list'
  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: 'sketch'
  584. // permission: 'M_goodsManage_list'
  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: 'sketch',
  595. hidden: true
  596. // permission: 'M_goodsManage_list'
  597. }
  598. }
  599. ]
  600. }
  601. ]
  602. },
  603. // 采购管理
  604. {
  605. path: '/purchasingManagement',
  606. redirect: '/purchasingManagement/purchaseOrder',
  607. component: PageView,
  608. meta: {
  609. title: '采购管理',
  610. icon: 'gold'
  611. // permission: 'M_bulkWarehousing'
  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_bulkWarehousingOrder_list'
  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_bulkWarehousingOrder_list'
  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_salesQuery_list'
  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_salesQuery_list'
  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_outboundOrder'
  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_outboundOrder_list'
  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: 'export'
  774. // permission: 'M_outboundList'
  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: 'export',
  785. hidden: true
  786. // permission: 'M_outboundList'
  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: 'export',
  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_outboundList'
  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_outboundList'
  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_salesReturn_list'
  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_salesReturn_list'
  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_goodsManage_list'
  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_goodsManage_list'
  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: 'sketch'
  939. // permission: 'M_goodsManage_list'
  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: 'sketch',
  950. hidden: true
  951. // permission: 'M_goodsManage_list'
  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: 'sketch'
  964. // permission: 'M_goodsManage_list'
  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: 'sketch',
  975. hidden: true
  976. // permission: 'M_goodsManage_list'
  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_shop'
  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_goodsManage_list'
  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_goodsManage_list'
  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_goodsShelves_0'
  1038. }
  1039. }
  1040. // 二期
  1041. // {
  1042. // path: '/inventoryManagement/inventoryChecking',
  1043. // redirect: '/inventoryManagement/inventoryChecking/list',
  1044. // name: 'inventoryChecking',
  1045. // component: RouteView,
  1046. // meta: {
  1047. // title: '库存盘点',
  1048. // icon: 'reconciliation'
  1049. // // permission: 'M_goodsManage_list'
  1050. // },
  1051. // hideChildrenInMenu: true,
  1052. // children: [
  1053. // {
  1054. // path: 'list',
  1055. // name: 'inventoryCheckingList',
  1056. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/list.vue'),
  1057. // meta: {
  1058. // title: '库存盘点列表',
  1059. // icon: 'reconciliation',
  1060. // hidden: true
  1061. // // permission: 'M_goodsManage_list'
  1062. // }
  1063. // },
  1064. // {
  1065. // path: 'overall/:id',
  1066. // name: 'inventoryCheckingOverall',
  1067. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/overall.vue'),
  1068. // meta: {
  1069. // title: '盘点人盘点【全盘】',
  1070. // icon: 'reconciliation',
  1071. // hidden: true
  1072. // // permission: 'B_goodsManage_edit'
  1073. // }
  1074. // },
  1075. // {
  1076. // path: 'selfDisk/:id',
  1077. // name: 'inventoryCheckingSelfDisk',
  1078. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/selfDisk.vue'),
  1079. // meta: {
  1080. // title: '盘点人盘点【自选盘点】',
  1081. // icon: 'reconciliation',
  1082. // hidden: true
  1083. // // permission: 'B_goodsManage_edit'
  1084. // }
  1085. // },
  1086. // {
  1087. // path: 'detail/:id',
  1088. // name: 'inventoryCheckingDetail',
  1089. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/detail.vue'),
  1090. // meta: {
  1091. // title: '库存盘点详情',
  1092. // icon: 'reconciliation',
  1093. // hidden: true
  1094. // // permission: 'B_goodsManage_edit'
  1095. // }
  1096. // },
  1097. // {
  1098. // path: 'makeInventory/:id',
  1099. // name: 'inventoryCheckingMakeInventory',
  1100. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventory.vue'),
  1101. // meta: {
  1102. // title: '待盘点【盘点】',
  1103. // icon: 'reconciliation',
  1104. // hidden: true
  1105. // // permission: 'B_goodsManage_edit'
  1106. // }
  1107. // },
  1108. // {
  1109. // path: 'makeInventory/detail/:id', /* 待盘点【盘点】详情 */
  1110. // name: 'inventoryCheckingMakeInventoryDetail',
  1111. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventoryDetail.vue'),
  1112. // meta: {
  1113. // title: '库存盘点详情',
  1114. // icon: 'reconciliation',
  1115. // hidden: true
  1116. // // permission: 'B_goodsManage_edit'
  1117. // }
  1118. // },
  1119. // {
  1120. // path: 'financialAudit/detail/:id', /* 财务审核详情 */
  1121. // name: 'inventoryCheckingFinancialAuditDetail',
  1122. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/financialAuditDetail.vue'),
  1123. // meta: {
  1124. // title: '库存盘点详情',
  1125. // icon: 'reconciliation',
  1126. // hidden: true
  1127. // // permission: 'B_goodsManage_edit'
  1128. // }
  1129. // }
  1130. // ]
  1131. // }
  1132. ]
  1133. },
  1134. // 调拨管理
  1135. {
  1136. path: '/allocationManagement',
  1137. redirect: '/allocationManagement/transferOut',
  1138. component: PageView,
  1139. meta: {
  1140. title: '调拨',
  1141. icon: 'cluster'
  1142. // permission: 'M_shop'
  1143. },
  1144. children: [
  1145. {
  1146. path: '/allocationManagement/transferOut',
  1147. redirect: '/allocationManagement/transferOut/list',
  1148. name: 'transferOut',
  1149. component: RouteView,
  1150. meta: {
  1151. title: '调拨列表',
  1152. icon: 'pull-request'
  1153. // permission: 'M_goodsManage_list'
  1154. },
  1155. hideChildrenInMenu: true,
  1156. children: [
  1157. {
  1158. path: 'list',
  1159. name: 'transferOutList',
  1160. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/list.vue'),
  1161. meta: {
  1162. title: '调拨列表',
  1163. icon: 'pull-request',
  1164. hidden: true
  1165. // permission: 'M_goodsManage_list'
  1166. }
  1167. },
  1168. {
  1169. path: 'add/:id/:sn/:name',
  1170. name: 'transferOutAdd',
  1171. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/edit.vue'),
  1172. meta: {
  1173. title: '新增调拨单',
  1174. icon: 'pull-request',
  1175. hidden: true
  1176. // permission: 'B_goodsManage_edit'
  1177. }
  1178. },
  1179. {
  1180. path: 'edit/:id/:sn/:name',
  1181. name: 'transferOutEdit',
  1182. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/edit.vue'),
  1183. meta: {
  1184. title: '编辑调拨单',
  1185. icon: 'pull-request',
  1186. hidden: true
  1187. // permission: 'B_goodsManage_edit'
  1188. }
  1189. },
  1190. {
  1191. path: 'detail/:sn',
  1192. name: 'transferOutDetail',
  1193. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/detail.vue'),
  1194. meta: {
  1195. title: '调拨单详情',
  1196. icon: 'pull-request',
  1197. hidden: true
  1198. // permission: 'B_goodsManage_edit'
  1199. }
  1200. }
  1201. ]
  1202. }
  1203. ]
  1204. },
  1205. // 促销管理
  1206. {
  1207. path: '/promotionRulesManagement',
  1208. redirect: '/promotionRulesManagement/promotionRules',
  1209. component: PageView,
  1210. meta: {
  1211. title: '促销管理',
  1212. icon: 'cluster'
  1213. // permission: 'M_shop'
  1214. },
  1215. children: [
  1216. {
  1217. path: '/promotionRulesManagement/promotionRules',
  1218. redirect: '/promotionRulesManagement/promotionRules/list',
  1219. name: 'promotionRules',
  1220. component: RouteView,
  1221. meta: {
  1222. title: '促销规则管理',
  1223. icon: 'pull-request'
  1224. // permission: 'M_goodsManage_list'
  1225. },
  1226. hideChildrenInMenu: true,
  1227. children: [
  1228. {
  1229. path: 'list',
  1230. name: 'promotionRulesManagementList',
  1231. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/list.vue'),
  1232. meta: {
  1233. title: '促销规则列表',
  1234. icon: 'pull-request',
  1235. hidden: true
  1236. // permission: 'M_goodsManage_list'
  1237. }
  1238. },
  1239. {
  1240. path: 'detail/:id/:sn',
  1241. name: 'promotionRulesManagementDetail',
  1242. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/detail.vue'),
  1243. meta: {
  1244. title: '促销规则详情',
  1245. icon: 'pull-request',
  1246. hidden: true
  1247. // permission: 'B_goodsManage_edit'
  1248. }
  1249. },
  1250. {
  1251. path: 'rule/:id/:sn',
  1252. name: 'promotionRulesManagementRule',
  1253. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/rule.vue'),
  1254. meta: {
  1255. title: '促销规则设置',
  1256. icon: 'pull-request',
  1257. hidden: true
  1258. // permission: 'B_goodsManage_edit'
  1259. }
  1260. }
  1261. ]
  1262. },
  1263. {
  1264. path: '/promotionRulesManagement/orderStatistics',
  1265. redirect: '/promotionRulesManagement/orderStatistics/list',
  1266. name: 'orderStatistics',
  1267. component: RouteView,
  1268. meta: {
  1269. title: '促销订单统计',
  1270. icon: 'pull-request'
  1271. // permission: 'M_goodsManage_list'
  1272. },
  1273. hideChildrenInMenu: true,
  1274. children: [
  1275. {
  1276. path: 'list',
  1277. name: 'orderStatisticsList',
  1278. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/orderStatistics/list.vue'),
  1279. meta: {
  1280. title: '订单统计列表',
  1281. icon: 'pull-request',
  1282. hidden: true
  1283. // permission: 'M_goodsManage_list'
  1284. }
  1285. }
  1286. ]
  1287. },
  1288. {
  1289. path: '/promotionRulesManagement/productStatistics',
  1290. redirect: '/promotionRulesManagement/productStatistics/list',
  1291. name: 'productStatistics',
  1292. component: RouteView,
  1293. meta: {
  1294. title: '促销产品统计',
  1295. icon: 'pull-request'
  1296. // permission: 'M_goodsManage_list'
  1297. },
  1298. hideChildrenInMenu: true,
  1299. children: [
  1300. {
  1301. path: 'list',
  1302. name: 'productStatisticsList',
  1303. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/productStatistics/list.vue'),
  1304. meta: {
  1305. title: '产品统计列表',
  1306. icon: 'pull-request',
  1307. hidden: true
  1308. // permission: 'M_goodsManage_list'
  1309. }
  1310. }
  1311. ]
  1312. }
  1313. ]
  1314. },
  1315. // 财务管理
  1316. {
  1317. path: '/financialManagement',
  1318. redirect: '/financialManagement/returnConfirmation',
  1319. component: PageView,
  1320. meta: {
  1321. title: '财务管理',
  1322. icon: 'property-safety'
  1323. // permission: 'M_shop'
  1324. },
  1325. children: [
  1326. // 二期
  1327. // {
  1328. // path: '/financialManagement/inventoryReview',
  1329. // redirect: '/financialManagement/inventoryReview/list',
  1330. // name: 'inventoryReview',
  1331. // component: RouteView,
  1332. // meta: {
  1333. // title: '盘点审核',
  1334. // icon: 'laptop'
  1335. // // permission: 'M_goodsManage_list'
  1336. // },
  1337. // hideChildrenInMenu: true,
  1338. // children: [
  1339. // {
  1340. // path: 'list',
  1341. // name: 'inventoryReviewList',
  1342. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/list.vue'),
  1343. // meta: {
  1344. // title: '盘点审核列表',
  1345. // icon: 'laptop',
  1346. // hidden: true
  1347. // // permission: 'M_goodsManage_list'
  1348. // }
  1349. // },
  1350. // {
  1351. // path: 'detail/:id',
  1352. // name: 'inventoryReviewDetail',
  1353. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/detail.vue'),
  1354. // meta: {
  1355. // title: '盘点审核详情',
  1356. // icon: 'laptop',
  1357. // hidden: true
  1358. // // permission: 'B_goodsManage_edit'
  1359. // }
  1360. // }
  1361. // ]
  1362. // },
  1363. {
  1364. path: '/financialManagement/warehousingConfirmation',
  1365. redirect: '/financialManagement/warehousingConfirmation/list',
  1366. name: 'warehousingConfirmation',
  1367. component: RouteView,
  1368. meta: {
  1369. title: '入库确认',
  1370. icon: 'pull-request'
  1371. // permission: 'M_goodsManage_list'
  1372. },
  1373. hideChildrenInMenu: true,
  1374. children: [
  1375. {
  1376. path: 'list',
  1377. name: 'warehousingConfirmationList',
  1378. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingConfirmation/list.vue'),
  1379. meta: {
  1380. title: '入库确认列表',
  1381. icon: 'pull-request',
  1382. hidden: true
  1383. // permission: 'M_goodsManage_list'
  1384. }
  1385. }
  1386. ]
  1387. },
  1388. {
  1389. path: '/financialManagement/returnConfirmation',
  1390. redirect: '/financialManagement/returnConfirmation/list',
  1391. name: 'returnConfirmation',
  1392. component: RouteView,
  1393. meta: {
  1394. title: '退货确认',
  1395. icon: 'pull-request'
  1396. // permission: 'M_goodsManage_list'
  1397. },
  1398. hideChildrenInMenu: true,
  1399. children: [
  1400. {
  1401. path: 'list',
  1402. name: 'returnConfirmationList',
  1403. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/returnConfirmation/list.vue'),
  1404. meta: {
  1405. title: '退货确认列表',
  1406. icon: 'pull-request',
  1407. hidden: true
  1408. // permission: 'M_goodsManage_list'
  1409. }
  1410. }
  1411. ]
  1412. },
  1413. {
  1414. path: '/financialManagement/financialCollection',
  1415. redirect: '/financialManagement/financialCollection/list',
  1416. name: 'financialCollection',
  1417. component: RouteView,
  1418. meta: {
  1419. title: '财务收款',
  1420. icon: 'sketch'
  1421. // permission: 'M_goodsManage_list'
  1422. },
  1423. hideChildrenInMenu: true,
  1424. children: [
  1425. {
  1426. path: 'list',
  1427. name: 'financialCollectionList',
  1428. component: () => import(/* webpackChunkName: "shop" */ '@/views/financialManagement/financialCollection/list.vue'),
  1429. meta: {
  1430. title: '财务收款列表',
  1431. icon: 'sketch',
  1432. hidden: true
  1433. // permission: 'M_goodsManage_list'
  1434. }
  1435. }
  1436. ]
  1437. }
  1438. ]
  1439. },
  1440. // // 菜单管理
  1441. // {
  1442. // path: '/menusAuth',
  1443. // redirect: '/bnSetting/menusAuth',
  1444. // component: PageView,
  1445. // meta: {
  1446. // title: '菜单管理',
  1447. // icon: 'bars'
  1448. // // permission: 'M_menusAuth_0'
  1449. // },
  1450. // children: [
  1451. // {
  1452. // path: '/menusAuth/storeMenus',
  1453. // name: 'storeMenus',
  1454. // component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/storeMenus.vue'),
  1455. // meta: {
  1456. // title: '连锁菜单管理',
  1457. // icon: 'shop'
  1458. // // permission: 'M_menusAuth_lsMenus'
  1459. // }
  1460. // },
  1461. // // {
  1462. // // path: '/menusAuth/adminMenus',
  1463. // // name: 'adminMenus',
  1464. // // component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/adminMenus.vue'),
  1465. // // meta: {
  1466. // // title: 'boss菜单管理',
  1467. // // icon: 'appstore',
  1468. // // // permission: 'M_menusAuth_adminMenus'
  1469. // // }
  1470. // // },
  1471. // {
  1472. // path: '/menusAuth/menu',
  1473. // name: 'powerMenu',
  1474. // component: () => import(/* webpackChunkName: "auth" */ '@/views/power/menu/menu.vue'),
  1475. // meta: {
  1476. // title: 'IT菜单管理',
  1477. // icon: 'profile'
  1478. // // permission: 'M_menusAuth_menu'
  1479. // }
  1480. // }
  1481. // ]
  1482. // },
  1483. // 基础设置
  1484. {
  1485. path: '/basicData',
  1486. redirect: '/basicData/warehouse',
  1487. component: PageView,
  1488. meta: {
  1489. title: '基础设置',
  1490. icon: 'pushpin'
  1491. // permission: 'M_basicData'
  1492. },
  1493. children: [
  1494. {
  1495. path: '/basicData/warehouse',
  1496. redirect: '/basicData/warehouse/list',
  1497. name: 'warehouse',
  1498. component: RouteView,
  1499. meta: {
  1500. title: '仓库管理',
  1501. icon: 'deployment-unit'
  1502. // permission: 'M_goodsManage_list'
  1503. },
  1504. hideChildrenInMenu: true,
  1505. children: [
  1506. {
  1507. path: 'list',
  1508. name: 'warehouseList',
  1509. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/warehouse/list.vue'),
  1510. meta: {
  1511. title: '仓库列表',
  1512. icon: 'deployment-unit',
  1513. hidden: true
  1514. // permission: 'M_goodsManage_list'
  1515. }
  1516. },
  1517. {
  1518. path: '/basicData/storingLocation/:sn',
  1519. name: 'storingLocationList',
  1520. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/warehouse/storingLocation/list.vue'),
  1521. meta: {
  1522. title: '仓位列表',
  1523. icon: 'deployment-unit',
  1524. hidden: true
  1525. // permission: 'B_goodsManage_edit'
  1526. }
  1527. }
  1528. ]
  1529. },
  1530. {
  1531. path: '/basicData/transferTypeManagement',
  1532. redirect: '/basicData/transferTypeManagement/list',
  1533. name: 'transferTypeManagement',
  1534. component: RouteView,
  1535. meta: {
  1536. title: '调拨类型管理',
  1537. icon: 'deployment-unit'
  1538. // permission: 'M_goodsManage_list'
  1539. },
  1540. hideChildrenInMenu: true,
  1541. children: [
  1542. {
  1543. path: 'list',
  1544. name: 'transferTypeManagementList',
  1545. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/transferTypeManagement/list.vue'),
  1546. meta: {
  1547. title: '调拨类型列表',
  1548. icon: 'deployment-unit',
  1549. hidden: true
  1550. // permission: 'M_goodsManage_list'
  1551. }
  1552. }
  1553. ]
  1554. }
  1555. ]
  1556. },
  1557. // 权限管理
  1558. {
  1559. path: '/auth',
  1560. redirect: '/auth/userList',
  1561. component: PageView,
  1562. meta: {
  1563. title: '权限管理',
  1564. icon: 'lock'
  1565. // permission: 'M_auth_0'
  1566. },
  1567. children: [
  1568. {
  1569. path: '/auth/userList',
  1570. name: 'powerUserList',
  1571. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  1572. meta: {
  1573. title: '用户管理',
  1574. icon: 'user'
  1575. // permission: 'M_auth_userList'
  1576. }
  1577. },
  1578. {
  1579. path: '/auth/roleList',
  1580. name: 'powerRoleList',
  1581. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  1582. meta: {
  1583. title: '角色管理',
  1584. icon: 'solution'
  1585. // permission: 'M_auth_roleList'
  1586. }
  1587. },
  1588. {
  1589. path: '/menusAuth/adminMenus',
  1590. name: 'adminMenus',
  1591. component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/adminMenus.vue'),
  1592. meta: {
  1593. title: '菜单管理',
  1594. icon: 'appstore'
  1595. // permission: 'M_menusAuth_adminMenus'
  1596. }
  1597. }
  1598. ]
  1599. },
  1600. // 系统设置
  1601. {
  1602. path: '/setting',
  1603. redirect: '/setting/userList',
  1604. component: PageView,
  1605. meta: {
  1606. title: '系统设置',
  1607. icon: 'setting'
  1608. // permission: 'M_setting_0'
  1609. },
  1610. children: [
  1611. {
  1612. path: '/setting/dataDictionary',
  1613. name: 'powerDD',
  1614. component: () => import(/* webpackChunkName: "setting" */
  1615. '@/views/power/dataDictionary/dataDictionary.vue'),
  1616. meta: {
  1617. title: '数据字典管理',
  1618. icon: 'database'
  1619. // permission: 'M_sys_dataDictionary'
  1620. }
  1621. },
  1622. // {
  1623. // path: '/setting/register',
  1624. // name: 'powerRegister',
  1625. // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
  1626. // meta: {
  1627. // title: '参数管理',
  1628. // icon: 'key',
  1629. // permission: 'M_sys_register'
  1630. // }
  1631. // },
  1632. {
  1633. path: '/setting/OperateJournal',
  1634. name: 'powerOperateJournal',
  1635. component: () => import(/* webpackChunkName: "setting" */
  1636. '@/views/power/OperateJournal/OperateJournal.vue'),
  1637. meta: {
  1638. title: '操作日志',
  1639. icon: 'read'
  1640. // permission: 'M_operateJournal'
  1641. }
  1642. },
  1643. {
  1644. path: '/setting/noticeManagement',
  1645. redirect: '/setting/noticeManagement/list',
  1646. name: 'noticeManagement',
  1647. component: RouteView,
  1648. meta: {
  1649. title: '公告管理',
  1650. icon: 'sketch'
  1651. // permission: 'M_goodsManage_list'
  1652. },
  1653. hideChildrenInMenu: true,
  1654. children: [
  1655. {
  1656. path: 'list',
  1657. name: 'noticeManagementList',
  1658. component: () => import(/* webpackChunkName: "shop" */ '@/views/setting/noticeManagement/list.vue'),
  1659. meta: {
  1660. title: '公告列表',
  1661. icon: 'sketch',
  1662. hidden: true
  1663. // permission: 'M_goodsManage_list'
  1664. }
  1665. }
  1666. ]
  1667. }
  1668. ]
  1669. }
  1670. ]
  1671. },
  1672. {
  1673. path: '*',
  1674. redirect: '/404',
  1675. hidden: true
  1676. }
  1677. ]
  1678. /**
  1679. * 基础路由
  1680. * @type { *[] }
  1681. */
  1682. export const constantRouterMap = [
  1683. {
  1684. path: '/user',
  1685. component: UserLayout,
  1686. redirect: '/user/login',
  1687. hidden: true,
  1688. children: [
  1689. {
  1690. path: 'login',
  1691. name: 'login',
  1692. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  1693. },
  1694. {
  1695. path: 'register',
  1696. name: 'register',
  1697. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  1698. },
  1699. {
  1700. path: 'register-result',
  1701. name: 'registerResult',
  1702. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  1703. },
  1704. {
  1705. path: 'recover',
  1706. name: 'recover',
  1707. component: undefined
  1708. }
  1709. ]
  1710. },
  1711. {
  1712. path: '/404',
  1713. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  1714. }
  1715. ]