router.config.js 85 KB

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