router.config.js 71 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982
  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: { title: '首页' },
  15. redirect: '/home',
  16. children: [
  17. {
  18. path: '/home',
  19. name: 'home',
  20. redirect: '/home',
  21. component: PageView,
  22. meta: {
  23. title: '首页',
  24. icon: 'home'
  25. },
  26. hideChildrenInMenu: true,
  27. children: [
  28. {
  29. path: '/home',
  30. name: 'home',
  31. component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
  32. meta: {
  33. title: '首页',
  34. icon: 'home',
  35. hide: true
  36. }
  37. }
  38. ]
  39. },
  40. {
  41. path: '/changePwd',
  42. name: 'changePwd',
  43. component: () => import(/* webpackChunkName: "home" */ '@/views/user/ChangePwd'),
  44. meta: {
  45. title: '修改密码',
  46. icon: 'home'
  47. },
  48. hidden: true
  49. },
  50. // 销售管理
  51. {
  52. path: '/salesManagement',
  53. redirect: '/salesManagement/salesQuery',
  54. component: PageView,
  55. meta: {
  56. title: '销售管理',
  57. icon: 'account-book'
  58. // permission: 'M_salesManage'
  59. },
  60. children: [
  61. {
  62. path: '/salesManagement/salesQuery',
  63. redirect: '/salesManagement/salesQuery/list',
  64. name: 'salesQuery',
  65. component: RouteView,
  66. meta: {
  67. title: '销售单查询',
  68. icon: 'monitor'
  69. // permission: 'M_salesQueryList'
  70. },
  71. hideChildrenInMenu: true,
  72. children: [
  73. {
  74. path: 'list',
  75. name: 'salesQueryList',
  76. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/list.vue'),
  77. meta: {
  78. title: '销售单列表',
  79. icon: 'monitor',
  80. hidden: true
  81. // permission: 'M_salesQueryList'
  82. }
  83. },
  84. {
  85. path: 'detail/:sn',
  86. name: 'salesDetail',
  87. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/detail.vue'),
  88. meta: {
  89. title: '销售单详情',
  90. icon: 'monitor',
  91. hidden: true
  92. }
  93. },
  94. {
  95. path: 'add/:id/:sn/:priceType',
  96. name: 'salesAdd',
  97. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  98. meta: {
  99. title: '新增销售单',
  100. icon: 'monitor',
  101. hidden: true
  102. }
  103. },
  104. {
  105. path: 'edit/:id/:sn/:priceType',
  106. name: 'salesEdit',
  107. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  108. meta: {
  109. title: '编辑销售单',
  110. icon: 'monitor',
  111. hidden: true
  112. }
  113. }
  114. ]
  115. },
  116. {
  117. path: '/salesManagement/outboundOrder',
  118. redirect: '/salesManagement/outboundOrder/list',
  119. name: 'outboundOrder',
  120. component: RouteView,
  121. meta: {
  122. title: '出库',
  123. icon: 'export',
  124. permission: 'M_outboundList'
  125. },
  126. hideChildrenInMenu: true,
  127. children: [
  128. {
  129. path: 'list',
  130. name: 'outboundOrderList',
  131. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/list.vue'),
  132. meta: {
  133. title: '出库列表',
  134. icon: 'export',
  135. hidden: true,
  136. permission: 'M_outboundList'
  137. }
  138. },
  139. {
  140. path: 'detail/:id',
  141. name: 'outboundOrderDetail',
  142. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/detail.vue'),
  143. meta: {
  144. title: '出库明细',
  145. icon: 'export',
  146. hidden: true
  147. }
  148. }
  149. ]
  150. },
  151. {
  152. path: '/salesManagement/urgentItemsOffset',
  153. redirect: '/salesManagement/urgentItemsOffset/list',
  154. name: 'urgentItemsOffset',
  155. component: RouteView,
  156. meta: {
  157. title: '急件冲减',
  158. icon: 'rocket',
  159. permission: 'M_urgentItemsOffsetList'
  160. },
  161. hideChildrenInMenu: true,
  162. children: [
  163. {
  164. path: 'list',
  165. name: 'urgentItemsOffsetList',
  166. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/urgentItemsOffset/list.vue'),
  167. meta: {
  168. title: '急件冲减列表',
  169. icon: 'rocket',
  170. hidden: true,
  171. permission: 'M_urgentItemsOffsetList'
  172. }
  173. },
  174. {
  175. path: 'detail/:sn',
  176. name: 'urgentItemsOffsetDetail',
  177. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/urgentItemsOffset/detail.vue'),
  178. meta: {
  179. title: '急件冲减详情',
  180. icon: 'rocket',
  181. hidden: true
  182. }
  183. }
  184. ]
  185. },
  186. {
  187. path: '/salesManagement/salesReturn',
  188. redirect: '/salesManagement/salesReturn/list',
  189. name: 'salesReturn',
  190. component: RouteView,
  191. meta: {
  192. title: '销售退货',
  193. icon: 'fund'
  194. // permission: 'M_salesReturn_list'
  195. },
  196. hideChildrenInMenu: true,
  197. children: [
  198. {
  199. path: 'list',
  200. name: 'salesReturnList',
  201. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/list.vue'),
  202. meta: {
  203. title: '退货单列表',
  204. icon: 'fund',
  205. hidden: true
  206. // permission: 'M_salesReturn_list'
  207. }
  208. },
  209. {
  210. path: 'detail/:id/:sn',
  211. name: 'salesReturnDetail',
  212. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/detail.vue'),
  213. meta: {
  214. title: '退货单详情',
  215. icon: 'fund',
  216. hidden: true
  217. // permission: 'M_salesReturn'
  218. }
  219. },
  220. {
  221. path: 'salesReturnGrabEdit/:id/:sn/:buyerSn',
  222. name: 'salesReturnGrabEdit',
  223. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnGrabEdit.vue'),
  224. meta: {
  225. title: '编辑退货单(抓单)',
  226. icon: 'fund',
  227. hidden: true
  228. // permission: 'M_salesReturnGrabEdit'
  229. }
  230. },
  231. {
  232. path: 'salesReturnEdit/:id/:sn/:buyerSn',
  233. name: 'salesReturnEdit',
  234. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnEdit.vue'),
  235. meta: {
  236. title: '编辑退货单(不抓单)',
  237. icon: 'fund',
  238. hidden: true
  239. // permission: 'M_salesReturnEdit'
  240. }
  241. }
  242. ]
  243. },
  244. // { 二期
  245. // path: '/salesManagement/quotation',
  246. // redirect: '/salesManagement/quotation/list',
  247. // name: 'quotation',
  248. // component: RouteView,
  249. // meta: {
  250. // title: '报价单',
  251. // icon: 'idcard'
  252. // // permission: 'M_goodsManage_list'
  253. // },
  254. // hideChildrenInMenu: true,
  255. // children: [
  256. // {
  257. // path: 'list',
  258. // name: 'quotationList',
  259. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/list.vue'),
  260. // meta: {
  261. // title: '报价单列表',
  262. // icon: 'idcard',
  263. // hidden: true
  264. // // permission: 'M_goodsManage_list'
  265. // }
  266. // },
  267. // {
  268. // path: 'add',
  269. // name: 'quotationAdd',
  270. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/edit.vue'),
  271. // meta: {
  272. // title: '新增报价单',
  273. // icon: 'idcard',
  274. // hidden: true
  275. // // permission: 'M_goodsManage_list'
  276. // }
  277. // },
  278. // {
  279. // path: 'edit/:id',
  280. // name: 'quotationEdit',
  281. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/edit.vue'),
  282. // meta: {
  283. // title: '编辑报价单',
  284. // icon: 'idcard',
  285. // hidden: true
  286. // // permission: 'M_goodsManage_list'
  287. // }
  288. // },
  289. // {
  290. // path: 'detail/:id',
  291. // name: 'quotationDetail',
  292. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/quotation/detail.vue'),
  293. // meta: {
  294. // title: '报价单详情',
  295. // icon: 'idcard',
  296. // hidden: true
  297. // // permission: 'M_goodsManage_list'
  298. // }
  299. // }
  300. // ]
  301. // },
  302. {
  303. path: '/salesManagement/giftRecord',
  304. redirect: '/salesManagement/giftRecord/list',
  305. name: 'giftRecord',
  306. component: RouteView,
  307. meta: {
  308. title: '赠品记录',
  309. icon: 'file-search',
  310. permission: 'M_giftRecordList'
  311. },
  312. hideChildrenInMenu: true,
  313. children: [
  314. {
  315. path: 'list',
  316. name: 'giftRecordList',
  317. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/giftRecord/list.vue'),
  318. meta: {
  319. title: '赠品记录列表',
  320. icon: 'file-search',
  321. hidden: true,
  322. permission: 'M_giftRecordList'
  323. }
  324. }
  325. ]
  326. }
  327. ]
  328. },
  329. // 采购管理
  330. {
  331. path: '/purchasingManagement',
  332. redirect: '/purchasingManagement/purchaseOrder',
  333. component: PageView,
  334. meta: {
  335. title: '采购管理',
  336. icon: 'money-collect'
  337. // permission: 'M_shop'
  338. },
  339. children: [
  340. {
  341. path: '/purchasingManagement/purchaseOrder',
  342. redirect: '/purchasingManagement/purchaseOrder/list',
  343. name: 'purchaseOrder',
  344. component: RouteView,
  345. meta: {
  346. title: '采购单管理',
  347. icon: 'money-collect'
  348. // permission: 'M_goodsManage_list'
  349. },
  350. hideChildrenInMenu: true,
  351. children: [
  352. {
  353. path: 'list',
  354. name: 'purchaseOrderList',
  355. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/list.vue'),
  356. meta: {
  357. title: '采购单列表',
  358. icon: 'money-collect',
  359. hidden: true
  360. // permission: 'M_goodsManage_list'
  361. }
  362. },
  363. {
  364. path: 'add/:sn',
  365. name: 'purchaseOrderAdd',
  366. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/edit.vue'),
  367. meta: {
  368. title: '新增采购单',
  369. icon: 'money-collect',
  370. hidden: true
  371. // permission: 'B_goodsManage_edit'
  372. }
  373. },
  374. {
  375. path: 'edit/:sn',
  376. name: 'purchaseOrderEdit',
  377. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/edit.vue'),
  378. meta: {
  379. title: '编辑采购单',
  380. icon: 'money-collect',
  381. hidden: true
  382. // permission: 'B_goodsManage_edit'
  383. }
  384. },
  385. {
  386. path: 'detail/:sn',
  387. name: 'purchaseOrderDetail',
  388. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/detail.vue'),
  389. meta: {
  390. title: '采购单详情',
  391. icon: 'money-collect',
  392. hidden: true
  393. // permission: 'B_goodsManage_edit'
  394. }
  395. },
  396. {
  397. path: 'warehousing/:sn',
  398. name: 'purchaseOrderWarehousing',
  399. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/warehousing.vue'),
  400. meta: {
  401. title: '采购入库',
  402. icon: 'money-collect',
  403. hidden: true
  404. // permission: 'B_goodsManage_edit'
  405. }
  406. }
  407. ]
  408. },
  409. {
  410. path: '/purchasingManagement/purchaseReturn',
  411. redirect: '/purchasingManagement/purchaseReturn/list',
  412. name: 'purchaseReturn',
  413. component: RouteView,
  414. meta: {
  415. title: '采购退货',
  416. icon: 'money-collect'
  417. // permission: 'M_goodsManage_list'
  418. },
  419. hideChildrenInMenu: true,
  420. children: [
  421. {
  422. path: 'list',
  423. name: 'purchaseReturnList',
  424. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseReturn/list.vue'),
  425. meta: {
  426. title: '采购退货列表',
  427. icon: 'money-collect',
  428. hidden: true
  429. // permission: 'M_goodsManage_list'
  430. }
  431. },
  432. {
  433. path: 'add/:id/:sn',
  434. name: 'purchaseReturnAdd',
  435. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseReturn/edit.vue'),
  436. meta: {
  437. title: '新增采购退货单',
  438. icon: 'money-collect',
  439. hidden: true
  440. // permission: 'B_goodsManage_edit'
  441. }
  442. },
  443. {
  444. path: 'edit/:id/:sn',
  445. name: 'purchaseReturnEdit',
  446. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseReturn/edit.vue'),
  447. meta: {
  448. title: '编辑采购退货单',
  449. icon: 'money-collect',
  450. hidden: true
  451. // permission: 'B_goodsManage_edit'
  452. }
  453. },
  454. {
  455. path: 'detail/:sn',
  456. name: 'purchaseReturnDetail',
  457. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseReturn/detail.vue'),
  458. meta: {
  459. title: '采购退货详情',
  460. icon: 'money-collect',
  461. hidden: true
  462. // permission: 'B_goodsManage_edit'
  463. }
  464. }
  465. ]
  466. }
  467. ]
  468. },
  469. // 调拨管理
  470. {
  471. path: '/allocationManagement',
  472. redirect: '/allocationManagement/warehouseAllocation',
  473. component: PageView,
  474. meta: {
  475. title: '调拨管理',
  476. icon: 'cluster'
  477. // permission: 'M_allocationManagement'
  478. },
  479. children: [
  480. {
  481. path: '/allocationManagement/warehouseAllocation',
  482. redirect: '/allocationManagement/warehouseAllocation/list',
  483. name: 'warehouseAllocation',
  484. component: RouteView,
  485. meta: {
  486. title: '仓库调拨',
  487. icon: 'gateway',
  488. permission: 'M_warehouseAllocationList'
  489. },
  490. hideChildrenInMenu: true,
  491. children: [
  492. {
  493. path: 'list',
  494. name: 'warehouseAllocationList',
  495. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/list.vue'),
  496. meta: {
  497. title: '仓库调拨列表',
  498. icon: 'gateway',
  499. hidden: true,
  500. permission: 'M_warehouseAllocationList'
  501. }
  502. },
  503. {
  504. path: 'add',
  505. name: 'warehouseAllocationAdd',
  506. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/edit.vue'),
  507. meta: {
  508. title: '新增仓库调拨',
  509. icon: 'gateway',
  510. hidden: true
  511. }
  512. },
  513. {
  514. path: 'edit/:id/:sn',
  515. name: 'warehouseAllocationEdit',
  516. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/edit.vue'),
  517. meta: {
  518. title: '编辑仓库调拨',
  519. icon: 'gateway',
  520. hidden: true
  521. }
  522. },
  523. {
  524. path: 'detail/:sn',
  525. name: 'warehouseAllocationDetail',
  526. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/detail.vue'),
  527. meta: {
  528. title: '仓库调拨详情',
  529. icon: 'gateway',
  530. hidden: true
  531. }
  532. }
  533. ]
  534. },
  535. {
  536. path: '/allocationManagement/chainTransferIn',
  537. redirect: '/allocationManagement/chainTransferIn/list',
  538. name: 'chainTransferIn',
  539. component: RouteView,
  540. meta: {
  541. title: '连锁调入',
  542. icon: 'cluster'
  543. // permission: 'M_goodsManage_list'
  544. },
  545. hideChildrenInMenu: true,
  546. children: [
  547. {
  548. path: 'list',
  549. name: 'chainTransferInList',
  550. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/list.vue'),
  551. meta: {
  552. title: '连锁调入列表',
  553. icon: 'cluster',
  554. hidden: true
  555. // permission: 'M_goodsManage_list'
  556. }
  557. },
  558. {
  559. path: 'edit/:id/:sn',
  560. name: 'chainTransferInEdit',
  561. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/edit.vue'),
  562. meta: {
  563. title: '编辑连锁调入',
  564. icon: 'cluster',
  565. hidden: true
  566. // permission: 'B_goodsManage_edit'
  567. }
  568. },
  569. {
  570. path: 'detail/:sn',
  571. name: 'chainTransferInDetail',
  572. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/detail.vue'),
  573. meta: {
  574. title: '连锁调入详情',
  575. icon: 'cluster',
  576. hidden: true
  577. // permission: 'B_goodsManage_edit'
  578. }
  579. }
  580. ]
  581. },
  582. {
  583. path: '/allocationManagement/chainTransferOut',
  584. redirect: '/allocationManagement/chainTransferOut/list',
  585. name: 'chainTransferOut',
  586. component: RouteView,
  587. meta: {
  588. title: '连锁调出',
  589. icon: 'pull-request'
  590. // permission: 'M_goodsManage_list'
  591. },
  592. hideChildrenInMenu: true,
  593. children: [
  594. {
  595. path: 'list',
  596. name: 'chainTransferOutList',
  597. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/list.vue'),
  598. meta: {
  599. title: '连锁调出列表',
  600. icon: 'pull-request',
  601. hidden: true
  602. // permission: 'M_goodsManage_list'
  603. }
  604. },
  605. {
  606. path: 'add/:id/:sn',
  607. name: 'chainTransferOutAdd',
  608. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  609. meta: {
  610. title: '新增连锁调出',
  611. icon: 'pull-request',
  612. hidden: true
  613. // permission: 'B_goodsManage_edit'
  614. }
  615. },
  616. {
  617. path: 'edit/:id/:sn',
  618. name: 'chainTransferOutEdit',
  619. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  620. meta: {
  621. title: '编辑连锁调出',
  622. icon: 'pull-request',
  623. hidden: true
  624. // permission: 'B_goodsManage_edit'
  625. }
  626. },
  627. {
  628. path: 'detail/:sn',
  629. name: 'chainTransferOutDetail',
  630. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/detail.vue'),
  631. meta: {
  632. title: '连锁调出详情',
  633. icon: 'pull-request',
  634. hidden: true
  635. // permission: 'B_goodsManage_edit'
  636. }
  637. }
  638. ]
  639. },
  640. {
  641. path: '/allocationManagement/storeTransferOut',
  642. redirect: '/allocationManagement/storeTransferOut/list',
  643. name: 'storeTransferOut',
  644. component: RouteView,
  645. meta: {
  646. title: '店内调出',
  647. icon: 'interaction'
  648. // permission: 'M_storeTransferOutList'
  649. },
  650. hideChildrenInMenu: true,
  651. children: [
  652. {
  653. path: 'list',
  654. name: 'storeTransferOutList',
  655. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/list.vue'),
  656. meta: {
  657. title: '店内调出列表',
  658. icon: 'interaction',
  659. hidden: true,
  660. permission: 'M_storeTransferOutList'
  661. }
  662. },
  663. {
  664. path: 'add/:id/:sn',
  665. name: 'storeTransferOutAdd',
  666. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  667. meta: {
  668. title: '新增店内调出',
  669. icon: 'interaction',
  670. hidden: true
  671. }
  672. },
  673. {
  674. path: 'edit/:id/:sn',
  675. name: 'storeTransferOutEdit',
  676. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  677. meta: {
  678. title: '编辑店内调出',
  679. icon: 'interaction',
  680. hidden: true
  681. }
  682. },
  683. {
  684. path: 'detail/:sn',
  685. name: 'storeTransferOutDetail',
  686. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/detail.vue'),
  687. meta: {
  688. title: '店内调出详情',
  689. icon: 'interaction',
  690. hidden: true
  691. }
  692. }
  693. ]
  694. }
  695. ]
  696. },
  697. // 库存管理
  698. {
  699. path: '/inventoryManagement',
  700. redirect: '/inventoryManagement/inventoryQuery',
  701. component: PageView,
  702. meta: {
  703. title: '库存管理',
  704. icon: 'shop',
  705. permission: 'M_inventory'
  706. },
  707. children: [
  708. {
  709. path: '/inventoryManagement/inventoryQuery',
  710. redirect: '/inventoryManagement/inventoryQuery/list',
  711. name: 'inventoryQuery',
  712. component: RouteView,
  713. meta: {
  714. title: '库存查询',
  715. icon: 'monitor',
  716. permission: 'M_inventory_inventoryQuery_list'
  717. },
  718. hideChildrenInMenu: true,
  719. children: [
  720. {
  721. path: 'list',
  722. name: 'inventoryQueryList',
  723. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
  724. meta: {
  725. title: '库存列表',
  726. icon: 'monitor',
  727. hidden: true,
  728. permission: 'M_inventory_inventoryQuery_list'
  729. }
  730. },
  731. {
  732. path: 'warehouseDetail/:sn',
  733. name: 'inventoryQueryWarehouseDetail',
  734. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
  735. meta: {
  736. title: '出入库明细',
  737. icon: 'monitor',
  738. hidden: true
  739. }
  740. }
  741. ]
  742. },
  743. {
  744. path: '/inventoryManagement/inventoryWarning',
  745. name: 'inventoryWarningList',
  746. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
  747. meta: {
  748. title: '库存预警',
  749. icon: 'alert'
  750. // permission: 'M_goodsShelves_0'
  751. }
  752. },
  753. {
  754. path: '/inventoryManagement/intelligentReplenishment',
  755. redirect: '/inventoryManagement/intelligentReplenishment/list',
  756. name: 'intelligentReplenishment',
  757. component: RouteView,
  758. meta: {
  759. title: '智能补货',
  760. icon: 'monitor'
  761. // permission: 'M_inventory_inventoryQuery_list'
  762. },
  763. hideChildrenInMenu: true,
  764. children: [
  765. {
  766. path: 'list',
  767. name: 'intelligentReplenishmentList',
  768. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/intelligentReplenishment/list.vue'),
  769. meta: {
  770. title: '智能补货列表',
  771. icon: 'monitor',
  772. hidden: true
  773. // permission: 'M_inventory_inventoryQuery_list'
  774. }
  775. },
  776. {
  777. path: 'add',
  778. name: 'intelligentReplenishmentAdd',
  779. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/intelligentReplenishment/edit.vue'),
  780. meta: {
  781. title: '新增智能补货',
  782. icon: 'monitor',
  783. hidden: true
  784. }
  785. },
  786. {
  787. path: 'edit/:sn',
  788. name: 'intelligentReplenishmentEdit',
  789. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/intelligentReplenishment/edit.vue'),
  790. meta: {
  791. title: '编辑智能补货',
  792. icon: 'monitor',
  793. hidden: true
  794. }
  795. },
  796. {
  797. path: 'set/:sn',
  798. name: 'intelligentReplenishmentSet',
  799. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/intelligentReplenishment/set.vue'),
  800. meta: {
  801. title: '基础信息设置',
  802. icon: 'monitor',
  803. hidden: true
  804. }
  805. }
  806. ]
  807. },
  808. // {
  809. // path: '/inventoryManagement/satelliteWarehouseInventory',
  810. // name: 'satelliteWarehouseInventoryList',
  811. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/satelliteWarehouseInventory/list.vue'),
  812. // meta: {
  813. // title: '卫星仓库存',
  814. // icon: 'flag'
  815. // // permission: 'M_goodsShelves_0'
  816. // }
  817. // },
  818. {
  819. path: '/inventoryManagement/warehouse',
  820. redirect: '/inventoryManagement/warehouse/list',
  821. name: 'warehouse',
  822. component: RouteView,
  823. meta: {
  824. title: '仓库管理',
  825. icon: 'deployment-unit',
  826. permission: 'M_inventory_warehouse_list'
  827. },
  828. hideChildrenInMenu: true,
  829. children: [
  830. {
  831. path: 'list',
  832. name: 'warehouseList',
  833. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouse/list.vue'),
  834. meta: {
  835. title: '仓库列表',
  836. icon: 'deployment-unit',
  837. hidden: true,
  838. permission: 'M_inventory_warehouse_list'
  839. }
  840. },
  841. {
  842. path: '/inventoryManagement/storingLocation/:sn',
  843. name: 'storingLocationList',
  844. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouse/storingLocation/list.vue'),
  845. meta: {
  846. title: '仓位列表',
  847. icon: 'deployment-unit',
  848. hidden: true,
  849. permission: 'M_inventory_warehouse_storingLocation_list'
  850. }
  851. }
  852. ]
  853. }
  854. // 二期
  855. // {
  856. // path: '/inventoryManagement/inventoryChecking',
  857. // redirect: '/inventoryManagement/inventoryChecking/list',
  858. // name: 'inventoryChecking',
  859. // component: RouteView,
  860. // meta: {
  861. // title: '库存盘点',
  862. // icon: 'reconciliation'
  863. // // permission: 'M_goodsManage_list'
  864. // },
  865. // hideChildrenInMenu: true,
  866. // children: [
  867. // {
  868. // path: 'list',
  869. // name: 'inventoryCheckingList',
  870. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/list.vue'),
  871. // meta: {
  872. // title: '库存盘点列表',
  873. // icon: 'reconciliation',
  874. // hidden: true
  875. // // permission: 'M_goodsManage_list'
  876. // }
  877. // },
  878. // {
  879. // path: 'overall/:id',
  880. // name: 'inventoryCheckingOverall',
  881. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/overall.vue'),
  882. // meta: {
  883. // title: '盘点人盘点【全盘】',
  884. // icon: 'reconciliation',
  885. // hidden: true
  886. // // permission: 'B_goodsManage_edit'
  887. // }
  888. // },
  889. // {
  890. // path: 'selfDisk/:id',
  891. // name: 'inventoryCheckingSelfDisk',
  892. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/selfDisk.vue'),
  893. // meta: {
  894. // title: '盘点人盘点【自选盘点】',
  895. // icon: 'reconciliation',
  896. // hidden: true
  897. // // permission: 'B_goodsManage_edit'
  898. // }
  899. // },
  900. // {
  901. // path: 'detail/:id',
  902. // name: 'inventoryCheckingDetail',
  903. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/detail.vue'),
  904. // meta: {
  905. // title: '库存盘点详情',
  906. // icon: 'reconciliation',
  907. // hidden: true
  908. // // permission: 'B_goodsManage_edit'
  909. // }
  910. // },
  911. // {
  912. // path: 'makeInventory/:id',
  913. // name: 'inventoryCheckingMakeInventory',
  914. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventory.vue'),
  915. // meta: {
  916. // title: '待盘点【盘点】',
  917. // icon: 'reconciliation',
  918. // hidden: true
  919. // // permission: 'B_goodsManage_edit'
  920. // }
  921. // },
  922. // {
  923. // path: 'makeInventory/detail/:id', /* 待盘点【盘点】详情 */
  924. // name: 'inventoryCheckingMakeInventoryDetail',
  925. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventoryDetail.vue'),
  926. // meta: {
  927. // title: '库存盘点详情',
  928. // icon: 'reconciliation',
  929. // hidden: true
  930. // // permission: 'B_goodsManage_edit'
  931. // }
  932. // },
  933. // {
  934. // path: 'financialAudit/detail/:id', /* 财务审核详情 */
  935. // name: 'inventoryCheckingFinancialAuditDetail',
  936. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/financialAuditDetail.vue'),
  937. // meta: {
  938. // title: '库存盘点详情',
  939. // icon: 'reconciliation',
  940. // hidden: true
  941. // // permission: 'B_goodsManage_edit'
  942. // }
  943. // }
  944. // ]
  945. // }
  946. ]
  947. },
  948. // 客户管理
  949. {
  950. path: '/customerManagement',
  951. redirect: '/customerManagement/customerInfo',
  952. component: PageView,
  953. meta: {
  954. title: '客户管理',
  955. icon: 'idcard',
  956. permission: 'M_customer_customerInfo_list'
  957. },
  958. children: [
  959. {
  960. path: '/customerManagement/customerInfo',
  961. redirect: '/customerManagement/customerInfo/list',
  962. name: 'customerInfo',
  963. component: RouteView,
  964. meta: {
  965. title: '客户管理',
  966. icon: 'idcard',
  967. permission: 'M_customer_customerInfo_list'
  968. },
  969. hideChildrenInMenu: true,
  970. children: [
  971. {
  972. path: 'list',
  973. name: 'customerInfoList',
  974. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/list.vue'),
  975. meta: {
  976. title: '客户列表',
  977. icon: 'idcard',
  978. hidden: true,
  979. permission: 'M_customer_customerInfo_list'
  980. }
  981. },
  982. {
  983. path: 'add',
  984. name: 'customerInfoAdd',
  985. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  986. meta: {
  987. title: '新增客户',
  988. icon: 'idcard',
  989. hidden: true,
  990. permission: 'B_customer_customerInfo_add'
  991. }
  992. },
  993. {
  994. path: 'edit/:id',
  995. name: 'customerInfoEdit',
  996. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  997. meta: {
  998. title: '编辑客户',
  999. icon: 'idcard',
  1000. hidden: true,
  1001. permission: 'B_customer_customerInfo_edit'
  1002. }
  1003. }
  1004. ]
  1005. }
  1006. ]
  1007. },
  1008. // 产品管理
  1009. {
  1010. path: '/productManagement',
  1011. redirect: '/productManagement/productInfo',
  1012. component: PageView,
  1013. meta: {
  1014. title: '产品管理',
  1015. icon: 'shopping',
  1016. permission: 'M_product'
  1017. },
  1018. children: [
  1019. {
  1020. path: '/productManagement/productInfo',
  1021. redirect: '/productManagement/productInfo/list',
  1022. name: 'productInfo',
  1023. component: RouteView,
  1024. meta: {
  1025. title: '产品信息管理(自建)',
  1026. icon: 'file-text',
  1027. permission: 'M_product_dealerProduct_list'
  1028. },
  1029. hideChildrenInMenu: true,
  1030. children: [
  1031. {
  1032. path: 'list',
  1033. name: 'productInfoList',
  1034. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/list.vue'),
  1035. meta: {
  1036. title: '产品信息列表',
  1037. icon: 'file-text',
  1038. hidden: true,
  1039. permission: 'M_product_dealerProduct_list'
  1040. }
  1041. },
  1042. {
  1043. path: 'add',
  1044. name: 'productInfoAdd',
  1045. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  1046. meta: {
  1047. title: '新增产品',
  1048. icon: 'file-text',
  1049. hidden: true,
  1050. permission: 'B_product_dealerProduct_add'
  1051. }
  1052. },
  1053. {
  1054. path: 'edit/:id',
  1055. name: 'productInfoEdit',
  1056. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  1057. meta: {
  1058. title: '编辑产品',
  1059. icon: 'file-text',
  1060. hidden: true,
  1061. permission: 'B_product_dealerProduct_edit'
  1062. }
  1063. }
  1064. ]
  1065. },
  1066. {
  1067. path: '/productManagement/productInfoJg',
  1068. redirect: '/productManagement/productInfoJg/list',
  1069. name: 'productInfoJg',
  1070. component: RouteView,
  1071. meta: {
  1072. title: '产品信息管理(箭冠)',
  1073. icon: 'file-text',
  1074. permission: 'M_product_product_list'
  1075. },
  1076. hideChildrenInMenu: true,
  1077. children: [
  1078. {
  1079. path: 'list',
  1080. name: 'productInfoJgList',
  1081. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfoJg/list.vue'),
  1082. meta: {
  1083. title: '产品信息列表',
  1084. icon: 'file-text',
  1085. hidden: true,
  1086. permission: 'M_product_product_list'
  1087. }
  1088. }
  1089. ]
  1090. },
  1091. {
  1092. path: '/productManagement/productBrand',
  1093. redirect: '/productManagement/productBrand/list',
  1094. name: 'productBrand',
  1095. component: RouteView,
  1096. meta: {
  1097. title: '产品品牌管理',
  1098. icon: 'sketch',
  1099. permission: 'M_product_dealerProductBrand_list'
  1100. },
  1101. hideChildrenInMenu: true,
  1102. children: [
  1103. {
  1104. path: 'list',
  1105. name: 'productBrandList',
  1106. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productBrand/list.vue'),
  1107. meta: {
  1108. title: '产品品牌列表',
  1109. icon: 'sketch',
  1110. hidden: true,
  1111. permission: 'M_product_dealerProductBrand_list'
  1112. }
  1113. }
  1114. ]
  1115. },
  1116. {
  1117. path: '/productManagement/productCategory',
  1118. redirect: '/productManagement/productCategory/list',
  1119. name: 'productCategory',
  1120. component: RouteView,
  1121. meta: {
  1122. title: '产品分类管理',
  1123. icon: 'sliders',
  1124. permission: 'M_product_dealerProductType_list'
  1125. },
  1126. hideChildrenInMenu: true,
  1127. children: [
  1128. {
  1129. path: 'list',
  1130. name: 'productCategoryList',
  1131. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productCategory/list.vue'),
  1132. meta: {
  1133. title: '产品分类列表',
  1134. icon: 'sliders',
  1135. hidden: true,
  1136. permission: 'M_product_dealerProductType_list'
  1137. }
  1138. }
  1139. ]
  1140. },
  1141. {
  1142. path: '/productManagement/priceChangeRecord',
  1143. redirect: '/productManagement/priceChangeRecord/list',
  1144. name: 'priceChangeRecord',
  1145. component: RouteView,
  1146. meta: {
  1147. title: '价格变更记录',
  1148. icon: 'sketch'
  1149. // permission: 'M_goodsManage_list'
  1150. },
  1151. hideChildrenInMenu: true,
  1152. children: [
  1153. {
  1154. path: 'list',
  1155. name: 'priceChangeRecordList',
  1156. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/priceChangeRecord/list.vue'),
  1157. meta: {
  1158. title: '价格变更记录列表',
  1159. icon: 'sketch',
  1160. hidden: true
  1161. // permission: 'M_goodsManage_list'
  1162. }
  1163. }
  1164. ]
  1165. }
  1166. ]
  1167. },
  1168. // 供应商管理
  1169. {
  1170. path: '/supplierManagement',
  1171. redirect: '/supplierManagement/supplierInfo',
  1172. component: PageView,
  1173. meta: {
  1174. title: '供应商管理',
  1175. icon: 'team',
  1176. permission: 'M_supplier_supplierInfo_list'
  1177. },
  1178. children: [
  1179. {
  1180. path: '/supplierManagement/supplierInfo',
  1181. redirect: '/supplierManagement/supplierInfo/list',
  1182. name: 'supplierInfo',
  1183. component: RouteView,
  1184. meta: {
  1185. title: '供应商管理',
  1186. icon: 'team',
  1187. permission: 'M_supplier_supplierInfo_list'
  1188. },
  1189. hideChildrenInMenu: true,
  1190. children: [
  1191. {
  1192. path: 'list',
  1193. name: 'supplierInfoList',
  1194. component: () => import(/* webpackChunkName: "shop" */ '@/views/supplierManagement/supplierInfo/list.vue'),
  1195. meta: {
  1196. title: '供应商列表',
  1197. icon: 'team',
  1198. hidden: true,
  1199. permission: 'M_supplier_supplierInfo_list'
  1200. }
  1201. }
  1202. ]
  1203. }
  1204. ]
  1205. },
  1206. // 散件管理
  1207. {
  1208. path: '/bulkManagement',
  1209. redirect: '/bulkManagement/purchaseOrder',
  1210. component: PageView,
  1211. meta: {
  1212. title: '散件管理',
  1213. icon: 'gold',
  1214. permission: 'M_bulkWarehousing'
  1215. },
  1216. children: [
  1217. {
  1218. path: '/bulkManagement/bulkWarehousingOrder',
  1219. redirect: '/bulkManagement/bulkWarehousingOrder/list',
  1220. name: 'bulkWarehousingOrder',
  1221. component: RouteView,
  1222. meta: {
  1223. title: '散件入库',
  1224. icon: 'gold',
  1225. permission: 'M_bulkWarehousingOrder_list'
  1226. },
  1227. hideChildrenInMenu: true,
  1228. children: [
  1229. {
  1230. path: 'list',
  1231. name: 'bulkWarehousingOrderList',
  1232. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/list.vue'),
  1233. meta: {
  1234. title: '散件入库单列表',
  1235. icon: 'gold',
  1236. hidden: true,
  1237. permission: 'M_bulkWarehousingOrder_list'
  1238. }
  1239. },
  1240. {
  1241. path: 'add/:id/:sn',
  1242. name: 'bulkWarehousingOrderAdd',
  1243. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  1244. meta: {
  1245. title: '新增散件入库单',
  1246. icon: 'gold',
  1247. hidden: true
  1248. }
  1249. },
  1250. {
  1251. path: 'edit/:id/:sn',
  1252. name: 'bulkWarehousingOrderEdit',
  1253. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  1254. meta: {
  1255. title: '编辑散件入库单',
  1256. icon: 'gold',
  1257. hidden: true
  1258. }
  1259. },
  1260. {
  1261. path: 'detail/:id/:sn',
  1262. name: 'bulkWarehousingOrderDetail',
  1263. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/detail.vue'),
  1264. meta: {
  1265. title: '散件入库单详情',
  1266. icon: 'gold',
  1267. hidden: true
  1268. }
  1269. }
  1270. ]
  1271. }
  1272. // {
  1273. // path: '/bulkManagement/bulkReturnGoods',
  1274. // redirect: '/bulkManagement/bulkReturnGoods/list',
  1275. // name: 'bulkReturnGoods',
  1276. // component: RouteView,
  1277. // meta: {
  1278. // title: '散件退货',
  1279. // icon: 'frown'
  1280. // // permission: 'M_goodsManage_list'
  1281. // },
  1282. // hideChildrenInMenu: true,
  1283. // children: [
  1284. // {
  1285. // path: 'list',
  1286. // name: 'bulkReturnGoodsList',
  1287. // component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/list.vue'),
  1288. // meta: {
  1289. // title: '散件退货列表',
  1290. // icon: 'frown',
  1291. // hidden: true
  1292. // // permission: 'M_goodsManage_list'
  1293. // }
  1294. // },
  1295. // {
  1296. // path: 'add',
  1297. // name: 'bulkReturnGoodsAdd',
  1298. // component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/edit.vue'),
  1299. // meta: {
  1300. // title: '新增散件退货单',
  1301. // icon: 'frown',
  1302. // hidden: true
  1303. // // permission: 'B_goodsManage_edit'
  1304. // }
  1305. // },
  1306. // {
  1307. // path: 'edit/:id',
  1308. // name: 'bulkReturnGoodsEdit',
  1309. // component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/edit.vue'),
  1310. // meta: {
  1311. // title: '编辑散件退货单',
  1312. // icon: 'frown',
  1313. // hidden: true
  1314. // // permission: 'B_goodsManage_edit'
  1315. // }
  1316. // },
  1317. // {
  1318. // path: 'detail/:id',
  1319. // name: 'bulkReturnGoodsDetail',
  1320. // component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/detail.vue'),
  1321. // meta: {
  1322. // title: '散件退货单详情',
  1323. // icon: 'frown',
  1324. // hidden: true
  1325. // // permission: 'B_goodsManage_edit'
  1326. // }
  1327. // }
  1328. // ]
  1329. // }
  1330. ]
  1331. },
  1332. // 财务管理
  1333. {
  1334. path: '/financialManagement',
  1335. redirect: '/financialManagement/warehousingAudit',
  1336. component: PageView,
  1337. meta: {
  1338. title: '财务管理',
  1339. icon: 'property-safety'
  1340. // permission: 'M_financial'
  1341. },
  1342. children: [
  1343. {
  1344. path: '/financialManagement/warehousingAudit',
  1345. redirect: '/financialManagement/warehousingAudit/list',
  1346. name: 'warehousingAudit',
  1347. component: RouteView,
  1348. meta: {
  1349. title: '入库审核',
  1350. icon: 'pull-request'
  1351. // permission: 'M_goodsManage_list'
  1352. },
  1353. hideChildrenInMenu: true,
  1354. children: [
  1355. {
  1356. path: 'list',
  1357. name: 'warehousingAuditList',
  1358. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/list.vue'),
  1359. meta: {
  1360. title: '入库审核列表',
  1361. icon: 'pull-request',
  1362. hidden: true
  1363. // permission: 'M_goodsManage_list'
  1364. }
  1365. },
  1366. {
  1367. path: 'detail/:sn',
  1368. name: 'warehousingAuditDetail',
  1369. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/detail.vue'),
  1370. meta: {
  1371. title: '入库审核详情',
  1372. icon: 'pull-request',
  1373. hidden: true
  1374. // permission: 'B_goodsManage_edit'
  1375. }
  1376. }
  1377. ]
  1378. },
  1379. // {
  1380. // path: '/financialManagement/inventoryReview',
  1381. // redirect: '/financialManagement/inventoryReview/list',
  1382. // name: 'inventoryReview',
  1383. // component: RouteView,
  1384. // meta: {
  1385. // title: '盘点审核',
  1386. // icon: 'laptop'
  1387. // // permission: 'M_goodsManage_list'
  1388. // },
  1389. // hideChildrenInMenu: true,
  1390. // children: [
  1391. // {
  1392. // path: 'list',
  1393. // name: 'inventoryReviewList',
  1394. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/list.vue'),
  1395. // meta: {
  1396. // title: '盘点审核列表',
  1397. // icon: 'laptop',
  1398. // hidden: true
  1399. // // permission: 'M_goodsManage_list'
  1400. // }
  1401. // },
  1402. // {
  1403. // path: 'detail/:id',
  1404. // name: 'inventoryReviewDetail',
  1405. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/detail.vue'),
  1406. // meta: {
  1407. // title: '盘点审核详情',
  1408. // icon: 'laptop',
  1409. // hidden: true
  1410. // // permission: 'B_goodsManage_edit'
  1411. // }
  1412. // }
  1413. // ]
  1414. // },
  1415. {
  1416. path: '/financialManagement/financialPayment',
  1417. redirect: '/financialManagement/financialPayment/list',
  1418. name: 'financialPayment',
  1419. component: RouteView,
  1420. meta: {
  1421. title: '财务付款',
  1422. icon: 'pay-circle',
  1423. permission: 'M_financialPaymentList'
  1424. },
  1425. hideChildrenInMenu: true,
  1426. children: [
  1427. {
  1428. path: 'list',
  1429. name: 'financialPaymentList',
  1430. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialPayment/list.vue'),
  1431. meta: {
  1432. title: '财务付款列表',
  1433. icon: 'pay-circle',
  1434. hidden: true,
  1435. permission: 'M_financialPaymentList'
  1436. }
  1437. }
  1438. ]
  1439. },
  1440. {
  1441. path: '/financialManagement/financialCollection',
  1442. redirect: '/financialManagement/financialCollection/list',
  1443. name: 'financialCollection',
  1444. component: RouteView,
  1445. meta: {
  1446. title: '财务收款',
  1447. icon: 'money-collect',
  1448. permission: 'M_financialCollectionList'
  1449. },
  1450. hideChildrenInMenu: true,
  1451. children: [
  1452. {
  1453. path: 'list',
  1454. name: 'financialCollectionList',
  1455. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialCollection/list.vue'),
  1456. meta: {
  1457. title: '财务收款列表',
  1458. icon: 'money-collect',
  1459. hidden: true,
  1460. permission: 'M_financialCollectionList'
  1461. }
  1462. }
  1463. ]
  1464. },
  1465. {
  1466. path: '/financialManagement/expenseManagement',
  1467. redirect: '/financialManagement/expenseManagement/list',
  1468. name: 'expenseManagement',
  1469. component: RouteView,
  1470. meta: {
  1471. title: '费用管理',
  1472. icon: 'pound'
  1473. // permission: 'M_expenseManagementList'
  1474. },
  1475. hideChildrenInMenu: true,
  1476. children: [
  1477. {
  1478. path: 'list',
  1479. name: 'expenseManagementList',
  1480. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/list.vue'),
  1481. meta: {
  1482. title: '费用单列表',
  1483. icon: 'pound',
  1484. hidden: true
  1485. // permission: 'M_expenseManagementList'
  1486. }
  1487. },
  1488. {
  1489. path: 'add',
  1490. name: 'expenseManagementAdd',
  1491. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  1492. meta: {
  1493. title: '新增费用单',
  1494. icon: 'pound',
  1495. hidden: true
  1496. }
  1497. },
  1498. {
  1499. path: 'edit/:id',
  1500. name: 'expenseManagementEdit',
  1501. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  1502. meta: {
  1503. title: '编辑费用单',
  1504. icon: 'pound',
  1505. hidden: true
  1506. }
  1507. }
  1508. ]
  1509. },
  1510. {
  1511. path: '/financialManagement/companyReceivablePayable',
  1512. redirect: '/financialManagement/companyReceivablePayable/list',
  1513. name: 'companyReceivablePayable',
  1514. component: RouteView,
  1515. meta: {
  1516. title: '单位应收应付管理',
  1517. icon: 'transaction'
  1518. // permission: 'M_goodsManage_list'
  1519. },
  1520. hideChildrenInMenu: true,
  1521. children: [
  1522. {
  1523. path: 'list',
  1524. name: 'companyReceivablePayableList',
  1525. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/list.vue'),
  1526. meta: {
  1527. title: '单位应收应付列表',
  1528. icon: 'transaction',
  1529. hidden: true
  1530. // permission: 'M_goodsManage_list'
  1531. }
  1532. },
  1533. {
  1534. path: 'collectionPayment/:sn/:name',
  1535. name: 'companyReceivablePayableCollectionPayment',
  1536. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/collectionPayment.vue'),
  1537. meta: {
  1538. title: '单位应收应付',
  1539. icon: 'transaction',
  1540. hidden: true
  1541. // permission: 'B_goodsManage_edit'
  1542. }
  1543. },
  1544. {
  1545. path: 'detail/:sn/:name',
  1546. name: 'companyReceivablePayableDetail',
  1547. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/detail.vue'),
  1548. meta: {
  1549. title: '单位应收应付详情',
  1550. icon: 'transaction',
  1551. hidden: true
  1552. // permission: 'B_goodsManage_edit'
  1553. }
  1554. }
  1555. ]
  1556. },
  1557. {
  1558. path: '/financialManagement/companyCollectionPayment',
  1559. redirect: '/financialManagement/companyCollectionPayment/list',
  1560. name: 'companyCollectionPayment',
  1561. component: RouteView,
  1562. meta: {
  1563. title: '单位收付款记录',
  1564. icon: 'file-protect'
  1565. // permission: 'M_goodsManage_list'
  1566. },
  1567. hideChildrenInMenu: true,
  1568. children: [
  1569. {
  1570. path: 'list',
  1571. name: 'companyCollectionPaymentList',
  1572. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/list.vue'),
  1573. meta: {
  1574. title: '单位收付款记录列表',
  1575. icon: 'file-protect',
  1576. hidden: true
  1577. // permission: 'M_goodsManage_list'
  1578. }
  1579. },
  1580. {
  1581. path: 'detail/:id/:sn',
  1582. name: 'companyCollectionPaymentDetail',
  1583. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/detail.vue'),
  1584. meta: {
  1585. title: '单位收付款记录详情',
  1586. icon: 'file-protect',
  1587. hidden: true
  1588. // permission: 'B_goodsManage_edit'
  1589. }
  1590. }
  1591. ]
  1592. }
  1593. // {
  1594. // path: '/financialManagement/withdrawalManagement',
  1595. // redirect: '/financialManagement/withdrawalManagement/list',
  1596. // name: 'withdrawalManagement',
  1597. // component: RouteView,
  1598. // meta: {
  1599. // title: '提现管理',
  1600. // icon: 'dollar'
  1601. // // permission: 'M_goodsManage_list'
  1602. // },
  1603. // hideChildrenInMenu: true,
  1604. // children: [
  1605. // {
  1606. // path: 'list',
  1607. // name: 'withdrawalManagementList',
  1608. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/withdrawalManagement/list.vue'),
  1609. // meta: {
  1610. // title: '提现管理列表',
  1611. // icon: 'dollar',
  1612. // hidden: true
  1613. // // permission: 'M_goodsManage_list'
  1614. // }
  1615. // }
  1616. // ]
  1617. // },
  1618. // {
  1619. // path: '/financialManagement/ledgerRecord',
  1620. // redirect: '/financialManagement/ledgerRecord/list',
  1621. // name: 'ledgerRecord',
  1622. // component: RouteView,
  1623. // meta: {
  1624. // title: '分账记录',
  1625. // icon: 'profile'
  1626. // // permission: 'M_goodsManage_list'
  1627. // },
  1628. // hideChildrenInMenu: true,
  1629. // children: [
  1630. // {
  1631. // path: 'list',
  1632. // name: 'ledgerRecordList',
  1633. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/ledgerRecord/list.vue'),
  1634. // meta: {
  1635. // title: '分账记录列表',
  1636. // icon: 'profile',
  1637. // hidden: true
  1638. // // permission: 'M_goodsManage_list'
  1639. // }
  1640. // }
  1641. // ]
  1642. // }
  1643. ]
  1644. },
  1645. // 中心店/配送店管理
  1646. {
  1647. path: '/storeManagement',
  1648. redirect: '/storeManagement/bind',
  1649. component: PageView,
  1650. meta: {
  1651. title: '中心店/配送店管理',
  1652. icon: 'bank'
  1653. // permission: 'M_basicData'
  1654. },
  1655. children: [
  1656. {
  1657. path: '/storeManagement/bind',
  1658. redirect: '/storeManagement/bind/list',
  1659. name: 'storeManagementBind',
  1660. component: RouteView,
  1661. meta: {
  1662. title: '中心店/配送店绑定',
  1663. icon: 'link'
  1664. // permission: 'M_goodsManage_list'
  1665. },
  1666. hideChildrenInMenu: true,
  1667. children: [
  1668. {
  1669. path: 'list',
  1670. name: 'storeManagementBindList',
  1671. component: () => import(/* webpackChunkName: "shop" */ '@/views/storeManagement/bind/list.vue'),
  1672. meta: {
  1673. title: '中心店/配送店绑定列表',
  1674. icon: 'link',
  1675. hidden: true
  1676. // permission: 'M_goodsManage_list'
  1677. }
  1678. }
  1679. ]
  1680. },
  1681. {
  1682. path: '/storeManagement/userAuthorization',
  1683. redirect: '/storeManagement/userAuthorization/list',
  1684. name: 'storeManagementUserAuth',
  1685. component: RouteView,
  1686. meta: {
  1687. title: '中心店用户授权',
  1688. icon: 'link'
  1689. // permission: 'M_goodsManage_list'
  1690. },
  1691. hideChildrenInMenu: true,
  1692. children: [
  1693. {
  1694. path: 'list',
  1695. name: 'storeManagementUserAuthList',
  1696. component: () => import(/* webpackChunkName: "shop" */ '@/views/storeManagement/userAuthorization/list.vue'),
  1697. meta: {
  1698. title: '中心店用户授权列表',
  1699. icon: 'link',
  1700. hidden: true
  1701. // permission: 'M_goodsManage_list'
  1702. }
  1703. }
  1704. ]
  1705. }
  1706. ]
  1707. },
  1708. // 基础设置
  1709. {
  1710. path: '/basicData',
  1711. redirect: '/basicData/storeTransferOutTypeManagement',
  1712. component: PageView,
  1713. meta: {
  1714. title: '基础设置',
  1715. icon: 'pushpin',
  1716. permission: 'M_basicData'
  1717. },
  1718. children: [
  1719. {
  1720. path: '/basicData/storeTransferOutTypeManagement',
  1721. redirect: '/basicData/storeTransferOutTypeManagement/list',
  1722. name: 'storeTransferOutTypeManagement',
  1723. component: RouteView,
  1724. meta: {
  1725. title: '店内调出类型管理',
  1726. icon: 'interaction',
  1727. permission: 'M_basicData_storeTransferOutType_list'
  1728. },
  1729. hideChildrenInMenu: true,
  1730. children: [
  1731. {
  1732. path: 'list',
  1733. name: 'storeTransferOutTypeManagementList',
  1734. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/storeTransferOutTypeManagement/list.vue'),
  1735. meta: {
  1736. title: '店内调出类型管理列表',
  1737. icon: 'interaction',
  1738. hidden: true,
  1739. permission: 'M_basicData_storeTransferOutType_list'
  1740. }
  1741. }
  1742. ]
  1743. },
  1744. {
  1745. path: '/basicData/bulkPartsTypeManagement',
  1746. redirect: '/basicData/bulkPartsTypeManagement/list',
  1747. name: 'bulkPartsTypeManagement',
  1748. component: RouteView,
  1749. meta: {
  1750. title: '散件入库类型管理',
  1751. icon: 'gold',
  1752. permission: 'M_basicData_bulkPartsType_list'
  1753. },
  1754. hideChildrenInMenu: true,
  1755. children: [
  1756. {
  1757. path: 'list',
  1758. name: 'bulkPartsTypeManagementList',
  1759. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/bulkPartsTypeManagement/list.vue'),
  1760. meta: {
  1761. title: '散件入库类型列表',
  1762. icon: 'gold',
  1763. hidden: true,
  1764. permission: 'M_basicData_bulkPartsType_list'
  1765. }
  1766. }
  1767. ]
  1768. },
  1769. {
  1770. path: '/basicData/expenseType',
  1771. redirect: '/basicData/expenseType/list',
  1772. name: 'expenseType',
  1773. component: RouteView,
  1774. meta: {
  1775. title: '费用类型管理',
  1776. icon: 'pay-circle',
  1777. permission: 'M_basicData_expenseType_list'
  1778. },
  1779. hideChildrenInMenu: true,
  1780. children: [
  1781. {
  1782. path: 'list',
  1783. name: 'expenseTypeList',
  1784. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/expenseType/list.vue'),
  1785. meta: {
  1786. title: '费用类型列表',
  1787. icon: 'pay-circle',
  1788. hidden: true,
  1789. permission: 'M_basicData_expenseType_list'
  1790. }
  1791. }
  1792. ]
  1793. },
  1794. // {
  1795. // path: '/basicData/processSettings',
  1796. // redirect: '/basicData/processSettings/setup',
  1797. // name: 'processSettings',
  1798. // component: RouteView,
  1799. // meta: {
  1800. // title: '业务自动化设置',
  1801. // icon: 'sliders'
  1802. // // permission: 'M_goodsManage_list'
  1803. // },
  1804. // hideChildrenInMenu: true,
  1805. // children: [
  1806. // {
  1807. // path: 'setup',
  1808. // name: 'processSettingsSetup',
  1809. // component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/processSettings/setup.vue'),
  1810. // meta: {
  1811. // title: '业务自动化设置',
  1812. // icon: 'sliders',
  1813. // hidden: true
  1814. // // permission: 'M_goodsManage_list'
  1815. // }
  1816. // }
  1817. // ]
  1818. // },
  1819. {
  1820. path: '/basicData/customerTypeManagement',
  1821. redirect: '/basicData/customerTypeManagement/list',
  1822. name: 'customerTypeManagement',
  1823. component: RouteView,
  1824. meta: {
  1825. title: '客户类型管理',
  1826. icon: 'idcard',
  1827. permission: 'M_basicData_customerType_list'
  1828. },
  1829. hideChildrenInMenu: true,
  1830. children: [
  1831. {
  1832. path: 'list',
  1833. name: 'customerTypeManagementList',
  1834. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/customerTypeManagement/list.vue'),
  1835. meta: {
  1836. title: '客户类型列表',
  1837. icon: 'idcard',
  1838. hidden: true,
  1839. permission: 'M_basicData_customerType_list'
  1840. }
  1841. }
  1842. ]
  1843. }
  1844. ]
  1845. },
  1846. // auth
  1847. {
  1848. path: '/auth',
  1849. redirect: '/auth/userList',
  1850. component: PageView,
  1851. meta: {
  1852. title: '权限管理',
  1853. icon: 'lock',
  1854. permission: 'M_powerMD_0'
  1855. },
  1856. children: [
  1857. {
  1858. path: '/auth/userList',
  1859. name: 'powerUserList',
  1860. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  1861. meta: {
  1862. title: '用户管理',
  1863. icon: 'user',
  1864. permission: 'M_powerMD_user_list'
  1865. }
  1866. },
  1867. {
  1868. path: '/auth/roleList',
  1869. name: 'powerRoleList',
  1870. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  1871. meta: {
  1872. title: '角色管理',
  1873. icon: 'solution',
  1874. permission: 'M_powerMD_role_list'
  1875. }
  1876. }
  1877. ]
  1878. },
  1879. // 系统设置
  1880. // {
  1881. // path: '/setting',
  1882. // redirect: '/setting/userList',
  1883. // component: PageView,
  1884. // meta: {
  1885. // title: '系统设置',
  1886. // icon: 'setting'
  1887. // // permission: 'M_setting_0'
  1888. // },
  1889. // children: [
  1890. // {
  1891. // path: '/setting/dataDictionary',
  1892. // name: 'powerDD',
  1893. // component: () => import(/* webpackChunkName: "setting" */
  1894. // '@/views/power/dataDictionary/dataDictionary.vue'),
  1895. // meta: {
  1896. // title: '数据字典管理',
  1897. // icon: 'database'
  1898. // // permission: 'M_sys_dataDictionary'
  1899. // }
  1900. // },
  1901. // // {
  1902. // // path: '/setting/register',
  1903. // // name: 'powerRegister',
  1904. // // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
  1905. // // meta: {
  1906. // // title: '参数管理',
  1907. // // icon: 'key',
  1908. // // permission: 'M_sys_register'
  1909. // // }
  1910. // // },
  1911. // {
  1912. // path: '/setting/OperateJournal',
  1913. // name: 'powerOperateJournal',
  1914. // component: () => import(/* webpackChunkName: "setting" */
  1915. // '@/views/power/OperateJournal/OperateJournal.vue'),
  1916. // meta: {
  1917. // title: '操作日志',
  1918. // icon: 'read'
  1919. // // permission: 'M_operateJournal'
  1920. // }
  1921. // }
  1922. // ]
  1923. // }
  1924. // 公告
  1925. {
  1926. path: '/notice',
  1927. name: 'notice',
  1928. component: () => import(/* webpackChunkName: "home" */ '@/views/notice/list'),
  1929. meta: {
  1930. title: '公告',
  1931. icon: 'bell'
  1932. },
  1933. hidden: true
  1934. }
  1935. ]
  1936. },
  1937. {
  1938. path: '*',
  1939. redirect: '/404',
  1940. hidden: true
  1941. }
  1942. ]
  1943. /**
  1944. * 基础路由
  1945. * @type { *[] }
  1946. */
  1947. export const constantRouterMap = [
  1948. {
  1949. path: '/user',
  1950. component: UserLayout,
  1951. redirect: '/user/login',
  1952. hidden: true,
  1953. children: [
  1954. {
  1955. path: 'login',
  1956. name: 'login',
  1957. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  1958. },
  1959. {
  1960. path: 'register',
  1961. name: 'register',
  1962. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  1963. },
  1964. {
  1965. path: 'register-result',
  1966. name: 'registerResult',
  1967. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  1968. },
  1969. {
  1970. path: 'recover',
  1971. name: 'recover',
  1972. component: undefined
  1973. }
  1974. ]
  1975. },
  1976. {
  1977. path: '/404',
  1978. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  1979. }
  1980. ]