router.config.js 77 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176
  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: '/newProduct',
  53. name: 'newProduct',
  54. component: () => import(/* webpackChunkName: "home" */ '@/views/productManagement/newProduct/list'),
  55. meta: {
  56. title: '新品信息',
  57. icon: 'home'
  58. },
  59. hidden: true
  60. },
  61. // 销售管理
  62. {
  63. path: '/salesManagement',
  64. redirect: '/salesManagement/salesQuery',
  65. component: PageView,
  66. meta: {
  67. title: '销售管理',
  68. icon: 'account-book',
  69. permission: 'M_salesManage'
  70. },
  71. children: [
  72. {
  73. path: '/salesManagement/salesQuery',
  74. redirect: '/salesManagement/salesQuery/list',
  75. name: 'salesQuery',
  76. component: RouteView,
  77. meta: {
  78. title: '销售单查询',
  79. icon: 'monitor',
  80. permission: 'M_salesQueryList'
  81. },
  82. hideChildrenInMenu: true,
  83. children: [
  84. {
  85. path: 'list',
  86. name: 'salesQueryList',
  87. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/list.vue'),
  88. meta: {
  89. title: '销售单列表',
  90. icon: 'monitor',
  91. hidden: true,
  92. permission: 'M_salesQueryList'
  93. }
  94. },
  95. {
  96. path: 'detail/:sn',
  97. name: 'salesDetail',
  98. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/detail.vue'),
  99. meta: {
  100. title: '销售单详情',
  101. icon: 'monitor',
  102. hidden: true,
  103. permission: 'B_salesDetail'
  104. }
  105. },
  106. {
  107. path: 'add/:id/:sn/:priceType',
  108. name: 'salesAdd',
  109. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  110. meta: {
  111. title: '新增销售单',
  112. icon: 'monitor',
  113. hidden: true,
  114. permission: 'B_salesNews'
  115. }
  116. },
  117. {
  118. path: 'edit/:id/:sn/:priceType',
  119. name: 'salesEdit',
  120. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  121. meta: {
  122. title: '编辑销售单',
  123. icon: 'monitor',
  124. hidden: true,
  125. permission: 'B_salesEdit'
  126. }
  127. }
  128. ]
  129. },
  130. {
  131. path: '/salesManagement/outboundOrder',
  132. redirect: '/salesManagement/outboundOrder/list',
  133. name: 'outboundOrder',
  134. component: RouteView,
  135. meta: {
  136. title: '出库',
  137. icon: 'export',
  138. permission: 'M_outboundList'
  139. },
  140. hideChildrenInMenu: true,
  141. children: [
  142. {
  143. path: 'list',
  144. name: 'outboundOrderList',
  145. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/list.vue'),
  146. meta: {
  147. title: '出库列表',
  148. icon: 'export',
  149. hidden: true,
  150. permission: 'M_outboundList'
  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_urgentItemsOffsetList'
  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_urgentItemsOffsetList'
  176. }
  177. },
  178. {
  179. path: 'detail/: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: 'M_urgentDetail'
  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_salesReturnList'
  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_salesReturnList'
  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: 'B_salesReturnDetail'
  223. }
  224. },
  225. {
  226. path: 'salesReturnGrabEdit/:id/:sn/:buyerSn',
  227. name: 'salesReturnGrabEdit',
  228. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnGrabEdit.vue'),
  229. meta: {
  230. title: '编辑退货单(抓单)',
  231. icon: 'fund',
  232. hidden: true,
  233. permission: 'B_salesReturnEdit'
  234. }
  235. },
  236. {
  237. path: 'salesReturnEdit/:id/:sn/:buyerSn',
  238. name: 'salesReturnEdit',
  239. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnEdit.vue'),
  240. meta: {
  241. title: '编辑退货单(不抓单)',
  242. icon: 'fund',
  243. hidden: true,
  244. permission: 'B_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_giftRecordList'
  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_giftRecordList'
  328. }
  329. }
  330. ]
  331. },
  332. {
  333. path: '/salesManagement/salesman',
  334. redirect: '/salesManagement/salesman/list',
  335. name: 'salesman',
  336. component: RouteView,
  337. meta: {
  338. title: '业务员管理',
  339. icon: 'file-search',
  340. permission: 'M_salesman_list'
  341. },
  342. hideChildrenInMenu: true,
  343. children: [
  344. {
  345. path: 'list',
  346. name: 'salesmanList',
  347. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesman/list.vue'),
  348. meta: {
  349. title: '业务员列表',
  350. icon: 'file-search',
  351. hidden: true,
  352. permission: 'M_salesman_list'
  353. }
  354. }
  355. ]
  356. }
  357. ]
  358. },
  359. // 采购管理
  360. {
  361. path: '/purchasingManagement',
  362. redirect: '/purchasingManagement/purchaseOrder',
  363. component: PageView,
  364. meta: {
  365. title: '采购管理',
  366. icon: 'money-collect',
  367. permission: 'M_purchasingManagement'
  368. },
  369. children: [
  370. {
  371. path: '/purchasingManagement/purchaseOrder',
  372. redirect: '/purchasingManagement/purchaseOrder/list',
  373. name: 'purchaseOrder',
  374. component: RouteView,
  375. meta: {
  376. title: '采购单管理',
  377. icon: 'money-collect',
  378. permission: 'M_purchasingList'
  379. },
  380. hideChildrenInMenu: true,
  381. children: [
  382. {
  383. path: 'list',
  384. name: 'purchaseOrderList',
  385. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/list.vue'),
  386. meta: {
  387. title: '采购单列表',
  388. icon: 'money-collect',
  389. hidden: true,
  390. permission: 'M_purchasingList'
  391. }
  392. },
  393. {
  394. path: 'add/:sn',
  395. name: 'purchaseOrderAdd',
  396. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/edit.vue'),
  397. meta: {
  398. title: '新增采购单',
  399. icon: 'money-collect',
  400. hidden: true,
  401. permission: 'B_purchaseNew'
  402. }
  403. },
  404. {
  405. path: 'edit/:sn',
  406. name: 'purchaseOrderEdit',
  407. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/edit.vue'),
  408. meta: {
  409. title: '编辑采购单',
  410. icon: 'money-collect',
  411. hidden: true,
  412. permission: 'B_purchaseEdit'
  413. }
  414. },
  415. {
  416. path: 'detail/:sn',
  417. name: 'purchaseOrderDetail',
  418. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/detail.vue'),
  419. meta: {
  420. title: '采购单详情',
  421. icon: 'money-collect',
  422. hidden: true,
  423. permission: 'B_purchaseDetail'
  424. }
  425. },
  426. {
  427. path: 'warehousing/:sn',
  428. name: 'purchaseOrderWarehousing',
  429. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseOrder/warehousing.vue'),
  430. meta: {
  431. title: '采购入库',
  432. icon: 'money-collect',
  433. hidden: true,
  434. permission: 'B_purchaseReceiving'
  435. }
  436. }
  437. ]
  438. },
  439. {
  440. path: '/purchasingManagement/purchaseReturn',
  441. redirect: '/purchasingManagement/purchaseReturn/list',
  442. name: 'purchaseReturn',
  443. component: RouteView,
  444. meta: {
  445. title: '采购退货',
  446. icon: 'money-collect',
  447. permission: 'M_purchaseReturnList'
  448. },
  449. hideChildrenInMenu: true,
  450. children: [
  451. {
  452. path: 'list',
  453. name: 'purchaseReturnList',
  454. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseReturn/list.vue'),
  455. meta: {
  456. title: '采购退货列表',
  457. icon: 'money-collect',
  458. hidden: true,
  459. permission: 'M_purchaseReturnList'
  460. }
  461. },
  462. {
  463. path: 'add/:id/:sn/:name',
  464. name: 'purchaseReturnAdd',
  465. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseReturn/edit.vue'),
  466. meta: {
  467. title: '新增采购退货单',
  468. icon: 'money-collect',
  469. hidden: true,
  470. permission: 'B_purchaseReturnNew'
  471. }
  472. },
  473. {
  474. path: 'edit/:id/:sn/:name',
  475. name: 'purchaseReturnEdit',
  476. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseReturn/edit.vue'),
  477. meta: {
  478. title: '编辑采购退货单',
  479. icon: 'money-collect',
  480. hidden: true,
  481. permission: 'B_purchaseReturnEdit'
  482. }
  483. },
  484. {
  485. path: 'detail/:sn',
  486. name: 'purchaseReturnDetail',
  487. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/purchaseReturn/detail.vue'),
  488. meta: {
  489. title: '采购退货详情',
  490. icon: 'money-collect',
  491. hidden: true,
  492. permission: 'B_purchaseReturnDetail'
  493. }
  494. }
  495. ]
  496. }
  497. ]
  498. },
  499. // 财务管理
  500. {
  501. path: '/financialManagement',
  502. redirect: '/financialManagement/warehousingAudit',
  503. component: PageView,
  504. meta: {
  505. title: '财务管理',
  506. icon: 'property-safety',
  507. permission: 'M_financial'
  508. },
  509. children: [
  510. {
  511. path: '/financialManagement/warehousingAudit',
  512. redirect: '/financialManagement/warehousingAudit/list',
  513. name: 'warehousingAudit',
  514. component: RouteView,
  515. meta: {
  516. title: '入库审核',
  517. icon: 'pull-request',
  518. permission: 'M_warehousingAuditList'
  519. },
  520. hideChildrenInMenu: true,
  521. children: [
  522. {
  523. path: 'list',
  524. name: 'warehousingAuditList',
  525. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/list.vue'),
  526. meta: {
  527. title: '入库审核列表',
  528. icon: 'pull-request',
  529. hidden: true,
  530. permission: 'M_warehousingAuditList'
  531. }
  532. },
  533. {
  534. path: 'detail/:sn',
  535. name: 'warehousingAuditDetail',
  536. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/detail.vue'),
  537. meta: {
  538. title: '入库审核详情',
  539. icon: 'pull-request',
  540. hidden: true,
  541. permission: 'M_warehousingAudit_detail'
  542. }
  543. }
  544. ]
  545. },
  546. {
  547. path: '/financialManagement/inventoryCheckAudit',
  548. redirect: '/financialManagement/inventoryCheckAudit/list',
  549. name: 'inventoryCheckAudit',
  550. component: RouteView,
  551. meta: {
  552. title: '盘点审核',
  553. icon: 'laptop',
  554. permission: 'M_inventoryCheckAuditList'
  555. },
  556. hideChildrenInMenu: true,
  557. children: [
  558. {
  559. path: 'list',
  560. name: 'inventoryCheckAuditList',
  561. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryCheckAudit/list.vue'),
  562. meta: {
  563. title: '盘点审核列表',
  564. icon: 'laptop',
  565. hidden: true,
  566. permission: 'M_inventoryCheckAuditList'
  567. }
  568. }
  569. ]
  570. },
  571. {
  572. path: '/financialManagement/financialPayment',
  573. redirect: '/financialManagement/financialPayment/list',
  574. name: 'financialPayment',
  575. component: RouteView,
  576. meta: {
  577. title: '财务付款',
  578. icon: 'pay-circle',
  579. permission: 'M_financialPaymentList'
  580. },
  581. hideChildrenInMenu: true,
  582. children: [
  583. {
  584. path: 'list',
  585. name: 'financialPaymentList',
  586. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialPayment/list.vue'),
  587. meta: {
  588. title: '财务付款列表',
  589. icon: 'pay-circle',
  590. hidden: true,
  591. permission: 'M_financialPaymentList'
  592. }
  593. }
  594. ]
  595. },
  596. {
  597. path: '/financialManagement/financialCollection',
  598. redirect: '/financialManagement/financialCollection/list',
  599. name: 'financialCollection',
  600. component: RouteView,
  601. meta: {
  602. title: '财务收款',
  603. icon: 'money-collect',
  604. permission: 'M_financialCollectionList'
  605. },
  606. hideChildrenInMenu: true,
  607. children: [
  608. {
  609. path: 'list',
  610. name: 'financialCollectionList',
  611. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialCollection/list.vue'),
  612. meta: {
  613. title: '财务收款列表',
  614. icon: 'money-collect',
  615. hidden: true,
  616. permission: 'M_financialCollectionList'
  617. }
  618. }
  619. ]
  620. },
  621. {
  622. path: '/financialManagement/expenseManagement',
  623. redirect: '/financialManagement/expenseManagement/list',
  624. name: 'expenseManagement',
  625. component: RouteView,
  626. meta: {
  627. title: '费用管理',
  628. icon: 'pound',
  629. permission: 'M_expenseManagementList'
  630. },
  631. hideChildrenInMenu: true,
  632. children: [
  633. {
  634. path: 'list',
  635. name: 'expenseManagementList',
  636. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/list.vue'),
  637. meta: {
  638. title: '费用单列表',
  639. icon: 'pound',
  640. hidden: true,
  641. permission: 'M_expenseManagementList'
  642. }
  643. },
  644. {
  645. path: 'add',
  646. name: 'expenseManagementAdd',
  647. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  648. meta: {
  649. title: '新增费用单',
  650. icon: 'pound',
  651. hidden: true,
  652. permission: 'B_expenseNew'
  653. }
  654. },
  655. {
  656. path: 'edit/:id',
  657. name: 'expenseManagementEdit',
  658. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  659. meta: {
  660. title: '编辑费用单',
  661. icon: 'pound',
  662. hidden: true,
  663. permission: 'B_expenseEdit'
  664. }
  665. }
  666. ]
  667. },
  668. {
  669. path: '/financialManagement/companyReceivablePayable',
  670. redirect: '/financialManagement/companyReceivablePayable/list',
  671. name: 'companyReceivablePayable',
  672. component: RouteView,
  673. meta: {
  674. title: '单位应收应付管理',
  675. icon: 'transaction',
  676. permission: 'M_companyReceivablePayableList'
  677. },
  678. hideChildrenInMenu: true,
  679. children: [
  680. {
  681. path: 'list',
  682. name: 'companyReceivablePayableList',
  683. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/list.vue'),
  684. meta: {
  685. title: '单位应收应付列表',
  686. icon: 'transaction',
  687. hidden: true,
  688. permission: 'M_companyReceivablePayableList'
  689. }
  690. },
  691. {
  692. path: 'collectionPayment/:sn/:name',
  693. name: 'companyReceivablePayableCollectionPayment',
  694. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/collectionPayment.vue'),
  695. meta: {
  696. title: '单位应收应付',
  697. icon: 'transaction',
  698. hidden: true,
  699. permission: 'M_collectionPayment'
  700. }
  701. },
  702. {
  703. path: 'detail/:sn/:name',
  704. name: 'companyReceivablePayableDetail',
  705. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/detail.vue'),
  706. meta: {
  707. title: '单位应收应付详情',
  708. icon: 'transaction',
  709. hidden: true,
  710. permission: 'M_companyReceivablePayable_detail'
  711. }
  712. }
  713. ]
  714. },
  715. {
  716. path: '/financialManagement/companyCollectionPayment',
  717. redirect: '/financialManagement/companyCollectionPayment/list',
  718. name: 'companyCollectionPayment',
  719. component: RouteView,
  720. meta: {
  721. title: '单位收付款记录',
  722. icon: 'file-protect',
  723. permission: 'M_companyCollectionPaymentList'
  724. },
  725. hideChildrenInMenu: true,
  726. children: [
  727. {
  728. path: 'list',
  729. name: 'companyCollectionPaymentList',
  730. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/list.vue'),
  731. meta: {
  732. title: '单位收付款记录列表',
  733. icon: 'file-protect',
  734. hidden: true,
  735. permission: 'M_companyCollectionPaymentList'
  736. }
  737. },
  738. {
  739. path: 'detail/:id/:sn',
  740. name: 'companyCollectionPaymentDetail',
  741. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/detail.vue'),
  742. meta: {
  743. title: '单位收付款记录详情',
  744. icon: 'file-protect',
  745. hidden: true,
  746. permission: 'M_companyCollectionPayment_detail'
  747. }
  748. }
  749. ]
  750. },
  751. {
  752. path: '/financialManagement/withdrawalManagement',
  753. redirect: '/financialManagement/withdrawalManagement/list',
  754. name: 'withdrawalManagement',
  755. component: RouteView,
  756. meta: {
  757. title: '提现管理',
  758. icon: 'dollar',
  759. permission: 'M_withdrawalManagementList'
  760. },
  761. hideChildrenInMenu: true,
  762. children: [
  763. {
  764. path: 'list',
  765. name: 'withdrawalManagementList',
  766. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/withdrawalManagement/list.vue'),
  767. meta: {
  768. title: '提现管理列表',
  769. icon: 'dollar',
  770. hidden: true,
  771. permission: 'M_withdrawalManagementList'
  772. }
  773. }
  774. ]
  775. },
  776. {
  777. path: '/financialManagement/ledgerRecord',
  778. redirect: '/financialManagement/ledgerRecord/list',
  779. name: 'ledgerRecord',
  780. component: RouteView,
  781. meta: {
  782. title: '分账记录',
  783. icon: 'profile',
  784. permission: 'M_ledgerRecordList'
  785. },
  786. hideChildrenInMenu: true,
  787. children: [
  788. {
  789. path: 'list',
  790. name: 'ledgerRecordList',
  791. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/ledgerRecord/list.vue'),
  792. meta: {
  793. title: '分账记录列表',
  794. icon: 'profile',
  795. hidden: true,
  796. permission: 'M_ledgerRecordList'
  797. }
  798. }
  799. ]
  800. }
  801. ]
  802. },
  803. // 调拨管理
  804. {
  805. path: '/allocationManagement',
  806. redirect: '/allocationManagement/warehouseAllocation',
  807. component: PageView,
  808. meta: {
  809. title: '调拨管理',
  810. icon: 'cluster',
  811. permission: 'M_allocationManagement'
  812. },
  813. children: [
  814. {
  815. path: '/allocationManagement/warehouseAllocation',
  816. redirect: '/allocationManagement/warehouseAllocation/list',
  817. name: 'warehouseAllocation',
  818. component: RouteView,
  819. meta: {
  820. title: '仓库调拨',
  821. icon: 'gateway',
  822. permission: 'M_warehouseAllocationList'
  823. },
  824. hideChildrenInMenu: true,
  825. children: [
  826. {
  827. path: 'list',
  828. name: 'warehouseAllocationList',
  829. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/list.vue'),
  830. meta: {
  831. title: '仓库调拨列表',
  832. icon: 'gateway',
  833. hidden: true,
  834. permission: 'M_warehouseAllocationList'
  835. }
  836. },
  837. {
  838. path: 'add',
  839. name: 'warehouseAllocationAdd',
  840. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/edit.vue'),
  841. meta: {
  842. title: '新增仓库调拨',
  843. icon: 'gateway',
  844. hidden: true,
  845. permission: 'B_warehouseAllocationNews'
  846. }
  847. },
  848. {
  849. path: 'edit/:id/:sn',
  850. name: 'warehouseAllocationEdit',
  851. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/edit.vue'),
  852. meta: {
  853. title: '编辑仓库调拨',
  854. icon: 'gateway',
  855. hidden: true,
  856. permission: 'B_warehouseAllocationEdit'
  857. }
  858. },
  859. {
  860. path: 'detail/:sn',
  861. name: 'warehouseAllocationDetail',
  862. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/warehouseAllocation/detail.vue'),
  863. meta: {
  864. title: '仓库调拨详情',
  865. icon: 'gateway',
  866. hidden: true,
  867. permission: 'B_warehouseAllocationDetail'
  868. }
  869. }
  870. ]
  871. },
  872. {
  873. path: '/allocationManagement/chainTransferIn',
  874. redirect: '/allocationManagement/chainTransferIn/list',
  875. name: 'chainTransferIn',
  876. component: RouteView,
  877. meta: {
  878. title: '连锁调入',
  879. icon: 'cluster',
  880. permission: 'M_chainTransferInList'
  881. },
  882. hideChildrenInMenu: true,
  883. children: [
  884. {
  885. path: 'list',
  886. name: 'chainTransferInList',
  887. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/list.vue'),
  888. meta: {
  889. title: '连锁调入列表',
  890. icon: 'cluster',
  891. hidden: true,
  892. permission: 'M_chainTransferInList'
  893. }
  894. },
  895. {
  896. path: 'edit/:id/:sn',
  897. name: 'chainTransferInEdit',
  898. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/edit.vue'),
  899. meta: {
  900. title: '编辑连锁调入',
  901. icon: 'cluster',
  902. hidden: true,
  903. permission: 'B_allocLinkagePutEdit'
  904. }
  905. },
  906. {
  907. path: 'detail/:sn',
  908. name: 'chainTransferInDetail',
  909. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferIn/detail.vue'),
  910. meta: {
  911. title: '连锁调入详情',
  912. icon: 'cluster',
  913. hidden: true,
  914. permission: 'B_allocLinkagePutDetail'
  915. }
  916. }
  917. ]
  918. },
  919. {
  920. path: '/allocationManagement/chainTransferOut',
  921. redirect: '/allocationManagement/chainTransferOut/list',
  922. name: 'chainTransferOut',
  923. component: RouteView,
  924. meta: {
  925. title: '连锁调出',
  926. icon: 'pull-request',
  927. permission: 'M_chainTransferOutList'
  928. },
  929. hideChildrenInMenu: true,
  930. children: [
  931. {
  932. path: 'list',
  933. name: 'chainTransferOutList',
  934. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/list.vue'),
  935. meta: {
  936. title: '连锁调出列表',
  937. icon: 'pull-request',
  938. hidden: true,
  939. permission: 'M_chainTransferOutList'
  940. }
  941. },
  942. {
  943. path: 'add/:id/:sn',
  944. name: 'chainTransferOutAdd',
  945. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  946. meta: {
  947. title: '新增连锁调出',
  948. icon: 'pull-request',
  949. hidden: true,
  950. permission: 'B_allocLinkageOutNew'
  951. }
  952. },
  953. {
  954. path: 'edit/:id/:sn',
  955. name: 'chainTransferOutEdit',
  956. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  957. meta: {
  958. title: '编辑连锁调出',
  959. icon: 'pull-request',
  960. hidden: true,
  961. permission: 'B_allocLinkageOutEdit'
  962. }
  963. },
  964. {
  965. path: 'detail/:sn',
  966. name: 'chainTransferOutDetail',
  967. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/chainTransferOut/detail.vue'),
  968. meta: {
  969. title: '连锁调出详情',
  970. icon: 'pull-request',
  971. hidden: true,
  972. permission: 'B_allocLinkageOutDetail'
  973. }
  974. }
  975. ]
  976. },
  977. {
  978. path: '/allocationManagement/storeTransferOut',
  979. redirect: '/allocationManagement/storeTransferOut/list',
  980. name: 'storeTransferOut',
  981. component: RouteView,
  982. meta: {
  983. title: '店内调出',
  984. icon: 'interaction',
  985. permission: 'M_storeTransferOutList'
  986. },
  987. hideChildrenInMenu: true,
  988. children: [
  989. {
  990. path: 'list',
  991. name: 'storeTransferOutList',
  992. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/list.vue'),
  993. meta: {
  994. title: '店内调出列表',
  995. icon: 'interaction',
  996. hidden: true,
  997. permission: 'M_storeTransferOutList'
  998. }
  999. },
  1000. {
  1001. path: 'add/:id/:sn',
  1002. name: 'storeTransferOutAdd',
  1003. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  1004. meta: {
  1005. title: '新增店内调出',
  1006. icon: 'interaction',
  1007. hidden: true,
  1008. permission: 'B_storeTransferOutNews'
  1009. }
  1010. },
  1011. {
  1012. path: 'edit/:id/:sn',
  1013. name: 'storeTransferOutEdit',
  1014. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  1015. meta: {
  1016. title: '编辑店内调出',
  1017. icon: 'interaction',
  1018. hidden: true,
  1019. permission: 'B_storeCallOutEdit'
  1020. }
  1021. },
  1022. {
  1023. path: 'detail/:sn',
  1024. name: 'storeTransferOutDetail',
  1025. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/storeTransferOut/detail.vue'),
  1026. meta: {
  1027. title: '店内调出详情',
  1028. icon: 'interaction',
  1029. hidden: true,
  1030. permission: 'B_storeCallOutDetail'
  1031. }
  1032. }
  1033. ]
  1034. }
  1035. ]
  1036. },
  1037. // 库存管理
  1038. {
  1039. path: '/inventoryManagement',
  1040. redirect: '/inventoryManagement/inventoryQuery',
  1041. component: PageView,
  1042. meta: {
  1043. title: '库存管理',
  1044. icon: 'shop',
  1045. permission: 'M_inventory'
  1046. },
  1047. children: [
  1048. {
  1049. path: '/inventoryManagement/inventoryQuery',
  1050. redirect: '/inventoryManagement/inventoryQuery/list',
  1051. name: 'inventoryQuery',
  1052. component: RouteView,
  1053. meta: {
  1054. title: '库存查询',
  1055. icon: 'monitor',
  1056. permission: 'M_inventoryInventoryQueryList'
  1057. },
  1058. hideChildrenInMenu: true,
  1059. children: [
  1060. {
  1061. path: 'list',
  1062. name: 'inventoryQueryList',
  1063. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
  1064. meta: {
  1065. title: '库存列表',
  1066. icon: 'monitor',
  1067. hidden: true,
  1068. permission: 'M_inventoryInventoryQueryList'
  1069. }
  1070. },
  1071. {
  1072. path: 'warehouseDetail/:sn',
  1073. name: 'inventoryQueryWarehouseDetail',
  1074. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
  1075. meta: {
  1076. title: '出入库明细',
  1077. icon: 'monitor',
  1078. hidden: true,
  1079. permission: 'B_inventoryInventoryQueryStock'
  1080. }
  1081. }
  1082. ]
  1083. },
  1084. {
  1085. path: '/inventoryManagement/inventoryWarning',
  1086. name: 'inventoryWarningList',
  1087. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
  1088. meta: {
  1089. title: '库存预警',
  1090. icon: 'alert',
  1091. permission: 'M_inventoryWarningList'
  1092. }
  1093. },
  1094. {
  1095. path: '/inventoryManagement/satelliteWarehouseInventory',
  1096. name: 'satelliteWarehouseInventoryList',
  1097. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/satelliteWarehouseInventory/list.vue'),
  1098. meta: {
  1099. title: '卫星仓库存',
  1100. icon: 'flag',
  1101. permission: 'M_satelliteWarehouseInventoryList'
  1102. }
  1103. },
  1104. {
  1105. path: '/inventoryManagement/inventoryChecking',
  1106. redirect: '/inventoryManagement/inventoryChecking/list',
  1107. name: 'inventoryChecking',
  1108. component: RouteView,
  1109. meta: {
  1110. title: '库存盘点',
  1111. icon: 'reconciliation',
  1112. permission: 'M_inventoryCheckingList'
  1113. },
  1114. hideChildrenInMenu: true,
  1115. children: [
  1116. {
  1117. path: 'list',
  1118. name: 'inventoryCheckingList',
  1119. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/list.vue'),
  1120. meta: {
  1121. title: '库存盘点列表',
  1122. icon: 'reconciliation',
  1123. hidden: true,
  1124. permission: 'M_inventoryCheckingList'
  1125. }
  1126. },
  1127. {
  1128. path: 'overall/:id/:sn',
  1129. name: 'inventoryCheckingOverall',
  1130. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/overall.vue'),
  1131. meta: {
  1132. title: '编辑库存盘点【全盘】',
  1133. icon: 'reconciliation',
  1134. hidden: true,
  1135. permission: 'B_inventoryCheckingEdit'
  1136. }
  1137. },
  1138. {
  1139. path: 'selfDisk/:id/:sn',
  1140. name: 'inventoryCheckingSelfDisk',
  1141. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/selfDisk.vue'),
  1142. meta: {
  1143. title: '编辑库存盘点【自选盘点】',
  1144. icon: 'reconciliation',
  1145. hidden: true,
  1146. permission: 'B_inventoryCheckingEdit'
  1147. }
  1148. },
  1149. {
  1150. path: 'makeInventory/:id/:sn',
  1151. name: 'inventoryCheckingMakeInventory',
  1152. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventory.vue'),
  1153. meta: {
  1154. title: '盘点',
  1155. icon: 'reconciliation',
  1156. hidden: true,
  1157. permission: 'B_inventoryCheckingInventory'
  1158. }
  1159. }
  1160. ]
  1161. },
  1162. {
  1163. path: '/inventoryManagement/inventoryImport',
  1164. redirect: '/inventoryManagement/inventoryImport/list',
  1165. name: 'inventoryImport',
  1166. component: RouteView,
  1167. meta: {
  1168. title: '库存导入',
  1169. icon: 'frown'
  1170. // permission: 'M_bulkReturnGoodsList'
  1171. },
  1172. hideChildrenInMenu: true,
  1173. children: [
  1174. {
  1175. path: 'list',
  1176. name: 'inventoryImportList',
  1177. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryImport/list.vue'),
  1178. meta: {
  1179. title: '库存导入列表',
  1180. icon: 'frown',
  1181. hidden: true
  1182. // permission: 'M_bulkReturnGoodsList'
  1183. }
  1184. }
  1185. ]
  1186. },
  1187. {
  1188. path: '/inventoryManagement/warehouse',
  1189. redirect: '/inventoryManagement/warehouse/list',
  1190. name: 'warehouse',
  1191. component: RouteView,
  1192. meta: {
  1193. title: '仓库管理',
  1194. icon: 'deployment-unit',
  1195. permission: 'M_inventoryWarehouseList'
  1196. },
  1197. hideChildrenInMenu: true,
  1198. children: [
  1199. {
  1200. path: 'list',
  1201. name: 'warehouseList',
  1202. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouse/list.vue'),
  1203. meta: {
  1204. title: '仓库列表',
  1205. icon: 'deployment-unit',
  1206. hidden: true,
  1207. permission: 'M_inventoryWarehouseList'
  1208. }
  1209. },
  1210. {
  1211. path: '/inventoryManagement/storingLocation/:sn',
  1212. name: 'storingLocationList',
  1213. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/warehouse/storingLocation/list.vue'),
  1214. meta: {
  1215. title: '仓位列表',
  1216. icon: 'deployment-unit',
  1217. hidden: true,
  1218. permission: 'M_inventoryWarehouseStoringLocationList'
  1219. }
  1220. }
  1221. ]
  1222. }
  1223. ]
  1224. },
  1225. // 散件管理
  1226. {
  1227. path: '/bulkManagement',
  1228. redirect: '/bulkManagement/purchaseOrder',
  1229. component: PageView,
  1230. meta: {
  1231. title: '散件管理',
  1232. icon: 'gold',
  1233. permission: 'M_bulkWarehousingOrderList'
  1234. },
  1235. children: [
  1236. {
  1237. path: '/bulkManagement/bulkWarehousingOrder',
  1238. redirect: '/bulkManagement/bulkWarehousingOrder/list',
  1239. name: 'bulkWarehousingOrder',
  1240. component: RouteView,
  1241. meta: {
  1242. title: '散件入库',
  1243. icon: 'gold',
  1244. permission: 'M_bulkWarehousingOrderList'
  1245. },
  1246. hideChildrenInMenu: true,
  1247. children: [
  1248. {
  1249. path: 'list',
  1250. name: 'bulkWarehousingOrderList',
  1251. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/list.vue'),
  1252. meta: {
  1253. title: '散件入库单列表',
  1254. icon: 'gold',
  1255. hidden: true,
  1256. permission: 'M_bulkWarehousingOrderList'
  1257. }
  1258. },
  1259. {
  1260. path: 'add/:id/:sn',
  1261. name: 'bulkWarehousingOrderAdd',
  1262. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  1263. meta: {
  1264. title: '新增散件入库单',
  1265. icon: 'gold',
  1266. hidden: true,
  1267. permission: 'B_bulkWarehousingOrder_add'
  1268. }
  1269. },
  1270. {
  1271. path: 'edit/:id/:sn',
  1272. name: 'bulkWarehousingOrderEdit',
  1273. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  1274. meta: {
  1275. title: '编辑散件入库单',
  1276. icon: 'gold',
  1277. hidden: true,
  1278. permission: 'B_bulkWarehousingOrder_edit'
  1279. }
  1280. },
  1281. {
  1282. path: 'detail/:id/:sn',
  1283. name: 'bulkWarehousingOrderDetail',
  1284. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkWarehousingOrder/detail.vue'),
  1285. meta: {
  1286. title: '散件入库单详情',
  1287. icon: 'gold',
  1288. hidden: true,
  1289. permission: 'B_bulkWarehousingOrder_detail'
  1290. }
  1291. }
  1292. ]
  1293. },
  1294. {
  1295. path: '/bulkManagement/bulkReturnGoods',
  1296. redirect: '/bulkManagement/bulkReturnGoods/list',
  1297. name: 'bulkReturnGoods',
  1298. component: RouteView,
  1299. meta: {
  1300. title: '散件退货',
  1301. icon: 'frown',
  1302. permission: 'M_bulkReturnGoodsList'
  1303. },
  1304. hideChildrenInMenu: true,
  1305. children: [
  1306. {
  1307. path: 'list',
  1308. name: 'bulkReturnGoodsList',
  1309. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/list.vue'),
  1310. meta: {
  1311. title: '散件退货列表',
  1312. icon: 'frown',
  1313. hidden: true,
  1314. permission: 'M_bulkReturnGoodsList'
  1315. }
  1316. },
  1317. {
  1318. path: 'edit/:id/:sn',
  1319. name: 'bulkReturnGoodsEdit',
  1320. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/edit.vue'),
  1321. meta: {
  1322. title: '编辑散件退货单(不抓单)',
  1323. icon: 'frown',
  1324. hidden: true,
  1325. permission: 'B_bulkReturnGoodsEdit'
  1326. }
  1327. },
  1328. {
  1329. path: 'grabEdit/:id/:sn/:supplierSn',
  1330. name: 'bulkReturnGoodsGrabEdit',
  1331. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkReturnGoods/grabEdit.vue'),
  1332. meta: {
  1333. title: '编辑散件退货单(抓单)',
  1334. icon: 'frown',
  1335. hidden: true,
  1336. permission: 'B_bulkReturnGoodsEdit'
  1337. }
  1338. }
  1339. ]
  1340. },
  1341. {
  1342. path: '/bulkManagement/bulkImport',
  1343. redirect: '/bulkManagement/bulkImport/list',
  1344. name: 'bulkImport',
  1345. component: RouteView,
  1346. meta: {
  1347. title: '散件导入',
  1348. icon: 'frown'
  1349. // permission: 'M_bulkReturnGoodsList'
  1350. },
  1351. hideChildrenInMenu: true,
  1352. children: [
  1353. {
  1354. path: 'list',
  1355. name: 'bulkImportList',
  1356. component: () => import(/* webpackChunkName: "shop" */ '@/views/bulkManagement/bulkImport/list.vue'),
  1357. meta: {
  1358. title: '散件导入列表',
  1359. icon: 'frown',
  1360. hidden: true
  1361. // permission: 'M_bulkReturnGoodsList'
  1362. }
  1363. }
  1364. ]
  1365. }
  1366. ]
  1367. },
  1368. // 报表
  1369. {
  1370. path: '/reportData',
  1371. redirect: '/reportData/chainStockReport',
  1372. component: PageView,
  1373. meta: {
  1374. title: '报表',
  1375. icon: 'project',
  1376. permission: 'M_reportData'
  1377. },
  1378. children: [
  1379. {
  1380. path: '/reportData/chainStockReport',
  1381. redirect: '/reportData/chainStockReport/list',
  1382. name: 'chainStockReport',
  1383. component: RouteView,
  1384. meta: {
  1385. title: '连锁库存总表(天)',
  1386. icon: 'profile',
  1387. permission: 'M_chainStockReportList'
  1388. },
  1389. hideChildrenInMenu: true,
  1390. children: [
  1391. {
  1392. path: 'list',
  1393. name: 'chainStockReportList',
  1394. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/chainStockReport/list.vue'),
  1395. meta: {
  1396. title: '连锁库存总表列表',
  1397. icon: 'profile',
  1398. hidden: true,
  1399. permission: 'M_chainStockReportList'
  1400. }
  1401. }
  1402. ]
  1403. },
  1404. {
  1405. path: '/reportData/chainSalesReport',
  1406. redirect: '/reportData/chainSalesReport/list',
  1407. name: 'chainSalesReport',
  1408. component: RouteView,
  1409. meta: {
  1410. title: '连锁销售报表(天)',
  1411. icon: 'profile',
  1412. permission: 'M_chainSalesReportList'
  1413. },
  1414. hideChildrenInMenu: true,
  1415. children: [
  1416. {
  1417. path: 'list',
  1418. name: 'chainSalesReportList',
  1419. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/chainSalesReport/list.vue'),
  1420. meta: {
  1421. title: '连锁销售报表列表',
  1422. icon: 'profile',
  1423. hidden: true,
  1424. permission: 'M_chainSalesReportList'
  1425. }
  1426. }
  1427. ]
  1428. },
  1429. {
  1430. path: '/reportData/chainSalesDetailReport',
  1431. redirect: '/reportData/chainSalesDetailReport/list',
  1432. name: 'chainSalesDetailReport',
  1433. component: RouteView,
  1434. meta: {
  1435. title: '连锁销售明细报表(天)',
  1436. icon: 'profile',
  1437. permission: 'M_chainSalesDetailReportList'
  1438. },
  1439. hideChildrenInMenu: true,
  1440. children: [
  1441. {
  1442. path: 'list',
  1443. name: 'chainSalesDetailReportList',
  1444. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/chainSalesDetailReport/list.vue'),
  1445. meta: {
  1446. title: '连锁销售明细报表列表',
  1447. icon: 'profile',
  1448. hidden: true,
  1449. permission: 'M_chainSalesDetailReportList'
  1450. }
  1451. }
  1452. ]
  1453. },
  1454. {
  1455. path: '/reportData/chainReceivedSendStorageReport',
  1456. redirect: '/reportData/chainReceivedSendStorageReport/list',
  1457. name: 'chainReceivedSendStorageReport',
  1458. component: RouteView,
  1459. meta: {
  1460. title: '连锁收发存报表',
  1461. icon: 'profile',
  1462. permission: 'M_chainReceivedSendStorageReportList'
  1463. },
  1464. hideChildrenInMenu: true,
  1465. children: [
  1466. {
  1467. path: 'list',
  1468. name: 'chainReceivedSendStorageReportList',
  1469. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/chainReceivedSendStorageReport/list.vue'),
  1470. meta: {
  1471. title: '连锁收发存报表列表',
  1472. icon: 'profile',
  1473. hidden: true,
  1474. permission: 'M_chainReceivedSendStorageReportList'
  1475. }
  1476. }
  1477. ]
  1478. },
  1479. {
  1480. path: '/reportData/customerReport',
  1481. redirect: '/reportData/customerReport/list',
  1482. name: 'customerReport',
  1483. component: RouteView,
  1484. meta: {
  1485. title: '大客户报表(天)',
  1486. icon: 'profile',
  1487. permission: 'M_customerReportList'
  1488. },
  1489. hideChildrenInMenu: true,
  1490. children: [
  1491. {
  1492. path: 'list',
  1493. name: 'customerReportList',
  1494. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/customerReport/list.vue'),
  1495. meta: {
  1496. title: '大客户报表列表',
  1497. icon: 'profile',
  1498. hidden: true,
  1499. permission: 'M_customerReportList'
  1500. }
  1501. }
  1502. ]
  1503. },
  1504. {
  1505. path: '/reportData/stockIncomeReport',
  1506. redirect: '/reportData/stockIncomeReport/list',
  1507. name: 'stockIncomeReport',
  1508. component: RouteView,
  1509. meta: {
  1510. title: '库存总入报表',
  1511. icon: 'profile',
  1512. permission: 'M_stockIncomeReportList'
  1513. },
  1514. hideChildrenInMenu: true,
  1515. children: [
  1516. {
  1517. path: 'list',
  1518. name: 'stockIncomeReportList',
  1519. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/stockIncomeReport/list.vue'),
  1520. meta: {
  1521. title: '库存总入报表列表',
  1522. icon: 'profile',
  1523. hidden: true,
  1524. permission: 'M_stockIncomeReportList'
  1525. }
  1526. }
  1527. ]
  1528. },
  1529. {
  1530. path: '/reportData/stockExpenditureReport',
  1531. redirect: '/reportData/stockExpenditureReport/list',
  1532. name: 'stockExpenditureReport',
  1533. component: RouteView,
  1534. meta: {
  1535. title: '库存总出报表',
  1536. icon: 'profile',
  1537. permission: 'M_stockExpenditureReportList'
  1538. },
  1539. hideChildrenInMenu: true,
  1540. children: [
  1541. {
  1542. path: 'list',
  1543. name: 'stockExpenditureReportList',
  1544. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/stockExpenditureReport/list.vue'),
  1545. meta: {
  1546. title: '库存总出报表列表',
  1547. icon: 'profile',
  1548. hidden: true,
  1549. permission: 'M_stockExpenditureReportList'
  1550. }
  1551. }
  1552. ]
  1553. },
  1554. {
  1555. path: '/reportData/receivedSendStorageReport',
  1556. redirect: '/reportData/receivedSendStorageReport/list',
  1557. name: 'receivedSendStorageReport',
  1558. component: RouteView,
  1559. meta: {
  1560. title: '收发存报表',
  1561. icon: 'profile',
  1562. permission: 'M_receivedSendStorageReportList'
  1563. },
  1564. hideChildrenInMenu: true,
  1565. children: [
  1566. {
  1567. path: 'list',
  1568. name: 'receivedSendStorageReportList',
  1569. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/receivedSendStorageReport/list.vue'),
  1570. meta: {
  1571. title: '收发存报表列表',
  1572. icon: 'profile',
  1573. hidden: true,
  1574. permission: 'M_receivedSendStorageReportList'
  1575. }
  1576. }
  1577. ]
  1578. }
  1579. ]
  1580. },
  1581. // 客户管理
  1582. {
  1583. path: '/customerManagement',
  1584. redirect: '/customerManagement/customerInfo',
  1585. component: PageView,
  1586. meta: {
  1587. title: '客户管理',
  1588. icon: 'idcard',
  1589. permission: 'M_customerInfoList'
  1590. },
  1591. children: [
  1592. {
  1593. path: '/customerManagement/customerInfo',
  1594. redirect: '/customerManagement/customerInfo/list',
  1595. name: 'customerInfo',
  1596. component: RouteView,
  1597. meta: {
  1598. title: '客户管理',
  1599. icon: 'idcard',
  1600. permission: 'M_customerInfoList'
  1601. },
  1602. hideChildrenInMenu: true,
  1603. children: [
  1604. {
  1605. path: 'list',
  1606. name: 'customerInfoList',
  1607. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/list.vue'),
  1608. meta: {
  1609. title: '客户列表',
  1610. icon: 'idcard',
  1611. hidden: true,
  1612. permission: 'M_customerInfoList'
  1613. }
  1614. },
  1615. {
  1616. path: 'add',
  1617. name: 'customerInfoAdd',
  1618. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  1619. meta: {
  1620. title: '新增客户',
  1621. icon: 'idcard',
  1622. hidden: true,
  1623. permission: 'B_customer_customerInfo_add'
  1624. }
  1625. },
  1626. {
  1627. path: 'edit/:id',
  1628. name: 'customerInfoEdit',
  1629. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  1630. meta: {
  1631. title: '编辑客户',
  1632. icon: 'idcard',
  1633. hidden: true,
  1634. permission: 'B_customer_customerInfo_edit'
  1635. }
  1636. }
  1637. ]
  1638. }
  1639. ]
  1640. },
  1641. // 产品管理
  1642. {
  1643. path: '/productManagement',
  1644. redirect: '/productManagement/productInfo',
  1645. component: PageView,
  1646. meta: {
  1647. title: '产品管理',
  1648. icon: 'shopping',
  1649. permission: 'M_product'
  1650. },
  1651. children: [
  1652. {
  1653. path: '/productManagement/productInfo',
  1654. redirect: '/productManagement/productInfo/list',
  1655. name: 'productInfo',
  1656. component: RouteView,
  1657. meta: {
  1658. title: '产品信息管理(自建)',
  1659. icon: 'file-text',
  1660. permission: 'M_dealerProductList'
  1661. },
  1662. hideChildrenInMenu: true,
  1663. children: [
  1664. {
  1665. path: 'list',
  1666. name: 'productInfoList',
  1667. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/list.vue'),
  1668. meta: {
  1669. title: '产品信息列表',
  1670. icon: 'file-text',
  1671. hidden: true,
  1672. permission: 'M_dealerProductList'
  1673. }
  1674. },
  1675. {
  1676. path: 'add',
  1677. name: 'productInfoAdd',
  1678. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  1679. meta: {
  1680. title: '新增产品',
  1681. icon: 'file-text',
  1682. hidden: true,
  1683. permission: 'B_product_dealerProduct_add'
  1684. }
  1685. },
  1686. {
  1687. path: 'edit/:id',
  1688. name: 'productInfoEdit',
  1689. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  1690. meta: {
  1691. title: '编辑产品',
  1692. icon: 'file-text',
  1693. hidden: true,
  1694. permission: 'B_product_dealerProduct_edit'
  1695. }
  1696. }
  1697. ]
  1698. },
  1699. {
  1700. path: '/productManagement/productInfoJg',
  1701. redirect: '/productManagement/productInfoJg/list',
  1702. name: 'productInfoJg',
  1703. component: RouteView,
  1704. meta: {
  1705. title: '产品信息管理(箭冠)',
  1706. icon: 'file-text',
  1707. permission: 'M_productInfoList'
  1708. },
  1709. hideChildrenInMenu: true,
  1710. children: [
  1711. {
  1712. path: 'list',
  1713. name: 'productInfoJgList',
  1714. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfoJg/list.vue'),
  1715. meta: {
  1716. title: '产品信息列表',
  1717. icon: 'file-text',
  1718. hidden: true,
  1719. permission: 'M_productInfoList'
  1720. }
  1721. }
  1722. ]
  1723. },
  1724. {
  1725. path: '/productManagement/productBrand',
  1726. redirect: '/productManagement/productBrand/list',
  1727. name: 'productBrand',
  1728. component: RouteView,
  1729. meta: {
  1730. title: '产品品牌管理',
  1731. icon: 'sketch',
  1732. permission: 'M_dealerProductBrandList'
  1733. },
  1734. hideChildrenInMenu: true,
  1735. children: [
  1736. {
  1737. path: 'list',
  1738. name: 'productBrandList',
  1739. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productBrand/list.vue'),
  1740. meta: {
  1741. title: '产品品牌列表',
  1742. icon: 'sketch',
  1743. hidden: true,
  1744. permission: 'M_dealerProductBrandList'
  1745. }
  1746. }
  1747. ]
  1748. },
  1749. {
  1750. path: '/productManagement/productCategory',
  1751. redirect: '/productManagement/productCategory/list',
  1752. name: 'productCategory',
  1753. component: RouteView,
  1754. meta: {
  1755. title: '产品分类管理',
  1756. icon: 'sliders',
  1757. permission: 'M_dealerProductTypeList'
  1758. },
  1759. hideChildrenInMenu: true,
  1760. children: [
  1761. {
  1762. path: 'list',
  1763. name: 'productCategoryList',
  1764. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productCategory/list.vue'),
  1765. meta: {
  1766. title: '产品分类列表',
  1767. icon: 'sliders',
  1768. hidden: true,
  1769. permission: 'M_dealerProductTypeList'
  1770. }
  1771. }
  1772. ]
  1773. },
  1774. {
  1775. path: '/productManagement/priceChangeRecord',
  1776. redirect: '/productManagement/priceChangeRecord/list',
  1777. name: 'priceChangeRecord',
  1778. component: RouteView,
  1779. meta: {
  1780. title: '价格变更记录',
  1781. icon: 'sketch',
  1782. permission: 'M_priceChangeRecordList'
  1783. },
  1784. hideChildrenInMenu: true,
  1785. children: [
  1786. {
  1787. path: 'list',
  1788. name: 'priceChangeRecordList',
  1789. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/priceChangeRecord/list.vue'),
  1790. meta: {
  1791. title: '价格变更记录列表',
  1792. icon: 'sketch',
  1793. hidden: true,
  1794. permission: 'M_priceChangeRecordList'
  1795. }
  1796. }
  1797. ]
  1798. }
  1799. ]
  1800. },
  1801. // 供应商管理
  1802. {
  1803. path: '/supplierManagement',
  1804. redirect: '/supplierManagement/supplierInfo',
  1805. component: PageView,
  1806. meta: {
  1807. title: '供应商管理',
  1808. icon: 'team',
  1809. permission: 'M_supplierInfoList'
  1810. },
  1811. children: [
  1812. {
  1813. path: '/supplierManagement/supplierInfo',
  1814. redirect: '/supplierManagement/supplierInfo/list',
  1815. name: 'supplierInfo',
  1816. component: RouteView,
  1817. meta: {
  1818. title: '供应商管理',
  1819. icon: 'team',
  1820. permission: 'M_supplierInfoList'
  1821. },
  1822. hideChildrenInMenu: true,
  1823. children: [
  1824. {
  1825. path: 'list',
  1826. name: 'supplierInfoList',
  1827. component: () => import(/* webpackChunkName: "shop" */ '@/views/supplierManagement/supplierInfo/list.vue'),
  1828. meta: {
  1829. title: '供应商列表',
  1830. icon: 'team',
  1831. hidden: true,
  1832. permission: 'M_supplierInfoList'
  1833. }
  1834. }
  1835. ]
  1836. }
  1837. ]
  1838. },
  1839. // 中心店/配送店管理
  1840. {
  1841. path: '/storeManagement',
  1842. redirect: '/storeManagement/bind',
  1843. component: PageView,
  1844. meta: {
  1845. title: '中心店/配送店管理',
  1846. icon: 'bank',
  1847. permission: 'M_storeManagement'
  1848. },
  1849. children: [
  1850. {
  1851. path: '/storeManagement/bind',
  1852. redirect: '/storeManagement/bind/list',
  1853. name: 'storeManagementBind',
  1854. component: RouteView,
  1855. meta: {
  1856. title: '中心店/配送店绑定',
  1857. icon: 'link',
  1858. permission: 'M_storeManagementBindList'
  1859. },
  1860. hideChildrenInMenu: true,
  1861. children: [
  1862. {
  1863. path: 'list',
  1864. name: 'storeManagementBindList',
  1865. component: () => import(/* webpackChunkName: "shop" */ '@/views/storeManagement/bind/list.vue'),
  1866. meta: {
  1867. title: '中心店/配送店绑定列表',
  1868. icon: 'link',
  1869. hidden: true,
  1870. permission: 'M_storeManagementBindList'
  1871. }
  1872. }
  1873. ]
  1874. },
  1875. {
  1876. path: '/storeManagement/userAuthorization',
  1877. redirect: '/storeManagement/userAuthorization/list',
  1878. name: 'storeManagementUserAuth',
  1879. component: RouteView,
  1880. meta: {
  1881. title: '中心店用户授权',
  1882. icon: 'link',
  1883. permission: 'M_storeManagementUserAuthList'
  1884. },
  1885. hideChildrenInMenu: true,
  1886. children: [
  1887. {
  1888. path: 'list',
  1889. name: 'storeManagementUserAuthList',
  1890. component: () => import(/* webpackChunkName: "shop" */ '@/views/storeManagement/userAuthorization/list.vue'),
  1891. meta: {
  1892. title: '中心店用户授权列表',
  1893. icon: 'link',
  1894. hidden: true,
  1895. permission: 'M_storeManagementUserAuthList'
  1896. }
  1897. }
  1898. ]
  1899. }
  1900. ]
  1901. },
  1902. // 基础设置
  1903. {
  1904. path: '/basicData',
  1905. redirect: '/basicData/storeTransferOutTypeManagement',
  1906. component: PageView,
  1907. meta: {
  1908. title: '基础设置',
  1909. icon: 'pushpin',
  1910. permission: 'M_basicData'
  1911. },
  1912. children: [
  1913. {
  1914. path: '/basicData/storeTransferOutTypeManagement',
  1915. redirect: '/basicData/storeTransferOutTypeManagement/list',
  1916. name: 'storeTransferOutTypeManagement',
  1917. component: RouteView,
  1918. meta: {
  1919. title: '店内调出类型管理',
  1920. icon: 'interaction',
  1921. permission: 'M_storeTransferOutTypeList'
  1922. },
  1923. hideChildrenInMenu: true,
  1924. children: [
  1925. {
  1926. path: 'list',
  1927. name: 'storeTransferOutTypeManagementList',
  1928. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/storeTransferOutTypeManagement/list.vue'),
  1929. meta: {
  1930. title: '店内调出类型管理列表',
  1931. icon: 'interaction',
  1932. hidden: true,
  1933. permission: 'M_storeTransferOutTypeList'
  1934. }
  1935. }
  1936. ]
  1937. },
  1938. {
  1939. path: '/basicData/bulkPartsTypeManagement',
  1940. redirect: '/basicData/bulkPartsTypeManagement/list',
  1941. name: 'bulkPartsTypeManagement',
  1942. component: RouteView,
  1943. meta: {
  1944. title: '散件入库类型管理',
  1945. icon: 'gold',
  1946. permission: 'M_bulkPartsTypeList'
  1947. },
  1948. hideChildrenInMenu: true,
  1949. children: [
  1950. {
  1951. path: 'list',
  1952. name: 'bulkPartsTypeManagementList',
  1953. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/bulkPartsTypeManagement/list.vue'),
  1954. meta: {
  1955. title: '散件入库类型列表',
  1956. icon: 'gold',
  1957. hidden: true,
  1958. permission: 'M_bulkPartsTypeList'
  1959. }
  1960. }
  1961. ]
  1962. },
  1963. {
  1964. path: '/basicData/expenseType',
  1965. redirect: '/basicData/expenseType/list',
  1966. name: 'expenseType',
  1967. component: RouteView,
  1968. meta: {
  1969. title: '费用类型管理',
  1970. icon: 'pay-circle',
  1971. permission: 'M_expenseTypeList'
  1972. },
  1973. hideChildrenInMenu: true,
  1974. children: [
  1975. {
  1976. path: 'list',
  1977. name: 'expenseTypeList',
  1978. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/expenseType/list.vue'),
  1979. meta: {
  1980. title: '费用类型列表',
  1981. icon: 'pay-circle',
  1982. hidden: true,
  1983. permission: 'M_expenseTypeList'
  1984. }
  1985. }
  1986. ]
  1987. },
  1988. // {
  1989. // path: '/basicData/processSettings',
  1990. // redirect: '/basicData/processSettings/setup',
  1991. // name: 'processSettings',
  1992. // component: RouteView,
  1993. // meta: {
  1994. // title: '业务自动化设置',
  1995. // icon: 'sliders'
  1996. // // permission: 'M_goodsManage_list'
  1997. // },
  1998. // hideChildrenInMenu: true,
  1999. // children: [
  2000. // {
  2001. // path: 'setup',
  2002. // name: 'processSettingsSetup',
  2003. // component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/processSettings/setup.vue'),
  2004. // meta: {
  2005. // title: '业务自动化设置',
  2006. // icon: 'sliders',
  2007. // hidden: true
  2008. // // permission: 'M_goodsManage_list'
  2009. // }
  2010. // }
  2011. // ]
  2012. // },
  2013. {
  2014. path: '/basicData/customerTypeManagement',
  2015. redirect: '/basicData/customerTypeManagement/list',
  2016. name: 'customerTypeManagement',
  2017. component: RouteView,
  2018. meta: {
  2019. title: '客户类型管理',
  2020. icon: 'idcard',
  2021. permission: 'M_customerTypeList'
  2022. },
  2023. hideChildrenInMenu: true,
  2024. children: [
  2025. {
  2026. path: 'list',
  2027. name: 'customerTypeManagementList',
  2028. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/customerTypeManagement/list.vue'),
  2029. meta: {
  2030. title: '客户类型列表',
  2031. icon: 'idcard',
  2032. hidden: true,
  2033. permission: 'M_customerTypeList'
  2034. }
  2035. }
  2036. ]
  2037. }
  2038. ]
  2039. },
  2040. // auth
  2041. {
  2042. path: '/auth',
  2043. redirect: '/auth/userList',
  2044. component: PageView,
  2045. meta: {
  2046. title: '权限管理',
  2047. icon: 'lock',
  2048. permission: 'M_powerMD_0'
  2049. },
  2050. children: [
  2051. {
  2052. path: '/auth/userList',
  2053. name: 'powerUserList',
  2054. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  2055. meta: {
  2056. title: '用户管理',
  2057. icon: 'user',
  2058. permission: 'M_powerMD_user_list'
  2059. }
  2060. },
  2061. {
  2062. path: '/auth/roleList',
  2063. name: 'powerRoleList',
  2064. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  2065. meta: {
  2066. title: '角色管理',
  2067. icon: 'solution',
  2068. permission: 'M_powerMD_role_list'
  2069. }
  2070. }
  2071. ]
  2072. },
  2073. // 系统设置
  2074. // {
  2075. // path: '/setting',
  2076. // redirect: '/setting/userList',
  2077. // component: PageView,
  2078. // meta: {
  2079. // title: '系统设置',
  2080. // icon: 'setting'
  2081. // // permission: 'M_setting_0'
  2082. // },
  2083. // children: [
  2084. // {
  2085. // path: '/setting/dataDictionary',
  2086. // name: 'powerDD',
  2087. // component: () => import(/* webpackChunkName: "setting" */
  2088. // '@/views/power/dataDictionary/dataDictionary.vue'),
  2089. // meta: {
  2090. // title: '数据字典管理',
  2091. // icon: 'database'
  2092. // // permission: 'M_sys_dataDictionary'
  2093. // }
  2094. // },
  2095. // // {
  2096. // // path: '/setting/register',
  2097. // // name: 'powerRegister',
  2098. // // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
  2099. // // meta: {
  2100. // // title: '参数管理',
  2101. // // icon: 'key',
  2102. // // permission: 'M_sys_register'
  2103. // // }
  2104. // // },
  2105. // {
  2106. // path: '/setting/OperateJournal',
  2107. // name: 'powerOperateJournal',
  2108. // component: () => import(/* webpackChunkName: "setting" */
  2109. // '@/views/power/OperateJournal/OperateJournal.vue'),
  2110. // meta: {
  2111. // title: '操作日志',
  2112. // icon: 'read'
  2113. // // permission: 'M_operateJournal'
  2114. // }
  2115. // }
  2116. // ]
  2117. // }
  2118. // 公告
  2119. {
  2120. path: '/notice',
  2121. name: 'notice',
  2122. component: () => import(/* webpackChunkName: "home" */ '@/views/notice/list'),
  2123. meta: {
  2124. title: '公告',
  2125. icon: 'bell'
  2126. },
  2127. hidden: true
  2128. }
  2129. ]
  2130. },
  2131. {
  2132. path: '*',
  2133. redirect: '/404',
  2134. hidden: true
  2135. }
  2136. ]
  2137. /**
  2138. * 基础路由
  2139. * @type { *[] }
  2140. */
  2141. export const constantRouterMap = [
  2142. {
  2143. path: '/user',
  2144. component: UserLayout,
  2145. redirect: '/user/login',
  2146. hidden: true,
  2147. children: [
  2148. {
  2149. path: 'login',
  2150. name: 'login',
  2151. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  2152. },
  2153. {
  2154. path: 'register',
  2155. name: 'register',
  2156. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  2157. },
  2158. {
  2159. path: 'register-result',
  2160. name: 'registerResult',
  2161. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  2162. },
  2163. {
  2164. path: 'recover',
  2165. name: 'recover',
  2166. component: undefined
  2167. }
  2168. ]
  2169. },
  2170. {
  2171. path: '/404',
  2172. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  2173. }
  2174. ]