router.config.js 76 KB

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