router.config.js 64 KB

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