router.config.js 76 KB

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