router.config.js 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728
  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: {
  15. title: '首页'
  16. },
  17. redirect: '/home',
  18. children: [
  19. {
  20. path: '/home',
  21. name: 'home',
  22. redirect: '/home',
  23. component: PageView,
  24. meta: {
  25. title: '首页',
  26. icon: 'home'
  27. },
  28. hideChildrenInMenu: true,
  29. children: [{
  30. path: '/home',
  31. name: 'home',
  32. component: () => import(/* webpackChunkName: "home" */ '@/views/Home'),
  33. meta: {
  34. title: '首页',
  35. icon: 'home',
  36. hide: true
  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: '/productManagement',
  53. redirect: '/productManagement/productInfo',
  54. component: PageView,
  55. meta: {
  56. title: '产品管理',
  57. icon: 'shopping'
  58. // permission: 'M_shop'
  59. },
  60. children: [
  61. {
  62. path: '/productManagement/productInfo',
  63. redirect: '/productManagement/productInfo/list',
  64. name: 'productInfo',
  65. component: RouteView,
  66. meta: {
  67. title: '产品列表',
  68. icon: 'file-text'
  69. // permission: 'M_goodsManage_list'
  70. },
  71. hideChildrenInMenu: true,
  72. children: [
  73. {
  74. path: 'list',
  75. name: 'productInfoList',
  76. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/list.vue'),
  77. meta: {
  78. title: '产品列表',
  79. icon: 'file-text',
  80. hidden: true
  81. // permission: 'M_goodsManage_list'
  82. }
  83. },
  84. {
  85. path: 'add',
  86. name: 'productInfoAdd',
  87. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  88. meta: {
  89. title: '新增产品',
  90. icon: 'file-text',
  91. hidden: true
  92. // permission: 'B_goodsManage_edit'
  93. }
  94. },
  95. {
  96. path: 'edit/:id/:sn',
  97. name: 'productInfoEdit',
  98. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productInfo/edit.vue'),
  99. meta: {
  100. title: '编辑产品',
  101. icon: 'file-text',
  102. hidden: true
  103. // permission: 'B_goodsManage_edit'
  104. }
  105. }
  106. ]
  107. },
  108. {
  109. path: '/productManagement/productPricing',
  110. redirect: '/productManagement/productPricing/list',
  111. name: 'productPricing',
  112. component: RouteView,
  113. meta: {
  114. title: '产品定价',
  115. icon: 'sketch'
  116. // permission: 'M_goodsManage_list'
  117. },
  118. hideChildrenInMenu: true,
  119. children: [
  120. {
  121. path: 'list',
  122. name: 'productPricingList',
  123. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productPricing/list.vue'),
  124. meta: {
  125. title: '产品定价列表',
  126. icon: 'sketch',
  127. hidden: true
  128. // permission: 'M_goodsManage_list'
  129. }
  130. }
  131. ]
  132. },
  133. {
  134. path: '/productManagement/priceChangeRecord',
  135. redirect: '/productManagement/priceChangeRecord/list',
  136. name: 'priceChangeRecord',
  137. component: RouteView,
  138. meta: {
  139. title: '价格变更记录',
  140. icon: 'sketch'
  141. // permission: 'M_goodsManage_list'
  142. },
  143. hideChildrenInMenu: true,
  144. children: [
  145. {
  146. path: 'list',
  147. name: 'priceChangeRecordList',
  148. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/priceChangeRecord/list.vue'),
  149. meta: {
  150. title: '价格变更记录列表',
  151. icon: 'sketch',
  152. hidden: true
  153. // permission: 'M_goodsManage_list'
  154. }
  155. }
  156. ]
  157. },
  158. {
  159. path: '/productManagement/productLaunchAudit',
  160. redirect: '/productManagement/productLaunchAudit/list',
  161. name: 'productLaunchAudit',
  162. component: RouteView,
  163. meta: {
  164. title: '产品上线审核',
  165. icon: 'sketch'
  166. // permission: 'M_goodsManage_list'
  167. },
  168. hideChildrenInMenu: true,
  169. children: [
  170. {
  171. path: 'list',
  172. name: 'productLaunchAuditList',
  173. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productLaunchAudit/list.vue'),
  174. meta: {
  175. title: '产品上线审核列表',
  176. icon: 'sketch',
  177. hidden: true
  178. // permission: 'M_goodsManage_list'
  179. }
  180. }
  181. ]
  182. },
  183. {
  184. path: '/productManagement/productOfflineAudit',
  185. redirect: '/productManagement/productOfflineAudit/list',
  186. name: 'productOfflineAudit',
  187. component: RouteView,
  188. meta: {
  189. title: '产品下线审核',
  190. icon: 'sketch'
  191. // permission: 'M_goodsManage_list'
  192. },
  193. hideChildrenInMenu: true,
  194. children: [
  195. {
  196. path: 'list',
  197. name: 'productOfflineAuditList',
  198. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productOfflineAudit/list.vue'),
  199. meta: {
  200. title: '产品下线审核列表',
  201. icon: 'sketch',
  202. hidden: true
  203. // permission: 'M_goodsManage_list'
  204. }
  205. }
  206. ]
  207. },
  208. {
  209. path: '/productManagement/productLevel',
  210. redirect: '/productManagement/productLevel/list',
  211. name: 'productLevel',
  212. component: RouteView,
  213. meta: {
  214. title: '产品级别管理',
  215. icon: 'sketch'
  216. // permission: 'M_goodsManage_list'
  217. },
  218. hideChildrenInMenu: true,
  219. children: [
  220. {
  221. path: 'list',
  222. name: 'productLevelList',
  223. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productLevel/list.vue'),
  224. meta: {
  225. title: '产品级别列表',
  226. icon: 'sketch',
  227. hidden: true
  228. // permission: 'M_goodsManage_list'
  229. }
  230. }
  231. ]
  232. },
  233. {
  234. path: '/productManagement/productBrand',
  235. redirect: '/productManagement/productBrand/list',
  236. name: 'productBrand',
  237. component: RouteView,
  238. meta: {
  239. title: '产品品牌管理',
  240. icon: 'sketch'
  241. // permission: 'M_goodsManage_list'
  242. },
  243. hideChildrenInMenu: true,
  244. children: [
  245. {
  246. path: 'list',
  247. name: 'productBrandList',
  248. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productBrand/list.vue'),
  249. meta: {
  250. title: '产品品牌列表',
  251. icon: 'sketch',
  252. hidden: true
  253. // permission: 'M_goodsManage_list'
  254. }
  255. }
  256. ]
  257. },
  258. {
  259. path: '/productManagement/productCategory',
  260. redirect: '/productManagement/productCategory/list',
  261. name: 'productCategory',
  262. component: RouteView,
  263. meta: {
  264. title: '产品分类管理',
  265. icon: 'sliders'
  266. // permission: 'M_goodsManage_list'
  267. },
  268. hideChildrenInMenu: true,
  269. children: [
  270. {
  271. path: 'list',
  272. name: 'productCategoryList',
  273. component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/productCategory/list.vue'),
  274. meta: {
  275. title: '产品分类列表',
  276. icon: 'sliders',
  277. hidden: true
  278. // permission: 'M_goodsManage_list'
  279. }
  280. }
  281. ]
  282. }
  283. // 二期
  284. // {
  285. // path: '/productManagement/purchaseBaseLimit',
  286. // redirect: '/productManagement/purchaseBaseLimit/list',
  287. // name: 'purchaseBaseLimit',
  288. // component: RouteView,
  289. // meta: {
  290. // title: '产品采购基数限制',
  291. // icon: 'sliders'
  292. // // permission: 'M_goodsManage_list'
  293. // },
  294. // hideChildrenInMenu: true,
  295. // children: [
  296. // {
  297. // path: 'list',
  298. // name: 'purchaseBaseLimitList',
  299. // component: () => import(/* webpackChunkName: "shop" */ '@/views/productManagement/purchaseBaseLimit/list.vue'),
  300. // meta: {
  301. // title: '采购基数限制列表',
  302. // icon: 'sliders',
  303. // hidden: true
  304. // // permission: 'M_goodsManage_list'
  305. // }
  306. // }
  307. // ]
  308. // }
  309. ]
  310. },
  311. // 经销商管理
  312. {
  313. path: '/dealerManagement',
  314. redirect: '/dealerManagement/marketingDivisionSet',
  315. component: PageView,
  316. meta: {
  317. title: '经销商管理',
  318. icon: 'shopping'
  319. // permission: 'M_shop'
  320. },
  321. children: [
  322. {
  323. path: '/dealerManagement/marketingDivisionSet',
  324. redirect: '/dealerManagement/marketingDivisionSet/list',
  325. name: 'marketingDivisionSet',
  326. component: RouteView,
  327. meta: {
  328. title: '营销分区设置',
  329. icon: 'sketch'
  330. // permission: 'M_goodsManage_list'
  331. },
  332. hideChildrenInMenu: true,
  333. children: [
  334. {
  335. path: 'list',
  336. name: 'marketingDivisionSetList',
  337. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/marketingDivisionSet/list.vue'),
  338. meta: {
  339. title: '营销分区列表',
  340. icon: 'sketch',
  341. hidden: true
  342. // permission: 'M_goodsManage_list'
  343. }
  344. }
  345. ]
  346. },
  347. // {
  348. // path: '/dealerManagement/userManagement',
  349. // redirect: '/dealerManagement/userManagement/list',
  350. // name: 'dealerManagementUserManagement',
  351. // component: RouteView,
  352. // meta: {
  353. // title: '营销部用户管理',
  354. // icon: 'sketch'
  355. // // permission: 'M_goodsManage_list'
  356. // },
  357. // hideChildrenInMenu: true,
  358. // children: [
  359. // {
  360. // path: 'list',
  361. // name: 'userManagementList',
  362. // component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/userManagement/list.vue'),
  363. // meta: {
  364. // title: '营销部用户列表',
  365. // icon: 'sketch',
  366. // hidden: true
  367. // // permission: 'M_goodsManage_list'
  368. // }
  369. // }
  370. // ]
  371. // },
  372. {
  373. path: '/dealerManagement/merchantInfoManagement',
  374. redirect: '/dealerManagement/merchantInfoManagement/list',
  375. name: 'merchantInfoManagement',
  376. component: RouteView,
  377. meta: {
  378. title: '经销商资料管理',
  379. icon: 'file-text'
  380. // permission: 'M_goodsManage_list'
  381. },
  382. hideChildrenInMenu: true,
  383. children: [
  384. {
  385. path: 'list',
  386. name: 'merchantInfoManagementList',
  387. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/merchantInfoManagement/list.vue'),
  388. meta: {
  389. title: '经销商资料列表',
  390. icon: 'file-text',
  391. hidden: true
  392. // permission: 'M_goodsManage_list'
  393. }
  394. },
  395. {
  396. path: 'add',
  397. name: 'merchantInfoManagementAdd',
  398. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/merchantInfoManagement/edit.vue'),
  399. meta: {
  400. title: '新增经销商',
  401. icon: 'file-text',
  402. hidden: true
  403. // permission: 'B_goodsManage_edit'
  404. }
  405. },
  406. {
  407. path: 'edit/:id',
  408. name: 'merchantInfoManagementEdit',
  409. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/merchantInfoManagement/edit.vue'),
  410. meta: {
  411. title: '编辑经销商',
  412. icon: 'file-text',
  413. hidden: true
  414. // permission: 'B_goodsManage_edit'
  415. }
  416. },
  417. {
  418. path: 'permissionSetting/:sn',
  419. name: 'merchantInfoManagementSet',
  420. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/merchantInfoManagement/permissionSetting.vue'),
  421. meta: {
  422. title: '经销权设置',
  423. icon: 'file-text',
  424. hidden: true
  425. // permission: 'B_goodsManage_edit'
  426. }
  427. }
  428. ]
  429. },
  430. {
  431. path: '/dealerManagement/dealerAccountManagement',
  432. redirect: '/dealerManagement/dealerAccountManagement/list',
  433. name: 'dealerAccountManagement',
  434. component: RouteView,
  435. meta: {
  436. title: '经销商账号管理',
  437. icon: 'sketch'
  438. // permission: 'M_goodsManage_list'
  439. },
  440. hideChildrenInMenu: true,
  441. children: [
  442. {
  443. path: 'list',
  444. name: 'dealerAccountManagementList',
  445. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/dealerAccountManagement/list.vue'),
  446. meta: {
  447. title: '经销商账号列表',
  448. icon: 'sketch',
  449. hidden: true
  450. // permission: 'M_goodsManage_list'
  451. }
  452. }
  453. ]
  454. },
  455. {
  456. path: '/dealerManagement/dealerRelationshipBinding',
  457. redirect: '/dealerManagement/dealerRelationshipBinding/list',
  458. name: 'dealerRelationshipBinding',
  459. component: RouteView,
  460. meta: {
  461. title: '经销商关系绑定',
  462. icon: 'sketch'
  463. // permission: 'M_goodsManage_list'
  464. },
  465. hideChildrenInMenu: true,
  466. children: [
  467. {
  468. path: 'list',
  469. name: 'dealerRelationshipBindingList',
  470. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/dealerRelationshipBinding/list.vue'),
  471. meta: {
  472. title: '经销商关系绑定列表',
  473. icon: 'sketch',
  474. hidden: true
  475. // permission: 'M_goodsManage_list'
  476. }
  477. }
  478. ]
  479. },
  480. {
  481. path: '/dealerManagement/rebateSettings',
  482. redirect: '/dealerManagement/rebateSettings/list',
  483. name: 'rebateSettings',
  484. component: RouteView,
  485. meta: {
  486. title: '差价归属设置',
  487. icon: 'sketch'
  488. // permission: 'M_goodsManage_list'
  489. },
  490. hideChildrenInMenu: true,
  491. children: [
  492. {
  493. path: 'list',
  494. name: 'rebateSettingsList',
  495. component: () => import(/* webpackChunkName: "shop" */ '@/views/dealerManagement/rebateSettings/list.vue'),
  496. meta: {
  497. title: '差价归属设置列表',
  498. icon: 'sketch',
  499. hidden: true
  500. // permission: 'M_goodsManage_list'
  501. }
  502. }
  503. ]
  504. }
  505. ]
  506. },
  507. // 供应商管理
  508. {
  509. path: '/supplierManagement',
  510. redirect: '/supplierManagement/supplierInfo',
  511. component: PageView,
  512. meta: {
  513. title: '供应商管理',
  514. icon: 'team'
  515. // permission: 'M_shop'
  516. },
  517. children: [
  518. {
  519. path: '/supplierManagement/supplierInfo',
  520. redirect: '/supplierManagement/supplierInfo/list',
  521. name: 'supplierInfo',
  522. component: RouteView,
  523. meta: {
  524. title: '供应商列表',
  525. icon: 'team'
  526. // permission: 'M_goodsManage_list'
  527. },
  528. hideChildrenInMenu: true,
  529. children: [
  530. {
  531. path: 'list',
  532. name: 'supplierInfoList',
  533. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/list.vue'),
  534. meta: {
  535. title: '供应商列表',
  536. icon: 'team',
  537. hidden: true
  538. // permission: 'M_goodsManage_list'
  539. }
  540. },
  541. {
  542. path: 'add',
  543. name: 'supplierInfoAdd',
  544. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
  545. meta: {
  546. title: '新增供应商',
  547. icon: 'team',
  548. hidden: true
  549. // permission: 'B_goodsManage_edit'
  550. }
  551. },
  552. {
  553. path: 'edit/:id',
  554. name: 'supplierInfoEdit',
  555. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/supplierInfo/edit.vue'),
  556. meta: {
  557. title: '编辑供应商',
  558. icon: 'team',
  559. hidden: true
  560. // permission: 'B_goodsManage_edit'
  561. }
  562. },
  563. {
  564. path: 'associatedProduct/:sn/:name',
  565. name: 'associatedProduct',
  566. component: () => import(/* webpackChunkName: "supplierManagement" */ '@/views/supplierManagement/associatedProduct/add.vue'),
  567. meta: {
  568. title: '关联产品',
  569. icon: 'team',
  570. hidden: true
  571. // permission: 'B_goodsManage_edit'
  572. }
  573. }
  574. ]
  575. },
  576. {
  577. path: '/supplierManagement/associatedProductDetails',
  578. redirect: '/supplierManagement/associatedProductDetails/list',
  579. name: 'associatedProductDetails',
  580. component: RouteView,
  581. meta: {
  582. title: '关联产品明细表',
  583. icon: 'sketch'
  584. // permission: 'M_goodsManage_list'
  585. },
  586. hideChildrenInMenu: true,
  587. children: [
  588. {
  589. path: 'list',
  590. name: 'associatedProductDetailsList',
  591. component: () => import(/* webpackChunkName: "shop" */ '@/views/supplierManagement/associatedProductDetails/list.vue'),
  592. meta: {
  593. title: '关联产品明细列表',
  594. icon: 'sketch',
  595. hidden: true
  596. // permission: 'M_goodsManage_list'
  597. }
  598. }
  599. ]
  600. }
  601. ]
  602. },
  603. // 采购管理
  604. {
  605. path: '/purchasingManagement',
  606. redirect: '/purchasingManagement/purchaseOrder',
  607. component: PageView,
  608. meta: {
  609. title: '采购管理',
  610. icon: 'gold'
  611. // permission: 'M_bulkWarehousing'
  612. },
  613. children: [
  614. {
  615. path: '/purchasingManagement/bulkWarehousingOrder',
  616. redirect: '/purchasingManagement/bulkWarehousingOrder/list',
  617. name: 'bulkWarehousingOrder',
  618. component: RouteView,
  619. meta: {
  620. title: '散件入库',
  621. icon: 'gold'
  622. // permission: 'M_bulkWarehousingOrder_list'
  623. },
  624. hideChildrenInMenu: true,
  625. children: [
  626. {
  627. path: 'list',
  628. name: 'bulkWarehousingOrderList',
  629. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/bulkWarehousingOrder/list.vue'),
  630. meta: {
  631. title: '散件入库单列表',
  632. icon: 'gold',
  633. hidden: true
  634. // permission: 'M_bulkWarehousingOrder_list'
  635. }
  636. },
  637. {
  638. path: 'add/:id/:sn',
  639. name: 'bulkWarehousingOrderAdd',
  640. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/bulkWarehousingOrder/edit.vue'),
  641. meta: {
  642. title: '新增散件入库单',
  643. icon: 'gold',
  644. hidden: true
  645. }
  646. },
  647. {
  648. path: 'edit/:id/:sn',
  649. name: 'bulkWarehousingOrderEdit',
  650. component: () => import(/* webpackChunkName: "shop" */ '@/views/purchasingManagement/bulkWarehousingOrder/edit.vue'),
  651. meta: {
  652. title: '编辑散件入库单',
  653. icon: 'gold',
  654. hidden: true
  655. }
  656. }
  657. ]
  658. }
  659. ]
  660. },
  661. // 销售管理
  662. {
  663. path: '/salesManagement',
  664. redirect: '/salesManagement/salesQuery',
  665. component: PageView,
  666. meta: {
  667. title: '销售管理',
  668. icon: 'account-book'
  669. // permission: 'M_salesManagement'
  670. },
  671. children: [
  672. {
  673. path: '/salesManagement/salesQuery',
  674. redirect: '/salesManagement/salesQuery/list',
  675. name: 'salesQuery',
  676. component: RouteView,
  677. meta: {
  678. title: '销售单查询',
  679. icon: 'monitor'
  680. // permission: 'M_salesQuery_list'
  681. },
  682. hideChildrenInMenu: true,
  683. children: [
  684. {
  685. path: 'list',
  686. name: 'salesQueryList',
  687. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/list.vue'),
  688. meta: {
  689. title: '销售单列表',
  690. icon: 'monitor',
  691. hidden: true
  692. // permission: 'M_salesQuery_list'
  693. }
  694. },
  695. {
  696. path: 'detail/:sn',
  697. name: 'salesDetail',
  698. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/detail.vue'),
  699. meta: {
  700. title: '销售单详情',
  701. icon: 'monitor',
  702. hidden: true
  703. // permission: 'M_salesDetail'
  704. }
  705. },
  706. {
  707. path: 'add/:sn',
  708. name: 'salesAdd',
  709. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  710. meta: {
  711. title: '新增销售单',
  712. icon: 'monitor',
  713. hidden: true
  714. // permission: 'M_salesNew'
  715. }
  716. },
  717. {
  718. path: 'edit/:sn',
  719. name: 'salesEdit',
  720. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesQuery/edit.vue'),
  721. meta: {
  722. title: '编辑销售单',
  723. icon: 'monitor',
  724. hidden: true
  725. // permission: 'M_salesNew'
  726. }
  727. },
  728. {
  729. path: 'waitDispatch/:salesBillSn/:dispatchBillSn',
  730. name: 'waitDispatch',
  731. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/waitDispatch/edit.vue'),
  732. meta: {
  733. title: '下推',
  734. icon: 'monitor',
  735. hidden: true
  736. // permission: 'M_salesNew'
  737. }
  738. }
  739. ]
  740. },
  741. {
  742. path: '/salesManagement/examineVerify',
  743. redirect: '/salesManagement/examineVerify/list',
  744. name: 'examineVerify',
  745. component: RouteView,
  746. meta: {
  747. title: '备货审核',
  748. icon: 'audit'
  749. // permission: 'M_outboundOrder'
  750. },
  751. hideChildrenInMenu: true,
  752. children: [
  753. {
  754. path: 'list',
  755. name: 'examineVerifyList',
  756. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/examineVerify/list.vue'),
  757. meta: {
  758. title: '备货审核列表',
  759. icon: 'audit',
  760. hidden: true
  761. // permission: 'M_outboundOrder_list'
  762. }
  763. }
  764. ]
  765. },
  766. {
  767. path: '/salesManagement/pushOrderManagement',
  768. redirect: '/salesManagement/pushOrderManagement/list',
  769. name: 'pushOrderManagement',
  770. component: RouteView,
  771. meta: {
  772. title: '下推订单管理',
  773. icon: 'export'
  774. // permission: 'M_outboundList'
  775. },
  776. hideChildrenInMenu: true,
  777. children: [
  778. {
  779. path: 'list',
  780. name: 'pushOrderManagementList',
  781. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/pushOrderManagement/list.vue'),
  782. meta: {
  783. title: '下推订单管理列表',
  784. icon: 'export',
  785. hidden: true
  786. // permission: 'M_outboundList'
  787. }
  788. },
  789. {
  790. path: 'detail/:sn',
  791. name: 'pushOrderDetail',
  792. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/pushOrderManagement/detail.vue'),
  793. meta: {
  794. title: '下推订单详细',
  795. icon: 'export',
  796. hidden: true
  797. // permission: 'M_outboundList'
  798. }
  799. }
  800. ]
  801. },
  802. {
  803. path: '/salesManagement/outboundOrder',
  804. redirect: '/salesManagement/outboundOrder/list',
  805. name: 'outboundOrder',
  806. component: RouteView,
  807. meta: {
  808. title: '出库',
  809. icon: 'export'
  810. // permission: 'M_outboundList'
  811. },
  812. hideChildrenInMenu: true,
  813. children: [
  814. {
  815. path: 'list',
  816. name: 'outboundOrderList',
  817. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/list.vue'),
  818. meta: {
  819. title: '出库列表',
  820. icon: 'export',
  821. hidden: true
  822. // permission: 'M_outboundList'
  823. }
  824. },
  825. {
  826. path: 'detail/:sn',
  827. name: 'outboundOrderDetail',
  828. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/outboundOrder/detail.vue'),
  829. meta: {
  830. title: '出库明细',
  831. icon: 'export',
  832. hidden: true
  833. }
  834. }
  835. ]
  836. },
  837. {
  838. path: '/salesManagement/salesReturn',
  839. redirect: '/salesManagement/salesReturn/list',
  840. name: 'salesReturn',
  841. component: RouteView,
  842. meta: {
  843. title: '销售退货列表',
  844. icon: 'fund'
  845. // permission: 'M_salesReturn_list'
  846. },
  847. hideChildrenInMenu: true,
  848. children: [
  849. {
  850. path: 'list',
  851. name: 'salesReturnList',
  852. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/list.vue'),
  853. meta: {
  854. title: '退货单列表',
  855. icon: 'fund',
  856. hidden: true
  857. // permission: 'M_salesReturn_list'
  858. }
  859. },
  860. {
  861. path: 'detail/:sn',
  862. name: 'salesReturnDetail',
  863. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/detail.vue'),
  864. meta: {
  865. title: '退货单详情',
  866. icon: 'fund',
  867. hidden: true
  868. // permission: 'M_salesReturn'
  869. }
  870. },
  871. {
  872. path: 'salesReturnGrabEdit/:sn/:buyerSn',
  873. name: 'salesReturnGrabEdit',
  874. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnGrabEdit.vue'),
  875. meta: {
  876. title: '编辑退货单(抓单)',
  877. icon: 'fund',
  878. hidden: true
  879. // permission: 'M_salesReturnGrabEdit'
  880. }
  881. },
  882. {
  883. path: 'salesReturnEdit/:sn/:buyerSn',
  884. name: 'salesReturnEdit',
  885. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnEdit.vue'),
  886. meta: {
  887. title: '编辑退货单(不抓单)',
  888. icon: 'fund',
  889. hidden: true
  890. // permission: 'M_salesReturnEdit'
  891. }
  892. },
  893. {
  894. path: 'check/:sn',
  895. name: 'salesReturnCheck',
  896. component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/salesReturn/salesReturnCheck.vue'),
  897. meta: {
  898. title: '退货单品检',
  899. icon: 'fund',
  900. hidden: true
  901. // permission: 'M_salesReturnCheck'
  902. }
  903. }
  904. ]
  905. }
  906. // {
  907. // path: '/salesManagement/backorder',
  908. // redirect: '/salesManagement/backorder/list',
  909. // name: 'backorder',
  910. // component: RouteView,
  911. // meta: {
  912. // title: '销售缺货列表',
  913. // icon: 'exception'
  914. // // permission: 'M_goodsManage_list'
  915. // },
  916. // hideChildrenInMenu: true,
  917. // children: [
  918. // {
  919. // path: 'list',
  920. // name: 'backorderList',
  921. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/list.vue'),
  922. // meta: {
  923. // title: '缺货单列表',
  924. // icon: 'exception',
  925. // hidden: true
  926. // // permission: 'M_goodsManage_list'
  927. // }
  928. // },
  929. // {
  930. // path: 'detail/:id',
  931. // name: 'backorderDetail',
  932. // component: () => import(/* webpackChunkName: "salesManagement" */ '@/views/salesManagement/backorder/detail.vue'),
  933. // meta: {
  934. // title: '缺货单详情',
  935. // icon: 'exception',
  936. // hidden: true
  937. // // permission: 'M_goodsManage_list'
  938. // }
  939. // }
  940. // ]
  941. // },
  942. // {
  943. // path: '/salesManagement/shortageStatisticsC',
  944. // redirect: '/salesManagement/shortageStatisticsC/list',
  945. // name: 'shortageStatisticsC',
  946. // component: RouteView,
  947. // meta: {
  948. // title: '缺货统计(按客户)',
  949. // icon: 'sketch'
  950. // // permission: 'M_goodsManage_list'
  951. // },
  952. // hideChildrenInMenu: true,
  953. // children: [
  954. // {
  955. // path: 'list',
  956. // name: 'shortageStatisticsCList',
  957. // component: () => import(/* webpackChunkName: "shop" */ '@/views/salesManagement/shortageStatisticsC/list.vue'),
  958. // meta: {
  959. // title: '缺货统计列表',
  960. // icon: 'sketch',
  961. // hidden: true
  962. // // permission: 'M_goodsManage_list'
  963. // }
  964. // }
  965. // ]
  966. // },
  967. // {
  968. // path: '/salesManagement/shortageStatisticsP',
  969. // redirect: '/salesManagement/shortageStatisticsP/list',
  970. // name: 'shortageStatisticsP',
  971. // component: RouteView,
  972. // meta: {
  973. // title: '缺货统计(按产品)',
  974. // icon: 'sketch'
  975. // // permission: 'M_goodsManage_list'
  976. // },
  977. // hideChildrenInMenu: true,
  978. // children: [
  979. // {
  980. // path: 'list',
  981. // name: 'shortageStatisticsPList',
  982. // component: () => import(/* webpackChunkName: "shop" */ '@/views/salesManagement/shortageStatisticsP/list.vue'),
  983. // meta: {
  984. // title: '缺货统计列表',
  985. // icon: 'sketch',
  986. // hidden: true
  987. // // permission: 'M_goodsManage_list'
  988. // }
  989. // }
  990. // ]
  991. // }
  992. ]
  993. },
  994. // 库存管理
  995. {
  996. path: '/inventoryManagement',
  997. redirect: '/inventoryManagement/inventoryQuery',
  998. component: PageView,
  999. meta: {
  1000. title: '库存管理',
  1001. icon: 'shop'
  1002. // permission: 'M_shop'
  1003. },
  1004. children: [
  1005. {
  1006. path: '/inventoryManagement/inventoryQuery',
  1007. redirect: '/inventoryManagement/inventoryQuery/list',
  1008. name: 'inventoryQuery',
  1009. component: RouteView,
  1010. meta: {
  1011. title: '库存查询',
  1012. icon: 'monitor'
  1013. // permission: 'M_goodsManage_list'
  1014. },
  1015. hideChildrenInMenu: true,
  1016. children: [
  1017. {
  1018. path: 'list',
  1019. name: 'inventoryQueryList',
  1020. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/list.vue'),
  1021. meta: {
  1022. title: '库存列表',
  1023. icon: 'monitor',
  1024. hidden: true
  1025. // permission: 'M_goodsManage_list'
  1026. }
  1027. },
  1028. {
  1029. path: 'warehouseDetail/:sn',
  1030. name: 'inventoryQueryWarehouseDetail',
  1031. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryQuery/warehouseDetail.vue'),
  1032. meta: {
  1033. title: '出入库明细',
  1034. icon: 'monitor',
  1035. hidden: true
  1036. // permission: 'B_goodsManage_edit'
  1037. }
  1038. }
  1039. ]
  1040. },
  1041. {
  1042. path: '/inventoryManagement/inventoryWarning',
  1043. name: 'inventoryWarningList',
  1044. component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryWarning/list.vue'),
  1045. meta: {
  1046. title: '库存预警',
  1047. icon: 'alert'
  1048. // permission: 'M_goodsShelves_0'
  1049. }
  1050. }
  1051. // 二期
  1052. // {
  1053. // path: '/inventoryManagement/inventoryChecking',
  1054. // redirect: '/inventoryManagement/inventoryChecking/list',
  1055. // name: 'inventoryChecking',
  1056. // component: RouteView,
  1057. // meta: {
  1058. // title: '库存盘点',
  1059. // icon: 'reconciliation'
  1060. // // permission: 'M_goodsManage_list'
  1061. // },
  1062. // hideChildrenInMenu: true,
  1063. // children: [
  1064. // {
  1065. // path: 'list',
  1066. // name: 'inventoryCheckingList',
  1067. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/list.vue'),
  1068. // meta: {
  1069. // title: '库存盘点列表',
  1070. // icon: 'reconciliation',
  1071. // hidden: true
  1072. // // permission: 'M_goodsManage_list'
  1073. // }
  1074. // },
  1075. // {
  1076. // path: 'overall/:id',
  1077. // name: 'inventoryCheckingOverall',
  1078. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/overall.vue'),
  1079. // meta: {
  1080. // title: '盘点人盘点【全盘】',
  1081. // icon: 'reconciliation',
  1082. // hidden: true
  1083. // // permission: 'B_goodsManage_edit'
  1084. // }
  1085. // },
  1086. // {
  1087. // path: 'selfDisk/:id',
  1088. // name: 'inventoryCheckingSelfDisk',
  1089. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/selfDisk.vue'),
  1090. // meta: {
  1091. // title: '盘点人盘点【自选盘点】',
  1092. // icon: 'reconciliation',
  1093. // hidden: true
  1094. // // permission: 'B_goodsManage_edit'
  1095. // }
  1096. // },
  1097. // {
  1098. // path: 'detail/:id',
  1099. // name: 'inventoryCheckingDetail',
  1100. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/detail.vue'),
  1101. // meta: {
  1102. // title: '库存盘点详情',
  1103. // icon: 'reconciliation',
  1104. // hidden: true
  1105. // // permission: 'B_goodsManage_edit'
  1106. // }
  1107. // },
  1108. // {
  1109. // path: 'makeInventory/:id',
  1110. // name: 'inventoryCheckingMakeInventory',
  1111. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventory.vue'),
  1112. // meta: {
  1113. // title: '待盘点【盘点】',
  1114. // icon: 'reconciliation',
  1115. // hidden: true
  1116. // // permission: 'B_goodsManage_edit'
  1117. // }
  1118. // },
  1119. // {
  1120. // path: 'makeInventory/detail/:id', /* 待盘点【盘点】详情 */
  1121. // name: 'inventoryCheckingMakeInventoryDetail',
  1122. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/makeInventoryDetail.vue'),
  1123. // meta: {
  1124. // title: '库存盘点详情',
  1125. // icon: 'reconciliation',
  1126. // hidden: true
  1127. // // permission: 'B_goodsManage_edit'
  1128. // }
  1129. // },
  1130. // {
  1131. // path: 'financialAudit/detail/:id', /* 财务审核详情 */
  1132. // name: 'inventoryCheckingFinancialAuditDetail',
  1133. // component: () => import(/* webpackChunkName: "shop" */ '@/views/inventoryManagement/inventoryChecking/financialAuditDetail.vue'),
  1134. // meta: {
  1135. // title: '库存盘点详情',
  1136. // icon: 'reconciliation',
  1137. // hidden: true
  1138. // // permission: 'B_goodsManage_edit'
  1139. // }
  1140. // }
  1141. // ]
  1142. // }
  1143. ]
  1144. },
  1145. // 调拨管理
  1146. {
  1147. path: '/allocationManagement',
  1148. redirect: '/allocationManagement/transferOut',
  1149. component: PageView,
  1150. meta: {
  1151. title: '调拨',
  1152. icon: 'cluster'
  1153. // permission: 'M_shop'
  1154. },
  1155. children: [
  1156. {
  1157. path: '/allocationManagement/transferOut',
  1158. redirect: '/allocationManagement/transferOut/list',
  1159. name: 'transferOut',
  1160. component: RouteView,
  1161. meta: {
  1162. title: '调拨列表',
  1163. icon: 'pull-request'
  1164. // permission: 'M_goodsManage_list'
  1165. },
  1166. hideChildrenInMenu: true,
  1167. children: [
  1168. {
  1169. path: 'list',
  1170. name: 'transferOutList',
  1171. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/list.vue'),
  1172. meta: {
  1173. title: '调拨列表',
  1174. icon: 'pull-request',
  1175. hidden: true
  1176. // permission: 'M_goodsManage_list'
  1177. }
  1178. },
  1179. {
  1180. path: 'add/:id/:sn/:name',
  1181. name: 'transferOutAdd',
  1182. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/edit.vue'),
  1183. meta: {
  1184. title: '新增调拨单',
  1185. icon: 'pull-request',
  1186. hidden: true
  1187. // permission: 'B_goodsManage_edit'
  1188. }
  1189. },
  1190. {
  1191. path: 'edit/:id/:sn/:name',
  1192. name: 'transferOutEdit',
  1193. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/edit.vue'),
  1194. meta: {
  1195. title: '编辑调拨单',
  1196. icon: 'pull-request',
  1197. hidden: true
  1198. // permission: 'B_goodsManage_edit'
  1199. }
  1200. },
  1201. {
  1202. path: 'detail/:sn',
  1203. name: 'transferOutDetail',
  1204. component: () => import(/* webpackChunkName: "shop" */ '@/views/allocationManagement/transferOut/detail.vue'),
  1205. meta: {
  1206. title: '调拨单详情',
  1207. icon: 'pull-request',
  1208. hidden: true
  1209. // permission: 'B_goodsManage_edit'
  1210. }
  1211. }
  1212. ]
  1213. }
  1214. ]
  1215. },
  1216. // 促销管理
  1217. {
  1218. path: '/promotionRulesManagement',
  1219. redirect: '/promotionRulesManagement/promotionRules',
  1220. component: PageView,
  1221. meta: {
  1222. title: '促销管理',
  1223. icon: 'cluster'
  1224. // permission: 'M_shop'
  1225. },
  1226. children: [
  1227. {
  1228. path: '/promotionRulesManagement/promotionRules',
  1229. redirect: '/promotionRulesManagement/promotionRules/list',
  1230. name: 'promotionRules',
  1231. component: RouteView,
  1232. meta: {
  1233. title: '促销规则管理',
  1234. icon: 'pull-request'
  1235. // permission: 'M_goodsManage_list'
  1236. },
  1237. hideChildrenInMenu: true,
  1238. children: [
  1239. {
  1240. path: 'list',
  1241. name: 'promotionRulesManagementList',
  1242. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/list.vue'),
  1243. meta: {
  1244. title: '促销规则列表',
  1245. icon: 'pull-request',
  1246. hidden: true
  1247. // permission: 'M_goodsManage_list'
  1248. }
  1249. },
  1250. {
  1251. path: 'detail/:id/:sn',
  1252. name: 'promotionRulesManagementDetail',
  1253. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/detail.vue'),
  1254. meta: {
  1255. title: '促销规则详情',
  1256. icon: 'pull-request',
  1257. hidden: true
  1258. // permission: 'B_goodsManage_edit'
  1259. }
  1260. },
  1261. {
  1262. path: 'rule/:id/:sn',
  1263. name: 'promotionRulesManagementRule',
  1264. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/promotionRules/rule.vue'),
  1265. meta: {
  1266. title: '促销规则设置',
  1267. icon: 'pull-request',
  1268. hidden: true
  1269. // permission: 'B_goodsManage_edit'
  1270. }
  1271. }
  1272. ]
  1273. },
  1274. {
  1275. path: '/promotionRulesManagement/orderStatistics',
  1276. redirect: '/promotionRulesManagement/orderStatistics/list',
  1277. name: 'orderStatistics',
  1278. component: RouteView,
  1279. meta: {
  1280. title: '促销订单统计',
  1281. icon: 'pull-request'
  1282. // permission: 'M_goodsManage_list'
  1283. },
  1284. hideChildrenInMenu: true,
  1285. children: [
  1286. {
  1287. path: 'list',
  1288. name: 'orderStatisticsList',
  1289. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/orderStatistics/list.vue'),
  1290. meta: {
  1291. title: '订单统计列表',
  1292. icon: 'pull-request',
  1293. hidden: true
  1294. // permission: 'M_goodsManage_list'
  1295. }
  1296. }
  1297. ]
  1298. },
  1299. {
  1300. path: '/promotionRulesManagement/productStatistics',
  1301. redirect: '/promotionRulesManagement/productStatistics/list',
  1302. name: 'productStatistics',
  1303. component: RouteView,
  1304. meta: {
  1305. title: '促销产品统计',
  1306. icon: 'pull-request'
  1307. // permission: 'M_goodsManage_list'
  1308. },
  1309. hideChildrenInMenu: true,
  1310. children: [
  1311. {
  1312. path: 'list',
  1313. name: 'productStatisticsList',
  1314. component: () => import(/* webpackChunkName: "shop" */ '@/views/promotionRulesManagement/productStatistics/list.vue'),
  1315. meta: {
  1316. title: '产品统计列表',
  1317. icon: 'pull-request',
  1318. hidden: true
  1319. // permission: 'M_goodsManage_list'
  1320. }
  1321. }
  1322. ]
  1323. }
  1324. ]
  1325. },
  1326. // 财务管理
  1327. {
  1328. path: '/financialManagement',
  1329. redirect: '/financialManagement/returnConfirmation',
  1330. component: PageView,
  1331. meta: {
  1332. title: '财务管理',
  1333. icon: 'property-safety'
  1334. // permission: 'M_shop'
  1335. },
  1336. children: [
  1337. // 二期
  1338. // {
  1339. // path: '/financialManagement/inventoryReview',
  1340. // redirect: '/financialManagement/inventoryReview/list',
  1341. // name: 'inventoryReview',
  1342. // component: RouteView,
  1343. // meta: {
  1344. // title: '盘点审核',
  1345. // icon: 'laptop'
  1346. // // permission: 'M_goodsManage_list'
  1347. // },
  1348. // hideChildrenInMenu: true,
  1349. // children: [
  1350. // {
  1351. // path: 'list',
  1352. // name: 'inventoryReviewList',
  1353. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/list.vue'),
  1354. // meta: {
  1355. // title: '盘点审核列表',
  1356. // icon: 'laptop',
  1357. // hidden: true
  1358. // // permission: 'M_goodsManage_list'
  1359. // }
  1360. // },
  1361. // {
  1362. // path: 'detail/:id',
  1363. // name: 'inventoryReviewDetail',
  1364. // component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/inventoryReview/detail.vue'),
  1365. // meta: {
  1366. // title: '盘点审核详情',
  1367. // icon: 'laptop',
  1368. // hidden: true
  1369. // // permission: 'B_goodsManage_edit'
  1370. // }
  1371. // }
  1372. // ]
  1373. // },
  1374. {
  1375. path: '/financialManagement/warehousingConfirmation',
  1376. redirect: '/financialManagement/warehousingConfirmation/list',
  1377. name: 'warehousingConfirmation',
  1378. component: RouteView,
  1379. meta: {
  1380. title: '入库确认',
  1381. icon: 'pull-request'
  1382. // permission: 'M_goodsManage_list'
  1383. },
  1384. hideChildrenInMenu: true,
  1385. children: [
  1386. {
  1387. path: 'list',
  1388. name: 'warehousingConfirmationList',
  1389. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/warehousingConfirmation/list.vue'),
  1390. meta: {
  1391. title: '入库确认列表',
  1392. icon: 'pull-request',
  1393. hidden: true
  1394. // permission: 'M_goodsManage_list'
  1395. }
  1396. }
  1397. ]
  1398. },
  1399. {
  1400. path: '/financialManagement/returnConfirmation',
  1401. redirect: '/financialManagement/returnConfirmation/list',
  1402. name: 'returnConfirmation',
  1403. component: RouteView,
  1404. meta: {
  1405. title: '退货确认',
  1406. icon: 'pull-request'
  1407. // permission: 'M_goodsManage_list'
  1408. },
  1409. hideChildrenInMenu: true,
  1410. children: [
  1411. {
  1412. path: 'list',
  1413. name: 'returnConfirmationList',
  1414. component: () => import(/* webpackChunkName: "financialManagement" */ '@/views/financialManagement/returnConfirmation/list.vue'),
  1415. meta: {
  1416. title: '退货确认列表',
  1417. icon: 'pull-request',
  1418. hidden: true
  1419. // permission: 'M_goodsManage_list'
  1420. }
  1421. }
  1422. ]
  1423. },
  1424. {
  1425. path: '/financialManagement/financialCollection',
  1426. redirect: '/financialManagement/financialCollection/list',
  1427. name: 'financialCollection',
  1428. component: RouteView,
  1429. meta: {
  1430. title: '财务收款',
  1431. icon: 'sketch'
  1432. // permission: 'M_goodsManage_list'
  1433. },
  1434. hideChildrenInMenu: true,
  1435. children: [
  1436. {
  1437. path: 'list',
  1438. name: 'financialCollectionList',
  1439. component: () => import(/* webpackChunkName: "shop" */ '@/views/financialManagement/financialCollection/list.vue'),
  1440. meta: {
  1441. title: '财务收款列表',
  1442. icon: 'sketch',
  1443. hidden: true
  1444. // permission: 'M_goodsManage_list'
  1445. }
  1446. }
  1447. ]
  1448. }
  1449. ]
  1450. },
  1451. // // 菜单管理
  1452. // {
  1453. // path: '/menusAuth',
  1454. // redirect: '/bnSetting/menusAuth',
  1455. // component: PageView,
  1456. // meta: {
  1457. // title: '菜单管理',
  1458. // icon: 'bars'
  1459. // // permission: 'M_menusAuth_0'
  1460. // },
  1461. // children: [
  1462. // {
  1463. // path: '/menusAuth/storeMenus',
  1464. // name: 'storeMenus',
  1465. // component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/storeMenus.vue'),
  1466. // meta: {
  1467. // title: '连锁菜单管理',
  1468. // icon: 'shop'
  1469. // // permission: 'M_menusAuth_lsMenus'
  1470. // }
  1471. // },
  1472. // // {
  1473. // // path: '/menusAuth/adminMenus',
  1474. // // name: 'adminMenus',
  1475. // // component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/adminMenus.vue'),
  1476. // // meta: {
  1477. // // title: 'boss菜单管理',
  1478. // // icon: 'appstore',
  1479. // // // permission: 'M_menusAuth_adminMenus'
  1480. // // }
  1481. // // },
  1482. // {
  1483. // path: '/menusAuth/menu',
  1484. // name: 'powerMenu',
  1485. // component: () => import(/* webpackChunkName: "auth" */ '@/views/power/menu/menu.vue'),
  1486. // meta: {
  1487. // title: 'IT菜单管理',
  1488. // icon: 'profile'
  1489. // // permission: 'M_menusAuth_menu'
  1490. // }
  1491. // }
  1492. // ]
  1493. // },
  1494. // 基础设置
  1495. {
  1496. path: '/basicData',
  1497. redirect: '/basicData/warehouse',
  1498. component: PageView,
  1499. meta: {
  1500. title: '基础设置',
  1501. icon: 'pushpin'
  1502. // permission: 'M_basicData'
  1503. },
  1504. children: [
  1505. {
  1506. path: '/basicData/warehouse',
  1507. redirect: '/basicData/warehouse/list',
  1508. name: 'warehouse',
  1509. component: RouteView,
  1510. meta: {
  1511. title: '仓库管理',
  1512. icon: 'deployment-unit'
  1513. // permission: 'M_goodsManage_list'
  1514. },
  1515. hideChildrenInMenu: true,
  1516. children: [
  1517. {
  1518. path: 'list',
  1519. name: 'warehouseList',
  1520. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/warehouse/list.vue'),
  1521. meta: {
  1522. title: '仓库列表',
  1523. icon: 'deployment-unit',
  1524. hidden: true
  1525. // permission: 'M_goodsManage_list'
  1526. }
  1527. },
  1528. {
  1529. path: '/basicData/storingLocation/:sn',
  1530. name: 'storingLocationList',
  1531. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/warehouse/storingLocation/list.vue'),
  1532. meta: {
  1533. title: '仓位列表',
  1534. icon: 'deployment-unit',
  1535. hidden: true
  1536. // permission: 'B_goodsManage_edit'
  1537. }
  1538. }
  1539. ]
  1540. },
  1541. {
  1542. path: '/basicData/transferTypeManagement',
  1543. redirect: '/basicData/transferTypeManagement/list',
  1544. name: 'transferTypeManagement',
  1545. component: RouteView,
  1546. meta: {
  1547. title: '调拨类型管理',
  1548. icon: 'deployment-unit'
  1549. // permission: 'M_goodsManage_list'
  1550. },
  1551. hideChildrenInMenu: true,
  1552. children: [
  1553. {
  1554. path: 'list',
  1555. name: 'transferTypeManagementList',
  1556. component: () => import(/* webpackChunkName: "shop" */ '@/views/basicData/transferTypeManagement/list.vue'),
  1557. meta: {
  1558. title: '调拨类型列表',
  1559. icon: 'deployment-unit',
  1560. hidden: true
  1561. // permission: 'M_goodsManage_list'
  1562. }
  1563. }
  1564. ]
  1565. }
  1566. ]
  1567. },
  1568. // 权限管理
  1569. {
  1570. path: '/auth',
  1571. redirect: '/auth/userList',
  1572. component: PageView,
  1573. meta: {
  1574. title: '权限管理',
  1575. icon: 'lock'
  1576. // permission: 'M_auth_0'
  1577. },
  1578. children: [
  1579. {
  1580. path: '/auth/userList',
  1581. name: 'powerUserList',
  1582. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/user/userList.vue'),
  1583. meta: {
  1584. title: '用户管理',
  1585. icon: 'user'
  1586. // permission: 'M_auth_userList'
  1587. }
  1588. },
  1589. {
  1590. path: '/auth/roleList',
  1591. name: 'powerRoleList',
  1592. component: () => import(/* webpackChunkName: "auth" */ '@/views/power/role/roleList.vue'),
  1593. meta: {
  1594. title: '角色管理',
  1595. icon: 'solution'
  1596. // permission: 'M_auth_roleList'
  1597. }
  1598. },
  1599. {
  1600. path: '/menusAuth/adminMenus',
  1601. name: 'adminMenus',
  1602. component: () => import(/* webpackChunkName: "bnSetting" */ '@/views/bnSetting/menu/adminMenus.vue'),
  1603. meta: {
  1604. title: '菜单管理',
  1605. icon: 'appstore'
  1606. // permission: 'M_menusAuth_adminMenus'
  1607. }
  1608. }
  1609. ]
  1610. },
  1611. // 系统设置
  1612. {
  1613. path: '/setting',
  1614. redirect: '/setting/userList',
  1615. component: PageView,
  1616. meta: {
  1617. title: '系统设置',
  1618. icon: 'setting'
  1619. // permission: 'M_setting_0'
  1620. },
  1621. children: [
  1622. {
  1623. path: '/setting/dataDictionary',
  1624. name: 'powerDD',
  1625. component: () => import(/* webpackChunkName: "setting" */
  1626. '@/views/power/dataDictionary/dataDictionary.vue'),
  1627. meta: {
  1628. title: '数据字典管理',
  1629. icon: 'database'
  1630. // permission: 'M_sys_dataDictionary'
  1631. }
  1632. },
  1633. // {
  1634. // path: '/setting/register',
  1635. // name: 'powerRegister',
  1636. // component: () => import(/* webpackChunkName: "setting" */ '@/views/power/register/register.vue'),
  1637. // meta: {
  1638. // title: '参数管理',
  1639. // icon: 'key',
  1640. // permission: 'M_sys_register'
  1641. // }
  1642. // },
  1643. {
  1644. path: '/setting/OperateJournal',
  1645. name: 'powerOperateJournal',
  1646. component: () => import(/* webpackChunkName: "setting" */
  1647. '@/views/power/OperateJournal/OperateJournal.vue'),
  1648. meta: {
  1649. title: '操作日志',
  1650. icon: 'read'
  1651. // permission: 'M_operateJournal'
  1652. }
  1653. },
  1654. {
  1655. path: '/setting/noticeManagement',
  1656. redirect: '/setting/noticeManagement/list',
  1657. name: 'noticeManagement',
  1658. component: RouteView,
  1659. meta: {
  1660. title: '公告管理',
  1661. icon: 'sketch'
  1662. // permission: 'M_goodsManage_list'
  1663. },
  1664. hideChildrenInMenu: true,
  1665. children: [
  1666. {
  1667. path: 'list',
  1668. name: 'noticeManagementList',
  1669. component: () => import(/* webpackChunkName: "shop" */ '@/views/setting/noticeManagement/list.vue'),
  1670. meta: {
  1671. title: '公告列表',
  1672. icon: 'sketch',
  1673. hidden: true
  1674. // permission: 'M_goodsManage_list'
  1675. }
  1676. }
  1677. ]
  1678. }
  1679. ]
  1680. }
  1681. ]
  1682. },
  1683. {
  1684. path: '*',
  1685. redirect: '/404',
  1686. hidden: true
  1687. }
  1688. ]
  1689. /**
  1690. * 基础路由
  1691. * @type { *[] }
  1692. */
  1693. export const constantRouterMap = [
  1694. {
  1695. path: '/user',
  1696. component: UserLayout,
  1697. redirect: '/user/login',
  1698. hidden: true,
  1699. children: [
  1700. {
  1701. path: 'login',
  1702. name: 'login',
  1703. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
  1704. },
  1705. {
  1706. path: 'register',
  1707. name: 'register',
  1708. component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register')
  1709. },
  1710. {
  1711. path: 'register-result',
  1712. name: 'registerResult',
  1713. component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
  1714. },
  1715. {
  1716. path: 'recover',
  1717. name: 'recover',
  1718. component: undefined
  1719. }
  1720. ]
  1721. },
  1722. {
  1723. path: '/404',
  1724. component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  1725. }
  1726. ]