router.config.js 112 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091
  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. redirect: '/home',
  32. component: BlankLayout,
  33. meta: {
  34. title: '首页',
  35. icon: 'home',
  36. hidden: true
  37. },
  38. hideChildrenInMenu: true,
  39. children: [
  40. {
  41. path: '/home',
  42. name: 'home',
  43. component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
  44. meta: {
  45. title: '首页',
  46. icon: 'home',
  47. hidden: true
  48. }
  49. },
  50. {
  51. path: '/changePwd',
  52. name: 'changePwd',
  53. component: () => import(/* webpackChunkName: "home" */ '@/views/user/ChangePwd'),
  54. meta: {
  55. title: '修改密码',
  56. icon: 'home'
  57. },
  58. hidden: true
  59. },
  60. // 公告
  61. {
  62. path: '/notice',
  63. name: 'notice',
  64. component: () => import(/* webpackChunkName: "home" */ '@/views/notice/list'),
  65. meta: {
  66. title: '公告',
  67. icon: 'bell',
  68. hidden: true
  69. }
  70. }
  71. ]
  72. }
  73. ]
  74. },
  75. // 销售管理
  76. {
  77. path: '/salesManagement',
  78. redirect: '/salesManagement/salesQuery',
  79. component: PageView,
  80. meta: {
  81. title: '销售管理',
  82. icon: 'account-book',
  83. permission: 'M_salesManage'
  84. },
  85. children: [
  86. {
  87. path: '/salesManagement/salesQuery',
  88. redirect: '/salesManagement/salesQuery/list',
  89. name: 'salesQuery',
  90. component: BlankLayout,
  91. meta: {
  92. title: '销售单',
  93. icon: 'monitor',
  94. permission: 'M_salesQueryList'
  95. },
  96. hideChildrenInMenu: true,
  97. children: [
  98. {
  99. path: 'list',
  100. name: 'salesQueryList',
  101. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/list.vue'),
  102. meta: {
  103. title: '销售单列表',
  104. icon: 'monitor',
  105. hidden: true,
  106. permission: 'M_salesQueryList'
  107. }
  108. },
  109. {
  110. path: 'detail/:sn',
  111. name: 'salesDetail',
  112. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/detail.vue'),
  113. meta: {
  114. title: '销售单详情',
  115. icon: 'monitor',
  116. hidden: true,
  117. permission: 'B_salesDetail'
  118. }
  119. },
  120. {
  121. path: 'add/:id/:sn/:priceType',
  122. name: 'salesAdd',
  123. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  124. meta: {
  125. title: '新增销售单',
  126. icon: 'monitor',
  127. hidden: true,
  128. permission: 'B_salesNews'
  129. }
  130. },
  131. {
  132. path: 'edit/:id/:sn/:priceType',
  133. name: 'salesEdit',
  134. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  135. meta: {
  136. title: '编辑销售单',
  137. icon: 'monitor',
  138. hidden: true,
  139. permission: 'B_salesEdit'
  140. }
  141. }
  142. ]
  143. },
  144. {
  145. path: '/salesManagement/urgentItemsOffset',
  146. redirect: '/salesManagement/urgentItemsOffset/list',
  147. name: 'urgentItemsOffset',
  148. component: BlankLayout,
  149. meta: {
  150. title: '急件冲减',
  151. icon: 'rocket',
  152. permission: 'M_urgentItemsOffsetList'
  153. },
  154. hideChildrenInMenu: true,
  155. children: [
  156. {
  157. path: 'list',
  158. name: 'urgentItemsOffsetList',
  159. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/urgentItemsOffset/list.vue'),
  160. meta: {
  161. title: '急件冲减列表',
  162. icon: 'rocket',
  163. hidden: true,
  164. permission: 'M_urgentItemsOffsetList'
  165. }
  166. },
  167. {
  168. path: 'detail/:sn',
  169. name: 'urgentItemsOffsetDetail',
  170. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/urgentItemsOffset/detail.vue'),
  171. meta: {
  172. title: '急件冲减详情',
  173. icon: 'rocket',
  174. hidden: true,
  175. replaceTab: true,
  176. permission: 'M_urgentDetail'
  177. }
  178. }
  179. ]
  180. },
  181. {
  182. path: '/salesManagement/salesReturn',
  183. redirect: '/salesManagement/salesReturn/list',
  184. name: 'salesReturn',
  185. component: BlankLayout,
  186. meta: {
  187. title: '销售退货',
  188. icon: 'fund',
  189. permission: 'M_salesReturnList'
  190. },
  191. hideChildrenInMenu: true,
  192. children: [
  193. {
  194. path: 'list',
  195. name: 'salesReturnList',
  196. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/list.vue'),
  197. meta: {
  198. title: '退货单列表',
  199. icon: 'fund',
  200. hidden: true,
  201. permission: 'M_salesReturnList'
  202. }
  203. },
  204. {
  205. path: 'detail/:id/:sn',
  206. name: 'salesReturnDetail',
  207. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/detail.vue'),
  208. meta: {
  209. title: '退货单详情',
  210. icon: 'fund',
  211. hidden: true,
  212. permission: 'B_salesReturnDetail'
  213. }
  214. },
  215. {
  216. path: 'salesReturnGrabEdit/:id/:sn/:buyerSn',
  217. name: 'salesReturnGrabEdit',
  218. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnGrabEdit.vue'),
  219. meta: {
  220. title: '编辑退货单(抓单)',
  221. icon: 'fund',
  222. hidden: true,
  223. permission: 'B_salesReturnEdit'
  224. }
  225. },
  226. {
  227. path: 'salesReturnEdit/:id/:sn/:buyerSn',
  228. name: 'salesReturnEdit',
  229. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnEdit.vue'),
  230. meta: {
  231. title: '编辑退货单(不抓单)',
  232. icon: 'fund',
  233. hidden: true,
  234. permission: 'B_salesReturnEdit'
  235. }
  236. }
  237. ]
  238. },
  239. {
  240. path: '/salesManagement/productPricing',
  241. redirect: '/salesManagement/productPricing/list',
  242. name: 'productPricing',
  243. component: BlankLayout,
  244. meta: {
  245. title: '产品报价',
  246. icon: 'file-search',
  247. permission: 'M_productPricingList'
  248. },
  249. hideChildrenInMenu: true,
  250. children: [
  251. {
  252. path: 'list',
  253. name: 'productPricingList',
  254. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/productPricing/list.vue'),
  255. meta: {
  256. title: '产品报价列表',
  257. icon: 'file-search',
  258. hidden: true,
  259. permission: 'M_productPricingList'
  260. }
  261. }
  262. ]
  263. },
  264. {
  265. path: '/salesManagement/giftRecord',
  266. redirect: '/salesManagement/giftRecord/list',
  267. name: 'giftRecord',
  268. component: BlankLayout,
  269. meta: {
  270. title: '赠品记录',
  271. icon: 'file-search',
  272. permission: 'M_giftRecordList'
  273. },
  274. hideChildrenInMenu: true,
  275. children: [
  276. {
  277. path: 'list',
  278. name: 'giftRecordList',
  279. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/giftRecord/list.vue'),
  280. meta: {
  281. title: '赠品记录列表',
  282. icon: 'file-search',
  283. hidden: true,
  284. permission: 'M_giftRecordList'
  285. }
  286. }
  287. ]
  288. },
  289. {
  290. path: '/salesManagement/salesman',
  291. redirect: '/salesManagement/salesman/list',
  292. name: 'salesman',
  293. component: BlankLayout,
  294. meta: {
  295. title: '业务员管理',
  296. icon: 'file-search',
  297. permission: 'M_salesman_list'
  298. },
  299. hideChildrenInMenu: true,
  300. children: [
  301. {
  302. path: 'list',
  303. name: 'salesmanList',
  304. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesman/list.vue'),
  305. meta: {
  306. title: '业务员列表',
  307. icon: 'file-search',
  308. hidden: true,
  309. permission: 'M_salesman_list'
  310. }
  311. }
  312. ]
  313. }
  314. ]
  315. },
  316. // 数字货架
  317. {
  318. path: '/numsGoodsShelves',
  319. redirect: '/numsGoodsShelves/settlementManagement',
  320. component: PageView,
  321. meta: {
  322. title: '数字货架',
  323. icon: 'hdd',
  324. permission: 'M_numsGoodsShelves'
  325. },
  326. children: [
  327. {
  328. path: '/numsGoodsShelves/shelfSet',
  329. redirect: '/numsGoodsShelves/shelfSet/list',
  330. name: 'shelfSet',
  331. component: BlankLayout,
  332. meta: {
  333. title: '货架设置',
  334. icon: 'monitor',
  335. permission: 'M_shelfSet'
  336. },
  337. hideChildrenInMenu: true,
  338. children: [
  339. {
  340. path: 'list',
  341. name: 'shelfSetList',
  342. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/shelfSet/list.vue'),
  343. meta: {
  344. title: '货架设置列表',
  345. icon: 'monitor',
  346. hidden: true
  347. // permission: 'M_salesQueryList'
  348. }
  349. },
  350. {
  351. path: 'set/:sn',
  352. name: 'shelfSetting',
  353. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/shelfSet/set.vue'),
  354. meta: {
  355. title: '货架设置',
  356. icon: 'monitor',
  357. hidden: true,
  358. replaceTab: true
  359. // permission: 'M_salesQueryList'
  360. }
  361. }
  362. ]
  363. },
  364. {
  365. path: '/numsGoodsShelves/shelfMonitoring',
  366. redirect: '/numsGoodsShelves/shelfMonitoring/list',
  367. name: 'shelfMonitoring',
  368. component: BlankLayout,
  369. meta: {
  370. title: '货架监控',
  371. icon: 'monitor',
  372. permission: 'M_shelfMonitoring'
  373. },
  374. hideChildrenInMenu: true,
  375. children: [
  376. {
  377. path: 'list',
  378. name: 'shelfMonitoringList',
  379. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/shelfMonitoring/list.vue'),
  380. meta: {
  381. title: '货架监控列表',
  382. icon: 'monitor',
  383. hidden: true
  384. // permission: 'M_salesQueryList'
  385. }
  386. },
  387. {
  388. path: 'warehouseDetail/:shelfPlaceSn/:productSn',
  389. name: 'shelfMonitoringWarehouseDetail',
  390. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/shelfMonitoring/warehouseDetail.vue'),
  391. meta: {
  392. title: '货架监控出入库明细',
  393. icon: 'monitor',
  394. hidden: true,
  395. replaceTab: true
  396. // permission: 'M_salesQueryList'
  397. }
  398. }
  399. ]
  400. },
  401. {
  402. path: '/numsGoodsShelves/replenishmentManagement',
  403. redirect: '/numsGoodsShelves/replenishmentManagement/list',
  404. name: 'replenishmentManagement',
  405. component: BlankLayout,
  406. meta: {
  407. title: '补货管理',
  408. icon: 'monitor',
  409. permission: 'M_replenishmentManagement'
  410. },
  411. hideChildrenInMenu: true,
  412. children: [
  413. {
  414. path: 'list',
  415. name: 'replenishmentManagementList',
  416. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/replenishmentManagement/list.vue'),
  417. meta: {
  418. title: '补货管理列表',
  419. icon: 'monitor',
  420. hidden: true
  421. // permission: 'M_salesQueryList'
  422. }
  423. }
  424. ]
  425. },
  426. {
  427. path: '/numsGoodsShelves/recallManagement',
  428. redirect: '/numsGoodsShelves/recallManagement/list',
  429. name: 'recallManagement',
  430. component: BlankLayout,
  431. meta: {
  432. title: '调回管理',
  433. icon: 'monitor',
  434. permission: 'M_recallManagement'
  435. },
  436. hideChildrenInMenu: true,
  437. children: [
  438. {
  439. path: 'list',
  440. name: 'recallManagementList',
  441. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/recallManagement/list.vue'),
  442. meta: {
  443. title: '调回管理列表',
  444. icon: 'monitor',
  445. hidden: true
  446. // permission: 'M_salesQueryList'
  447. }
  448. }
  449. ]
  450. },
  451. {
  452. path: '/numsGoodsShelves/settlementManagement',
  453. redirect: '/numsGoodsShelves/settlementManagement/list',
  454. name: 'settlementManagement',
  455. component: BlankLayout,
  456. meta: {
  457. title: '结算管理',
  458. icon: 'monitor',
  459. permission: 'M_settlementManagement'
  460. },
  461. hideChildrenInMenu: true,
  462. children: [
  463. {
  464. path: 'list',
  465. name: 'settlementManagementList',
  466. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/settlementManagement/list.vue'),
  467. meta: {
  468. title: '结算管理列表',
  469. icon: 'monitor',
  470. hidden: true
  471. // permission: 'M_salesQueryList'
  472. }
  473. },
  474. {
  475. path: 'unDetail/:shelfSn/:settleType/:shelfName',
  476. name: 'unSettlementDetail',
  477. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/numsGoodsShelves/settlementManagement/unSettlementDetail.vue'),
  478. meta: {
  479. title: '待结算明细',
  480. icon: 'monitor',
  481. hidden: true,
  482. replaceTab: true
  483. // permission: 'M_salesQueryList'
  484. }
  485. },
  486. {
  487. path: 'detail/:shelfSn/:shelfName',
  488. name: 'settlementDetail',
  489. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/numsGoodsShelves/settlementManagement/settlementDetail.vue'),
  490. meta: {
  491. title: '结算历史',
  492. icon: 'monitor',
  493. hidden: true,
  494. replaceTab: true
  495. // permission: 'M_salesQueryList'
  496. }
  497. }
  498. ]
  499. },
  500. {
  501. path: '/numsGoodsShelves/withdrawalManagement',
  502. redirect: '/numsGoodsShelves/withdrawalManagement/list',
  503. name: 'ngsWithdrawalManagement',
  504. component: BlankLayout,
  505. meta: {
  506. title: '提现管理',
  507. icon: 'monitor',
  508. permission: 'M_NGS_withdrawalManagement'
  509. },
  510. hideChildrenInMenu: true,
  511. children: [
  512. {
  513. path: 'list',
  514. name: 'ngsWithdrawalManagementList',
  515. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/withdrawalManagement/list.vue'),
  516. meta: {
  517. title: '提现管理列表',
  518. icon: 'monitor',
  519. hidden: true
  520. // permission: 'M_ngsWithdrawalManagementList'
  521. }
  522. }
  523. ]
  524. },
  525. {
  526. path: '/numsGoodsShelves/recallStockManagement',
  527. redirect: '/numsGoodsShelves/recallStockManagement/list',
  528. name: 'recallStockManagement',
  529. component: BlankLayout,
  530. meta: {
  531. title: '调回入库',
  532. icon: 'monitor',
  533. permission: 'M_recallStockManagement'
  534. },
  535. hideChildrenInMenu: true,
  536. children: [
  537. {
  538. path: 'list',
  539. name: 'recallStockManagementList',
  540. component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/recallStockManagement/list.vue'),
  541. meta: {
  542. title: '调回入库列表',
  543. icon: 'monitor',
  544. hidden: true
  545. // permission: 'M_salesQueryList'
  546. }
  547. },
  548. {
  549. path: 'editStock/:stockPutSn',
  550. name: 'editStock',
  551. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/numsGoodsShelves/recallStockManagement/editStock.vue'),
  552. meta: {
  553. title: '编辑入库',
  554. icon: 'monitor',
  555. hidden: true,
  556. replaceTab: true
  557. // permission: 'M_salesQueryList'
  558. }
  559. }
  560. ]
  561. }
  562. // {
  563. // path: '/numsGoodsShelves/accountManagement',
  564. // redirect: '/numsGoodsShelves/accountManagement/list',
  565. // name: 'accountManagement',
  566. // component: BlankLayout,
  567. // meta: {
  568. // title: '账户明细',
  569. // icon: 'monitor'
  570. // // permission: 'M_salesQueryList'
  571. // },
  572. // hideChildrenInMenu: true,
  573. // children: [
  574. // {
  575. // path: 'list',
  576. // name: 'accountManagementList',
  577. // component: () => import(/* webpackChunkName: "numsGoodsShelves" */ '@/views/numsGoodsShelves/accountManagement/list.vue'),
  578. // meta: {
  579. // title: '账户明细列表',
  580. // icon: 'monitor',
  581. // hidden: true
  582. // // permission: 'M_salesQueryList'
  583. // }
  584. // }
  585. // ]
  586. // }
  587. ]
  588. },
  589. // 采购管理
  590. {
  591. path: '/purchasingManagement',
  592. redirect: '/purchasingManagement/purchaseOrder',
  593. component: PageView,
  594. meta: {
  595. title: '采购管理',
  596. icon: 'file-done',
  597. permission: 'M_purchasingManagement'
  598. },
  599. children: [
  600. {
  601. path: '/purchasingManagement/purchaseOrder',
  602. redirect: '/purchasingManagement/purchaseOrder/list',
  603. name: 'purchaseOrder',
  604. component: BlankLayout,
  605. meta: {
  606. title: '采购单管理',
  607. icon: 'file-done',
  608. permission: 'M_purchasingList'
  609. },
  610. hideChildrenInMenu: true,
  611. children: [
  612. {
  613. path: 'list',
  614. name: 'purchaseOrderList',
  615. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseOrder/list.vue'),
  616. meta: {
  617. title: '采购单列表',
  618. icon: 'file-done',
  619. hidden: true,
  620. permission: 'M_purchasingList'
  621. }
  622. },
  623. {
  624. path: 'add/:sn/:dealerSn',
  625. name: 'purchaseOrderAdd',
  626. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseOrder/edit.vue'),
  627. meta: {
  628. title: '新增采购单',
  629. icon: 'file-done',
  630. hidden: true,
  631. permission: 'B_purchaseNew'
  632. }
  633. },
  634. {
  635. path: 'edit/:sn/:dealerSn',
  636. name: 'purchaseOrderEdit',
  637. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseOrder/edit.vue'),
  638. meta: {
  639. title: '编辑采购单',
  640. icon: 'file-done',
  641. hidden: true,
  642. permission: 'B_purchaseEdit'
  643. }
  644. },
  645. {
  646. path: 'detail/:sn',
  647. name: 'purchaseOrderDetail',
  648. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseOrder/detail.vue'),
  649. meta: {
  650. title: '采购单详情',
  651. icon: 'file-done',
  652. hidden: true,
  653. replaceTab: true,
  654. permission: 'B_purchaseDetail'
  655. }
  656. },
  657. {
  658. path: 'warehousing/:sn',
  659. name: 'purchaseOrderWarehousing',
  660. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseOrder/warehousing.vue'),
  661. meta: {
  662. title: '采购入库',
  663. icon: 'file-done',
  664. hidden: true,
  665. replaceTab: true,
  666. permission: 'B_purchaseReceiving'
  667. }
  668. }
  669. ]
  670. },
  671. {
  672. path: '/purchasingManagement/signWarehousing',
  673. redirect: '/purchasingManagement/signWarehousing/list',
  674. name: 'signWarehousing',
  675. component: BlankLayout,
  676. meta: {
  677. title: '签收入库',
  678. icon: 'money-collect'
  679. // permission: 'M_signWarehousingList'
  680. },
  681. hideChildrenInMenu: true,
  682. children: [
  683. {
  684. path: 'list',
  685. name: 'signWarehousingList',
  686. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/signWarehousing/list.vue'),
  687. meta: {
  688. title: '签收入库列表',
  689. icon: 'money-collect',
  690. hidden: true
  691. // permission: 'M_signWarehousingList'
  692. }
  693. },
  694. {
  695. path: 'edit/:sn',
  696. name: 'signWarehousingEdit',
  697. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/signWarehousing/edit.vue'),
  698. meta: {
  699. title: '签收入库',
  700. icon: 'money-collect',
  701. replaceTab: true,
  702. hidden: true
  703. // permission: 'B_signWarehousingDetail'
  704. }
  705. },
  706. {
  707. path: 'stockOrderDetail/:sn',
  708. name: 'signWarehousingStockOrderDetail',
  709. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/signWarehousing/stockOrderDetail.vue'),
  710. meta: {
  711. title: '备货单详情',
  712. icon: 'money-collect',
  713. replaceTab: true,
  714. hidden: true
  715. // permission: 'B_signWarehousingStockOrderDetail'
  716. }
  717. }
  718. ]
  719. },
  720. {
  721. path: '/purchasingManagement/purchaseReturn',
  722. redirect: '/purchasingManagement/purchaseReturn/list',
  723. name: 'purchaseReturn',
  724. component: BlankLayout,
  725. meta: {
  726. title: '采购退货',
  727. icon: 'money-collect',
  728. permission: 'M_purchaseReturnList'
  729. },
  730. hideChildrenInMenu: true,
  731. children: [
  732. {
  733. path: 'list',
  734. name: 'purchaseReturnList',
  735. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturn/list.vue'),
  736. meta: {
  737. title: '采购退货列表',
  738. icon: 'money-collect',
  739. hidden: true,
  740. permission: 'M_purchaseReturnList'
  741. }
  742. },
  743. {
  744. path: 'add/:id/:sn/:name',
  745. name: 'purchaseReturnAdd',
  746. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturn/edit.vue'),
  747. meta: {
  748. title: '新增采购退货单',
  749. icon: 'money-collect',
  750. hidden: true,
  751. permission: 'B_purchaseReturnNew'
  752. }
  753. },
  754. {
  755. path: 'edit/:id/:sn/:name',
  756. name: 'purchaseReturnEdit',
  757. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturn/edit.vue'),
  758. meta: {
  759. title: '编辑采购退货单',
  760. icon: 'money-collect',
  761. hidden: true,
  762. permission: 'B_purchaseReturnEdit'
  763. }
  764. },
  765. {
  766. path: 'detail/:sn',
  767. name: 'purchaseReturnDetail',
  768. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturn/detail.vue'),
  769. meta: {
  770. title: '采购退货详情',
  771. icon: 'money-collect',
  772. hidden: true,
  773. permission: 'B_purchaseReturnDetail'
  774. }
  775. }
  776. ]
  777. },
  778. // 采购退货-不同步
  779. {
  780. path: '/purchasingManagement/purchaseReturnOutSync',
  781. redirect: '/purchasingManagement/purchaseReturnOutSync/list',
  782. name: 'purchaseReturnOutSync',
  783. component: BlankLayout,
  784. meta: {
  785. title: '采购退货',
  786. icon: 'money-collect',
  787. permission: 'M_purchaseReturn_outSnycList'
  788. },
  789. hideChildrenInMenu: true,
  790. children: [
  791. {
  792. path: 'list',
  793. name: 'purchaseReturnOutSyncList',
  794. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturnOutSync/list.vue'),
  795. meta: {
  796. title: '采购退货列表',
  797. icon: 'money-collect',
  798. hidden: true,
  799. permission: 'M_purchaseReturn_outSnycList'
  800. }
  801. },
  802. {
  803. path: 'edit/:sn',
  804. name: 'purchaseReturnOutSyncEdit',
  805. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturnOutSync/edit.vue'),
  806. meta: {
  807. title: '采购退货单(不抓单)',
  808. icon: 'money-collect',
  809. hidden: true,
  810. replaceTab: true,
  811. permission: 'B_purchaseReturn_outSnycAdd'
  812. }
  813. },
  814. {
  815. path: 'grapEdit/:sn/:returnTargetType',
  816. name: 'purchaseReturnOutSyncGrapEdit',
  817. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturnOutSync/grapEdit.vue'),
  818. meta: {
  819. title: '采购退货单(抓单)',
  820. icon: 'money-collect',
  821. hidden: true,
  822. replaceTab: true,
  823. permission: 'B_purchaseReturn_outSnycEdit'
  824. }
  825. },
  826. {
  827. path: 'detail/:sn/:grabFlag',
  828. name: 'purchaseReturnOutSyncDetail',
  829. component: () => import(/* webpackChunkName: "purchasingManagement" */ '@/views/purchasingManagement/purchaseReturnOutSync/detail.vue'),
  830. meta: {
  831. title: '采购退货详情',
  832. icon: 'money-collect',
  833. hidden: true,
  834. replaceTab: true,
  835. permission: 'B_purchaseReturn_outSnycDetail'
  836. }
  837. }
  838. ]
  839. }
  840. ]
  841. },
  842. // 出库管理
  843. {
  844. path: '/outboundOrderManagement',
  845. redirect: '/outboundOrderManagement/outboundOrder',
  846. component: PageView,
  847. meta: {
  848. title: '出库管理',
  849. icon: 'export',
  850. permission: 'M_outboundList'
  851. },
  852. children: [
  853. {
  854. path: '/outboundOrderManagement/outboundOrder',
  855. redirect: '/outboundOrderManagement/outboundOrder/list',
  856. name: 'outboundOrder',
  857. component: BlankLayout,
  858. meta: {
  859. title: '出库',
  860. icon: 'export',
  861. permission: 'M_outboundList'
  862. },
  863. hideChildrenInMenu: true,
  864. children: [
  865. {
  866. path: 'list',
  867. name: 'outboundOrderList',
  868. component: () => import(/* webpackChunkName: "outboundOrderManagement" */ '@/views/outboundOrderManagement/outboundOrder/list.vue'),
  869. meta: {
  870. title: '出库列表',
  871. icon: 'export',
  872. hidden: true,
  873. permission: 'M_outboundList'
  874. }
  875. }
  876. ]
  877. }
  878. ]
  879. },
  880. // 财务管理
  881. {
  882. path: '/financialManagement',
  883. redirect: '/financialManagement/warehousingAudit',
  884. component: PageView,
  885. meta: {
  886. title: '财务管理',
  887. icon: 'property-safety',
  888. permission: 'M_financial'
  889. },
  890. children: [
  891. {
  892. path: '/financialManagement/warehousingAudit',
  893. redirect: '/financialManagement/warehousingAudit/list',
  894. name: 'warehousingAudit',
  895. component: BlankLayout,
  896. meta: {
  897. title: '入库审核',
  898. icon: 'pull-request',
  899. permission: 'M_warehousingAuditList'
  900. },
  901. hideChildrenInMenu: true,
  902. children: [
  903. {
  904. path: 'list',
  905. name: 'warehousingAuditList',
  906. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/list.vue'),
  907. meta: {
  908. title: '入库审核列表',
  909. icon: 'pull-request',
  910. hidden: true,
  911. permission: 'M_warehousingAuditList'
  912. }
  913. },
  914. {
  915. path: 'detail/:sn',
  916. name: 'warehousingAuditDetail',
  917. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingAudit/detail.vue'),
  918. meta: {
  919. title: '入库审核详情',
  920. icon: 'pull-request',
  921. hidden: true,
  922. permission: 'M_warehousingAudit_detail'
  923. }
  924. }
  925. ]
  926. },
  927. {
  928. path: '/financialManagement/inventoryCheckAudit',
  929. redirect: '/financialManagement/inventoryCheckAudit/list',
  930. name: 'inventoryCheckAudit',
  931. component: BlankLayout,
  932. meta: {
  933. title: '盘点审核',
  934. icon: 'laptop',
  935. permission: 'M_inventoryCheckAuditList'
  936. },
  937. hideChildrenInMenu: true,
  938. children: [
  939. {
  940. path: 'list',
  941. name: 'inventoryCheckAuditList',
  942. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryCheckAudit/list.vue'),
  943. meta: {
  944. title: '盘点审核列表',
  945. icon: 'laptop',
  946. hidden: true,
  947. permission: 'M_inventoryCheckAuditList'
  948. }
  949. }
  950. ]
  951. },
  952. {
  953. path: '/financialManagement/financialPayment',
  954. redirect: '/financialManagement/financialPayment/list',
  955. name: 'financialPayment',
  956. component: BlankLayout,
  957. meta: {
  958. title: '财务付款',
  959. icon: 'pay-circle',
  960. permission: 'M_financialPaymentList'
  961. },
  962. hideChildrenInMenu: true,
  963. children: [
  964. {
  965. path: 'list',
  966. name: 'financialPaymentList',
  967. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialPayment/list.vue'),
  968. meta: {
  969. title: '财务付款列表',
  970. icon: 'pay-circle',
  971. hidden: true,
  972. permission: 'M_financialPaymentList'
  973. }
  974. }
  975. ]
  976. },
  977. {
  978. path: '/financialManagement/financialCollection',
  979. redirect: '/financialManagement/financialCollection/list',
  980. name: 'financialCollection',
  981. component: BlankLayout,
  982. meta: {
  983. title: '财务收款',
  984. icon: 'money-collect',
  985. permission: 'M_financialCollectionList'
  986. },
  987. hideChildrenInMenu: true,
  988. children: [
  989. {
  990. path: 'list',
  991. name: 'financialCollectionList',
  992. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/financialCollection/list.vue'),
  993. meta: {
  994. title: '财务收款列表',
  995. icon: 'money-collect',
  996. hidden: true,
  997. permission: 'M_financialCollectionList'
  998. }
  999. }
  1000. ]
  1001. },
  1002. {
  1003. path: '/financialManagement/expenseManagement',
  1004. redirect: '/financialManagement/expenseManagement/list',
  1005. name: 'expenseManagement',
  1006. component: BlankLayout,
  1007. meta: {
  1008. title: '费用管理',
  1009. icon: 'pound',
  1010. permission: 'M_expenseManagementList'
  1011. },
  1012. hideChildrenInMenu: true,
  1013. children: [
  1014. {
  1015. path: 'list',
  1016. name: 'expenseManagementList',
  1017. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/list.vue'),
  1018. meta: {
  1019. title: '费用单列表',
  1020. icon: 'pound',
  1021. hidden: true,
  1022. permission: 'M_expenseManagementList'
  1023. }
  1024. },
  1025. {
  1026. path: 'add',
  1027. name: 'expenseManagementAdd',
  1028. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  1029. meta: {
  1030. title: '新增费用单',
  1031. icon: 'pound',
  1032. hidden: true,
  1033. permission: 'B_expenseNew'
  1034. }
  1035. },
  1036. {
  1037. path: 'edit/:id',
  1038. name: 'expenseManagementEdit',
  1039. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/expenseManagement/edit.vue'),
  1040. meta: {
  1041. title: '编辑费用单',
  1042. icon: 'pound',
  1043. hidden: true,
  1044. permission: 'B_expenseEdit'
  1045. }
  1046. }
  1047. ]
  1048. },
  1049. {
  1050. path: '/financialManagement/companyReceivablePayable',
  1051. redirect: '/financialManagement/companyReceivablePayable/list',
  1052. name: 'companyReceivablePayable',
  1053. component: BlankLayout,
  1054. meta: {
  1055. title: '单位应收应付管理',
  1056. icon: 'transaction',
  1057. permission: 'M_companyReceivablePayableList'
  1058. },
  1059. hideChildrenInMenu: true,
  1060. children: [
  1061. {
  1062. path: 'list',
  1063. name: 'companyReceivablePayableList',
  1064. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/list.vue'),
  1065. meta: {
  1066. title: '单位应收应付列表',
  1067. icon: 'transaction',
  1068. hidden: true,
  1069. permission: 'M_companyReceivablePayableList'
  1070. }
  1071. },
  1072. {
  1073. path: 'collectionPayment/:sn/:name/:type',
  1074. name: 'companyReceivablePayableCollectionPayment',
  1075. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/collectionPayment.vue'),
  1076. meta: {
  1077. title: '编辑单位应收应付',
  1078. icon: 'transaction',
  1079. hidden: true,
  1080. permission: 'M_collectionPayment'
  1081. }
  1082. },
  1083. {
  1084. path: 'detail/:sn/:name/:type',
  1085. name: 'companyReceivablePayableDetail',
  1086. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyReceivablePayable/detail.vue'),
  1087. meta: {
  1088. title: '单位应收应付详情',
  1089. icon: 'transaction',
  1090. hidden: true,
  1091. permission: 'M_companyReceivablePayable_detail'
  1092. }
  1093. }
  1094. ]
  1095. },
  1096. {
  1097. path: '/financialManagement/companyCollectionPayment',
  1098. redirect: '/financialManagement/companyCollectionPayment/list',
  1099. name: 'companyCollectionPayment',
  1100. component: BlankLayout,
  1101. meta: {
  1102. title: '单位收付款记录',
  1103. icon: 'file-protect',
  1104. permission: 'M_companyCollectionPaymentList'
  1105. },
  1106. hideChildrenInMenu: true,
  1107. children: [
  1108. {
  1109. path: 'list',
  1110. name: 'companyCollectionPaymentList',
  1111. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/list.vue'),
  1112. meta: {
  1113. title: '单位收付款记录列表',
  1114. icon: 'file-protect',
  1115. hidden: true,
  1116. permission: 'M_companyCollectionPaymentList'
  1117. }
  1118. },
  1119. {
  1120. path: 'detail/:id/:sn',
  1121. name: 'companyCollectionPaymentDetail',
  1122. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/companyCollectionPayment/detail.vue'),
  1123. meta: {
  1124. title: '单位收付款记录详情',
  1125. icon: 'file-protect',
  1126. hidden: true,
  1127. permission: 'M_companyCollectionPayment_detail'
  1128. }
  1129. }
  1130. ]
  1131. },
  1132. {
  1133. path: '/financialManagement/withdrawalManagement',
  1134. redirect: '/financialManagement/withdrawalManagement/list',
  1135. name: 'withdrawalManagement',
  1136. component: BlankLayout,
  1137. meta: {
  1138. title: '提现管理',
  1139. icon: 'dollar',
  1140. permission: 'M_withdrawalManagementList'
  1141. },
  1142. hideChildrenInMenu: true,
  1143. children: [
  1144. {
  1145. path: 'list',
  1146. name: 'withdrawalManagementList',
  1147. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/withdrawalManagement/list.vue'),
  1148. meta: {
  1149. title: '提现管理列表',
  1150. icon: 'dollar',
  1151. hidden: true,
  1152. permission: 'M_withdrawalManagementList'
  1153. }
  1154. }
  1155. ]
  1156. },
  1157. {
  1158. path: '/financialManagement/ledgerRecord',
  1159. redirect: '/financialManagement/ledgerRecord/list',
  1160. name: 'ledgerRecord',
  1161. component: BlankLayout,
  1162. meta: {
  1163. title: '分账记录',
  1164. icon: 'profile',
  1165. permission: 'M_ledgerRecordList'
  1166. },
  1167. hideChildrenInMenu: true,
  1168. children: [
  1169. {
  1170. path: 'list',
  1171. name: 'ledgerRecordList',
  1172. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/ledgerRecord/list.vue'),
  1173. meta: {
  1174. title: '分账记录列表',
  1175. icon: 'profile',
  1176. hidden: true,
  1177. permission: 'M_ledgerRecordList'
  1178. }
  1179. }
  1180. ]
  1181. },
  1182. {
  1183. path: '/financialManagement/fundAccountManagement',
  1184. redirect: '/financialManagement/fundAccountManagement/list',
  1185. name: 'fundAccountManagement',
  1186. component: BlankLayout,
  1187. meta: {
  1188. title: '资金账户管理',
  1189. icon: 'file-protect',
  1190. permission: 'M_fundAccountList'
  1191. },
  1192. hideChildrenInMenu: true,
  1193. children: [
  1194. {
  1195. path: 'list',
  1196. name: 'fundAccountList',
  1197. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/fundAccountManagement/list.vue'),
  1198. meta: {
  1199. title: '资金账户列表',
  1200. icon: 'file-protect',
  1201. hidden: true,
  1202. permission: 'M_fundAccountList'
  1203. }
  1204. },
  1205. {
  1206. path: 'detail/:sn',
  1207. name: 'fundAccountDetail',
  1208. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/fundAccountManagement/detail.vue'),
  1209. meta: {
  1210. title: '资金明细',
  1211. icon: 'file-protect',
  1212. hidden: true,
  1213. replaceTab: true,
  1214. permission: 'M_fundAccount_detail'
  1215. }
  1216. }
  1217. ]
  1218. },
  1219. ]
  1220. },
  1221. // 调拨管理
  1222. {
  1223. path: '/allocationManagement',
  1224. redirect: '/allocationManagement/warehouseAllocation',
  1225. component: PageView,
  1226. meta: {
  1227. title: '调拨管理',
  1228. icon: 'cluster',
  1229. permission: 'M_allocationManagement'
  1230. },
  1231. children: [
  1232. {
  1233. path: '/allocationManagement/warehouseAllocation',
  1234. redirect: '/allocationManagement/warehouseAllocation/list',
  1235. name: 'warehouseAllocation',
  1236. component: BlankLayout,
  1237. meta: {
  1238. title: '仓库调拨',
  1239. icon: 'gateway',
  1240. permission: 'M_warehouseAllocationList'
  1241. },
  1242. hideChildrenInMenu: true,
  1243. children: [
  1244. {
  1245. path: 'list',
  1246. name: 'warehouseAllocationList',
  1247. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/warehouseAllocation/list.vue'),
  1248. meta: {
  1249. title: '仓库调拨列表',
  1250. icon: 'gateway',
  1251. hidden: true,
  1252. permission: 'M_warehouseAllocationList'
  1253. }
  1254. },
  1255. {
  1256. path: 'add',
  1257. name: 'warehouseAllocationAdd',
  1258. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/warehouseAllocation/edit.vue'),
  1259. meta: {
  1260. title: '新增仓库调拨',
  1261. icon: 'gateway',
  1262. hidden: true,
  1263. permission: 'B_warehouseAllocationNews'
  1264. }
  1265. },
  1266. {
  1267. path: 'edit/:id/:sn',
  1268. name: 'warehouseAllocationEdit',
  1269. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/warehouseAllocation/edit.vue'),
  1270. meta: {
  1271. title: '编辑仓库调拨',
  1272. icon: 'gateway',
  1273. hidden: true,
  1274. permission: 'B_warehouseAllocationEdit'
  1275. }
  1276. },
  1277. {
  1278. path: 'detail/:sn',
  1279. name: 'warehouseAllocationDetail',
  1280. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/warehouseAllocation/detail.vue'),
  1281. meta: {
  1282. title: '仓库调拨详情',
  1283. icon: 'gateway',
  1284. hidden: true,
  1285. permission: 'B_warehouseAllocationDetail'
  1286. }
  1287. }
  1288. ]
  1289. },
  1290. {
  1291. path: '/allocationManagement/chainTransferIn',
  1292. redirect: '/allocationManagement/chainTransferIn/list',
  1293. name: 'chainTransferIn',
  1294. component: BlankLayout,
  1295. meta: {
  1296. title: '连锁调入',
  1297. icon: 'cluster',
  1298. permission: 'M_chainTransferInList'
  1299. },
  1300. hideChildrenInMenu: true,
  1301. children: [
  1302. {
  1303. path: 'list',
  1304. name: 'chainTransferInList',
  1305. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferIn/list.vue'),
  1306. meta: {
  1307. title: '连锁调入列表',
  1308. icon: 'cluster',
  1309. hidden: true,
  1310. permission: 'M_chainTransferInList'
  1311. }
  1312. },
  1313. {
  1314. path: 'edit/:id/:sn',
  1315. name: 'chainTransferInEdit',
  1316. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferIn/edit.vue'),
  1317. meta: {
  1318. title: '编辑连锁调入',
  1319. icon: 'cluster',
  1320. hidden: true,
  1321. permission: 'B_allocLinkagePutEdit'
  1322. }
  1323. },
  1324. {
  1325. path: 'detail/:sn',
  1326. name: 'chainTransferInDetail',
  1327. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferIn/detail.vue'),
  1328. meta: {
  1329. title: '连锁调入详情',
  1330. icon: 'cluster',
  1331. hidden: true,
  1332. permission: 'B_allocLinkagePutDetail'
  1333. }
  1334. }
  1335. ]
  1336. },
  1337. {
  1338. path: '/allocationManagement/chainTransferOut',
  1339. redirect: '/allocationManagement/chainTransferOut/list',
  1340. name: 'chainTransferOut',
  1341. component: BlankLayout,
  1342. meta: {
  1343. title: '连锁调出',
  1344. icon: 'pull-request',
  1345. permission: 'M_chainTransferOutList'
  1346. },
  1347. hideChildrenInMenu: true,
  1348. children: [
  1349. {
  1350. path: 'list',
  1351. name: 'chainTransferOutList',
  1352. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferOut/list.vue'),
  1353. meta: {
  1354. title: '连锁调出列表',
  1355. icon: 'pull-request',
  1356. hidden: true,
  1357. permission: 'M_chainTransferOutList'
  1358. }
  1359. },
  1360. {
  1361. path: 'add/:id/:sn',
  1362. name: 'chainTransferOutAdd',
  1363. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  1364. meta: {
  1365. title: '新增连锁调出',
  1366. icon: 'pull-request',
  1367. hidden: true,
  1368. permission: 'B_allocLinkageOutNew'
  1369. }
  1370. },
  1371. {
  1372. path: 'edit/:id/:sn',
  1373. name: 'chainTransferOutEdit',
  1374. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferOut/edit.vue'),
  1375. meta: {
  1376. title: '编辑连锁调出',
  1377. icon: 'pull-request',
  1378. hidden: true,
  1379. permission: 'B_allocLinkageOutEdit'
  1380. }
  1381. },
  1382. {
  1383. path: 'detail/:sn',
  1384. name: 'chainTransferOutDetail',
  1385. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/chainTransferOut/detail.vue'),
  1386. meta: {
  1387. title: '连锁调出详情',
  1388. icon: 'pull-request',
  1389. hidden: true,
  1390. permission: 'B_allocLinkageOutDetail'
  1391. }
  1392. }
  1393. ]
  1394. },
  1395. {
  1396. path: '/allocationManagement/storeTransferOut',
  1397. redirect: '/allocationManagement/storeTransferOut/list',
  1398. name: 'storeTransferOut',
  1399. component: BlankLayout,
  1400. meta: {
  1401. title: '店内调出',
  1402. icon: 'interaction',
  1403. permission: 'M_storeTransferOutList'
  1404. },
  1405. hideChildrenInMenu: true,
  1406. children: [
  1407. {
  1408. path: 'list',
  1409. name: 'storeTransferOutList',
  1410. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/storeTransferOut/list.vue'),
  1411. meta: {
  1412. title: '店内调出列表',
  1413. icon: 'interaction',
  1414. hidden: true,
  1415. permission: 'M_storeTransferOutList'
  1416. }
  1417. },
  1418. {
  1419. path: 'add/:id/:sn',
  1420. name: 'storeTransferOutAdd',
  1421. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  1422. meta: {
  1423. title: '新增店内调出',
  1424. icon: 'interaction',
  1425. hidden: true,
  1426. permission: 'B_storeTransferOutNews'
  1427. }
  1428. },
  1429. {
  1430. path: 'edit/:id/:sn',
  1431. name: 'storeTransferOutEdit',
  1432. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/storeTransferOut/edit.vue'),
  1433. meta: {
  1434. title: '编辑店内调出',
  1435. icon: 'interaction',
  1436. hidden: true,
  1437. permission: 'B_storeCallOutEdit'
  1438. }
  1439. },
  1440. {
  1441. path: 'detail/:sn',
  1442. name: 'storeTransferOutDetail',
  1443. component: () => import(/* webpackChunkName: "allocationManagement" */ '@/views/allocationManagement/storeTransferOut/detail.vue'),
  1444. meta: {
  1445. title: '店内调出详情',
  1446. icon: 'interaction',
  1447. hidden: true,
  1448. permission: 'B_storeCallOutDetail'
  1449. }
  1450. }
  1451. ]
  1452. }
  1453. ]
  1454. },
  1455. // 库存管理
  1456. {
  1457. path: '/inventoryManagement',
  1458. redirect: '/inventoryManagement/inventoryQuery',
  1459. component: PageView,
  1460. meta: {
  1461. title: '库存管理',
  1462. icon: 'shop',
  1463. permission: 'M_inventory'
  1464. },
  1465. children: [
  1466. {
  1467. path: '/inventoryManagement/inventoryQuery',
  1468. redirect: '/inventoryManagement/inventoryQuery/list',
  1469. name: 'inventoryQuery',
  1470. component: BlankLayout,
  1471. meta: {
  1472. title: '库存查询',
  1473. icon: 'monitor',
  1474. permission: 'M_inventoryInventoryQueryList'
  1475. },
  1476. hideChildrenInMenu: true,
  1477. children: [
  1478. {
  1479. path: 'list',
  1480. name: 'inventoryQueryList',
  1481. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
  1482. meta: {
  1483. title: '库存列表',
  1484. icon: 'monitor',
  1485. hidden: true,
  1486. permission: 'M_inventoryInventoryQueryList'
  1487. }
  1488. },
  1489. {
  1490. path: 'warehouseDetail/:sn',
  1491. name: 'inventoryQueryWarehouseDetail',
  1492. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
  1493. meta: {
  1494. title: '出入库明细',
  1495. icon: 'monitor',
  1496. hidden: true,
  1497. replaceTab: true,
  1498. permission: 'B_inventoryInventoryQueryStock'
  1499. }
  1500. }
  1501. ]
  1502. },
  1503. {
  1504. path: '/inventoryManagement/inventoryWarning',
  1505. name: 'inventoryWarning',
  1506. redirect: '/inventoryManagement/inventoryWarning/list',
  1507. component: BlankLayout,
  1508. meta: {
  1509. title: '库存预警',
  1510. icon: 'alert',
  1511. permission: 'M_inventoryWarningList'
  1512. },
  1513. hideChildrenInMenu: true,
  1514. children: [
  1515. {
  1516. path: 'list',
  1517. name: 'inventoryWarningList',
  1518. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
  1519. meta: {
  1520. title: '库存预警',
  1521. icon: 'alert',
  1522. permission: 'M_inventoryWarningList'
  1523. }
  1524. }
  1525. ]
  1526. },
  1527. {
  1528. path: '/inventoryManagement/satelliteWarehouseInventory',
  1529. name: 'satelliteWarehouseInventory',
  1530. redirect: '/inventoryManagement/satelliteWarehouseInventory/list',
  1531. component: BlankLayout,
  1532. meta: {
  1533. title: '卫星仓库存',
  1534. icon: 'flag',
  1535. permission: 'M_satelliteWarehouseInventoryList'
  1536. },
  1537. hideChildrenInMenu: true,
  1538. children: [
  1539. {
  1540. path: 'list',
  1541. name: 'satelliteWarehouseInventoryList',
  1542. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/satelliteWarehouseInventory/list.vue'),
  1543. meta: {
  1544. title: '卫星仓库存',
  1545. icon: 'flag',
  1546. permission: 'M_satelliteWarehouseInventoryList'
  1547. }
  1548. }
  1549. ]
  1550. },
  1551. {
  1552. path: '/inventoryManagement/inventoryChecking',
  1553. redirect: '/inventoryManagement/inventoryChecking/list',
  1554. name: 'inventoryChecking',
  1555. component: BlankLayout,
  1556. meta: {
  1557. title: '库存盘点',
  1558. icon: 'reconciliation',
  1559. permission: 'M_inventoryCheckingList'
  1560. },
  1561. hideChildrenInMenu: true,
  1562. children: [
  1563. {
  1564. path: 'list',
  1565. name: 'inventoryCheckingList',
  1566. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryChecking/list.vue'),
  1567. meta: {
  1568. title: '库存盘点列表',
  1569. icon: 'reconciliation',
  1570. hidden: true,
  1571. permission: 'M_inventoryCheckingList'
  1572. }
  1573. },
  1574. {
  1575. path: 'overall/:id/:sn',
  1576. name: 'inventoryCheckingOverall',
  1577. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryChecking/overall.vue'),
  1578. meta: {
  1579. title: '编辑库存盘点【全盘】',
  1580. icon: 'reconciliation',
  1581. hidden: true,
  1582. permission: 'B_inventoryCheckingEdit'
  1583. }
  1584. },
  1585. {
  1586. path: 'selfDisk/:id/:sn',
  1587. name: 'inventoryCheckingSelfDisk',
  1588. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryChecking/selfDisk.vue'),
  1589. meta: {
  1590. title: '编辑库存盘点【自选盘点】',
  1591. icon: 'reconciliation',
  1592. hidden: true,
  1593. permission: 'B_inventoryCheckingEdit'
  1594. }
  1595. },
  1596. {
  1597. path: 'makeInventory/:id/:sn',
  1598. name: 'inventoryCheckingMakeInventory',
  1599. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryChecking/makeInventory.vue'),
  1600. meta: {
  1601. title: '盘点',
  1602. icon: 'reconciliation',
  1603. hidden: true,
  1604. replaceTab: true,
  1605. permission: 'B_inventoryCheckingInventory'
  1606. }
  1607. }
  1608. ]
  1609. },
  1610. {
  1611. path: '/inventoryManagement/inventoryImport',
  1612. redirect: '/inventoryManagement/inventoryImport/list',
  1613. name: 'inventoryImport',
  1614. component: BlankLayout,
  1615. meta: {
  1616. title: '库存导入',
  1617. icon: 'frown',
  1618. permission: 'M_inventoryImport'
  1619. },
  1620. hideChildrenInMenu: true,
  1621. children: [
  1622. {
  1623. path: 'list',
  1624. name: 'inventoryImportList',
  1625. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/inventoryImport/list.vue'),
  1626. meta: {
  1627. title: '库存导入列表',
  1628. icon: 'frown',
  1629. hidden: true,
  1630. permission: 'M_inventoryImport'
  1631. }
  1632. }
  1633. ]
  1634. },
  1635. {
  1636. path: '/inventoryManagement/warehouse',
  1637. redirect: '/inventoryManagement/warehouse/list',
  1638. name: 'warehouse',
  1639. component: BlankLayout,
  1640. meta: {
  1641. title: '仓库管理',
  1642. icon: 'deployment-unit',
  1643. permission: 'M_inventoryWarehouseList'
  1644. },
  1645. hideChildrenInMenu: true,
  1646. children: [
  1647. {
  1648. path: 'list',
  1649. name: 'warehouseList',
  1650. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/warehouse/list.vue'),
  1651. meta: {
  1652. title: '仓库列表',
  1653. icon: 'deployment-unit',
  1654. hidden: true,
  1655. permission: 'M_inventoryWarehouseList'
  1656. }
  1657. },
  1658. {
  1659. path: '/inventoryManagement/storingLocation/:sn',
  1660. name: 'storingLocationList',
  1661. component: () => import(/* webpackChunkName: "inventoryManagement" */ '@/views/inventoryManagement/warehouse/storingLocation/list.vue'),
  1662. meta: {
  1663. title: '仓位列表',
  1664. icon: 'deployment-unit',
  1665. hidden: true,
  1666. replaceTab: true,
  1667. permission: 'M_inventoryWarehouseStoringLocationList'
  1668. }
  1669. }
  1670. ]
  1671. }
  1672. ]
  1673. },
  1674. // 散件管理
  1675. {
  1676. path: '/bulkManagement',
  1677. redirect: '/bulkManagement/purchaseOrder',
  1678. component: PageView,
  1679. meta: {
  1680. title: '散件管理',
  1681. icon: 'gold',
  1682. permission: 'M_bulkManagement'
  1683. },
  1684. children: [
  1685. {
  1686. path: '/bulkManagement/bulkWarehousingOrder',
  1687. redirect: '/bulkManagement/bulkWarehousingOrder/list',
  1688. name: 'bulkWarehousingOrder',
  1689. component: BlankLayout,
  1690. meta: {
  1691. title: '散件入库',
  1692. icon: 'gold',
  1693. permission: 'M_bulkWarehousingOrderList'
  1694. },
  1695. hideChildrenInMenu: true,
  1696. children: [
  1697. {
  1698. path: 'list',
  1699. name: 'bulkWarehousingOrderList',
  1700. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkWarehousingOrder/list.vue'),
  1701. meta: {
  1702. title: '散件入库单列表',
  1703. icon: 'gold',
  1704. hidden: true,
  1705. permission: 'M_bulkWarehousingOrderList'
  1706. }
  1707. },
  1708. {
  1709. path: 'add/:id/:sn/:supplierSn',
  1710. name: 'bulkWarehousingOrderAdd',
  1711. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  1712. meta: {
  1713. title: '新增散件入库单',
  1714. icon: 'gold',
  1715. hidden: true,
  1716. permission: 'B_bulkWarehousingOrder_add'
  1717. }
  1718. },
  1719. {
  1720. path: 'edit/:id/:sn/:supplierSn',
  1721. name: 'bulkWarehousingOrderEdit',
  1722. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkWarehousingOrder/edit.vue'),
  1723. meta: {
  1724. title: '编辑散件入库单',
  1725. icon: 'gold',
  1726. hidden: true,
  1727. permission: 'B_bulkWarehousingOrder_edit'
  1728. }
  1729. },
  1730. {
  1731. path: 'detail/:id/:sn',
  1732. name: 'bulkWarehousingOrderDetail',
  1733. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkWarehousingOrder/detail.vue'),
  1734. meta: {
  1735. title: '散件入库单详情',
  1736. icon: 'gold',
  1737. hidden: true,
  1738. permission: 'B_bulkWarehousingOrder_detail'
  1739. }
  1740. }
  1741. ]
  1742. },
  1743. {
  1744. path: '/bulkManagement/bulkReturnGoods',
  1745. redirect: '/bulkManagement/bulkReturnGoods/list',
  1746. name: 'bulkReturnGoods',
  1747. component: BlankLayout,
  1748. meta: {
  1749. title: '散件退货',
  1750. icon: 'frown',
  1751. permission: 'M_bulkReturnGoodsList'
  1752. },
  1753. hideChildrenInMenu: true,
  1754. children: [
  1755. {
  1756. path: 'list',
  1757. name: 'bulkReturnGoodsList',
  1758. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkReturnGoods/list.vue'),
  1759. meta: {
  1760. title: '散件退货列表',
  1761. icon: 'frown',
  1762. hidden: true,
  1763. permission: 'M_bulkReturnGoodsList'
  1764. }
  1765. },
  1766. {
  1767. path: 'edit/:id/:sn/:supplierSn',
  1768. name: 'bulkReturnGoodsEdit',
  1769. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkReturnGoods/edit.vue'),
  1770. meta: {
  1771. title: '编辑散件退货单(不抓单)',
  1772. icon: 'frown',
  1773. hidden: true,
  1774. permission: 'B_bulkReturnGoodsEdit'
  1775. }
  1776. },
  1777. {
  1778. path: 'grabEdit/:id/:sn/:supplierSn',
  1779. name: 'bulkReturnGoodsGrabEdit',
  1780. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkReturnGoods/grabEdit.vue'),
  1781. meta: {
  1782. title: '编辑散件退货单(抓单)',
  1783. icon: 'frown',
  1784. hidden: true,
  1785. permission: 'B_bulkReturnGoodsEdit'
  1786. }
  1787. }
  1788. ]
  1789. },
  1790. {
  1791. path: '/bulkManagement/bulkImport',
  1792. redirect: '/bulkManagement/bulkImport/list',
  1793. name: 'bulkImport',
  1794. component: BlankLayout,
  1795. meta: {
  1796. title: '散件导入',
  1797. icon: 'frown',
  1798. permission: 'M_bulkImport'
  1799. },
  1800. hideChildrenInMenu: true,
  1801. children: [
  1802. {
  1803. path: 'list',
  1804. name: 'bulkImportList',
  1805. component: () => import(/* webpackChunkName: "bulkManagement" */ '@/views/bulkManagement/bulkImport/list.vue'),
  1806. meta: {
  1807. title: '散件导入列表',
  1808. icon: 'frown',
  1809. hidden: true,
  1810. permission: 'M_bulkImport'
  1811. }
  1812. }
  1813. ]
  1814. }
  1815. ]
  1816. },
  1817. // 报表
  1818. {
  1819. path: '/reportData',
  1820. redirect: '/reportData/chainStockReport',
  1821. component: PageView,
  1822. meta: {
  1823. title: '报表',
  1824. icon: 'project',
  1825. permission: 'M_reportData'
  1826. },
  1827. children: [
  1828. {
  1829. path: '/reportData/salesReport',
  1830. redirect: '/reportData/salesReport/index',
  1831. name: 'salesReport',
  1832. component: BlankLayout,
  1833. meta: {
  1834. title: '销售报表',
  1835. icon: 'profile',
  1836. permission: 'M_salesReportList,M_salesDetailReportList'
  1837. },
  1838. hideChildrenInMenu: true,
  1839. children: [
  1840. {
  1841. path: 'index',
  1842. name: 'salesReportIndex',
  1843. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReport/index.vue'),
  1844. meta: {
  1845. title: '销售报表',
  1846. icon: 'profile',
  1847. hidden: true,
  1848. permission: 'M_salesReportList,M_salesDetailReportList'
  1849. }
  1850. },
  1851. {
  1852. path: 'list',
  1853. name: 'salesReportList',
  1854. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReport/list.vue'),
  1855. meta: {
  1856. title: '销售报表列表',
  1857. icon: 'profile',
  1858. hidden: true,
  1859. permission: 'M_salesReportList'
  1860. }
  1861. },
  1862. {
  1863. path: 'list',
  1864. name: 'salesDetailReportList',
  1865. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesDetailReport/list.vue'),
  1866. meta: {
  1867. title: '销售明细报表列表',
  1868. icon: 'profile',
  1869. hidden: true,
  1870. permission: 'M_salesDetailReportList'
  1871. }
  1872. }
  1873. ]
  1874. },
  1875. {
  1876. path: '/reportData/customerReport',
  1877. redirect: '/reportData/customerReport/list',
  1878. name: 'customerReport',
  1879. component: BlankLayout,
  1880. meta: {
  1881. title: '大客户报表',
  1882. icon: 'profile',
  1883. permission: 'M_customerReportList'
  1884. },
  1885. hideChildrenInMenu: true,
  1886. children: [
  1887. {
  1888. path: 'list',
  1889. name: 'customerReportList',
  1890. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/customerReport/list.vue'),
  1891. meta: {
  1892. title: '大客户报表列表',
  1893. icon: 'profile',
  1894. hidden: true,
  1895. permission: 'M_customerReportList'
  1896. }
  1897. }
  1898. ]
  1899. },
  1900. {
  1901. path: '/reportData/customerSalesDetailsReport',
  1902. redirect: '/reportData/customerSalesDetailsReport/list',
  1903. name: 'customerSalesDetailsReport',
  1904. component: BlankLayout,
  1905. meta: {
  1906. title: '客户销售明细报表',
  1907. icon: 'profile',
  1908. permission: 'M_customerSalesDetailsReport_list'
  1909. },
  1910. hideChildrenInMenu: true,
  1911. children: [
  1912. {
  1913. path: 'list',
  1914. name: 'customerSalesDetailsReportList',
  1915. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/customerSalesDetailsReport/list.vue'),
  1916. meta: {
  1917. title: '客户销售明细列表',
  1918. icon: 'profile',
  1919. hidden: true,
  1920. permission: 'M_customerSalesDetailsReport_list'
  1921. }
  1922. }
  1923. ]
  1924. },
  1925. {
  1926. path: '/reportData/salesReturnReport',
  1927. redirect: '/reportData/salesReturnReport/index',
  1928. name: 'salesReturnReport',
  1929. component: BlankLayout,
  1930. meta: {
  1931. title: '销售退货报表',
  1932. icon: 'profile',
  1933. permission: 'M_salesReturnReportList'
  1934. },
  1935. hideChildrenInMenu: true,
  1936. children: [
  1937. {
  1938. path: 'index',
  1939. name: 'salesReturnReportIndex',
  1940. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/salesReturnReport/index.vue'),
  1941. meta: {
  1942. title: '销售退货报表',
  1943. icon: 'profile',
  1944. hidden: true,
  1945. permission: 'M_salesReturnReportList'
  1946. }
  1947. },
  1948. ]
  1949. },
  1950. {
  1951. path: '/reportData/stockIncomeReport',
  1952. redirect: '/reportData/stockIncomeReport/list',
  1953. name: 'stockIncomeReport',
  1954. component: BlankLayout,
  1955. meta: {
  1956. title: '库存总入报表',
  1957. icon: 'profile',
  1958. permission: 'M_stockIncomeReportList'
  1959. },
  1960. hideChildrenInMenu: true,
  1961. children: [
  1962. {
  1963. path: 'list',
  1964. name: 'stockIncomeReportList',
  1965. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/stockIncomeReport/list.vue'),
  1966. meta: {
  1967. title: '库存总入报表列表',
  1968. icon: 'profile',
  1969. hidden: true,
  1970. permission: 'M_stockIncomeReportList'
  1971. }
  1972. }
  1973. ]
  1974. },
  1975. {
  1976. path: '/reportData/stockExpenditureReport',
  1977. redirect: '/reportData/stockExpenditureReport/list',
  1978. name: 'stockExpenditureReport',
  1979. component: BlankLayout,
  1980. meta: {
  1981. title: '库存总出报表',
  1982. icon: 'profile',
  1983. permission: 'M_stockExpenditureReportList'
  1984. },
  1985. hideChildrenInMenu: true,
  1986. children: [
  1987. {
  1988. path: 'list',
  1989. name: 'stockExpenditureReportList',
  1990. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/stockExpenditureReport/list.vue'),
  1991. meta: {
  1992. title: '库存总出报表列表',
  1993. icon: 'profile',
  1994. hidden: true,
  1995. permission: 'M_stockExpenditureReportList'
  1996. }
  1997. }
  1998. ]
  1999. },
  2000. {
  2001. path: '/reportData/stockImportReport',
  2002. redirect: '/reportData/stockImportReport/index',
  2003. name: 'stockImportReport',
  2004. component: BlankLayout,
  2005. meta: {
  2006. title: '库存/散件导入报表',
  2007. icon: 'profile',
  2008. permission: 'M_stockImportReportList'
  2009. },
  2010. hideChildrenInMenu: true,
  2011. children: [
  2012. {
  2013. path: 'index',
  2014. name: 'stockImportReportIndex',
  2015. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/stockImportReport/index.vue'),
  2016. meta: {
  2017. title: '库存/散件导入报表',
  2018. icon: 'profile',
  2019. hidden: true,
  2020. permission: 'M_stockImportReportList'
  2021. }
  2022. },
  2023. ]
  2024. },
  2025. {
  2026. path: '/reportData/receivedSendStorageReport',
  2027. redirect: '/reportData/receivedSendStorageReport/list',
  2028. name: 'receivedSendStorageReport',
  2029. component: BlankLayout,
  2030. meta: {
  2031. title: '收发存报表',
  2032. icon: 'profile',
  2033. permission: 'M_receivedSendStorageReportList'
  2034. },
  2035. hideChildrenInMenu: true,
  2036. children: [
  2037. {
  2038. path: 'list',
  2039. name: 'receivedSendStorageReportList',
  2040. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/receivedSendStorageReport/list.vue'),
  2041. meta: {
  2042. title: '收发存报表列表',
  2043. icon: 'profile',
  2044. hidden: true,
  2045. permission: 'M_receivedSendStorageReportList'
  2046. }
  2047. }
  2048. ]
  2049. },
  2050. {
  2051. path: '/reportData/storeReceivedSendStorageReport',
  2052. redirect: '/reportData/storeReceivedSendStorageReport/list',
  2053. name: 'storeReceivedSendStorageReport',
  2054. component: BlankLayout,
  2055. meta: {
  2056. title: '门店收发存汇总报表',
  2057. icon: 'profile',
  2058. permission: 'M_storeReceivedSendStorageReport_list'
  2059. },
  2060. hideChildrenInMenu: true,
  2061. children: [
  2062. {
  2063. path: 'list',
  2064. name: 'storeReceivedSendStorageReportList',
  2065. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/storeReceivedSendStorageReport/list.vue'),
  2066. meta: {
  2067. title: '门店收发存汇总列表',
  2068. icon: 'profile',
  2069. hidden: true,
  2070. permission: 'M_storeReceivedSendStorageReport_list'
  2071. }
  2072. }
  2073. ]
  2074. },
  2075. {
  2076. path: '/reportData/inventoryReport',
  2077. redirect: '/reportData/inventoryReport/list',
  2078. name: 'inventoryReport',
  2079. component: BlankLayout,
  2080. meta: {
  2081. title: '盘点报表',
  2082. icon: 'profile',
  2083. permission: 'M_inventoryReportList'
  2084. },
  2085. hideChildrenInMenu: true,
  2086. children: [
  2087. {
  2088. path: 'list',
  2089. name: 'inventoryReportList',
  2090. component: () => import(/* webpackChunkName: "reportData1" */ '@/views/reportData/inventoryReport/list.vue'),
  2091. meta: {
  2092. title: '盘点报表列表',
  2093. icon: 'profile',
  2094. hidden: true,
  2095. permission: 'M_inventoryReportList'
  2096. }
  2097. }
  2098. ]
  2099. },
  2100. {
  2101. path: '/reportData/purchaseReceiptReport',
  2102. redirect: '/reportData/purchaseReceiptReport/list',
  2103. name: 'purchaseReceiptReport',
  2104. component: BlankLayout,
  2105. meta: {
  2106. title: '采购入库报表',
  2107. icon: 'profile',
  2108. permission: 'M_purchaseReceiptReportList'
  2109. },
  2110. hideChildrenInMenu: true,
  2111. children: [
  2112. {
  2113. path: 'list',
  2114. name: 'purchaseReceiptReportList',
  2115. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/purchaseReceiptReport/list.vue'),
  2116. meta: {
  2117. title: '采购入库报表列表',
  2118. icon: 'profile',
  2119. hidden: true,
  2120. permission: 'M_purchaseReceiptReportList'
  2121. }
  2122. }
  2123. ]
  2124. },
  2125. {
  2126. path: '/reportData/bulkWarehousingReport',
  2127. redirect: '/reportData/bulkWarehousingReport/index',
  2128. name: 'bulkWarehousingReport',
  2129. component: BlankLayout,
  2130. meta: {
  2131. title: '散件入库报表',
  2132. icon: 'profile',
  2133. permission: 'M_bulkWarehousingReportList'
  2134. },
  2135. hideChildrenInMenu: true,
  2136. children: [
  2137. {
  2138. path: 'index',
  2139. name: 'bulkWarehousingReportIndex',
  2140. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/bulkWarehousingReport/index.vue'),
  2141. meta: {
  2142. title: '散件入库报表',
  2143. icon: 'profile',
  2144. hidden: true,
  2145. permission: 'M_bulkWarehousingReportList'
  2146. }
  2147. },
  2148. ]
  2149. },
  2150. {
  2151. path: '/reportData/bulkReturnReport',
  2152. redirect: '/reportData/bulkReturnReport/index',
  2153. name: 'bulkReturnReport',
  2154. component: BlankLayout,
  2155. meta: {
  2156. title: '散件退货报表',
  2157. icon: 'profile',
  2158. permission: 'M_bulkReturnReportList'
  2159. },
  2160. hideChildrenInMenu: true,
  2161. children: [
  2162. {
  2163. path: 'index',
  2164. name: 'bulkReturnReportIndex',
  2165. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/bulkReturnReport/index.vue'),
  2166. meta: {
  2167. title: '散件退货报表',
  2168. icon: 'profile',
  2169. hidden: true,
  2170. permission: 'M_bulkReturnReportList'
  2171. }
  2172. },
  2173. ]
  2174. },
  2175. {
  2176. path: '/reportData/storeTransferOutReport',
  2177. redirect: '/reportData/storeTransferOutReport/index',
  2178. name: 'storeTransferOutReport',
  2179. component: BlankLayout,
  2180. meta: {
  2181. title: '店内调出报表',
  2182. icon: 'profile',
  2183. permission: 'M_storeTransferOutReportList'
  2184. },
  2185. hideChildrenInMenu: true,
  2186. children: [
  2187. {
  2188. path: 'index',
  2189. name: 'storeTransferOutReportIndex',
  2190. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/storeTransferOutReport/index.vue'),
  2191. meta: {
  2192. title: '店内调出报表',
  2193. icon: 'profile',
  2194. hidden: true,
  2195. permission: 'M_storeTransferOutReportList'
  2196. }
  2197. },
  2198. {
  2199. path: 'list',
  2200. name: 'storeTransferOutReportList',
  2201. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/storeTransferOutReport/list.vue'),
  2202. meta: {
  2203. title: '店内调出报表列表',
  2204. icon: 'profile',
  2205. hidden: true,
  2206. }
  2207. },
  2208. {
  2209. path: 'list',
  2210. name: 'storeTransferOutDetailReportList',
  2211. component: () => import(/* webpackChunkName: "reportData" */ '@/views/reportData/storeTransferOutReport/detailList.vue'),
  2212. meta: {
  2213. title: '店内调出明细报表列表',
  2214. icon: 'profile',
  2215. hidden: true,
  2216. }
  2217. }
  2218. ]
  2219. },
  2220. ]
  2221. },
  2222. // 连锁报表
  2223. {
  2224. path: '/chainReportData',
  2225. redirect: '/chainReportData/chainStockReport',
  2226. component: PageView,
  2227. meta: {
  2228. title: '连锁报表',
  2229. icon: 'fund',
  2230. permission: 'M_reportData'
  2231. },
  2232. children: [
  2233. {
  2234. path: '/chainReportData/chainSalesReport',
  2235. redirect: '/chainReportData/chainSalesReport/index',
  2236. name: 'chainSalesReport',
  2237. component: BlankLayout,
  2238. meta: {
  2239. title: '连锁销售报表',
  2240. icon: 'profile',
  2241. permission: 'M_chainSalesReportList,M_chainSalesDetailReportList'
  2242. },
  2243. hideChildrenInMenu: true,
  2244. children: [
  2245. {
  2246. path: 'index',
  2247. name: 'chainSalesReportIndex',
  2248. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainSalesReport/index.vue'),
  2249. meta: {
  2250. title: '连锁销售报表',
  2251. icon: 'profile',
  2252. hidden: true,
  2253. permission: 'M_chainSalesReportList,M_chainSalesDetailReportList'
  2254. }
  2255. },
  2256. {
  2257. path: 'list',
  2258. name: 'chainSalesReportList',
  2259. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainSalesReport/list.vue'),
  2260. meta: {
  2261. title: '连锁销售报表列表',
  2262. icon: 'profile',
  2263. hidden: true,
  2264. permission: 'M_chainSalesReportList'
  2265. }
  2266. },
  2267. {
  2268. path: 'detailList',
  2269. name: 'chainSalesDetailReportList',
  2270. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainSalesDetailReport/list.vue'),
  2271. meta: {
  2272. title: '连锁销售明细报表列表',
  2273. icon: 'profile',
  2274. hidden: true,
  2275. permission: 'M_chainSalesDetailReportList'
  2276. }
  2277. }
  2278. ]
  2279. },
  2280. {
  2281. path: '/chainReportData/chainSalesDetailsCountReport',
  2282. redirect: '/chainReportData/chainSalesDetailsCountReport/list',
  2283. name: 'chainSalesDetailsCountReport',
  2284. component: BlankLayout,
  2285. meta: {
  2286. title: '连锁销售明细合计报表',
  2287. icon: 'profile',
  2288. permission: 'M_chainSalesDetailsCountReport_list'
  2289. },
  2290. hideChildrenInMenu: true,
  2291. children: [
  2292. {
  2293. path: 'list',
  2294. name: 'chainSalesDetailsCountReportList',
  2295. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainSalesDetailsCountReport/list.vue'),
  2296. meta: {
  2297. title: '连锁销售明细合计列表',
  2298. icon: 'profile',
  2299. hidden: true,
  2300. permission: 'M_chainSalesDetailsCountReport_list'
  2301. }
  2302. }
  2303. ]
  2304. },
  2305. {
  2306. path: '/chainReportData/chainCustomerReport',
  2307. redirect: '/chainReportData/chainCustomerReport/list',
  2308. name: 'chainCustomerReport',
  2309. component: BlankLayout,
  2310. meta: {
  2311. title: '连锁大客户报表',
  2312. icon: 'profile',
  2313. permission: 'M_chainCustomerReportList'
  2314. },
  2315. hideChildrenInMenu: true,
  2316. children: [
  2317. {
  2318. path: 'list',
  2319. name: 'chainCustomerReportList',
  2320. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainCustomerReport/list.vue'),
  2321. meta: {
  2322. title: '连锁大客户报表列表',
  2323. icon: 'profile',
  2324. hidden: true,
  2325. permission: 'M_chainCustomerReportList'
  2326. }
  2327. }
  2328. ]
  2329. },
  2330. {
  2331. path: '/chainReportData/chainStockIncomeReport',
  2332. redirect: '/chainReportData/chainStockIncomeReport/list',
  2333. name: 'chainStockIncomeReport',
  2334. component: BlankLayout,
  2335. meta: {
  2336. title: '连锁库存总入报表',
  2337. icon: 'profile',
  2338. permission: 'M_chainStockIncomeReportList'
  2339. },
  2340. hideChildrenInMenu: true,
  2341. children: [
  2342. {
  2343. path: 'list',
  2344. name: 'chainStockIncomeReportList',
  2345. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainStockIncomeReport/list.vue'),
  2346. meta: {
  2347. title: '连锁库存总入报表列表',
  2348. icon: 'profile',
  2349. hidden: true,
  2350. permission: 'M_chainStockIncomeReportList'
  2351. }
  2352. }
  2353. ]
  2354. },
  2355. {
  2356. path: '/chainReportData/chainStockExpenditureReport',
  2357. redirect: '/chainReportData/chainStockExpenditureReport/list',
  2358. name: 'chainStockExpenditureReport',
  2359. component: BlankLayout,
  2360. meta: {
  2361. title: '连锁库存总出报表',
  2362. icon: 'profile',
  2363. permission: 'M_chainStockExpenditureReportList'
  2364. },
  2365. hideChildrenInMenu: true,
  2366. children: [
  2367. {
  2368. path: 'list',
  2369. name: 'chainStockExpenditureReportList',
  2370. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainStockExpenditureReport/list.vue'),
  2371. meta: {
  2372. title: '连锁库存总出报表列表',
  2373. icon: 'profile',
  2374. hidden: true,
  2375. permission: 'M_chainStockExpenditureReportList'
  2376. }
  2377. }
  2378. ]
  2379. },
  2380. {
  2381. path: '/chainReportData/chainStockReport',
  2382. redirect: '/chainReportData/chainStockReport/list',
  2383. name: 'chainStockReport',
  2384. component: BlankLayout,
  2385. meta: {
  2386. title: '连锁库存总表',
  2387. icon: 'profile',
  2388. permission: 'M_chainStockReportList'
  2389. },
  2390. hideChildrenInMenu: true,
  2391. children: [
  2392. {
  2393. path: 'list',
  2394. name: 'chainStockReportList',
  2395. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainStockReport/list.vue'),
  2396. meta: {
  2397. title: '连锁库存总表列表',
  2398. icon: 'profile',
  2399. hidden: true,
  2400. permission: 'M_chainStockReportList'
  2401. }
  2402. }
  2403. ]
  2404. },
  2405. {
  2406. path: '/chainReportData/chainPurchaseReceiptReport',
  2407. redirect: '/chainReportData/chainPurchaseReceiptReport/list',
  2408. name: 'chainPurchaseReceiptReport',
  2409. component: BlankLayout,
  2410. meta: {
  2411. title: '连锁采购入库报表',
  2412. icon: 'profile',
  2413. permission: 'M_chainPurchaseReceiptReportList'
  2414. },
  2415. hideChildrenInMenu: true,
  2416. children: [
  2417. {
  2418. path: 'list',
  2419. name: 'chainPurchaseReceiptReportList',
  2420. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainPurchaseReceiptReport/list.vue'),
  2421. meta: {
  2422. title: '连锁采购入库报表列表',
  2423. icon: 'profile',
  2424. hidden: true,
  2425. permission: 'M_chainPurchaseReceiptReportList'
  2426. }
  2427. }
  2428. ]
  2429. },
  2430. {
  2431. path: '/chainReportData/chainReceivedSendStorageReport',
  2432. redirect: '/chainReportData/chainReceivedSendStorageReport/list',
  2433. name: 'chainReceivedSendStorageReport',
  2434. component: BlankLayout,
  2435. meta: {
  2436. title: '连锁收发存报表',
  2437. icon: 'profile',
  2438. permission: 'M_chainReceivedSendStorageReportList'
  2439. },
  2440. hideChildrenInMenu: true,
  2441. children: [
  2442. {
  2443. path: 'list',
  2444. name: 'chainReceivedSendStorageReportList',
  2445. component: () => import(/* webpackChunkName: "chainReportData" */ '@/views/chainReportData/chainReceivedSendStorageReport/list.vue'),
  2446. meta: {
  2447. title: '连锁收发存报表列表',
  2448. icon: 'profile',
  2449. hidden: true,
  2450. permission: 'M_chainReceivedSendStorageReportList'
  2451. }
  2452. }
  2453. ]
  2454. }
  2455. ]
  2456. },
  2457. // 客户管理
  2458. {
  2459. path: '/customerManagement',
  2460. redirect: '/customerManagement/customerInfo',
  2461. component: PageView,
  2462. meta: {
  2463. title: '客户管理',
  2464. icon: 'idcard',
  2465. permission: 'M_customerInfoList'
  2466. },
  2467. children: [
  2468. {
  2469. path: '/customerManagement/customerInfo',
  2470. redirect: '/customerManagement/customerInfo/list',
  2471. name: 'customerInfo',
  2472. component: BlankLayout,
  2473. meta: {
  2474. title: '客户管理',
  2475. icon: 'idcard',
  2476. permission: 'M_customerInfoList'
  2477. },
  2478. hideChildrenInMenu: true,
  2479. children: [
  2480. {
  2481. path: 'list',
  2482. name: 'customerInfoList',
  2483. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/list.vue'),
  2484. meta: {
  2485. title: '客户列表',
  2486. icon: 'idcard',
  2487. hidden: true,
  2488. permission: 'M_customerInfoList'
  2489. }
  2490. },
  2491. {
  2492. path: 'add',
  2493. name: 'customerInfoAdd',
  2494. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  2495. meta: {
  2496. title: '新增客户',
  2497. icon: 'idcard',
  2498. hidden: true,
  2499. permission: 'B_customer_customerInfo_add'
  2500. }
  2501. },
  2502. {
  2503. path: 'edit/:id',
  2504. name: 'customerInfoEdit',
  2505. component: () => import(/* webpackChunkName: "customerManagement" */ '@/views/customerManagement/customerInfo/edit.vue'),
  2506. meta: {
  2507. title: '编辑客户',
  2508. icon: 'idcard',
  2509. hidden: true,
  2510. permission: 'B_customer_customerInfo_edit'
  2511. }
  2512. }
  2513. ]
  2514. }
  2515. ]
  2516. },
  2517. // 产品管理
  2518. {
  2519. path: '/productManagement',
  2520. redirect: '/productManagement/productInfo',
  2521. component: PageView,
  2522. meta: {
  2523. title: '产品管理',
  2524. icon: 'shopping',
  2525. permission: 'M_product'
  2526. },
  2527. children: [
  2528. {
  2529. path: '/productManagement/productInfo',
  2530. redirect: '/productManagement/productInfo/list',
  2531. name: 'productInfo',
  2532. component: BlankLayout,
  2533. meta: {
  2534. title: '产品信息管理(自建)',
  2535. icon: 'file-text',
  2536. permission: 'M_dealerProductList'
  2537. },
  2538. hideChildrenInMenu: true,
  2539. children: [
  2540. {
  2541. path: 'list',
  2542. name: 'productInfoList',
  2543. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/list.vue'),
  2544. meta: {
  2545. title: '产品信息列表(自建)',
  2546. icon: 'file-text',
  2547. hidden: true,
  2548. permission: 'M_dealerProductList'
  2549. }
  2550. },
  2551. {
  2552. path: 'add',
  2553. name: 'productInfoAdd',
  2554. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/edit.vue'),
  2555. meta: {
  2556. title: '新增产品',
  2557. icon: 'file-text',
  2558. hidden: true,
  2559. permission: 'B_product_dealerProduct_add'
  2560. }
  2561. },
  2562. {
  2563. path: 'edit/:id',
  2564. name: 'productInfoEdit',
  2565. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfo/edit.vue'),
  2566. meta: {
  2567. title: '编辑产品',
  2568. icon: 'file-text',
  2569. hidden: true,
  2570. permission: 'B_product_dealerProduct_edit'
  2571. }
  2572. }
  2573. ]
  2574. },
  2575. {
  2576. path: '/productManagement/productInfoJg',
  2577. redirect: '/productManagement/productInfoJg/list',
  2578. name: 'productInfoJg',
  2579. component: BlankLayout,
  2580. meta: {
  2581. title: '产品信息管理(箭冠)',
  2582. icon: 'file-text',
  2583. permission: 'M_productInfoList'
  2584. },
  2585. hideChildrenInMenu: true,
  2586. children: [
  2587. {
  2588. path: 'list',
  2589. name: 'productInfoJgList',
  2590. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productInfoJg/list.vue'),
  2591. meta: {
  2592. title: '产品信息列表(箭冠)',
  2593. icon: 'file-text',
  2594. hidden: true,
  2595. permission: 'M_productInfoList'
  2596. }
  2597. }
  2598. ]
  2599. },
  2600. {
  2601. path: '/productManagement/productOnlineInfo',
  2602. redirect: '/productManagement/productOnlineInfo/list',
  2603. name: 'productOnlineInfo',
  2604. component: BlankLayout,
  2605. meta: {
  2606. title: '产品上线信息',
  2607. icon: 'file-text',
  2608. permission: 'M_productOnlineInfoList'
  2609. },
  2610. hideChildrenInMenu: true,
  2611. children: [
  2612. {
  2613. path: 'list',
  2614. name: 'productOnlineInfoList',
  2615. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productOnlineInfo/list.vue'),
  2616. meta: {
  2617. title: '产品上线信息列表',
  2618. icon: 'file-text',
  2619. hidden: true,
  2620. permission: 'M_productOnlineInfoList'
  2621. }
  2622. }
  2623. ]
  2624. },
  2625. {
  2626. path: '/productManagement/newProductList',
  2627. redirect: '/newProduct/list/:onlineFalg',
  2628. name: 'newProductList',
  2629. component: BlankLayout,
  2630. meta: {
  2631. title: '产品信息',
  2632. icon: 'sketch',
  2633. permission: 'M_newProductList'
  2634. },
  2635. hideChildrenInMenu: true,
  2636. children: [
  2637. // 新品列表-下线产品
  2638. {
  2639. path: '/newProduct/list/:onlineFalg',
  2640. name: 'newProductList',
  2641. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/newProduct/list'),
  2642. meta: {
  2643. title: '新品信息',
  2644. icon: 'file-text',
  2645. hidden: true
  2646. }
  2647. },
  2648. // 产品详情
  2649. {
  2650. path: '/viewProduct/:sn',
  2651. name: 'viewProduct',
  2652. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/newProduct/detail'),
  2653. meta: {
  2654. title: '产品详情',
  2655. icon: 'file-text',
  2656. replaceTab: true,
  2657. hidden: true
  2658. }
  2659. }
  2660. ]
  2661. },
  2662. {
  2663. path: '/productManagement/productBrand',
  2664. redirect: '/productManagement/productBrand/list',
  2665. name: 'productBrand',
  2666. component: BlankLayout,
  2667. meta: {
  2668. title: '产品品牌管理',
  2669. icon: 'sketch',
  2670. permission: 'M_dealerProductBrandList'
  2671. },
  2672. hideChildrenInMenu: true,
  2673. children: [
  2674. {
  2675. path: 'list',
  2676. name: 'productBrandList',
  2677. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productBrand/list.vue'),
  2678. meta: {
  2679. title: '产品品牌列表',
  2680. icon: 'sketch',
  2681. hidden: true,
  2682. permission: 'M_dealerProductBrandList'
  2683. }
  2684. }
  2685. ]
  2686. },
  2687. {
  2688. path: '/productManagement/productCategory',
  2689. redirect: '/productManagement/productCategory/list',
  2690. name: 'productCategory',
  2691. component: BlankLayout,
  2692. meta: {
  2693. title: '产品分类管理',
  2694. icon: 'sliders',
  2695. permission: 'M_dealerProductTypeList'
  2696. },
  2697. hideChildrenInMenu: true,
  2698. children: [
  2699. {
  2700. path: 'list',
  2701. name: 'productCategoryList',
  2702. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/productCategory/list.vue'),
  2703. meta: {
  2704. title: '产品分类列表',
  2705. icon: 'sliders',
  2706. hidden: true,
  2707. permission: 'M_dealerProductTypeList'
  2708. }
  2709. }
  2710. ]
  2711. },
  2712. {
  2713. path: '/productManagement/priceChangeRecord',
  2714. redirect: '/productManagement/priceChangeRecord/list',
  2715. name: 'priceChangeRecord',
  2716. component: BlankLayout,
  2717. meta: {
  2718. title: '价格变更记录',
  2719. icon: 'sketch',
  2720. permission: 'M_priceChangeRecordList'
  2721. },
  2722. hideChildrenInMenu: true,
  2723. children: [
  2724. {
  2725. path: 'list',
  2726. name: 'priceChangeRecordList',
  2727. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/productManagement/priceChangeRecord/list.vue'),
  2728. meta: {
  2729. title: '价格变更记录列表',
  2730. icon: 'sketch',
  2731. hidden: true,
  2732. permission: 'M_priceChangeRecordList'
  2733. }
  2734. }
  2735. ]
  2736. }
  2737. ]
  2738. },
  2739. // 供应商管理
  2740. {
  2741. path: '/supplierManagement',
  2742. redirect: '/supplierManagement/supplierInfo',
  2743. component: PageView,
  2744. meta: {
  2745. title: '供应商管理',
  2746. icon: 'contacts',
  2747. permission: 'M_supplierInfoList'
  2748. },
  2749. children: [
  2750. {
  2751. path: '/supplierManagement/supplierInfo',
  2752. redirect: '/supplierManagement/supplierInfo/list',
  2753. name: 'supplierInfo',
  2754. component: BlankLayout,
  2755. meta: {
  2756. title: '供应商管理',
  2757. icon: 'contacts',
  2758. permission: 'M_supplierInfoList'
  2759. },
  2760. hideChildrenInMenu: true,
  2761. children: [
  2762. {
  2763. path: 'list',
  2764. name: 'supplierInfoList',
  2765. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/supplierManagement/supplierInfo/list.vue'),
  2766. meta: {
  2767. title: '供应商列表',
  2768. icon: 'contacts',
  2769. hidden: true,
  2770. permission: 'M_supplierInfoList'
  2771. }
  2772. }
  2773. ]
  2774. }
  2775. ]
  2776. },
  2777. // 中心店/配送店管理
  2778. {
  2779. path: '/storeManagement',
  2780. redirect: '/storeManagement/bind',
  2781. component: PageView,
  2782. meta: {
  2783. title: '中心店/配送店管理',
  2784. icon: 'bank',
  2785. permission: 'M_storeManagement'
  2786. },
  2787. children: [
  2788. {
  2789. path: '/storeManagement/bind',
  2790. redirect: '/storeManagement/bind/list',
  2791. name: 'storeManagementBind',
  2792. component: BlankLayout,
  2793. meta: {
  2794. title: '中心店/配送店绑定',
  2795. icon: 'link',
  2796. permission: 'M_storeManagementBindList'
  2797. },
  2798. hideChildrenInMenu: true,
  2799. children: [
  2800. {
  2801. path: 'list',
  2802. name: 'storeManagementBindList',
  2803. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/storeManagement/bind/list.vue'),
  2804. meta: {
  2805. title: '中心店/配送店绑定列表',
  2806. icon: 'link',
  2807. hidden: true,
  2808. permission: 'M_storeManagementBindList'
  2809. }
  2810. }
  2811. ]
  2812. },
  2813. {
  2814. path: '/storeManagement/userAuthorization',
  2815. redirect: '/storeManagement/userAuthorization/list',
  2816. name: 'storeManagementUserAuth',
  2817. component: BlankLayout,
  2818. meta: {
  2819. title: '中心店用户授权',
  2820. icon: 'link',
  2821. permission: 'M_storeManagementUserAuthList'
  2822. },
  2823. hideChildrenInMenu: true,
  2824. children: [
  2825. {
  2826. path: 'list',
  2827. name: 'storeManagementUserAuthList',
  2828. component: () => import(/* webpackChunkName: "productManagement" */ '@/views/storeManagement/userAuthorization/list.vue'),
  2829. meta: {
  2830. title: '中心店用户授权列表',
  2831. icon: 'link',
  2832. hidden: true,
  2833. permission: 'M_storeManagementUserAuthList'
  2834. }
  2835. }
  2836. ]
  2837. }
  2838. ]
  2839. },
  2840. // 基础设置
  2841. {
  2842. path: '/basicData',
  2843. redirect: '/basicData/storeTransferOutTypeManagement',
  2844. component: PageView,
  2845. meta: {
  2846. title: '基础设置',
  2847. icon: 'setting',
  2848. permission: 'M_basicData'
  2849. },
  2850. children: [
  2851. {
  2852. path: '/basicData/storeTransferOutTypeManagement',
  2853. redirect: '/basicData/storeTransferOutTypeManagement/list',
  2854. name: 'storeTransferOutTypeManagement',
  2855. component: BlankLayout,
  2856. meta: {
  2857. title: '店内调出类型管理',
  2858. icon: 'interaction',
  2859. permission: 'M_storeTransferOutTypeList'
  2860. },
  2861. hideChildrenInMenu: true,
  2862. children: [
  2863. {
  2864. path: 'list',
  2865. name: 'storeTransferOutTypeManagementList',
  2866. component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/storeTransferOutTypeManagement/list.vue'),
  2867. meta: {
  2868. title: '店内调出类型管理列表',
  2869. icon: 'interaction',
  2870. hidden: true,
  2871. permission: 'M_storeTransferOutTypeList'
  2872. }
  2873. }
  2874. ]
  2875. },
  2876. {
  2877. path: '/basicData/bulkPartsTypeManagement',
  2878. redirect: '/basicData/bulkPartsTypeManagement/list',
  2879. name: 'bulkPartsTypeManagement',
  2880. component: BlankLayout,
  2881. meta: {
  2882. title: '散件入库类型管理',
  2883. icon: 'gold',
  2884. permission: 'M_bulkPartsTypeList'
  2885. },
  2886. hideChildrenInMenu: true,
  2887. children: [
  2888. {
  2889. path: 'list',
  2890. name: 'bulkPartsTypeManagementList',
  2891. component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/bulkPartsTypeManagement/list.vue'),
  2892. meta: {
  2893. title: '散件入库类型列表',
  2894. icon: 'gold',
  2895. hidden: true,
  2896. permission: 'M_bulkPartsTypeList'
  2897. }
  2898. }
  2899. ]
  2900. },
  2901. {
  2902. path: '/basicData/expenseType',
  2903. redirect: '/basicData/expenseType/list',
  2904. name: 'expenseType',
  2905. component: BlankLayout,
  2906. meta: {
  2907. title: '费用类型管理',
  2908. icon: 'pay-circle',
  2909. permission: 'M_expenseTypeList'
  2910. },
  2911. hideChildrenInMenu: true,
  2912. children: [
  2913. {
  2914. path: 'list',
  2915. name: 'expenseTypeList',
  2916. component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/expenseType/list.vue'),
  2917. meta: {
  2918. title: '费用类型列表',
  2919. icon: 'pay-circle',
  2920. hidden: true,
  2921. permission: 'M_expenseTypeList'
  2922. }
  2923. }
  2924. ]
  2925. },
  2926. // {
  2927. // path: '/basicData/processSettings',
  2928. // redirect: '/basicData/processSettings/setup',
  2929. // name: 'processSettings',
  2930. // component: BlankLayout,
  2931. // meta: {
  2932. // title: '业务自动化设置',
  2933. // icon: 'sliders'
  2934. // // permission: 'M_goodsManage_list'
  2935. // },
  2936. // hideChildrenInMenu: true,
  2937. // children: [
  2938. // {
  2939. // path: 'setup',
  2940. // name: 'processSettingsSetup',
  2941. // component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/processSettings/setup.vue'),
  2942. // meta: {
  2943. // title: '业务自动化设置',
  2944. // icon: 'sliders',
  2945. // hidden: true
  2946. // // permission: 'M_goodsManage_list'
  2947. // }
  2948. // }
  2949. // ]
  2950. // },
  2951. {
  2952. path: '/basicData/customerTypeManagement',
  2953. redirect: '/basicData/customerTypeManagement/list',
  2954. name: 'customerTypeManagement',
  2955. component: BlankLayout,
  2956. meta: {
  2957. title: '客户类型管理',
  2958. icon: 'idcard',
  2959. permission: 'M_customerTypeList'
  2960. },
  2961. hideChildrenInMenu: true,
  2962. children: [
  2963. {
  2964. path: 'list',
  2965. name: 'customerTypeManagementList',
  2966. component: () => import(/* webpackChunkName: "basicData" */ '@/views/basicData/customerTypeManagement/list.vue'),
  2967. meta: {
  2968. title: '客户类型列表',
  2969. icon: 'idcard',
  2970. hidden: true,
  2971. permission: 'M_customerTypeList'
  2972. }
  2973. }
  2974. ]
  2975. }
  2976. ]
  2977. },
  2978. // auth
  2979. {
  2980. path: '/auth',
  2981. redirect: '/auth/userList',
  2982. component: PageView,
  2983. meta: {
  2984. title: '权限管理',
  2985. icon: 'key',
  2986. permission: 'M_powerMD_0'
  2987. },
  2988. children: [
  2989. {
  2990. path: '/auth/userList',
  2991. name: 'powerUser',
  2992. redirect: '/auth/userList/list',
  2993. component: BlankLayout,
  2994. meta: {
  2995. title: '用户管理',
  2996. icon: 'user',
  2997. permission: 'M_powerMD_user_list'
  2998. },
  2999. hideChildrenInMenu: true,
  3000. children: [
  3001. {
  3002. path: 'list',
  3003. name: 'powerUserList',
  3004. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  3005. meta: {
  3006. title: '用户管理',
  3007. icon: 'user',
  3008. permission: 'M_powerMD_user_list'
  3009. }
  3010. }
  3011. ]
  3012. },
  3013. {
  3014. path: '/auth/roleList',
  3015. name: 'powerRole',
  3016. redirect: '/auth/roleList/list',
  3017. component: BlankLayout,
  3018. meta: {
  3019. title: '角色管理',
  3020. icon: 'solution',
  3021. permission: 'M_powerMD_role_list'
  3022. },
  3023. hideChildrenInMenu: true,
  3024. children: [
  3025. {
  3026. path: 'list',
  3027. name: 'powerRoleList',
  3028. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  3029. meta: {
  3030. title: '角色管理',
  3031. icon: 'solution',
  3032. permission: 'M_powerMD_role_list'
  3033. }
  3034. }
  3035. ]
  3036. }
  3037. ]
  3038. }
  3039. ]
  3040. },
  3041. {
  3042. path: '*',
  3043. redirect: '/404',
  3044. hidden: true
  3045. }
  3046. ]
  3047. /**
  3048. * 基础路由
  3049. * @type { *[] }
  3050. */
  3051. export const constantRouterMap = [
  3052. {
  3053. path: '/user',
  3054. component: UserLayout,
  3055. redirect: '/user/login',
  3056. hidden: true,
  3057. children: [
  3058. {
  3059. path: 'login',
  3060. name: 'login',
  3061. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  3062. },
  3063. {
  3064. path: 'register',
  3065. name: 'register',
  3066. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  3067. },
  3068. {
  3069. path: 'register-result',
  3070. name: 'registerResult',
  3071. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  3072. },
  3073. {
  3074. path: 'recover',
  3075. name: 'recover',
  3076. component: undefined
  3077. }
  3078. ]
  3079. },
  3080. {
  3081. path: '/updateBrowser',
  3082. name: 'updateBrowser',
  3083. component: () => import(/* webpackChunkName: "user" */ '@/views/exception/updateBrowser')
  3084. },
  3085. {
  3086. path: '/404',
  3087. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  3088. }
  3089. ]