router.config.js 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248
  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: '/salesManagement',
  53. redirect: '/salesManagement/salesQuery',
  54. component: PageView,
  55. meta: {
  56. title: '销售管理',
  57. icon: 'account-book'
  58. // permission: 'M_salesManagement'
  59. },
  60. children: [
  61. {
  62. path: '/salesManagement/salesQuery',
  63. redirect: '/salesManagement/salesQuery/list',
  64. name: 'salesQuery',
  65. component: RouteView,
  66. meta: {
  67. title: '销售单查询',
  68. icon: 'monitor'
  69. // permission: 'M_salesQuery_list'
  70. },
  71. hideChildrenInMenu: true,
  72. children: [
  73. {
  74. path: 'list',
  75. name: 'salesQueryList',
  76. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/list.vue'),
  77. meta: {
  78. title: '销售单列表',
  79. icon: 'monitor',
  80. hidden: true
  81. // permission: 'M_salesQuery_list'
  82. }
  83. },
  84. {
  85. path: 'detail/:id/:sn',
  86. name: 'salesDetail',
  87. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/detail.vue'),
  88. meta: {
  89. title: '销售单详情',
  90. icon: 'monitor',
  91. hidden: true
  92. // permission: 'M_salesDetail'
  93. }
  94. },
  95. {
  96. path: 'add',
  97. name: 'salesAdd',
  98. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  99. meta: {
  100. title: '新增销售单',
  101. icon: 'monitor',
  102. hidden: true
  103. // permission: 'M_salesNew'
  104. }
  105. },
  106. {
  107. path: 'edit/:id',
  108. name: 'salesEdit',
  109. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  110. meta: {
  111. title: '编辑销售单',
  112. icon: 'monitor',
  113. hidden: true
  114. // permission: 'M_salesNew'
  115. }
  116. }
  117. ]
  118. },
  119. {
  120. path: '/salesManagement/backorder',
  121. redirect: '/salesManagement/backorder/list',
  122. name: 'backorder',
  123. component: RouteView,
  124. meta: {
  125. title: '缺货单',
  126. icon: 'exception'
  127. // permission: 'M_goodsManage_list'
  128. },
  129. hideChildrenInMenu: true,
  130. children: [
  131. {
  132. path: 'list',
  133. name: 'backorderList',
  134. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/list.vue'),
  135. meta: {
  136. title: '缺货单列表',
  137. icon: 'exception',
  138. hidden: true
  139. // permission: 'M_goodsManage_list'
  140. }
  141. },
  142. {
  143. path: 'detail/:id',
  144. name: 'backorderDetail',
  145. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/detail.vue'),
  146. meta: {
  147. title: '缺货单详情',
  148. icon: 'exception',
  149. hidden: true
  150. // permission: 'M_goodsManage_list'
  151. }
  152. }
  153. ]
  154. },
  155. {
  156. path: '/salesManagement/examineVerify',
  157. redirect: '/salesManagement/examineVerify/list',
  158. name: 'examineVerify',
  159. component: RouteView,
  160. meta: {
  161. title: '备货审核',
  162. icon: 'audit'
  163. // permission: 'M_outboundOrder'
  164. },
  165. hideChildrenInMenu: true,
  166. children: [
  167. {
  168. path: 'list',
  169. name: 'examineVerifyList',
  170. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/examineVerify/list.vue'),
  171. meta: {
  172. title: '备货审核列表',
  173. icon: 'audit',
  174. hidden: true
  175. // permission: 'M_outboundOrder_list'
  176. }
  177. },
  178. {
  179. path: 'detail/:id',
  180. name: 'examineVerifyDetail',
  181. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/examineVerify/detail.vue'),
  182. meta: {
  183. title: '备货审核详情',
  184. icon: 'audit',
  185. hidden: true
  186. // permission: 'B_goodsManage_edit'
  187. }
  188. }
  189. ]
  190. }
  191. ]
  192. },
  193. // 产品管理
  194. {
  195. path: '/productManagement',
  196. redirect: '/productManagement/productInfo',
  197. component: PageView,
  198. meta: {
  199. title: '产品管理',
  200. icon: 'shopping'
  201. // permission: 'M_shop'
  202. },
  203. children: [
  204. {
  205. path: '/productManagement/productInfo',
  206. redirect: '/productManagement/productInfo/list',
  207. name: 'productInfo',
  208. component: RouteView,
  209. meta: {
  210. title: '产品信息管理',
  211. icon: 'file-text'
  212. // permission: 'M_goodsManage_list'
  213. },
  214. hideChildrenInMenu: true,
  215. children: [
  216. {
  217. path: 'list',
  218. name: 'productInfoList',
  219. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/list.vue'),
  220. meta: {
  221. title: '产品信息列表',
  222. icon: 'file-text',
  223. hidden: true
  224. // permission: 'M_goodsManage_list'
  225. }
  226. },
  227. {
  228. path: 'add',
  229. name: 'productInfoAdd',
  230. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  231. meta: {
  232. title: '新增产品',
  233. icon: 'file-text',
  234. hidden: true
  235. // permission: 'B_goodsManage_edit'
  236. }
  237. },
  238. {
  239. path: 'edit/:id',
  240. name: 'productInfoEdit',
  241. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  242. meta: {
  243. title: '编辑产品',
  244. icon: 'file-text',
  245. hidden: true
  246. // permission: 'B_goodsManage_edit'
  247. }
  248. }
  249. ]
  250. },
  251. {
  252. path: '/productManagement/productPricing',
  253. redirect: '/productManagement/productPricing/list',
  254. name: 'productPricing',
  255. component: RouteView,
  256. meta: {
  257. title: '产品定价',
  258. icon: 'sketch'
  259. // permission: 'M_goodsManage_list'
  260. },
  261. hideChildrenInMenu: true,
  262. children: [
  263. {
  264. path: 'list',
  265. name: 'productPricingList',
  266. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productPricing/list.vue'),
  267. meta: {
  268. title: '产品定价列表',
  269. icon: 'sketch',
  270. hidden: true
  271. // permission: 'M_goodsManage_list'
  272. }
  273. }
  274. ]
  275. },
  276. {
  277. path: '/productManagement/priceChangeRecord',
  278. redirect: '/productManagement/priceChangeRecord/list',
  279. name: 'priceChangeRecord',
  280. component: RouteView,
  281. meta: {
  282. title: '价格变更记录',
  283. icon: 'sketch'
  284. // permission: 'M_goodsManage_list'
  285. },
  286. hideChildrenInMenu: true,
  287. children: [
  288. {
  289. path: 'list',
  290. name: 'priceChangeRecordList',
  291. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/priceChangeRecord/list.vue'),
  292. meta: {
  293. title: '价格变更记录列表',
  294. icon: 'sketch',
  295. hidden: true
  296. // permission: 'M_goodsManage_list'
  297. }
  298. }
  299. ]
  300. },
  301. {
  302. path: '/productManagement/productLaunchAudit',
  303. redirect: '/productManagement/productLaunchAudit/list',
  304. name: 'productLaunchAudit',
  305. component: RouteView,
  306. meta: {
  307. title: '产品上线审核',
  308. icon: 'sketch'
  309. // permission: 'M_goodsManage_list'
  310. },
  311. hideChildrenInMenu: true,
  312. children: [
  313. {
  314. path: 'list',
  315. name: 'productLaunchAuditList',
  316. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productLaunchAudit/list.vue'),
  317. meta: {
  318. title: '产品上线审核列表',
  319. icon: 'sketch',
  320. hidden: true
  321. // permission: 'M_goodsManage_list'
  322. }
  323. }
  324. ]
  325. },
  326. {
  327. path: '/productManagement/productOfflineAudit',
  328. redirect: '/productManagement/productOfflineAudit/list',
  329. name: 'productOfflineAudit',
  330. component: RouteView,
  331. meta: {
  332. title: '产品下线审核',
  333. icon: 'sketch'
  334. // permission: 'M_goodsManage_list'
  335. },
  336. hideChildrenInMenu: true,
  337. children: [
  338. {
  339. path: 'list',
  340. name: 'productOfflineAuditList',
  341. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productOfflineAudit/list.vue'),
  342. meta: {
  343. title: '产品下线审核列表',
  344. icon: 'sketch',
  345. hidden: true
  346. // permission: 'M_goodsManage_list'
  347. }
  348. }
  349. ]
  350. },
  351. {
  352. path: '/productManagement/productLevel',
  353. redirect: '/productManagement/productLevel/list',
  354. name: 'productLevel',
  355. component: RouteView,
  356. meta: {
  357. title: '产品级别',
  358. icon: 'sketch'
  359. // permission: 'M_goodsManage_list'
  360. },
  361. hideChildrenInMenu: true,
  362. children: [
  363. {
  364. path: 'list',
  365. name: 'productLevelList',
  366. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productLevel/list.vue'),
  367. meta: {
  368. title: '产品级别列表',
  369. icon: 'sketch',
  370. hidden: true
  371. // permission: 'M_goodsManage_list'
  372. }
  373. }
  374. ]
  375. },
  376. {
  377. path: '/productManagement/productBrand',
  378. redirect: '/productManagement/productBrand/list',
  379. name: 'productBrand',
  380. component: RouteView,
  381. meta: {
  382. title: '产品品牌管理',
  383. icon: 'sketch'
  384. // permission: 'M_goodsManage_list'
  385. },
  386. hideChildrenInMenu: true,
  387. children: [
  388. {
  389. path: 'list',
  390. name: 'productBrandList',
  391. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productBrand/list.vue'),
  392. meta: {
  393. title: '产品品牌列表',
  394. icon: 'sketch',
  395. hidden: true
  396. // permission: 'M_goodsManage_list'
  397. }
  398. }
  399. ]
  400. },
  401. {
  402. path: '/productManagement/productCategory',
  403. redirect: '/productManagement/productCategory/list',
  404. name: 'productCategory',
  405. component: RouteView,
  406. meta: {
  407. title: '产品分类管理',
  408. icon: 'sliders'
  409. // permission: 'M_goodsManage_list'
  410. },
  411. hideChildrenInMenu: true,
  412. children: [
  413. {
  414. path: 'list',
  415. name: 'productCategoryList',
  416. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productCategory/list.vue'),
  417. meta: {
  418. title: '产品分类列表',
  419. icon: 'sliders',
  420. hidden: true
  421. // permission: 'M_goodsManage_list'
  422. }
  423. }
  424. ]
  425. }
  426. // 二期
  427. // {
  428. // path: '/productManagement/purchaseBaseLimit',
  429. // redirect: '/productManagement/purchaseBaseLimit/list',
  430. // name: 'purchaseBaseLimit',
  431. // component: RouteView,
  432. // meta: {
  433. // title: '产品采购基数限制',
  434. // icon: 'sliders'
  435. // // permission: 'M_goodsManage_list'
  436. // },
  437. // hideChildrenInMenu: true,
  438. // children: [
  439. // {
  440. // path: 'list',
  441. // name: 'purchaseBaseLimitList',
  442. // component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/purchaseBaseLimit/list.vue'),
  443. // meta: {
  444. // title: '采购基数限制列表',
  445. // icon: 'sliders',
  446. // hidden: true
  447. // // permission: 'M_goodsManage_list'
  448. // }
  449. // }
  450. // ]
  451. // }
  452. ]
  453. },
  454. // 经销商管理
  455. {
  456. path: '/dealerManagement',
  457. redirect: '/dealerManagement/marketingDivisionSet',
  458. component: PageView,
  459. meta: {
  460. title: '经销商管理',
  461. icon: 'shopping'
  462. // permission: 'M_shop'
  463. },
  464. children: [
  465. {
  466. path: '/dealerManagement/marketingDivisionSet',
  467. redirect: '/dealerManagement/marketingDivisionSet/list',
  468. name: 'marketingDivisionSet',
  469. component: RouteView,
  470. meta: {
  471. title: '营销分区设置',
  472. icon: 'sketch'
  473. // permission: 'M_goodsManage_list'
  474. },
  475. hideChildrenInMenu: true,
  476. children: [
  477. {
  478. path: 'list',
  479. name: 'marketingDivisionSetList',
  480. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/marketingDivisionSet/list.vue'),
  481. meta: {
  482. title: '营销分区列表',
  483. icon: 'sketch',
  484. hidden: true
  485. // permission: 'M_goodsManage_list'
  486. }
  487. }
  488. ]
  489. },
  490. {
  491. path: '/dealerManagement/merchantInfoManagement',
  492. redirect: '/dealerManagement/merchantInfoManagement/list',
  493. name: 'merchantInfoManagement',
  494. component: RouteView,
  495. meta: {
  496. title: '商户资料管理',
  497. icon: 'file-text'
  498. // permission: 'M_goodsManage_list'
  499. },
  500. hideChildrenInMenu: true,
  501. children: [
  502. {
  503. path: 'list',
  504. name: 'merchantInfoManagementList',
  505. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/merchantInfoManagement/list.vue'),
  506. meta: {
  507. title: '商户资料列表',
  508. icon: 'file-text',
  509. hidden: true
  510. // permission: 'M_goodsManage_list'
  511. }
  512. },
  513. {
  514. path: 'add',
  515. name: 'merchantInfoManagementAdd',
  516. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/merchantInfoManagement/edit.vue'),
  517. meta: {
  518. title: '新增商户',
  519. icon: 'file-text',
  520. hidden: true
  521. // permission: 'B_goodsManage_edit'
  522. }
  523. },
  524. {
  525. path: 'edit/:id',
  526. name: 'merchantInfoManagementEdit',
  527. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/merchantInfoManagement/edit.vue'),
  528. meta: {
  529. title: '编辑商户',
  530. icon: 'file-text',
  531. hidden: true
  532. // permission: 'B_goodsManage_edit'
  533. }
  534. }
  535. ]
  536. }
  537. ]
  538. },
  539. // 供应商管理
  540. {
  541. path: '/supplierManagement',
  542. redirect: '/supplierManagement/supplierInfo',
  543. component: PageView,
  544. meta: {
  545. title: '供应商管理',
  546. icon: 'team'
  547. // permission: 'M_shop'
  548. },
  549. children: [
  550. {
  551. path: '/supplierManagement/supplierInfo',
  552. redirect: '/supplierManagement/supplierInfo/list',
  553. name: 'supplierInfo',
  554. component: RouteView,
  555. meta: {
  556. title: '供应商管理',
  557. icon: 'team'
  558. // permission: 'M_goodsManage_list'
  559. },
  560. hideChildrenInMenu: true,
  561. children: [
  562. {
  563. path: 'list',
  564. name: 'supplierInfoList',
  565. component: () => import(/* webpackChunkName: "shop" */ '@/views/supplierManagement/supplierInfo/list.vue'),
  566. meta: {
  567. title: '供应商列表',
  568. icon: 'team',
  569. hidden: true
  570. // permission: 'M_goodsManage_list'
  571. }
  572. },
  573. {
  574. path: 'add',
  575. name: 'supplierInfoAdd',
  576. component: () => import(/* webpackChunkName: "shop" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
  577. meta: {
  578. title: '新增供应商',
  579. icon: 'team',
  580. hidden: true
  581. // permission: 'B_goodsManage_edit'
  582. }
  583. },
  584. {
  585. path: 'edit/:id',
  586. name: 'supplierInfoEdit',
  587. component: () => import(/* webpackChunkName: "shop" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
  588. meta: {
  589. title: '编辑供应商',
  590. icon: 'team',
  591. hidden: true
  592. // permission: 'B_goodsManage_edit'
  593. }
  594. }
  595. ]
  596. }
  597. ]
  598. },
  599. // 库存管理
  600. {
  601. path: '/inventoryManagement',
  602. redirect: '/inventoryManagement/inventoryQuery',
  603. component: PageView,
  604. meta: {
  605. title: '库存管理',
  606. icon: 'shop'
  607. // permission: 'M_shop'
  608. },
  609. children: [
  610. {
  611. path: '/inventoryManagement/inventoryQuery',
  612. redirect: '/inventoryManagement/inventoryQuery/list',
  613. name: 'inventoryQuery',
  614. component: RouteView,
  615. meta: {
  616. title: '库存查询',
  617. icon: 'monitor'
  618. // permission: 'M_goodsManage_list'
  619. },
  620. hideChildrenInMenu: true,
  621. children: [
  622. {
  623. path: 'list',
  624. name: 'inventoryQueryList',
  625. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
  626. meta: {
  627. title: '库存列表',
  628. icon: 'monitor',
  629. hidden: true
  630. // permission: 'M_goodsManage_list'
  631. }
  632. },
  633. {
  634. path: 'warehouseDetail/:id',
  635. name: 'inventoryQueryWarehouseDetail',
  636. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
  637. meta: {
  638. title: '出入库明细',
  639. icon: 'monitor',
  640. hidden: true
  641. // permission: 'B_goodsManage_edit'
  642. }
  643. }
  644. ]
  645. },
  646. {
  647. path: '/inventoryManagement/inventoryWarning',
  648. name: 'inventoryWarningList',
  649. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
  650. meta: {
  651. title: '库存预警',
  652. icon: 'alert'
  653. // permission: 'M_goodsShelves_0'
  654. }
  655. },
  656. {
  657. path: '/inventoryManagement/warehouseAllocation',
  658. redirect: '/inventoryManagement/warehouseAllocation/list',
  659. name: 'warehouseAllocation',
  660. component: RouteView,
  661. meta: {
  662. title: '仓库调拨',
  663. icon: 'gateway'
  664. // permission: 'M_goodsManage_list'
  665. },
  666. hideChildrenInMenu: true,
  667. children: [
  668. {
  669. path: 'list',
  670. name: 'warehouseAllocationList',
  671. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouseAllocation/list.vue'),
  672. meta: {
  673. title: '仓库调拨列表',
  674. icon: 'gateway',
  675. hidden: true
  676. // permission: 'M_goodsManage_list'
  677. }
  678. },
  679. {
  680. path: 'add',
  681. name: 'warehouseAllocationAdd',
  682. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouseAllocation/edit.vue'),
  683. meta: {
  684. title: '新增仓库调拨',
  685. icon: 'gateway',
  686. hidden: true
  687. // permission: 'B_goodsManage_edit'
  688. }
  689. },
  690. {
  691. path: 'edit/:id',
  692. name: 'warehouseAllocationEdit',
  693. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouseAllocation/edit.vue'),
  694. meta: {
  695. title: '编辑仓库调拨',
  696. icon: 'gateway',
  697. hidden: true
  698. // permission: 'B_goodsManage_edit'
  699. }
  700. },
  701. {
  702. path: 'detail/:id/:sn',
  703. name: 'warehouseAllocationDetail',
  704. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouseAllocation/detail.vue'),
  705. meta: {
  706. title: '仓库调拨详情',
  707. icon: 'gateway',
  708. hidden: true
  709. // permission: 'B_goodsManage_edit'
  710. }
  711. }
  712. ]
  713. },
  714. {
  715. path: '/inventoryManagement/warehouse',
  716. redirect: '/inventoryManagement/warehouse/list',
  717. name: 'warehouse',
  718. component: RouteView,
  719. meta: {
  720. title: '仓库管理',
  721. icon: 'deployment-unit'
  722. // permission: 'M_goodsManage_list'
  723. },
  724. hideChildrenInMenu: true,
  725. children: [
  726. {
  727. path: 'list',
  728. name: 'warehouseList',
  729. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouse/list.vue'),
  730. meta: {
  731. title: '仓库列表',
  732. icon: 'deployment-unit',
  733. hidden: true
  734. // permission: 'M_goodsManage_list'
  735. }
  736. },
  737. {
  738. path: '/inventoryManagement/storingLocation/:sn',
  739. name: 'storingLocationList',
  740. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouse/storingLocation/list.vue'),
  741. meta: {
  742. title: '仓位列表',
  743. icon: 'deployment-unit',
  744. hidden: true
  745. // permission: 'B_goodsManage_edit'
  746. }
  747. }
  748. ]
  749. },
  750. {
  751. path: '/inventoryManagement/inventoryChecking',
  752. redirect: '/inventoryManagement/inventoryChecking/list',
  753. name: 'inventoryChecking',
  754. component: RouteView,
  755. meta: {
  756. title: '库存盘点',
  757. icon: 'reconciliation'
  758. // permission: 'M_goodsManage_list'
  759. },
  760. hideChildrenInMenu: true,
  761. children: [
  762. {
  763. path: 'list',
  764. name: 'inventoryCheckingList',
  765. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/list.vue'),
  766. meta: {
  767. title: '库存盘点列表',
  768. icon: 'reconciliation',
  769. hidden: true
  770. // permission: 'M_goodsManage_list'
  771. }
  772. },
  773. {
  774. path: 'overall/:id',
  775. name: 'inventoryCheckingOverall',
  776. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/overall.vue'),
  777. meta: {
  778. title: '盘点人盘点【全盘】',
  779. icon: 'reconciliation',
  780. hidden: true
  781. // permission: 'B_goodsManage_edit'
  782. }
  783. },
  784. {
  785. path: 'selfDisk/:id',
  786. name: 'inventoryCheckingSelfDisk',
  787. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/selfDisk.vue'),
  788. meta: {
  789. title: '盘点人盘点【自选盘点】',
  790. icon: 'reconciliation',
  791. hidden: true
  792. // permission: 'B_goodsManage_edit'
  793. }
  794. },
  795. {
  796. path: 'detail/:id',
  797. name: 'inventoryCheckingDetail',
  798. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/detail.vue'),
  799. meta: {
  800. title: '库存盘点详情',
  801. icon: 'reconciliation',
  802. hidden: true
  803. // permission: 'B_goodsManage_edit'
  804. }
  805. },
  806. {
  807. path: 'makeInventory/:id',
  808. name: 'inventoryCheckingMakeInventory',
  809. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventory.vue'),
  810. meta: {
  811. title: '待盘点【盘点】',
  812. icon: 'reconciliation',
  813. hidden: true
  814. // permission: 'B_goodsManage_edit'
  815. }
  816. },
  817. {
  818. path: 'makeInventory/detail/:id', /* 待盘点【盘点】详情 */
  819. name: 'inventoryCheckingMakeInventoryDetail',
  820. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventoryDetail.vue'),
  821. meta: {
  822. title: '库存盘点详情',
  823. icon: 'reconciliation',
  824. hidden: true
  825. // permission: 'B_goodsManage_edit'
  826. }
  827. },
  828. {
  829. path: 'financialAudit/detail/:id', /* 财务审核详情 */
  830. name: 'inventoryCheckingFinancialAuditDetail',
  831. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/financialAuditDetail.vue'),
  832. meta: {
  833. title: '库存盘点详情',
  834. icon: 'reconciliation',
  835. hidden: true
  836. // permission: 'B_goodsManage_edit'
  837. }
  838. }
  839. ]
  840. }
  841. ]
  842. },
  843. // 调拨管理
  844. {
  845. path: '/allocationManagement',
  846. redirect: '/allocationManagement/chainTransferOut',
  847. component: PageView,
  848. meta: {
  849. title: '调拨管理',
  850. icon: 'cluster'
  851. // permission: 'M_shop'
  852. },
  853. children: [
  854. {
  855. path: '/allocationManagement/chainTransferOut',
  856. redirect: '/allocationManagement/chainTransferOut/list',
  857. name: 'chainTransferOut',
  858. component: RouteView,
  859. meta: {
  860. title: '连锁调出',
  861. icon: 'pull-request'
  862. // permission: 'M_goodsManage_list'
  863. },
  864. hideChildrenInMenu: true,
  865. children: [
  866. {
  867. path: 'list',
  868. name: 'chainTransferOutList',
  869. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/list.vue'),
  870. meta: {
  871. title: '连锁调出列表',
  872. icon: 'pull-request',
  873. hidden: true
  874. // permission: 'M_goodsManage_list'
  875. }
  876. },
  877. {
  878. path: 'add',
  879. name: 'chainTransferOutAdd',
  880. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  881. meta: {
  882. title: '新增连锁调出',
  883. icon: 'pull-request',
  884. hidden: true
  885. // permission: 'B_goodsManage_edit'
  886. }
  887. },
  888. {
  889. path: 'edit/:id',
  890. name: 'chainTransferOutEdit',
  891. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  892. meta: {
  893. title: '编辑连锁调出',
  894. icon: 'pull-request',
  895. hidden: true
  896. // permission: 'B_goodsManage_edit'
  897. }
  898. },
  899. {
  900. path: 'detail/:id/:sn',
  901. name: 'chainTransferOutDetail',
  902. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/detail.vue'),
  903. meta: {
  904. title: '连锁调出详情',
  905. icon: 'pull-request',
  906. hidden: true
  907. // permission: 'B_goodsManage_edit'
  908. }
  909. }
  910. ]
  911. }
  912. ]
  913. },
  914. // 促销管理
  915. {
  916. path: '/promotionRulesManagement',
  917. redirect: '/promotionRulesManagement/promotionRules',
  918. component: PageView,
  919. meta: {
  920. title: '促销管理',
  921. icon: 'cluster'
  922. // permission: 'M_shop'
  923. },
  924. children: [
  925. {
  926. path: '/promotionRulesManagement/promotionRules',
  927. redirect: '/promotionRulesManagement/promotionRules/list',
  928. name: 'promotionRules',
  929. component: RouteView,
  930. meta: {
  931. title: '促销规则管理',
  932. icon: 'pull-request'
  933. // permission: 'M_goodsManage_list'
  934. },
  935. hideChildrenInMenu: true,
  936. children: [
  937. {
  938. path: 'list',
  939. name: 'promotionRulesManagementList',
  940. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/list.vue'),
  941. meta: {
  942. title: '促销规则列表',
  943. icon: 'pull-request',
  944. hidden: true
  945. // permission: 'M_goodsManage_list'
  946. }
  947. },
  948. {
  949. path: 'add',
  950. name: 'promotionRulesManagementAdd',
  951. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/edit.vue'),
  952. meta: {
  953. title: '新增促销规则',
  954. icon: 'pull-request',
  955. hidden: true
  956. // permission: 'B_goodsManage_edit'
  957. }
  958. },
  959. {
  960. path: 'edit/:id',
  961. name: 'promotionRulesManagementEdit',
  962. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/edit.vue'),
  963. meta: {
  964. title: '编辑促销规则',
  965. icon: 'pull-request',
  966. hidden: true
  967. // permission: 'B_goodsManage_edit'
  968. }
  969. },
  970. {
  971. path: 'detail/:id/:sn',
  972. name: 'promotionRulesManagementDetail',
  973. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/detail.vue'),
  974. meta: {
  975. title: '促销规则详情',
  976. icon: 'pull-request',
  977. hidden: true
  978. // permission: 'B_goodsManage_edit'
  979. }
  980. }
  981. ]
  982. }
  983. ]
  984. },
  985. // 财务管理
  986. {
  987. path: '/financialManagement',
  988. redirect: '/financialManagement/inventoryReview',
  989. component: PageView,
  990. meta: {
  991. title: '财务管理',
  992. icon: 'property-safety'
  993. // permission: 'M_shop'
  994. },
  995. children: [
  996. {
  997. path: '/financialManagement/inventoryReview',
  998. redirect: '/financialManagement/inventoryReview/list',
  999. name: 'inventoryReview',
  1000. component: RouteView,
  1001. meta: {
  1002. title: '盘点审核',
  1003. icon: 'laptop'
  1004. // permission: 'M_goodsManage_list'
  1005. },
  1006. hideChildrenInMenu: true,
  1007. children: [
  1008. {
  1009. path: 'list',
  1010. name: 'inventoryReviewList',
  1011. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/list.vue'),
  1012. meta: {
  1013. title: '盘点审核列表',
  1014. icon: 'laptop',
  1015. hidden: true
  1016. // permission: 'M_goodsManage_list'
  1017. }
  1018. },
  1019. {
  1020. path: 'detail/:id',
  1021. name: 'inventoryReviewDetail',
  1022. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/detail.vue'),
  1023. meta: {
  1024. title: '盘点审核详情',
  1025. icon: 'laptop',
  1026. hidden: true
  1027. // permission: 'B_goodsManage_edit'
  1028. }
  1029. }
  1030. ]
  1031. },
  1032. {
  1033. path: '/financialManagement/returnConfirmation',
  1034. redirect: '/financialManagement/returnConfirmation/list',
  1035. name: 'returnConfirmation',
  1036. component: RouteView,
  1037. meta: {
  1038. title: '退货确认',
  1039. icon: 'pull-request'
  1040. // permission: 'M_goodsManage_list'
  1041. },
  1042. hideChildrenInMenu: true,
  1043. children: [
  1044. {
  1045. path: 'list',
  1046. name: 'returnConfirmationList',
  1047. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/returnConfirmation/list.vue'),
  1048. meta: {
  1049. title: '退货确认列表',
  1050. icon: 'pull-request',
  1051. hidden: true
  1052. // permission: 'M_goodsManage_list'
  1053. }
  1054. },
  1055. {
  1056. path: 'detail/:id',
  1057. name: 'returnConfirmationDetail',
  1058. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/returnConfirmation/detail.vue'),
  1059. meta: {
  1060. title: '退货确认详情',
  1061. icon: 'pull-request',
  1062. hidden: true
  1063. // permission: 'B_goodsManage_edit'
  1064. }
  1065. }
  1066. ]
  1067. }
  1068. ]
  1069. },
  1070. // // 菜单管理
  1071. // {
  1072. // path: '/menusAuth',
  1073. // redirect: '/bnSetting/menusAuth',
  1074. // component: PageView,
  1075. // meta: {
  1076. // title: '菜单管理',
  1077. // icon: 'bars'
  1078. // // permission: 'M_menusAuth_0'
  1079. // },
  1080. // children: [
  1081. // {
  1082. // path: '/menusAuth/storeMenus',
  1083. // name: 'storeMenus',
  1084. // component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/storeMenus.vue'),
  1085. // meta: {
  1086. // title: '连锁菜单管理',
  1087. // icon: 'shop'
  1088. // // permission: 'M_menusAuth_lsMenus'
  1089. // }
  1090. // },
  1091. // // {
  1092. // // path: '/menusAuth/adminMenus',
  1093. // // name: 'adminMenus',
  1094. // // component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/adminMenus.vue'),
  1095. // // meta: {
  1096. // // title: 'boss菜单管理',
  1097. // // icon: 'appstore',
  1098. // // // permission: 'M_menusAuth_adminMenus'
  1099. // // }
  1100. // // },
  1101. // {
  1102. // path: '/menusAuth/menu',
  1103. // name: 'powerMenu',
  1104. // component: () => import(/* webpackChunkName: "auth" */ '@/views/power/menu/menu.vue'),
  1105. // meta: {
  1106. // title: 'IT菜单管理',
  1107. // icon: 'profile'
  1108. // // permission: 'M_menusAuth_menu'
  1109. // }
  1110. // }
  1111. // ]
  1112. // },
  1113. // 权限管理
  1114. {
  1115. path: '/auth',
  1116. redirect: '/auth/userList',
  1117. component: PageView,
  1118. meta: {
  1119. title: '权限管理',
  1120. icon: 'lock'
  1121. // permission: 'M_auth_0'
  1122. },
  1123. children: [
  1124. {
  1125. path: '/auth/userList',
  1126. name: 'powerUserList',
  1127. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  1128. meta: {
  1129. title: '用户管理',
  1130. icon: 'user'
  1131. // permission: 'M_auth_userList'
  1132. }
  1133. },
  1134. {
  1135. path: '/auth/roleList',
  1136. name: 'powerRoleList',
  1137. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  1138. meta: {
  1139. title: '角色管理',
  1140. icon: 'solution'
  1141. // permission: 'M_auth_roleList'
  1142. }
  1143. },
  1144. {
  1145. path: '/menusAuth/adminMenus',
  1146. name: 'adminMenus',
  1147. component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/adminMenus.vue'),
  1148. meta: {
  1149. title: '菜单管理',
  1150. icon: 'appstore'
  1151. // permission: 'M_menusAuth_adminMenus'
  1152. }
  1153. }
  1154. ]
  1155. },
  1156. // 系统设置
  1157. {
  1158. path: '/setting',
  1159. redirect: '/setting/userList',
  1160. component: PageView,
  1161. meta: {
  1162. title: '系统设置',
  1163. icon: 'setting'
  1164. // permission: 'M_setting_0'
  1165. },
  1166. children: [
  1167. {
  1168. path: '/setting/dataDictionary',
  1169. name: 'powerDD',
  1170. component: () => import(/* webpackChunkName: "setting" */
  1171. '@/views/power/dataDictionary/dataDictionary.vue'),
  1172. meta: {
  1173. title: '数据字典管理',
  1174. icon: 'database'
  1175. // permission: 'M_sys_dataDictionary'
  1176. }
  1177. },
  1178. // {
  1179. // path: '/setting/register',
  1180. // name: 'powerRegister',
  1181. // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
  1182. // meta: {
  1183. // title: '参数管理',
  1184. // icon: 'key',
  1185. // permission: 'M_sys_register'
  1186. // }
  1187. // },
  1188. {
  1189. path: '/setting/OperateJournal',
  1190. name: 'powerOperateJournal',
  1191. component: () => import(/* webpackChunkName: "setting" */
  1192. '@/views/power/OperateJournal/OperateJournal.vue'),
  1193. meta: {
  1194. title: '操作日志',
  1195. icon: 'read'
  1196. // permission: 'M_operateJournal'
  1197. }
  1198. }
  1199. ]
  1200. }
  1201. ]
  1202. },
  1203. {
  1204. path: '*',
  1205. redirect: '/404',
  1206. hidden: true
  1207. }
  1208. ]
  1209. /**
  1210. * 基础路由
  1211. * @type { *[] }
  1212. */
  1213. export const constantRouterMap = [
  1214. {
  1215. path: '/user',
  1216. component: UserLayout,
  1217. redirect: '/user/login',
  1218. hidden: true,
  1219. children: [
  1220. {
  1221. path: 'login',
  1222. name: 'login',
  1223. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  1224. },
  1225. {
  1226. path: 'register',
  1227. name: 'register',
  1228. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  1229. },
  1230. {
  1231. path: 'register-result',
  1232. name: 'registerResult',
  1233. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  1234. },
  1235. {
  1236. path: 'recover',
  1237. name: 'recover',
  1238. component: undefined
  1239. }
  1240. ]
  1241. },
  1242. {
  1243. path: '/404',
  1244. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  1245. }
  1246. ]