router.config.js 84 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378
  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/actualSalesReport',
  983. redirect: '/reportData/actualSalesReport/list',
  984. name: 'actualSalesReport',
  985. component: BlankLayout,
  986. meta: {
  987. title: '实售销售报表',
  988. icon: 'profile',
  989. permission: 'M_actualSalesReportList'
  990. },
  991. hideChildrenInMenu: true,
  992. children: [
  993. {
  994. path: 'list',
  995. name: 'actualSalesReportList',
  996. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/actualSalesReport/list.vue'),
  997. meta: {
  998. title: '实售销售列表',
  999. icon: 'profile',
  1000. hidden: true,
  1001. permission: 'M_actualSalesReportList'
  1002. }
  1003. }
  1004. ]
  1005. },
  1006. {
  1007. path: '/reportData/salesAmountReport',
  1008. redirect: '/reportData/salesAmountReport/list',
  1009. name: 'salesAmountReport',
  1010. component: BlankLayout,
  1011. meta: {
  1012. title: '开单销售报表',
  1013. icon: 'profile',
  1014. permission: 'M_salesAmountReportList'
  1015. },
  1016. hideChildrenInMenu: true,
  1017. children: [{
  1018. path: 'list',
  1019. name: 'salesAmountReportList',
  1020. component: () => import(/* webpackChunkName: "reportData" */
  1021. '@/views/reportData/salesAmountReport/list.vue'),
  1022. meta: {
  1023. title: '开单销售报表列表',
  1024. icon: 'profile',
  1025. hidden: true,
  1026. permission: 'M_salesAmountReportList'
  1027. }
  1028. }]
  1029. },
  1030. {
  1031. path: '/reportData/salesSlipReport',
  1032. redirect: '/reportData/salesSlipReport/list',
  1033. name: 'salesSlipReport',
  1034. component: BlankLayout,
  1035. meta: {
  1036. title: '开单销售单报表',
  1037. icon: 'profile',
  1038. permission: 'M_salesSlipReportList'
  1039. },
  1040. hideChildrenInMenu: true,
  1041. children: [{
  1042. path: 'list',
  1043. name: 'salesSlipReportList',
  1044. component: () => import(/* webpackChunkName: "reportData" */
  1045. '@/views/reportData/salesSlipReport/list.vue'),
  1046. meta: {
  1047. title: '开单销售单报表列表',
  1048. icon: 'profile',
  1049. hidden: true,
  1050. permission: 'M_salesSlipReportList'
  1051. }
  1052. }]
  1053. },
  1054. {
  1055. path: '/reportData/allocationOrderTotal',
  1056. redirect: '/reportData/allocationOrderTotal/list',
  1057. name: 'allocationOrderTotal',
  1058. component: BlankLayout,
  1059. meta: {
  1060. title: '调拨开单统计',
  1061. icon: 'profile',
  1062. permission: 'M_allocationOrderTotalList'
  1063. },
  1064. hideChildrenInMenu: true,
  1065. children: [
  1066. {
  1067. path: 'list',
  1068. name: 'allocationOrderTotalList',
  1069. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationOrderTotal/list.vue'),
  1070. meta: {
  1071. title: '调拨开单列表',
  1072. icon: 'profile',
  1073. hidden: true,
  1074. permission: 'M_allocationOrderTotalList'
  1075. }
  1076. }
  1077. ]
  1078. },
  1079. {
  1080. path: '/reportData/allocationDetails',
  1081. redirect: '/reportData/allocationDetails/list',
  1082. name: 'allocationDetails',
  1083. component: BlankLayout,
  1084. meta: {
  1085. title: '调拨明细',
  1086. icon: 'profile',
  1087. permission: 'M_allocationDetailsList'
  1088. },
  1089. hideChildrenInMenu: true,
  1090. children: [
  1091. {
  1092. path: 'list',
  1093. name: 'allocationDetailsList',
  1094. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationDetails/list.vue'),
  1095. meta: {
  1096. title: '调拨明细列表',
  1097. icon: 'profile',
  1098. hidden: true,
  1099. permission: 'M_allocationDetailsList'
  1100. }
  1101. }
  1102. ]
  1103. },
  1104. {
  1105. path: '/reportData/salesReturnsReport',
  1106. redirect: '/reportData/salesReturnsReport/list',
  1107. name: 'salesReturnsReport',
  1108. component: BlankLayout,
  1109. meta: {
  1110. title: '销售退货单报表',
  1111. icon: 'profile',
  1112. permission: 'M_salesReturnsReportList'
  1113. },
  1114. hideChildrenInMenu: true,
  1115. children: [
  1116. {
  1117. path: 'list',
  1118. name: 'salesReturnsReportList',
  1119. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReturnsReport/list.vue'),
  1120. meta: {
  1121. title: '销售退货单报表列表',
  1122. icon: 'profile',
  1123. hidden: true,
  1124. permission: 'M_salesReturnsReportList'
  1125. }
  1126. }
  1127. ]
  1128. },
  1129. {
  1130. path: '/reportData/salesReturnDetailReport',
  1131. redirect: '/reportData/salesReturnDetailReport/list',
  1132. name: 'salesReturnDetailReport',
  1133. component: BlankLayout,
  1134. meta: {
  1135. title: '销售退货明细报表',
  1136. icon: 'profile',
  1137. permission: 'M_salesReturnDetailReportList'
  1138. },
  1139. hideChildrenInMenu: true,
  1140. children: [{
  1141. path: 'list',
  1142. name: 'salesReturnDetailReportList',
  1143. component: () => import(/* webpackChunkName: "reportData" */
  1144. '@/views/reportData/salesReturnDetailReport/list.vue'),
  1145. meta: {
  1146. title: '销售退货明细报表列表',
  1147. icon: 'profile',
  1148. hidden: true,
  1149. permission: 'M_salesReturnDetailReportList'
  1150. }
  1151. }]
  1152. },
  1153. {
  1154. path: '/reportData/salesReturnReport',
  1155. redirect: '/reportData/salesReturnReport/list',
  1156. name: 'salesReturnReport',
  1157. component: BlankLayout,
  1158. meta: {
  1159. title: '实售退货报表',
  1160. icon: 'profile',
  1161. permission: 'M_salesReturnReportList'
  1162. },
  1163. hideChildrenInMenu: true,
  1164. children: [
  1165. {
  1166. path: 'list',
  1167. name: 'salesReturnReportList',
  1168. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReturnReport/list.vue'),
  1169. meta: {
  1170. title: '实售退货列表',
  1171. icon: 'profile',
  1172. hidden: true,
  1173. permission: 'M_salesReturnReportList'
  1174. }
  1175. }
  1176. ]
  1177. },
  1178. {
  1179. path: '/reportData/billingReturnReport',
  1180. redirect: '/reportData/billingReturnReport/list',
  1181. name: 'billingReturnReport',
  1182. component: BlankLayout,
  1183. meta: {
  1184. title: '开单退货报表',
  1185. icon: 'profile',
  1186. permission: 'M_billingReturnReportList'
  1187. },
  1188. hideChildrenInMenu: true,
  1189. children: [
  1190. {
  1191. path: 'list',
  1192. name: 'billingReturnReportList',
  1193. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/billingReturnReport/list.vue'),
  1194. meta: {
  1195. title: '开单退货列表',
  1196. icon: 'profile',
  1197. hidden: true,
  1198. permission: 'M_billingReturnReportList'
  1199. }
  1200. }
  1201. ]
  1202. },
  1203. {
  1204. path: '/reportData/returnSlipReport',
  1205. redirect: '/reportData/returnSlipReport/list',
  1206. name: 'returnSlipReport',
  1207. component: BlankLayout,
  1208. meta: {
  1209. title: '开单退货单报表',
  1210. icon: 'profile',
  1211. permission: 'M_returnSlipReportList'
  1212. },
  1213. hideChildrenInMenu: true,
  1214. children: [{
  1215. path: 'list',
  1216. name: 'returnSlipReportList',
  1217. component: () => import(/* webpackChunkName: "reportData" */
  1218. '@/views/reportData/returnSlipReport/list.vue'),
  1219. meta: {
  1220. title: '开单退货单报表列表',
  1221. icon: 'profile',
  1222. hidden: true,
  1223. permission: 'M_returnSlipReportList'
  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/regionTypeSalesReport',
  1279. redirect: '/reportData/regionTypeSalesReport/list',
  1280. name: 'regionTypeSalesReport',
  1281. component: BlankLayout,
  1282. meta: {
  1283. title: '各省品类实售明细',
  1284. icon: 'profile'
  1285. // permission: 'M_nationalCustomerCostStatisticsList'
  1286. },
  1287. hideChildrenInMenu: true,
  1288. children: [
  1289. {
  1290. path: 'list',
  1291. name: 'regionTypeSalesReportList',
  1292. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/regionTypeSalesReport/list.vue'),
  1293. meta: {
  1294. title: '各省品类实售明细',
  1295. icon: 'profile',
  1296. hidden: true
  1297. // permission: 'M_nationalCustomerCostStatisticsList'
  1298. }
  1299. }
  1300. ]
  1301. },
  1302. {
  1303. path: '/reportData/warehousingOrder',
  1304. redirect: '/reportData/warehousingOrder/list',
  1305. name: 'warehousingOrder',
  1306. component: BlankLayout,
  1307. meta: {
  1308. title: '入库单报表',
  1309. icon: 'profile',
  1310. permission: 'M_warehousingOrderList'
  1311. },
  1312. hideChildrenInMenu: true,
  1313. children: [
  1314. {
  1315. path: 'list',
  1316. name: 'warehousingOrderList',
  1317. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/warehousingOrder/list.vue'),
  1318. meta: {
  1319. title: '入库单报表列表',
  1320. icon: 'profile',
  1321. hidden: true,
  1322. permission: 'M_warehousingOrderList'
  1323. }
  1324. }
  1325. ]
  1326. },
  1327. {
  1328. path: '/reportData/warehousingOrderDetail',
  1329. redirect: '/reportData/warehousingOrderDetail/list',
  1330. name: 'warehousingOrderDetail',
  1331. component: BlankLayout,
  1332. meta: {
  1333. title: '入库单明细报表',
  1334. icon: 'profile',
  1335. permission: 'M_warehousingOrderDetailList'
  1336. },
  1337. hideChildrenInMenu: true,
  1338. children: [
  1339. {
  1340. path: 'list',
  1341. name: 'warehousingOrderDetailList',
  1342. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/warehousingOrderDetail/list.vue'),
  1343. meta: {
  1344. title: '入库单明细报表列表',
  1345. icon: 'profile',
  1346. hidden: true,
  1347. permission: 'M_warehousingOrderDetailList'
  1348. }
  1349. }
  1350. ]
  1351. },
  1352. {
  1353. path: '/reportData/salesPresentation',
  1354. redirect: '/reportData/salesPresentation/list',
  1355. name: 'salesPresentation',
  1356. component: BlankLayout,
  1357. meta: {
  1358. title: '销售交单报表',
  1359. icon: 'profile',
  1360. permission: 'M_salesPresentationList'
  1361. },
  1362. hideChildrenInMenu: true,
  1363. children: [
  1364. {
  1365. path: 'list',
  1366. name: 'salesPresentationList',
  1367. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesPresentation/list.vue'),
  1368. meta: {
  1369. title: '销售交单报表列表',
  1370. icon: 'profile',
  1371. hidden: true,
  1372. permission: 'M_salesPresentationList'
  1373. }
  1374. }
  1375. ]
  1376. },
  1377. {
  1378. path: '/reportData/allocationPresentation',
  1379. redirect: '/reportData/allocationPresentation/list',
  1380. name: 'allocationPresentation',
  1381. component: BlankLayout,
  1382. meta: {
  1383. title: '调拨交单报表',
  1384. icon: 'profile',
  1385. permission: 'M_allocationPresentationList'
  1386. },
  1387. hideChildrenInMenu: true,
  1388. children: [
  1389. {
  1390. path: 'list',
  1391. name: 'allocationPresentationList',
  1392. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allocationPresentation/list.vue'),
  1393. meta: {
  1394. title: '调拨交单报表列表',
  1395. icon: 'profile',
  1396. hidden: true,
  1397. permission: 'M_allocationPresentationList'
  1398. }
  1399. }
  1400. ]
  1401. },
  1402. {
  1403. path: '/reportData/returnGoodsPresentation',
  1404. redirect: '/reportData/returnGoodsPresentation/list',
  1405. name: 'returnGoodsPresentation',
  1406. component: BlankLayout,
  1407. meta: {
  1408. title: '退货交单报表',
  1409. icon: 'profile',
  1410. permission: 'M_returnGoodsPresentationList'
  1411. },
  1412. hideChildrenInMenu: true,
  1413. children: [
  1414. {
  1415. path: 'list',
  1416. name: 'returnGoodsPresentationList',
  1417. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/returnGoodsPresentation/list.vue'),
  1418. meta: {
  1419. title: '退货交单报表列表',
  1420. icon: 'profile',
  1421. hidden: true,
  1422. permission: 'M_returnGoodsPresentationList'
  1423. }
  1424. }
  1425. ]
  1426. }
  1427. // {
  1428. // path: '/reportData/allCountryCostReport',
  1429. // redirect: '/reportData/allCountryCostReport/list',
  1430. // name: 'allCountryCostReport',
  1431. // component: BlankLayout,
  1432. // meta: {
  1433. // title: '全国费用统计报表',
  1434. // icon: 'profile'
  1435. // // permission: 'M_nationalCustomerCostStatisticsList'
  1436. // },
  1437. // hideChildrenInMenu: true,
  1438. // children: [
  1439. // {
  1440. // path: 'list',
  1441. // name: 'allCountryCostReportList',
  1442. // component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/allCountryCostReport/list.vue'),
  1443. // meta: {
  1444. // title: '全国费用统计报表',
  1445. // icon: 'profile',
  1446. // hidden: true
  1447. // // permission: 'M_nationalCustomerCostStatisticsList'
  1448. // }
  1449. // }
  1450. // ]
  1451. // }
  1452. ]
  1453. },
  1454. // 数据导出
  1455. {
  1456. path: '/dataExport',
  1457. redirect: '/dataExport/exportCheck',
  1458. component: PageView,
  1459. meta: {
  1460. title: '数据导出',
  1461. icon: 'money-collect',
  1462. permission: 'M_dataExport'
  1463. },
  1464. children: [
  1465. {
  1466. path: '/dataExport/exportCheck',
  1467. redirect: '/dataExport/exportCheck/list',
  1468. name: 'exportCheck',
  1469. component: BlankLayout,
  1470. meta: {
  1471. title: '导出盘点',
  1472. icon: 'gold',
  1473. permission: 'M_exportCheck'
  1474. },
  1475. hideChildrenInMenu: true,
  1476. children: [
  1477. {
  1478. path: 'list',
  1479. name: 'exportCheckList',
  1480. component: () => import(/* webpackChunkName: "dataExport" */ '@/views/dataExport/exportCheck/list.vue'),
  1481. meta: {
  1482. title: '导出盘点',
  1483. icon: 'gold',
  1484. hidden: true,
  1485. permission: 'M_exportCheck'
  1486. }
  1487. }
  1488. ]
  1489. }
  1490. ]
  1491. },
  1492. // 产品管理
  1493. {
  1494. path: '/productManagement',
  1495. redirect: '/productManagement/productInfo',
  1496. component: PageView,
  1497. meta: {
  1498. title: '产品管理',
  1499. icon: 'shopping',
  1500. permission: 'M_productManagement'
  1501. },
  1502. children: [
  1503. {
  1504. path: '/productManagement/productInfo',
  1505. redirect: '/productManagement/productInfo/list',
  1506. name: 'productInfo',
  1507. component: BlankLayout,
  1508. meta: {
  1509. title: '产品列表',
  1510. icon: 'gold',
  1511. permission: 'M_productInfoList'
  1512. },
  1513. hideChildrenInMenu: true,
  1514. children: [
  1515. {
  1516. path: 'list',
  1517. name: 'productInfoList',
  1518. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/list.vue'),
  1519. meta: {
  1520. title: '产品列表',
  1521. icon: 'gold',
  1522. hidden: true,
  1523. permission: 'M_productInfoList'
  1524. }
  1525. },
  1526. {
  1527. path: 'add',
  1528. name: 'productInfoAdd',
  1529. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/edit.vue'),
  1530. meta: {
  1531. title: '新增产品',
  1532. icon: 'gold',
  1533. hidden: true
  1534. // permission: 'B_goodsManage_edit'
  1535. }
  1536. },
  1537. {
  1538. path: 'edit/:id/:sn',
  1539. name: 'productInfoEdit',
  1540. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/edit.vue'),
  1541. meta: {
  1542. title: '编辑产品',
  1543. icon: 'gold',
  1544. hidden: true
  1545. // permission: 'B_goodsManage_edit'
  1546. }
  1547. }
  1548. ]
  1549. },
  1550. {
  1551. path: '/productManagement/productPricing',
  1552. redirect: '/productManagement/productPricing/list',
  1553. name: 'productPricing',
  1554. component: BlankLayout,
  1555. meta: {
  1556. title: '产品定价',
  1557. icon: 'transaction',
  1558. permission: 'M_productPricingList'
  1559. },
  1560. hideChildrenInMenu: true,
  1561. children: [
  1562. {
  1563. path: 'list',
  1564. name: 'productPricingList',
  1565. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productPricing/list.vue'),
  1566. meta: {
  1567. title: '产品定价列表',
  1568. icon: 'transaction',
  1569. hidden: true,
  1570. permission: 'M_productPricingList'
  1571. }
  1572. }
  1573. ]
  1574. },
  1575. {
  1576. path: '/productManagement/productLaunchAudit',
  1577. redirect: '/productManagement/productLaunchAudit/list',
  1578. name: 'productLaunchAudit',
  1579. component: BlankLayout,
  1580. meta: {
  1581. title: '产品上线审核',
  1582. icon: 'rise',
  1583. permission: 'M_productLaunchAuditList'
  1584. },
  1585. hideChildrenInMenu: true,
  1586. children: [
  1587. {
  1588. path: 'list',
  1589. name: 'productLaunchAuditList',
  1590. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productLaunchAudit/list.vue'),
  1591. meta: {
  1592. title: '产品上线审核列表',
  1593. icon: 'rise',
  1594. hidden: true,
  1595. permission: 'M_productLaunchAuditList'
  1596. }
  1597. }
  1598. ]
  1599. },
  1600. {
  1601. path: '/productManagement/productOfflineAudit',
  1602. redirect: '/productManagement/productOfflineAudit/list',
  1603. name: 'productOfflineAudit',
  1604. component: BlankLayout,
  1605. meta: {
  1606. title: '产品下线审核',
  1607. icon: 'fall',
  1608. permission: 'M_productOfflineAuditList'
  1609. },
  1610. hideChildrenInMenu: true,
  1611. children: [
  1612. {
  1613. path: 'list',
  1614. name: 'productOfflineAuditList',
  1615. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productOfflineAudit/list.vue'),
  1616. meta: {
  1617. title: '产品下线审核列表',
  1618. icon: 'fall',
  1619. hidden: true,
  1620. permission: 'M_productOfflineAuditList'
  1621. }
  1622. }
  1623. ]
  1624. },
  1625. {
  1626. path: '/productManagement/priceChangeRecord',
  1627. redirect: '/productManagement/priceChangeRecord/list',
  1628. name: 'priceChangeRecord',
  1629. component: BlankLayout,
  1630. meta: {
  1631. title: '价格变更记录',
  1632. icon: 'profile',
  1633. permission: 'M_priceChangeRecordList'
  1634. },
  1635. hideChildrenInMenu: true,
  1636. children: [
  1637. {
  1638. path: 'list',
  1639. name: 'priceChangeRecordList',
  1640. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/priceChangeRecord/list.vue'),
  1641. meta: {
  1642. title: '价格变更记录列表',
  1643. icon: 'profile',
  1644. hidden: true,
  1645. permission: 'M_priceChangeRecordList'
  1646. }
  1647. }
  1648. ]
  1649. },
  1650. {
  1651. path: '/productManagement/productUniversal',
  1652. redirect: '/productManagement/productUniversal/list',
  1653. name: 'productUniversal',
  1654. component: BlankLayout,
  1655. meta: {
  1656. title: '通用产品管理',
  1657. icon: 'deployment-unit',
  1658. permission: 'M_productUniversalList'
  1659. },
  1660. hideChildrenInMenu: true,
  1661. children: [
  1662. {
  1663. path: 'list',
  1664. name: 'productUniversalList',
  1665. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productUniversal/list.vue'),
  1666. meta: {
  1667. title: '通用产品列表',
  1668. icon: 'deployment-unit',
  1669. hidden: true,
  1670. permission: 'M_productUniversalList'
  1671. }
  1672. }
  1673. ]
  1674. },
  1675. {
  1676. path: '/productManagement/productLevel',
  1677. redirect: '/productManagement/productLevel/list',
  1678. name: 'productLevel',
  1679. component: BlankLayout,
  1680. meta: {
  1681. title: '产品级别管理',
  1682. icon: 'fund',
  1683. permission: 'M_productLevelList'
  1684. },
  1685. hideChildrenInMenu: true,
  1686. children: [
  1687. {
  1688. path: 'list',
  1689. name: 'productLevelList',
  1690. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productLevel/list.vue'),
  1691. meta: {
  1692. title: '产品级别列表',
  1693. icon: 'fund',
  1694. hidden: true,
  1695. permission: 'M_productLevelList'
  1696. }
  1697. }
  1698. ]
  1699. },
  1700. {
  1701. path: '/productManagement/productBrand',
  1702. redirect: '/productManagement/productBrand/list',
  1703. name: 'productBrand',
  1704. component: BlankLayout,
  1705. meta: {
  1706. title: '产品品牌管理',
  1707. icon: 'file-ppt',
  1708. permission: 'M_productBrandList'
  1709. },
  1710. hideChildrenInMenu: true,
  1711. children: [
  1712. {
  1713. path: 'list',
  1714. name: 'productBrandList',
  1715. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productBrand/list.vue'),
  1716. meta: {
  1717. title: '产品品牌列表',
  1718. icon: 'file-ppt',
  1719. hidden: true,
  1720. permission: 'M_productBrandList'
  1721. }
  1722. }
  1723. ]
  1724. },
  1725. {
  1726. path: '/productManagement/productCategory',
  1727. redirect: '/productManagement/productCategory/list',
  1728. name: 'productCategory',
  1729. component: BlankLayout,
  1730. meta: {
  1731. title: '产品分类管理',
  1732. icon: 'radar-chart',
  1733. permission: 'M_productCategoryList'
  1734. },
  1735. hideChildrenInMenu: true,
  1736. children: [
  1737. {
  1738. path: 'list',
  1739. name: 'productCategoryList',
  1740. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productCategory/list.vue'),
  1741. meta: {
  1742. title: '产品分类列表',
  1743. icon: 'radar-chart',
  1744. hidden: true,
  1745. permission: 'M_productCategoryList'
  1746. }
  1747. }
  1748. ]
  1749. }
  1750. ]
  1751. },
  1752. // 经销商管理
  1753. {
  1754. path: '/dealerManagement',
  1755. redirect: '/dealerManagement/marketingDivisionSet',
  1756. component: PageView,
  1757. meta: {
  1758. title: '经销商管理',
  1759. icon: 'idcard',
  1760. permission: 'M_dealerManagement'
  1761. },
  1762. children: [
  1763. {
  1764. path: '/dealerManagement/merchantInfoManagement',
  1765. redirect: '/dealerManagement/merchantInfoManagement/list',
  1766. name: 'merchantInfoManagement',
  1767. component: BlankLayout,
  1768. meta: {
  1769. title: '经销商资料管理',
  1770. icon: 'file-text',
  1771. permission: 'M_merchantInfoManagementList'
  1772. },
  1773. hideChildrenInMenu: true,
  1774. children: [
  1775. {
  1776. path: 'list',
  1777. name: 'merchantInfoManagementList',
  1778. component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/merchantInfoManagement/list.vue'),
  1779. meta: {
  1780. title: '经销商资料列表',
  1781. icon: 'file-text',
  1782. hidden: true,
  1783. permission: 'M_merchantInfoManagementList'
  1784. }
  1785. },
  1786. {
  1787. path: 'add',
  1788. name: 'merchantInfoManagementAdd',
  1789. component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/merchantInfoManagement/edit.vue'),
  1790. meta: {
  1791. title: '新增经销商',
  1792. icon: 'file-text',
  1793. hidden: true
  1794. // permission: 'B_goodsManage_edit'
  1795. }
  1796. },
  1797. {
  1798. path: 'edit/:id',
  1799. name: 'merchantInfoManagementEdit',
  1800. component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/merchantInfoManagement/edit.vue'),
  1801. meta: {
  1802. title: '编辑经销商',
  1803. icon: 'file-text',
  1804. hidden: true
  1805. // permission: 'B_goodsManage_edit'
  1806. }
  1807. },
  1808. {
  1809. path: 'permissionSetting/:sn',
  1810. name: 'merchantInfoManagementSet',
  1811. component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/merchantInfoManagement/permissionSetting.vue'),
  1812. meta: {
  1813. title: '经销权设置',
  1814. icon: 'file-text',
  1815. replaceTab: true,
  1816. hidden: true
  1817. // permission: 'B_goodsManage_edit'
  1818. }
  1819. }
  1820. ]
  1821. },
  1822. {
  1823. path: '/dealerManagement/dealerAccountManagement',
  1824. redirect: '/dealerManagement/dealerAccountManagement/list',
  1825. name: 'dealerAccountManagement',
  1826. component: BlankLayout,
  1827. meta: {
  1828. title: '经销商账号管理',
  1829. icon: 'team',
  1830. permission: 'M_dealerAccountManagementList'
  1831. },
  1832. hideChildrenInMenu: true,
  1833. children: [
  1834. {
  1835. path: 'list',
  1836. name: 'dealerAccountManagementList',
  1837. component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/dealerAccountManagement/list.vue'),
  1838. meta: {
  1839. title: '经销商账号列表',
  1840. icon: 'team',
  1841. hidden: true,
  1842. permission: 'M_dealerAccountManagementList'
  1843. }
  1844. }
  1845. ]
  1846. },
  1847. {
  1848. path: '/dealerManagement/dealerRelationshipBinding',
  1849. redirect: '/dealerManagement/dealerRelationshipBinding/list',
  1850. name: 'dealerRelationshipBinding',
  1851. component: BlankLayout,
  1852. meta: {
  1853. title: '经销商关系绑定',
  1854. icon: 'share-alt',
  1855. permission: 'M_dealerRelationshipBindingList'
  1856. },
  1857. hideChildrenInMenu: true,
  1858. children: [
  1859. {
  1860. path: 'list',
  1861. name: 'dealerRelationshipBindingList',
  1862. component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/dealerRelationshipBinding/list.vue'),
  1863. meta: {
  1864. title: '经销商关系绑定列表',
  1865. icon: 'share-alt',
  1866. hidden: true,
  1867. permission: 'M_dealerRelationshipBindingList'
  1868. }
  1869. }
  1870. ]
  1871. },
  1872. {
  1873. path: '/dealerManagement/rebateSettings',
  1874. redirect: '/dealerManagement/rebateSettings/list',
  1875. name: 'rebateSettings',
  1876. component: BlankLayout,
  1877. meta: {
  1878. title: '差价归属设置',
  1879. icon: 'stock',
  1880. permission: 'M_rebateSettingsList'
  1881. },
  1882. hideChildrenInMenu: true,
  1883. children: [
  1884. {
  1885. path: 'list',
  1886. name: 'rebateSettingsList',
  1887. component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/rebateSettings/list.vue'),
  1888. meta: {
  1889. title: '差价归属设置列表',
  1890. icon: 'stock',
  1891. hidden: true,
  1892. permission: 'M_rebateSettingsList'
  1893. }
  1894. }
  1895. ]
  1896. },
  1897. {
  1898. path: '/dealerManagement/marketingDivisionSet',
  1899. redirect: '/dealerManagement/marketingDivisionSet/list',
  1900. name: 'marketingDivisionSet',
  1901. component: BlankLayout,
  1902. meta: {
  1903. title: '营销分区设置',
  1904. icon: 'setting',
  1905. permission: 'M_marketingDivisionSetList'
  1906. },
  1907. hideChildrenInMenu: true,
  1908. children: [
  1909. {
  1910. path: 'list',
  1911. name: 'marketingDivisionSetList',
  1912. component: () => import(/* webpackChunkName: "dealerManagement" */ '@/views/dealerManagement/marketingDivisionSet/list.vue'),
  1913. meta: {
  1914. title: '营销分区列表',
  1915. icon: 'setting',
  1916. hidden: true,
  1917. permission: 'M_marketingDivisionSetList'
  1918. }
  1919. }
  1920. ]
  1921. }
  1922. ]
  1923. },
  1924. // 供应商管理
  1925. {
  1926. path: '/supplierManagement',
  1927. redirect: '/supplierManagement/supplierInfo',
  1928. component: PageView,
  1929. meta: {
  1930. title: '供应商管理',
  1931. icon: 'team',
  1932. permission: 'M_supplierManagement'
  1933. },
  1934. children: [
  1935. {
  1936. path: '/supplierManagement/supplierInfo',
  1937. redirect: '/supplierManagement/supplierInfo/list',
  1938. name: 'supplierInfo',
  1939. component: BlankLayout,
  1940. meta: {
  1941. title: '供应商列表',
  1942. icon: 'team',
  1943. permission: 'M_supplierInfoList'
  1944. },
  1945. hideChildrenInMenu: true,
  1946. children: [
  1947. {
  1948. path: 'list',
  1949. name: 'supplierInfoList',
  1950. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/list.vue'),
  1951. meta: {
  1952. title: '供应商列表',
  1953. icon: 'team',
  1954. hidden: true,
  1955. permission: 'M_supplierInfoList'
  1956. }
  1957. },
  1958. {
  1959. path: 'add',
  1960. name: 'supplierInfoAdd',
  1961. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
  1962. meta: {
  1963. title: '新增供应商',
  1964. icon: 'team',
  1965. hidden: true
  1966. // permission: 'B_goodsManage_edit'
  1967. }
  1968. },
  1969. {
  1970. path: 'edit/:id',
  1971. name: 'supplierInfoEdit',
  1972. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
  1973. meta: {
  1974. title: '编辑供应商',
  1975. icon: 'team',
  1976. hidden: true
  1977. // permission: 'B_goodsManage_edit'
  1978. }
  1979. },
  1980. {
  1981. path: 'associatedProduct/:sn/:name',
  1982. name: 'associatedProduct',
  1983. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/associatedProduct/add.vue'),
  1984. meta: {
  1985. title: '关联产品',
  1986. icon: 'team',
  1987. replaceTab: true,
  1988. hidden: true
  1989. // permission: 'B_goodsManage_edit'
  1990. }
  1991. }
  1992. ]
  1993. },
  1994. {
  1995. path: '/supplierManagement/associatedProductDetails',
  1996. redirect: '/supplierManagement/associatedProductDetails/list',
  1997. name: 'associatedProductDetails',
  1998. component: BlankLayout,
  1999. meta: {
  2000. title: '关联产品明细表',
  2001. icon: 'build',
  2002. permission: 'M_associatedProductDetailsList'
  2003. },
  2004. hideChildrenInMenu: true,
  2005. children: [
  2006. {
  2007. path: 'list',
  2008. name: 'associatedProductDetailsList',
  2009. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/associatedProductDetails/list.vue'),
  2010. meta: {
  2011. title: '关联产品明细列表',
  2012. icon: 'build',
  2013. hidden: true,
  2014. permission: 'M_associatedProductDetailsList'
  2015. }
  2016. }
  2017. ]
  2018. }
  2019. ]
  2020. },
  2021. // 促销管理
  2022. {
  2023. path: '/promotionRulesManagement',
  2024. redirect: '/promotionRulesManagement/promotionRules',
  2025. component: PageView,
  2026. meta: {
  2027. title: '促销管理',
  2028. icon: 'rocket',
  2029. permission: 'M_promotionRulesManagement'
  2030. },
  2031. children: [
  2032. {
  2033. path: '/promotionRulesManagement/promotionRules',
  2034. redirect: '/promotionRulesManagement/promotionRules/list',
  2035. name: 'promotionRules',
  2036. component: BlankLayout,
  2037. meta: {
  2038. title: '促销规则管理',
  2039. icon: 'thunderbolt',
  2040. permission: 'M_promotionRulesList'
  2041. },
  2042. hideChildrenInMenu: true,
  2043. children: [
  2044. {
  2045. path: 'list',
  2046. name: 'promotionRulesManagementList',
  2047. component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/promotionRules/list.vue'),
  2048. meta: {
  2049. title: '促销规则列表',
  2050. icon: 'thunderbolt',
  2051. hidden: true,
  2052. permission: 'M_promotionRulesList'
  2053. }
  2054. },
  2055. {
  2056. path: 'detail/:id/:sn',
  2057. name: 'promotionRulesManagementDetail',
  2058. component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/promotionRules/detail.vue'),
  2059. meta: {
  2060. title: '促销规则详情',
  2061. icon: 'thunderbolt',
  2062. hidden: true
  2063. // permission: 'B_goodsManage_edit'
  2064. }
  2065. },
  2066. {
  2067. path: 'rule/:id/:sn',
  2068. name: 'promotionRulesManagementRule',
  2069. component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/promotionRules/rule.vue'),
  2070. meta: {
  2071. title: '促销规则设置',
  2072. icon: 'thunderbolt',
  2073. replaceTab: true,
  2074. hidden: true
  2075. // permission: 'B_goodsManage_edit'
  2076. }
  2077. }
  2078. ]
  2079. },
  2080. {
  2081. path: '/promotionRulesManagement/orderStatistics',
  2082. redirect: '/promotionRulesManagement/orderStatistics/list',
  2083. name: 'orderStatistics',
  2084. component: BlankLayout,
  2085. meta: {
  2086. title: '促销订单统计',
  2087. icon: 'contacts',
  2088. permission: 'M_orderStatisticsList'
  2089. },
  2090. hideChildrenInMenu: true,
  2091. children: [
  2092. {
  2093. path: 'list',
  2094. name: 'orderStatisticsList',
  2095. component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/orderStatistics/list.vue'),
  2096. meta: {
  2097. title: '订单统计列表',
  2098. icon: 'contacts',
  2099. hidden: true,
  2100. permission: 'M_orderStatisticsList'
  2101. }
  2102. }
  2103. ]
  2104. },
  2105. {
  2106. path: '/promotionRulesManagement/productStatistics',
  2107. redirect: '/promotionRulesManagement/productStatistics/list',
  2108. name: 'productStatistics',
  2109. component: BlankLayout,
  2110. meta: {
  2111. title: '促销产品统计',
  2112. icon: 'file-ppt',
  2113. permission: 'M_productStatisticsList'
  2114. },
  2115. hideChildrenInMenu: true,
  2116. children: [
  2117. {
  2118. path: 'list',
  2119. name: 'productStatisticsList',
  2120. component: () => import(/* webpackChunkName: "promotionRulesManagement" */ '@/views/promotionRulesManagement/productStatistics/list.vue'),
  2121. meta: {
  2122. title: '产品统计列表',
  2123. icon: 'file-ppt',
  2124. hidden: true,
  2125. permission: 'M_productStatisticsList'
  2126. }
  2127. }
  2128. ]
  2129. }
  2130. ]
  2131. },
  2132. // 基础设置
  2133. {
  2134. path: '/basicData',
  2135. redirect: '/basicData/warehouse',
  2136. component: PageView,
  2137. meta: {
  2138. title: '基础设置',
  2139. icon: 'pushpin',
  2140. permission: 'M_basicData'
  2141. },
  2142. children: [
  2143. {
  2144. path: '/basicData/warehouse',
  2145. redirect: '/basicData/warehouse/list',
  2146. name: 'warehouse',
  2147. component: BlankLayout,
  2148. meta: {
  2149. title: '仓库管理',
  2150. icon: 'deployment-unit',
  2151. permission: 'M_warehouseList'
  2152. },
  2153. hideChildrenInMenu: true,
  2154. children: [
  2155. {
  2156. path: 'list',
  2157. name: 'warehouseList',
  2158. component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/warehouse/list.vue'),
  2159. meta: {
  2160. title: '仓库列表',
  2161. icon: 'deployment-unit',
  2162. hidden: true,
  2163. permission: 'M_warehouseList'
  2164. }
  2165. },
  2166. {
  2167. path: '/basicData/storingLocation/:sn',
  2168. name: 'storingLocationList',
  2169. component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/warehouse/storingLocation/list.vue'),
  2170. meta: {
  2171. title: '仓位列表',
  2172. icon: 'deployment-unit',
  2173. replaceTab: true,
  2174. hidden: true
  2175. // permission: 'B_goodsManage_edit'
  2176. }
  2177. }
  2178. ]
  2179. },
  2180. {
  2181. path: '/basicData/transferTypeManagement',
  2182. redirect: '/basicData/transferTypeManagement/list',
  2183. name: 'transferTypeManagement',
  2184. component: BlankLayout,
  2185. meta: {
  2186. title: '调拨类型管理',
  2187. icon: 'interaction',
  2188. permission: 'M_transferTypeManagementList'
  2189. },
  2190. hideChildrenInMenu: true,
  2191. children: [
  2192. {
  2193. path: 'list',
  2194. name: 'transferTypeManagementList',
  2195. component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/transferTypeManagement/list.vue'),
  2196. meta: {
  2197. title: '调拨类型列表',
  2198. icon: 'interaction',
  2199. hidden: true,
  2200. permission: 'M_transferTypeManagementList'
  2201. }
  2202. }
  2203. ]
  2204. }
  2205. ]
  2206. },
  2207. // 权限管理
  2208. {
  2209. path: '/auth',
  2210. redirect: '/auth/userList',
  2211. component: PageView,
  2212. meta: {
  2213. title: '权限管理',
  2214. icon: 'lock',
  2215. permission: 'M_auth_0'
  2216. },
  2217. children: [
  2218. {
  2219. path: '/auth/userList',
  2220. name: 'powerUserList',
  2221. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  2222. meta: {
  2223. title: '用户管理',
  2224. icon: 'user',
  2225. permission: 'M_userList'
  2226. }
  2227. },
  2228. {
  2229. path: '/auth/roleList',
  2230. name: 'powerRoleList',
  2231. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  2232. meta: {
  2233. title: '角色管理',
  2234. icon: 'solution',
  2235. permission: 'M_roleList'
  2236. }
  2237. },
  2238. {
  2239. path: '/menusAuth/adminMenus',
  2240. name: 'adminMenus',
  2241. component: () => import(/* webpackChunkName: "auth" */ '@/views/bnSetting/menu/adminMenus.vue'),
  2242. meta: {
  2243. title: '菜单管理',
  2244. icon: 'appstore',
  2245. permission: 'M_menuList'
  2246. }
  2247. }
  2248. ]
  2249. },
  2250. // 系统设置
  2251. {
  2252. path: '/setting',
  2253. redirect: '/setting/userList',
  2254. component: PageView,
  2255. meta: {
  2256. title: '系统设置',
  2257. icon: 'setting',
  2258. permission: 'M_systemSet'
  2259. },
  2260. children: [
  2261. {
  2262. path: '/setting/dataDictionary',
  2263. name: 'powerDD',
  2264. component: () => import(/* webpackChunkName: "setting" */
  2265. '@/views/power/dataDictionary/dataDictionary.vue'),
  2266. meta: {
  2267. title: '数据字典管理',
  2268. icon: 'database',
  2269. permission: 'M_dataD_lookup'
  2270. }
  2271. },
  2272. // {
  2273. // path: '/setting/register',
  2274. // name: 'powerRegister',
  2275. // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
  2276. // meta: {
  2277. // title: '参数管理',
  2278. // icon: 'key',
  2279. // permission: 'M_sys_register'
  2280. // }
  2281. // },
  2282. {
  2283. path: '/setting/OperateJournal',
  2284. name: 'powerOperateJournal',
  2285. component: () => import(/* webpackChunkName: "setting" */
  2286. '@/views/power/OperateJournal/OperateJournal.vue'),
  2287. meta: {
  2288. title: '操作日志',
  2289. icon: 'read',
  2290. permission: 'M_OperateJournalList'
  2291. }
  2292. },
  2293. {
  2294. path: '/setting/noticeManagement',
  2295. redirect: '/setting/noticeManagement/list',
  2296. name: 'noticeManagement',
  2297. component: BlankLayout,
  2298. meta: {
  2299. title: '公告管理',
  2300. icon: 'sketch',
  2301. permission: 'M_noticeManagementList'
  2302. },
  2303. hideChildrenInMenu: true,
  2304. children: [
  2305. {
  2306. path: 'list',
  2307. name: 'noticeManagementList',
  2308. component: () => import(/* webpackChunkName: "setting" */ '@/views/setting/noticeManagement/list.vue'),
  2309. meta: {
  2310. title: '公告列表',
  2311. icon: 'sketch',
  2312. hidden: true,
  2313. permission: 'M_noticeManagementList'
  2314. }
  2315. }
  2316. ]
  2317. }
  2318. ]
  2319. },
  2320. // 公告
  2321. {
  2322. path: '/notice',
  2323. name: 'notice',
  2324. component: () => import(/* webpackChunkName: "home" */ '@/views/setting/notice/list'),
  2325. meta: {
  2326. title: '公告',
  2327. icon: 'bell'
  2328. },
  2329. hidden: true
  2330. }
  2331. ]
  2332. },
  2333. {
  2334. path: '*',
  2335. redirect: '/404',
  2336. hidden: true
  2337. }
  2338. ]
  2339. /**
  2340. * 基础路由
  2341. * @type { *[] }
  2342. */
  2343. export const constantRouterMap = [
  2344. {
  2345. path: '/user',
  2346. component: UserLayout,
  2347. redirect: '/user/login',
  2348. hidden: true,
  2349. children: [
  2350. {
  2351. path: 'login',
  2352. name: 'login',
  2353. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  2354. },
  2355. {
  2356. path: 'register',
  2357. name: 'register',
  2358. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  2359. },
  2360. {
  2361. path: 'register-result',
  2362. name: 'registerResult',
  2363. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  2364. },
  2365. {
  2366. path: 'recover',
  2367. name: 'recover',
  2368. component: undefined
  2369. }
  2370. ]
  2371. },
  2372. {
  2373. path: '/404',
  2374. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  2375. }
  2376. ]