router.config.js 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760
  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. },
  419. {
  420. path: '/dealerManagement/dealerAccountManagement',
  421. redirect: '/dealerManagement/dealerAccountManagement/list',
  422. name: 'dealerAccountManagement',
  423. component: RouteView,
  424. meta: {
  425. title: '经销商账号管理',
  426. icon: 'sketch'
  427. // permission: 'M_goodsManage_list'
  428. },
  429. hideChildrenInMenu: true,
  430. children: [
  431. {
  432. path: 'list',
  433. name: 'dealerAccountManagementList',
  434. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/dealerAccountManagement/list.vue'),
  435. meta: {
  436. title: '经销商账号列表',
  437. icon: 'sketch',
  438. hidden: true
  439. // permission: 'M_goodsManage_list'
  440. }
  441. }
  442. ]
  443. }
  444. // {
  445. // path: '/dealerManagement/dealerRelationshipBinding',
  446. // redirect: '/dealerManagement/dealerRelationshipBinding/list',
  447. // name: 'dealerRelationshipBinding',
  448. // component: RouteView,
  449. // meta: {
  450. // title: '经销商关系绑定',
  451. // icon: 'sketch'
  452. // // permission: 'M_goodsManage_list'
  453. // },
  454. // hideChildrenInMenu: true,
  455. // children: [
  456. // {
  457. // path: 'list',
  458. // name: 'dealerRelationshipBindingList',
  459. // component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/dealerRelationshipBinding/list.vue'),
  460. // meta: {
  461. // title: '经销商关系绑定列表',
  462. // icon: 'sketch',
  463. // hidden: true
  464. // // permission: 'M_goodsManage_list'
  465. // }
  466. // }
  467. // ]
  468. // },
  469. // {
  470. // path: '/dealerManagement/rebateSettings',
  471. // redirect: '/dealerManagement/rebateSettings/list',
  472. // name: 'rebateSettings',
  473. // component: RouteView,
  474. // meta: {
  475. // title: '差价归属设置',
  476. // icon: 'sketch'
  477. // // permission: 'M_goodsManage_list'
  478. // },
  479. // hideChildrenInMenu: true,
  480. // children: [
  481. // {
  482. // path: 'list',
  483. // name: 'rebateSettingsList',
  484. // component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/rebateSettings/list.vue'),
  485. // meta: {
  486. // title: '差价归属设置列表',
  487. // icon: 'sketch',
  488. // hidden: true
  489. // // permission: 'M_goodsManage_list'
  490. // }
  491. // }
  492. // ]
  493. // }
  494. ]
  495. },
  496. // 供应商管理
  497. {
  498. path: '/supplierManagement',
  499. redirect: '/supplierManagement/supplierInfo',
  500. component: PageView,
  501. meta: {
  502. title: '供应商管理',
  503. icon: 'team'
  504. // permission: 'M_shop'
  505. },
  506. children: [
  507. {
  508. path: '/supplierManagement/supplierInfo',
  509. redirect: '/supplierManagement/supplierInfo/list',
  510. name: 'supplierInfo',
  511. component: RouteView,
  512. meta: {
  513. title: '供应商列表',
  514. icon: 'team'
  515. // permission: 'M_goodsManage_list'
  516. },
  517. hideChildrenInMenu: true,
  518. children: [
  519. {
  520. path: 'list',
  521. name: 'supplierInfoList',
  522. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/list.vue'),
  523. meta: {
  524. title: '供应商列表',
  525. icon: 'team',
  526. hidden: true
  527. // permission: 'M_goodsManage_list'
  528. }
  529. },
  530. {
  531. path: 'add',
  532. name: 'supplierInfoAdd',
  533. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
  534. meta: {
  535. title: '新增供应商',
  536. icon: 'team',
  537. hidden: true
  538. // permission: 'B_goodsManage_edit'
  539. }
  540. },
  541. {
  542. path: 'edit/:id',
  543. name: 'supplierInfoEdit',
  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: 'associatedProduct/:sn/:name',
  554. name: 'associatedProduct',
  555. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/associatedProduct/add.vue'),
  556. meta: {
  557. title: '关联产品',
  558. icon: 'team',
  559. hidden: true
  560. // permission: 'B_goodsManage_edit'
  561. }
  562. }
  563. ]
  564. },
  565. {
  566. path: '/supplierManagement/associatedProductDetails',
  567. redirect: '/supplierManagement/associatedProductDetails/list',
  568. name: 'associatedProductDetails',
  569. component: RouteView,
  570. meta: {
  571. title: '关联产品明细表',
  572. icon: 'sketch'
  573. // permission: 'M_goodsManage_list'
  574. },
  575. hideChildrenInMenu: true,
  576. children: [
  577. {
  578. path: 'list',
  579. name: 'associatedProductDetailsList',
  580. component: () => import(/* webpackChunkName: "shop" */ '@/views/supplierManagement/associatedProductDetails/list.vue'),
  581. meta: {
  582. title: '关联产品明细列表',
  583. icon: 'sketch',
  584. hidden: true
  585. // permission: 'M_goodsManage_list'
  586. }
  587. }
  588. ]
  589. }
  590. ]
  591. },
  592. // 采购管理
  593. {
  594. path: '/purchasingManagement',
  595. redirect: '/purchasingManagement/purchaseOrder',
  596. component: PageView,
  597. meta: {
  598. title: '采购管理',
  599. icon: 'gold'
  600. // permission: 'M_bulkWarehousing'
  601. },
  602. children: [
  603. {
  604. path: '/purchasingManagement/bulkWarehousingOrder',
  605. redirect: '/purchasingManagement/bulkWarehousingOrder/list',
  606. name: 'bulkWarehousingOrder',
  607. component: RouteView,
  608. meta: {
  609. title: '散件入库',
  610. icon: 'gold'
  611. // permission: 'M_bulkWarehousingOrder_list'
  612. },
  613. hideChildrenInMenu: true,
  614. children: [
  615. {
  616. path: 'list',
  617. name: 'bulkWarehousingOrderList',
  618. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/bulkWarehousingOrder/list.vue'),
  619. meta: {
  620. title: '散件入库单列表',
  621. icon: 'gold',
  622. hidden: true
  623. // permission: 'M_bulkWarehousingOrder_list'
  624. }
  625. },
  626. {
  627. path: 'add/:id/:sn',
  628. name: 'bulkWarehousingOrderAdd',
  629. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/bulkWarehousingOrder/edit.vue'),
  630. meta: {
  631. title: '新增散件入库单',
  632. icon: 'gold',
  633. hidden: true
  634. }
  635. },
  636. {
  637. path: 'edit/:id/:sn',
  638. name: 'bulkWarehousingOrderEdit',
  639. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/bulkWarehousingOrder/edit.vue'),
  640. meta: {
  641. title: '编辑散件入库单',
  642. icon: 'gold',
  643. hidden: true
  644. }
  645. },
  646. {
  647. path: 'detail/:id/:sn',
  648. name: 'bulkWarehousingOrderDetail',
  649. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/bulkWarehousingOrder/detail.vue'),
  650. meta: {
  651. title: '散件入库单详情',
  652. icon: 'gold',
  653. hidden: true
  654. }
  655. }
  656. ]
  657. }
  658. ]
  659. },
  660. // 销售管理
  661. {
  662. path: '/salesManagement',
  663. redirect: '/salesManagement/salesQuery',
  664. component: PageView,
  665. meta: {
  666. title: '销售管理',
  667. icon: 'account-book'
  668. // permission: 'M_salesManagement'
  669. },
  670. children: [
  671. {
  672. path: '/salesManagement/salesQuery',
  673. redirect: '/salesManagement/salesQuery/list',
  674. name: 'salesQuery',
  675. component: RouteView,
  676. meta: {
  677. title: '销售单查询',
  678. icon: 'monitor'
  679. // permission: 'M_salesQuery_list'
  680. },
  681. hideChildrenInMenu: true,
  682. children: [
  683. {
  684. path: 'list',
  685. name: 'salesQueryList',
  686. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/list.vue'),
  687. meta: {
  688. title: '销售单列表',
  689. icon: 'monitor',
  690. hidden: true
  691. // permission: 'M_salesQuery_list'
  692. }
  693. },
  694. {
  695. path: 'detail/:sn',
  696. name: 'salesDetail',
  697. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/detail.vue'),
  698. meta: {
  699. title: '销售单详情',
  700. icon: 'monitor',
  701. hidden: true
  702. // permission: 'M_salesDetail'
  703. }
  704. },
  705. {
  706. path: 'add/:sn',
  707. name: 'salesAdd',
  708. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  709. meta: {
  710. title: '新增销售单',
  711. icon: 'monitor',
  712. hidden: true
  713. // permission: 'M_salesNew'
  714. }
  715. },
  716. {
  717. path: 'edit/:sn',
  718. name: 'salesEdit',
  719. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  720. meta: {
  721. title: '编辑销售单',
  722. icon: 'monitor',
  723. hidden: true
  724. // permission: 'M_salesNew'
  725. }
  726. },
  727. {
  728. path: 'waitDispatch/:sn',
  729. name: 'waitDispatch',
  730. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/waitDispatch/edit.vue'),
  731. meta: {
  732. title: '下推',
  733. icon: 'monitor',
  734. hidden: true
  735. // permission: 'M_salesNew'
  736. }
  737. }
  738. ]
  739. },
  740. {
  741. path: '/salesManagement/examineVerify',
  742. redirect: '/salesManagement/examineVerify/list',
  743. name: 'examineVerify',
  744. component: RouteView,
  745. meta: {
  746. title: '备货审核',
  747. icon: 'audit'
  748. // permission: 'M_outboundOrder'
  749. },
  750. hideChildrenInMenu: true,
  751. children: [
  752. {
  753. path: 'list',
  754. name: 'examineVerifyList',
  755. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/examineVerify/list.vue'),
  756. meta: {
  757. title: '备货审核列表',
  758. icon: 'audit',
  759. hidden: true
  760. // permission: 'M_outboundOrder_list'
  761. }
  762. },
  763. {
  764. path: 'detail/:id',
  765. name: 'examineVerifyDetail',
  766. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/examineVerify/detail.vue'),
  767. meta: {
  768. title: '备货审核详情',
  769. icon: 'audit',
  770. hidden: true
  771. // permission: 'B_goodsManage_edit'
  772. }
  773. }
  774. ]
  775. },
  776. {
  777. path: '/salesManagement/pushOrderManagement',
  778. redirect: '/salesManagement/pushOrderManagement/list',
  779. name: 'pushOrderManagement',
  780. component: RouteView,
  781. meta: {
  782. title: '下推订单管理',
  783. icon: 'export'
  784. // permission: 'M_outboundList'
  785. },
  786. hideChildrenInMenu: true,
  787. children: [
  788. {
  789. path: 'list',
  790. name: 'pushOrderManagementList',
  791. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/pushOrderManagement/list.vue'),
  792. meta: {
  793. title: '下推订单管理列表',
  794. icon: 'export',
  795. hidden: true
  796. // permission: 'M_outboundList'
  797. }
  798. }
  799. ]
  800. },
  801. {
  802. path: '/salesManagement/outboundOrder',
  803. redirect: '/salesManagement/outboundOrder/list',
  804. name: 'outboundOrder',
  805. component: RouteView,
  806. meta: {
  807. title: '出库',
  808. icon: 'export'
  809. // permission: 'M_outboundList'
  810. },
  811. hideChildrenInMenu: true,
  812. children: [
  813. {
  814. path: 'list',
  815. name: 'outboundOrderList',
  816. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/list.vue'),
  817. meta: {
  818. title: '出库列表',
  819. icon: 'export',
  820. hidden: true
  821. // permission: 'M_outboundList'
  822. }
  823. },
  824. {
  825. path: 'detail/:id',
  826. name: 'outboundOrderDetail',
  827. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/detail.vue'),
  828. meta: {
  829. title: '出库明细',
  830. icon: 'export',
  831. hidden: true
  832. }
  833. }
  834. ]
  835. },
  836. {
  837. path: '/salesManagement/salesReturn',
  838. redirect: '/salesManagement/salesReturn/list',
  839. name: 'salesReturn',
  840. component: RouteView,
  841. meta: {
  842. title: '销售退货列表',
  843. icon: 'fund'
  844. // permission: 'M_salesReturn_list'
  845. },
  846. hideChildrenInMenu: true,
  847. children: [
  848. {
  849. path: 'list',
  850. name: 'salesReturnList',
  851. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/list.vue'),
  852. meta: {
  853. title: '退货单列表',
  854. icon: 'fund',
  855. hidden: true
  856. // permission: 'M_salesReturn_list'
  857. }
  858. },
  859. {
  860. path: 'detail/:id/:sn',
  861. name: 'salesReturnDetail',
  862. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/detail.vue'),
  863. meta: {
  864. title: '退货单详情',
  865. icon: 'fund',
  866. hidden: true
  867. // permission: 'M_salesReturn'
  868. }
  869. },
  870. {
  871. path: 'salesReturnGrabEdit/:id/:sn/:buyerSn',
  872. name: 'salesReturnGrabEdit',
  873. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnGrabEdit.vue'),
  874. meta: {
  875. title: '编辑退货单(抓单)',
  876. icon: 'fund',
  877. hidden: true
  878. // permission: 'M_salesReturnGrabEdit'
  879. }
  880. },
  881. {
  882. path: 'salesReturnEdit/:id/:sn/:buyerSn',
  883. name: 'salesReturnEdit',
  884. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnEdit.vue'),
  885. meta: {
  886. title: '编辑退货单(不抓单)',
  887. icon: 'fund',
  888. hidden: true
  889. // permission: 'M_salesReturnEdit'
  890. }
  891. }
  892. ]
  893. },
  894. {
  895. path: '/salesManagement/backorder',
  896. redirect: '/salesManagement/backorder/list',
  897. name: 'backorder',
  898. component: RouteView,
  899. meta: {
  900. title: '销售缺货列表',
  901. icon: 'exception'
  902. // permission: 'M_goodsManage_list'
  903. },
  904. hideChildrenInMenu: true,
  905. children: [
  906. {
  907. path: 'list',
  908. name: 'backorderList',
  909. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/list.vue'),
  910. meta: {
  911. title: '缺货单列表',
  912. icon: 'exception',
  913. hidden: true
  914. // permission: 'M_goodsManage_list'
  915. }
  916. },
  917. {
  918. path: 'detail/:id',
  919. name: 'backorderDetail',
  920. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/detail.vue'),
  921. meta: {
  922. title: '缺货单详情',
  923. icon: 'exception',
  924. hidden: true
  925. // permission: 'M_goodsManage_list'
  926. }
  927. }
  928. ]
  929. },
  930. {
  931. path: '/salesManagement/shortageStatisticsC',
  932. redirect: '/salesManagement/shortageStatisticsC/list',
  933. name: 'shortageStatisticsC',
  934. component: RouteView,
  935. meta: {
  936. title: '缺货统计(按客户)',
  937. icon: 'sketch'
  938. // permission: 'M_goodsManage_list'
  939. },
  940. hideChildrenInMenu: true,
  941. children: [
  942. {
  943. path: 'list',
  944. name: 'shortageStatisticsCList',
  945. component: () => import(/* webpackChunkName: "shop" */ '@/views/salesManagement/shortageStatisticsC/list.vue'),
  946. meta: {
  947. title: '缺货统计列表',
  948. icon: 'sketch',
  949. hidden: true
  950. // permission: 'M_goodsManage_list'
  951. }
  952. }
  953. ]
  954. },
  955. {
  956. path: '/salesManagement/shortageStatisticsP',
  957. redirect: '/salesManagement/shortageStatisticsP/list',
  958. name: 'shortageStatisticsP',
  959. component: RouteView,
  960. meta: {
  961. title: '缺货统计(按产品)',
  962. icon: 'sketch'
  963. // permission: 'M_goodsManage_list'
  964. },
  965. hideChildrenInMenu: true,
  966. children: [
  967. {
  968. path: 'list',
  969. name: 'shortageStatisticsPList',
  970. component: () => import(/* webpackChunkName: "shop" */ '@/views/salesManagement/shortageStatisticsP/list.vue'),
  971. meta: {
  972. title: '缺货统计列表',
  973. icon: 'sketch',
  974. hidden: true
  975. // permission: 'M_goodsManage_list'
  976. }
  977. }
  978. ]
  979. }
  980. ]
  981. },
  982. // 库存管理
  983. {
  984. path: '/inventoryManagement',
  985. redirect: '/inventoryManagement/inventoryQuery',
  986. component: PageView,
  987. meta: {
  988. title: '库存管理',
  989. icon: 'shop'
  990. // permission: 'M_shop'
  991. },
  992. children: [
  993. {
  994. path: '/inventoryManagement/inventoryQuery',
  995. redirect: '/inventoryManagement/inventoryQuery/list',
  996. name: 'inventoryQuery',
  997. component: RouteView,
  998. meta: {
  999. title: '库存查询',
  1000. icon: 'monitor'
  1001. // permission: 'M_goodsManage_list'
  1002. },
  1003. hideChildrenInMenu: true,
  1004. children: [
  1005. {
  1006. path: 'list',
  1007. name: 'inventoryQueryList',
  1008. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
  1009. meta: {
  1010. title: '库存列表',
  1011. icon: 'monitor',
  1012. hidden: true
  1013. // permission: 'M_goodsManage_list'
  1014. }
  1015. },
  1016. {
  1017. path: 'warehouseDetail/:id',
  1018. name: 'inventoryQueryWarehouseDetail',
  1019. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
  1020. meta: {
  1021. title: '出入库明细',
  1022. icon: 'monitor',
  1023. hidden: true
  1024. // permission: 'B_goodsManage_edit'
  1025. }
  1026. }
  1027. ]
  1028. },
  1029. {
  1030. path: '/inventoryManagement/inventoryWarning',
  1031. name: 'inventoryWarningList',
  1032. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
  1033. meta: {
  1034. title: '库存预警',
  1035. icon: 'alert'
  1036. // permission: 'M_goodsShelves_0'
  1037. }
  1038. }
  1039. // 二期
  1040. // {
  1041. // path: '/inventoryManagement/inventoryChecking',
  1042. // redirect: '/inventoryManagement/inventoryChecking/list',
  1043. // name: 'inventoryChecking',
  1044. // component: RouteView,
  1045. // meta: {
  1046. // title: '库存盘点',
  1047. // icon: 'reconciliation'
  1048. // // permission: 'M_goodsManage_list'
  1049. // },
  1050. // hideChildrenInMenu: true,
  1051. // children: [
  1052. // {
  1053. // path: 'list',
  1054. // name: 'inventoryCheckingList',
  1055. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/list.vue'),
  1056. // meta: {
  1057. // title: '库存盘点列表',
  1058. // icon: 'reconciliation',
  1059. // hidden: true
  1060. // // permission: 'M_goodsManage_list'
  1061. // }
  1062. // },
  1063. // {
  1064. // path: 'overall/:id',
  1065. // name: 'inventoryCheckingOverall',
  1066. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/overall.vue'),
  1067. // meta: {
  1068. // title: '盘点人盘点【全盘】',
  1069. // icon: 'reconciliation',
  1070. // hidden: true
  1071. // // permission: 'B_goodsManage_edit'
  1072. // }
  1073. // },
  1074. // {
  1075. // path: 'selfDisk/:id',
  1076. // name: 'inventoryCheckingSelfDisk',
  1077. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/selfDisk.vue'),
  1078. // meta: {
  1079. // title: '盘点人盘点【自选盘点】',
  1080. // icon: 'reconciliation',
  1081. // hidden: true
  1082. // // permission: 'B_goodsManage_edit'
  1083. // }
  1084. // },
  1085. // {
  1086. // path: 'detail/:id',
  1087. // name: 'inventoryCheckingDetail',
  1088. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/detail.vue'),
  1089. // meta: {
  1090. // title: '库存盘点详情',
  1091. // icon: 'reconciliation',
  1092. // hidden: true
  1093. // // permission: 'B_goodsManage_edit'
  1094. // }
  1095. // },
  1096. // {
  1097. // path: 'makeInventory/:id',
  1098. // name: 'inventoryCheckingMakeInventory',
  1099. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventory.vue'),
  1100. // meta: {
  1101. // title: '待盘点【盘点】',
  1102. // icon: 'reconciliation',
  1103. // hidden: true
  1104. // // permission: 'B_goodsManage_edit'
  1105. // }
  1106. // },
  1107. // {
  1108. // path: 'makeInventory/detail/:id', /* 待盘点【盘点】详情 */
  1109. // name: 'inventoryCheckingMakeInventoryDetail',
  1110. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventoryDetail.vue'),
  1111. // meta: {
  1112. // title: '库存盘点详情',
  1113. // icon: 'reconciliation',
  1114. // hidden: true
  1115. // // permission: 'B_goodsManage_edit'
  1116. // }
  1117. // },
  1118. // {
  1119. // path: 'financialAudit/detail/:id', /* 财务审核详情 */
  1120. // name: 'inventoryCheckingFinancialAuditDetail',
  1121. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/financialAuditDetail.vue'),
  1122. // meta: {
  1123. // title: '库存盘点详情',
  1124. // icon: 'reconciliation',
  1125. // hidden: true
  1126. // // permission: 'B_goodsManage_edit'
  1127. // }
  1128. // }
  1129. // ]
  1130. // }
  1131. ]
  1132. },
  1133. // 调拨管理
  1134. {
  1135. path: '/allocationManagement',
  1136. redirect: '/allocationManagement/transferOut',
  1137. component: PageView,
  1138. meta: {
  1139. title: '调拨',
  1140. icon: 'cluster'
  1141. // permission: 'M_shop'
  1142. },
  1143. children: [
  1144. {
  1145. path: '/allocationManagement/transferOut',
  1146. redirect: '/allocationManagement/transferOut/list',
  1147. name: 'transferOut',
  1148. component: RouteView,
  1149. meta: {
  1150. title: '调拨列表',
  1151. icon: 'pull-request'
  1152. // permission: 'M_goodsManage_list'
  1153. },
  1154. hideChildrenInMenu: true,
  1155. children: [
  1156. {
  1157. path: 'list',
  1158. name: 'transferOutList',
  1159. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/list.vue'),
  1160. meta: {
  1161. title: '调拨列表',
  1162. icon: 'pull-request',
  1163. hidden: true
  1164. // permission: 'M_goodsManage_list'
  1165. }
  1166. },
  1167. {
  1168. path: 'add/:id/:sn',
  1169. name: 'transferOutAdd',
  1170. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/edit.vue'),
  1171. meta: {
  1172. title: '新增调拨单',
  1173. icon: 'pull-request',
  1174. hidden: true
  1175. // permission: 'B_goodsManage_edit'
  1176. }
  1177. },
  1178. {
  1179. path: 'edit/:id/:sn',
  1180. name: 'transferOutEdit',
  1181. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/edit.vue'),
  1182. meta: {
  1183. title: '编辑调拨单',
  1184. icon: 'pull-request',
  1185. hidden: true
  1186. // permission: 'B_goodsManage_edit'
  1187. }
  1188. },
  1189. {
  1190. path: 'detail/:sn',
  1191. name: 'transferOutDetail',
  1192. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/detail.vue'),
  1193. meta: {
  1194. title: '调拨单详情',
  1195. icon: 'pull-request',
  1196. hidden: true
  1197. // permission: 'B_goodsManage_edit'
  1198. }
  1199. }
  1200. ]
  1201. }
  1202. ]
  1203. },
  1204. // 促销管理
  1205. {
  1206. path: '/promotionRulesManagement',
  1207. redirect: '/promotionRulesManagement/promotionRules',
  1208. component: PageView,
  1209. meta: {
  1210. title: '促销管理',
  1211. icon: 'cluster'
  1212. // permission: 'M_shop'
  1213. },
  1214. children: [
  1215. {
  1216. path: '/promotionRulesManagement/promotionRules',
  1217. redirect: '/promotionRulesManagement/promotionRules/list',
  1218. name: 'promotionRules',
  1219. component: RouteView,
  1220. meta: {
  1221. title: '促销规则管理',
  1222. icon: 'pull-request'
  1223. // permission: 'M_goodsManage_list'
  1224. },
  1225. hideChildrenInMenu: true,
  1226. children: [
  1227. {
  1228. path: 'list',
  1229. name: 'promotionRulesManagementList',
  1230. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/list.vue'),
  1231. meta: {
  1232. title: '促销规则列表',
  1233. icon: 'pull-request',
  1234. hidden: true
  1235. // permission: 'M_goodsManage_list'
  1236. }
  1237. },
  1238. {
  1239. path: 'add',
  1240. name: 'promotionRulesManagementAdd',
  1241. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/edit.vue'),
  1242. meta: {
  1243. title: '新增促销规则',
  1244. icon: 'pull-request',
  1245. hidden: true
  1246. // permission: 'B_goodsManage_edit'
  1247. }
  1248. },
  1249. {
  1250. path: 'edit/:id',
  1251. name: 'promotionRulesManagementEdit',
  1252. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/edit.vue'),
  1253. meta: {
  1254. title: '编辑促销规则',
  1255. icon: 'pull-request',
  1256. hidden: true
  1257. // permission: 'B_goodsManage_edit'
  1258. }
  1259. },
  1260. {
  1261. path: 'detail/:id/:sn',
  1262. name: 'promotionRulesManagementDetail',
  1263. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/detail.vue'),
  1264. meta: {
  1265. title: '促销规则详情',
  1266. icon: 'pull-request',
  1267. hidden: true
  1268. // permission: 'B_goodsManage_edit'
  1269. }
  1270. },
  1271. {
  1272. path: 'rule/:id/:sn',
  1273. name: 'promotionRulesManagementRule',
  1274. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/rule.vue'),
  1275. meta: {
  1276. title: '促销规则设置',
  1277. icon: 'pull-request',
  1278. hidden: true
  1279. // permission: 'B_goodsManage_edit'
  1280. }
  1281. }
  1282. ]
  1283. },
  1284. {
  1285. path: '/promotionRulesManagement/orderStatistics',
  1286. redirect: '/promotionRulesManagement/orderStatistics/list',
  1287. name: 'orderStatistics',
  1288. component: RouteView,
  1289. meta: {
  1290. title: '促销订单统计',
  1291. icon: 'pull-request'
  1292. // permission: 'M_goodsManage_list'
  1293. },
  1294. hideChildrenInMenu: true,
  1295. children: [
  1296. {
  1297. path: 'list',
  1298. name: 'orderStatisticsList',
  1299. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/orderStatistics/list.vue'),
  1300. meta: {
  1301. title: '订单统计列表',
  1302. icon: 'pull-request',
  1303. hidden: true
  1304. // permission: 'M_goodsManage_list'
  1305. }
  1306. }
  1307. ]
  1308. },
  1309. {
  1310. path: '/promotionRulesManagement/productStatistics',
  1311. redirect: '/promotionRulesManagement/productStatistics/list',
  1312. name: 'productStatistics',
  1313. component: RouteView,
  1314. meta: {
  1315. title: '促销产品统计',
  1316. icon: 'pull-request'
  1317. // permission: 'M_goodsManage_list'
  1318. },
  1319. hideChildrenInMenu: true,
  1320. children: [
  1321. {
  1322. path: 'list',
  1323. name: 'productStatisticsList',
  1324. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/productStatistics/list.vue'),
  1325. meta: {
  1326. title: '产品统计列表',
  1327. icon: 'pull-request',
  1328. hidden: true
  1329. // permission: 'M_goodsManage_list'
  1330. }
  1331. }
  1332. ]
  1333. }
  1334. ]
  1335. },
  1336. // 财务管理
  1337. {
  1338. path: '/financialManagement',
  1339. redirect: '/financialManagement/returnConfirmation',
  1340. component: PageView,
  1341. meta: {
  1342. title: '财务管理',
  1343. icon: 'property-safety'
  1344. // permission: 'M_shop'
  1345. },
  1346. children: [
  1347. // 二期
  1348. // {
  1349. // path: '/financialManagement/inventoryReview',
  1350. // redirect: '/financialManagement/inventoryReview/list',
  1351. // name: 'inventoryReview',
  1352. // component: RouteView,
  1353. // meta: {
  1354. // title: '盘点审核',
  1355. // icon: 'laptop'
  1356. // // permission: 'M_goodsManage_list'
  1357. // },
  1358. // hideChildrenInMenu: true,
  1359. // children: [
  1360. // {
  1361. // path: 'list',
  1362. // name: 'inventoryReviewList',
  1363. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/list.vue'),
  1364. // meta: {
  1365. // title: '盘点审核列表',
  1366. // icon: 'laptop',
  1367. // hidden: true
  1368. // // permission: 'M_goodsManage_list'
  1369. // }
  1370. // },
  1371. // {
  1372. // path: 'detail/:id',
  1373. // name: 'inventoryReviewDetail',
  1374. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/detail.vue'),
  1375. // meta: {
  1376. // title: '盘点审核详情',
  1377. // icon: 'laptop',
  1378. // hidden: true
  1379. // // permission: 'B_goodsManage_edit'
  1380. // }
  1381. // }
  1382. // ]
  1383. // },
  1384. {
  1385. path: '/financialManagement/warehousingConfirmation',
  1386. redirect: '/financialManagement/warehousingConfirmation/list',
  1387. name: 'warehousingConfirmation',
  1388. component: RouteView,
  1389. meta: {
  1390. title: '入库确认',
  1391. icon: 'pull-request'
  1392. // permission: 'M_goodsManage_list'
  1393. },
  1394. hideChildrenInMenu: true,
  1395. children: [
  1396. {
  1397. path: 'list',
  1398. name: 'warehousingConfirmationList',
  1399. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingConfirmation/list.vue'),
  1400. meta: {
  1401. title: '入库确认列表',
  1402. icon: 'pull-request',
  1403. hidden: true
  1404. // permission: 'M_goodsManage_list'
  1405. }
  1406. },
  1407. {
  1408. path: 'detail/:id',
  1409. name: 'warehousingConfirmationDetail',
  1410. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingConfirmation/detail.vue'),
  1411. meta: {
  1412. title: '入库确认详情',
  1413. icon: 'pull-request',
  1414. hidden: true
  1415. // permission: 'B_goodsManage_edit'
  1416. }
  1417. }
  1418. ]
  1419. },
  1420. {
  1421. path: '/financialManagement/returnConfirmation',
  1422. redirect: '/financialManagement/returnConfirmation/list',
  1423. name: 'returnConfirmation',
  1424. component: RouteView,
  1425. meta: {
  1426. title: '退货确认',
  1427. icon: 'pull-request'
  1428. // permission: 'M_goodsManage_list'
  1429. },
  1430. hideChildrenInMenu: true,
  1431. children: [
  1432. {
  1433. path: 'list',
  1434. name: 'returnConfirmationList',
  1435. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/returnConfirmation/list.vue'),
  1436. meta: {
  1437. title: '退货确认列表',
  1438. icon: 'pull-request',
  1439. hidden: true
  1440. // permission: 'M_goodsManage_list'
  1441. }
  1442. },
  1443. {
  1444. path: 'detail/:id',
  1445. name: 'returnConfirmationDetail',
  1446. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/returnConfirmation/detail.vue'),
  1447. meta: {
  1448. title: '退货确认详情',
  1449. icon: 'pull-request',
  1450. hidden: true
  1451. // permission: 'B_goodsManage_edit'
  1452. }
  1453. }
  1454. ]
  1455. },
  1456. {
  1457. path: '/financialManagement/financialCollection',
  1458. redirect: '/financialManagement/financialCollection/list',
  1459. name: 'financialCollection',
  1460. component: RouteView,
  1461. meta: {
  1462. title: '财务收款',
  1463. icon: 'sketch'
  1464. // permission: 'M_goodsManage_list'
  1465. },
  1466. hideChildrenInMenu: true,
  1467. children: [
  1468. {
  1469. path: 'list',
  1470. name: 'financialCollectionList',
  1471. component: () => import(/* webpackChunkName: "shop" */ '@/views/financialManagement/financialCollection/list.vue'),
  1472. meta: {
  1473. title: '财务收款列表',
  1474. icon: 'sketch',
  1475. hidden: true
  1476. // permission: 'M_goodsManage_list'
  1477. }
  1478. }
  1479. ]
  1480. }
  1481. ]
  1482. },
  1483. // // 菜单管理
  1484. // {
  1485. // path: '/menusAuth',
  1486. // redirect: '/bnSetting/menusAuth',
  1487. // component: PageView,
  1488. // meta: {
  1489. // title: '菜单管理',
  1490. // icon: 'bars'
  1491. // // permission: 'M_menusAuth_0'
  1492. // },
  1493. // children: [
  1494. // {
  1495. // path: '/menusAuth/storeMenus',
  1496. // name: 'storeMenus',
  1497. // component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/storeMenus.vue'),
  1498. // meta: {
  1499. // title: '连锁菜单管理',
  1500. // icon: 'shop'
  1501. // // permission: 'M_menusAuth_lsMenus'
  1502. // }
  1503. // },
  1504. // // {
  1505. // // path: '/menusAuth/adminMenus',
  1506. // // name: 'adminMenus',
  1507. // // component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/adminMenus.vue'),
  1508. // // meta: {
  1509. // // title: 'boss菜单管理',
  1510. // // icon: 'appstore',
  1511. // // // permission: 'M_menusAuth_adminMenus'
  1512. // // }
  1513. // // },
  1514. // {
  1515. // path: '/menusAuth/menu',
  1516. // name: 'powerMenu',
  1517. // component: () => import(/* webpackChunkName: "auth" */ '@/views/power/menu/menu.vue'),
  1518. // meta: {
  1519. // title: 'IT菜单管理',
  1520. // icon: 'profile'
  1521. // // permission: 'M_menusAuth_menu'
  1522. // }
  1523. // }
  1524. // ]
  1525. // },
  1526. // 基础设置
  1527. {
  1528. path: '/basicData',
  1529. redirect: '/basicData/warehouse',
  1530. component: PageView,
  1531. meta: {
  1532. title: '基础设置',
  1533. icon: 'pushpin',
  1534. permission: 'M_basicData'
  1535. },
  1536. children: [
  1537. {
  1538. path: '/basicData/warehouse',
  1539. redirect: '/basicData/warehouse/list',
  1540. name: 'warehouse',
  1541. component: RouteView,
  1542. meta: {
  1543. title: '仓库管理',
  1544. icon: 'deployment-unit'
  1545. // permission: 'M_goodsManage_list'
  1546. },
  1547. hideChildrenInMenu: true,
  1548. children: [
  1549. {
  1550. path: 'list',
  1551. name: 'warehouseList',
  1552. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/warehouse/list.vue'),
  1553. meta: {
  1554. title: '仓库列表',
  1555. icon: 'deployment-unit',
  1556. hidden: true
  1557. // permission: 'M_goodsManage_list'
  1558. }
  1559. },
  1560. {
  1561. path: '/basicData/storingLocation/:sn',
  1562. name: 'storingLocationList',
  1563. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/warehouse/storingLocation/list.vue'),
  1564. meta: {
  1565. title: '仓位列表',
  1566. icon: 'deployment-unit',
  1567. hidden: true
  1568. // permission: 'B_goodsManage_edit'
  1569. }
  1570. }
  1571. ]
  1572. },
  1573. {
  1574. path: '/basicData/transferTypeManagement',
  1575. redirect: '/basicData/transferTypeManagement/list',
  1576. name: 'transferTypeManagement',
  1577. component: RouteView,
  1578. meta: {
  1579. title: '调拨类型管理',
  1580. icon: 'deployment-unit'
  1581. // permission: 'M_goodsManage_list'
  1582. },
  1583. hideChildrenInMenu: true,
  1584. children: [
  1585. {
  1586. path: 'list',
  1587. name: 'transferTypeManagementList',
  1588. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/transferTypeManagement/list.vue'),
  1589. meta: {
  1590. title: '调拨类型列表',
  1591. icon: 'deployment-unit',
  1592. hidden: true
  1593. // permission: 'M_goodsManage_list'
  1594. }
  1595. }
  1596. ]
  1597. }
  1598. ]
  1599. },
  1600. // 权限管理
  1601. {
  1602. path: '/auth',
  1603. redirect: '/auth/userList',
  1604. component: PageView,
  1605. meta: {
  1606. title: '权限管理',
  1607. icon: 'lock'
  1608. // permission: 'M_auth_0'
  1609. },
  1610. children: [
  1611. {
  1612. path: '/auth/userList',
  1613. name: 'powerUserList',
  1614. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  1615. meta: {
  1616. title: '用户管理',
  1617. icon: 'user'
  1618. // permission: 'M_auth_userList'
  1619. }
  1620. },
  1621. {
  1622. path: '/auth/roleList',
  1623. name: 'powerRoleList',
  1624. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  1625. meta: {
  1626. title: '角色管理',
  1627. icon: 'solution'
  1628. // permission: 'M_auth_roleList'
  1629. }
  1630. },
  1631. {
  1632. path: '/menusAuth/adminMenus',
  1633. name: 'adminMenus',
  1634. component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/adminMenus.vue'),
  1635. meta: {
  1636. title: '菜单管理',
  1637. icon: 'appstore'
  1638. // permission: 'M_menusAuth_adminMenus'
  1639. }
  1640. }
  1641. ]
  1642. },
  1643. // 系统设置
  1644. {
  1645. path: '/setting',
  1646. redirect: '/setting/userList',
  1647. component: PageView,
  1648. meta: {
  1649. title: '系统设置',
  1650. icon: 'setting'
  1651. // permission: 'M_setting_0'
  1652. },
  1653. children: [
  1654. {
  1655. path: '/setting/dataDictionary',
  1656. name: 'powerDD',
  1657. component: () => import(/* webpackChunkName: "setting" */
  1658. '@/views/power/dataDictionary/dataDictionary.vue'),
  1659. meta: {
  1660. title: '数据字典管理',
  1661. icon: 'database'
  1662. // permission: 'M_sys_dataDictionary'
  1663. }
  1664. },
  1665. // {
  1666. // path: '/setting/register',
  1667. // name: 'powerRegister',
  1668. // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
  1669. // meta: {
  1670. // title: '参数管理',
  1671. // icon: 'key',
  1672. // permission: 'M_sys_register'
  1673. // }
  1674. // },
  1675. {
  1676. path: '/setting/OperateJournal',
  1677. name: 'powerOperateJournal',
  1678. component: () => import(/* webpackChunkName: "setting" */
  1679. '@/views/power/OperateJournal/OperateJournal.vue'),
  1680. meta: {
  1681. title: '操作日志',
  1682. icon: 'read'
  1683. // permission: 'M_operateJournal'
  1684. }
  1685. },
  1686. {
  1687. path: '/setting/noticeManagement',
  1688. redirect: '/setting/noticeManagement/list',
  1689. name: 'noticeManagement',
  1690. component: RouteView,
  1691. meta: {
  1692. title: '公告管理',
  1693. icon: 'sketch'
  1694. // permission: 'M_goodsManage_list'
  1695. },
  1696. hideChildrenInMenu: true,
  1697. children: [
  1698. {
  1699. path: 'list',
  1700. name: 'noticeManagementList',
  1701. component: () => import(/* webpackChunkName: "shop" */ '@/views/setting/noticeManagement/list.vue'),
  1702. meta: {
  1703. title: '公告列表',
  1704. icon: 'sketch',
  1705. hidden: true
  1706. // permission: 'M_goodsManage_list'
  1707. }
  1708. }
  1709. ]
  1710. }
  1711. ]
  1712. }
  1713. ]
  1714. },
  1715. {
  1716. path: '*',
  1717. redirect: '/404',
  1718. hidden: true
  1719. }
  1720. ]
  1721. /**
  1722. * 基础路由
  1723. * @type { *[] }
  1724. */
  1725. export const constantRouterMap = [
  1726. {
  1727. path: '/user',
  1728. component: UserLayout,
  1729. redirect: '/user/login',
  1730. hidden: true,
  1731. children: [
  1732. {
  1733. path: 'login',
  1734. name: 'login',
  1735. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  1736. },
  1737. {
  1738. path: 'register',
  1739. name: 'register',
  1740. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  1741. },
  1742. {
  1743. path: 'register-result',
  1744. name: 'registerResult',
  1745. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  1746. },
  1747. {
  1748. path: 'recover',
  1749. name: 'recover',
  1750. component: undefined
  1751. }
  1752. ]
  1753. },
  1754. {
  1755. path: '/404',
  1756. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  1757. }
  1758. ]