router.config.js 84 KB

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