router.config.js 78 KB

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