router.config.js 84 KB

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