router.config.js 66 KB

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