router.config.js 77 KB

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