25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

890 satır
20 KiB

  1. /**
  2. * SYS 系统设置
  3. * admin 系统用户
  4. * erp 供应链管理
  5. * basic 基础信息管理
  6. * bill 单据管理
  7. * crm crm会员管理
  8. * franchisee 加盟商
  9. * srd 店铺管理
  10. **/
  11. export default [
  12. {
  13. path: '/user',
  14. layout: false,
  15. routes: [
  16. {
  17. name: '系统登录',
  18. path: '/user/login',
  19. component: './user/login',
  20. access: 'k1',
  21. },
  22. ],
  23. },
  24. {
  25. path: '/gateAdmin',
  26. name: '档口管理',
  27. component: './card/gateAdmin',
  28. layout: false
  29. },
  30. {
  31. name: '快速开始',
  32. icon: 'PlayCircleOutlined',
  33. path: '/quickStart',
  34. component: './quickStart',
  35. },
  36. {
  37. name: '系统管理',
  38. icon: 'SettingOutlined',
  39. path: '/sys',
  40. routes: [
  41. {
  42. name: '加盟商管理',
  43. icon: 'smile',
  44. path: '/sys/company',
  45. component: './sys/company',
  46. access: 'k2',
  47. },
  48. {
  49. name: '审核企业',
  50. icon: 'smile',
  51. path: '/sys/companyApply',
  52. component: './sys/companyApply',
  53. access: 'k2',
  54. },
  55. {
  56. name: '支付配置',
  57. icon: 'smile',
  58. path: '/sys/paytemplate',
  59. component: './sys/paytemplate',
  60. access: 'k2',
  61. },
  62. {
  63. name: '组织管理',
  64. icon: 'smile',
  65. path: '/sys/org',
  66. component: './sys/org',
  67. access: 'k2',
  68. },
  69. {
  70. name: '操作日志',
  71. icon: 'smile',
  72. path: '/sys/log',
  73. component: './sys/log',
  74. access: 'k3',
  75. },
  76. {
  77. name: '系统用户',
  78. icon: 'smile',
  79. path: '/sys/user',
  80. component: './sys/user',
  81. access: 'k4',
  82. },
  83. {
  84. name: '角色权限',
  85. icon: 'smile',
  86. path: '/sys/roles',
  87. component: './sys/roles',
  88. access: 'k5',
  89. },
  90. {
  91. name: '系统菜单',
  92. icon: 'smile',
  93. path: '/sys/menus',
  94. component: './sys/menus',
  95. access: 'k6',
  96. },
  97. {
  98. name: '字典信息',
  99. icon: 'smile',
  100. path: '/sys/dictionary/dictdata',
  101. component: './sys/dictionary/dictdata',
  102. access: 'k6',
  103. },
  104. {
  105. name: '字典类型',
  106. icon: 'smile',
  107. path: '/sys/dictionary/dicttype',
  108. component: './sys/dictionary/dicttype',
  109. access: 'k6',
  110. },
  111. {
  112. name: '设备系列配置',
  113. icon: 'smile',
  114. path: '/sys/deviceTypeConfig',
  115. component: './sys/deviceTypeConfig',
  116. access: 'k6',
  117. },
  118. {
  119. name: '系统配置',
  120. icon: 'smile',
  121. path: '/sys/sysSettings',
  122. component: './sys/sysSettings',
  123. access: 'k6',
  124. },
  125. {
  126. name: '设备管理',
  127. icon: 'smile',
  128. path: '/sys/storemanage',
  129. component: './sys/storemanage',
  130. access: 'k6',
  131. },
  132. ],
  133. },
  134. {
  135. name: '小程序管理',
  136. icon: 'BankFilled',
  137. path: '/applet',
  138. routes: [
  139. {
  140. name: '页面管理',
  141. icon: 'smile',
  142. path: '/applet/pageManage',
  143. component: './applet/pageManage',
  144. access: 'k2',
  145. },
  146. {
  147. name: '素材管理',
  148. icon: 'smile',
  149. path: '/applet/material',
  150. component: './applet/material',
  151. access: 'k2',
  152. },
  153. ]
  154. },
  155. {
  156. name: '一卡通管理',
  157. icon: 'BankFilled',
  158. path: '/card',
  159. routes: [
  160. {
  161. name: '账户管理',
  162. icon: 'smile',
  163. path: '/card/memberAccount',
  164. component: './card/memberAccount',
  165. access: 'k2',
  166. },
  167. {
  168. name: '储值卡管理',
  169. icon: 'smile',
  170. path: '/card/storedValueCard',
  171. component: './card/storedValueCard',
  172. access: 'k2',
  173. },
  174. {
  175. name: '档口管理',
  176. icon: 'smile',
  177. path: '/card/gate',
  178. component: './card/gate',
  179. access: 'k2',
  180. },
  181. {
  182. name: '刷卡机管理',
  183. icon: 'smile',
  184. path: '/card/machine',
  185. component: './card/machine',
  186. access: 'k2',
  187. },
  188. {
  189. name: '预定商品',
  190. icon: 'smile',
  191. path: '/card/checkgoods',
  192. component: './card/checkgoods',
  193. access: 'k10',
  194. },
  195. {
  196. name: '预定报表',
  197. icon: 'smile',
  198. path: '/card/reservation',
  199. component: './card/reservation',
  200. access: 'k10',
  201. },
  202. {
  203. name: '预定用餐情况',
  204. icon: 'smile',
  205. path: '/card/reservationReport',
  206. component: './card/reservationReport',
  207. access: 'k10',
  208. },
  209. {
  210. name: '公司预约统计',
  211. icon: 'smile',
  212. path: '/card/enterpriseReservation',
  213. component: './card/enterpriseReservation',
  214. access: 'k10',
  215. },
  216. ]
  217. },
  218. {
  219. name: '物料管理',
  220. icon: 'DropboxSquareFilled',
  221. path: '/erp',
  222. routes: [
  223. {
  224. name: '物料信息',
  225. icon: 'smile',
  226. path: '/erp/basic/product',
  227. component: './erp/basic/product',
  228. access: 'k7',
  229. },
  230. {
  231. name: '物料单位',
  232. icon: 'smile',
  233. path: '/erp/basic/unit',
  234. component: './erp/basic/unit',
  235. access: 'k8',
  236. },
  237. {
  238. name: '物料分类',
  239. icon: 'smile',
  240. path: '/erp/basic/productType',
  241. component: './erp/basic/productType',
  242. access: 'k9',
  243. },
  244. {
  245. name: '验收入库',
  246. icon: 'smile',
  247. path: '/erp/bill/receivingNote',
  248. component: './erp/bill/receivingNote',
  249. access: 'k15',
  250. },
  251. {
  252. name: '采购管理',
  253. icon: 'smile',
  254. path: '/erp/bill/purchaseOrder',
  255. component: './erp/bill/purchaseOrder',
  256. },
  257. {
  258. name: '物料库存',
  259. icon: 'smile',
  260. path: '/erp/stock',
  261. component: './erp/stock',
  262. access: 'k16',
  263. },
  264. ],
  265. },
  266. {
  267. name: '物料管理',
  268. icon: 'DropboxSquareFilled',
  269. path: '/bom',
  270. routes: [
  271. {
  272. name: '配方管理',
  273. icon: 'smile',
  274. path: '/bom/manage',
  275. component: './bom/manage',
  276. access: 'k7',
  277. },
  278. {
  279. name: '配方分类',
  280. icon: 'smile',
  281. path: '/bom/bomtype',
  282. component: './bom/bomtype',
  283. access: 'k7',
  284. },
  285. {
  286. name: '小炒配置',
  287. icon: 'smile',
  288. path: '/bom/cookingentry',
  289. component: './bom/cookingentry',
  290. access: 'k8',
  291. },
  292. ],
  293. },
  294. {
  295. name: '商品管理',
  296. icon: 'ProjectFilled',
  297. path: '/goods',
  298. routes: [
  299. {
  300. name: '商品管理',
  301. icon: 'smile',
  302. path: '/goods/goods-manage',
  303. component: './goods/goods-manage',
  304. access: 'k10',
  305. },
  306. {
  307. name: '商品管理新',
  308. icon: 'smile',
  309. path: '/goods/newgoods',
  310. component: './goods/newgoods',
  311. access: 'k10',
  312. },
  313. {
  314. name: '商品口味',
  315. icon: 'smile',
  316. path: '/goods/goods-taste',
  317. component: './goods/goods-taste',
  318. access: 'k11',
  319. },
  320. {
  321. name: '商品小类',
  322. icon: 'smile',
  323. path: '/goods/goods-type-manage',
  324. component: './goods/goods-type-manage',
  325. access: 'k11',
  326. },
  327. {
  328. name: '商品大类',
  329. icon: 'smile',
  330. path: '/goods/goodsParentTypemanage',
  331. component: './goods/goodsParentTypemanage',
  332. access: 'k11',
  333. },
  334. {
  335. name: '商品单位',
  336. icon: 'smile',
  337. path: '/goods/unit',
  338. component: './goods/unit',
  339. access: 'k11',
  340. },
  341. {
  342. name: '商品详情',
  343. icon: 'smile',
  344. path: '/goods/goodsInfo',
  345. component: './goods/goodsInfo',
  346. access: 'k11',
  347. },
  348. {
  349. name: '商品做法',
  350. icon: 'smile',
  351. path: '/goods/goodsPractice',
  352. component: './goods/goodsPractice',
  353. access: 'k9',
  354. },
  355. {
  356. name: '商品做法类别',
  357. icon: 'smile',
  358. path: '/goods/goodsPracticeType',
  359. component: './goods/goodsPracticeType',
  360. access: 'k9',
  361. },
  362. {
  363. name: '商品做法基础信息',
  364. icon: 'smile',
  365. path: '/goods/goodsPracticeInfo',
  366. component: './goods/goodsPracticeInfo',
  367. access: 'k9',
  368. },
  369. ],
  370. },
  371. {
  372. name: '店铺管理',
  373. icon: 'BankFilled',
  374. path: '/store',
  375. routes: [
  376. {
  377. name: '店铺类型',
  378. icon: 'smile',
  379. path: '/store/storeType',
  380. component: './store/storeType',
  381. access: 'k12',
  382. },
  383. {
  384. name: '店铺员工',
  385. icon: 'smile',
  386. path: '/store/storeStaff',
  387. component: './store/storeStaff',
  388. access: 'k12',
  389. },
  390. {
  391. name: '店铺小票打印机',
  392. icon: 'smile',
  393. path: '/store/printer/Printer',
  394. component: './store/printer/Printer',
  395. access: 'k12',
  396. },
  397. {
  398. name: '打印机模板',
  399. icon: 'smile',
  400. path: '/store/printer/printerTemplate',
  401. component: './store/printer/printerTemplate',
  402. access: 'k12',
  403. },
  404. {
  405. name: '店铺桌面码',
  406. icon: 'smile',
  407. path: '/store/storeDesktopNumber',
  408. component: './store/storeDesktopNumber',
  409. access: 'k12',
  410. },
  411. {
  412. name: '店铺等级',
  413. icon: 'smile',
  414. path: '/store/storeLevel',
  415. component: './store/storeLevel',
  416. access: 'k13',
  417. },
  418. {
  419. name: '店铺信息',
  420. icon: 'smile',
  421. path: '/store/storeInfo',
  422. component: './store/storeInfo',
  423. access: 'k14',
  424. },
  425. {
  426. name: '加购商品',
  427. icon: 'smile',
  428. path: '/store/storeAddGoodsInfo',
  429. component: './store/storeAddGoodsInfo',
  430. access: 'k14',
  431. },
  432. {
  433. name: '店铺商品',
  434. icon: 'smile',
  435. path: '/store/storeGoodsInfo',
  436. component: './store/storeGoodsInfo',
  437. access: 'k14',
  438. },
  439. {
  440. name: '店铺广告',
  441. icon: 'smile',
  442. path: '/store/storeAdvertisement',
  443. component: './store/storeAdvertisement',
  444. access: 'k39',
  445. },
  446. ],
  447. },
  448. {
  449. name: '设备管理',
  450. icon: 'BankFilled',
  451. path: '/device',
  452. routes: [
  453. {
  454. name: '设备分类',
  455. icon: 'smile',
  456. path: '/device/deviceType',
  457. component: './device/deviceType',
  458. access: 'k12',
  459. },
  460. {
  461. name: '设备信息',
  462. icon: 'smile',
  463. path: '/device/deviceInfo',
  464. component: './device/deviceInfo',
  465. access: 'k14',
  466. },
  467. {
  468. name: '设备商品管理',
  469. icon: 'smile',
  470. path: '/device/deviceFood',
  471. component: './device/deviceFood',
  472. access: 'k14',
  473. },
  474. {
  475. name: '小炒',
  476. icon: 'smile',
  477. path: '/device/deviceStirFryTime',
  478. component: './device/deviceStirFryTime',
  479. access: 'k14',
  480. },
  481. {
  482. code: 'deviceBOM',
  483. name: '设备配方管理',
  484. icon: 'smile',
  485. path: '/device/deviceBom',
  486. component: './device/deviceBom',
  487. access: 'k14',
  488. },
  489. {
  490. name: '设备补货',
  491. icon: 'smile',
  492. path: '/device/deviceStock',
  493. component: './device/deviceStock',
  494. access: 'k14',
  495. },
  496. {
  497. name: '设备配方补货',
  498. icon: 'smile',
  499. path: '/device/deviceRecipeStock',
  500. component: './device/deviceRecipeStock',
  501. access: 'k14',
  502. },
  503. {
  504. name: '调酒设备',
  505. icon: 'smile',
  506. path: '/device/devicemorkmwpush',
  507. component: './device/devicemorkmwpush',
  508. access: 'k14',
  509. },
  510. ],
  511. },
  512. {
  513. name: '积分管理',
  514. icon: 'BankFilled',
  515. path: '/integral',
  516. routes: [
  517. {
  518. name: '积分规则',
  519. icon: 'smile',
  520. path: '/integral/integralConfigure',
  521. component: './integral/integralConfigure',
  522. access: 'k12',
  523. },
  524. {
  525. name: '规则分发',
  526. icon: 'smile',
  527. path: '/integral/integralDistribute',
  528. component: './integral/integralDistribute',
  529. access: 'k12',
  530. },
  531. ]
  532. },
  533. {
  534. name: '菜谱管理',
  535. icon: 'BankFilled',
  536. path: '/foodMenu',
  537. routes: [
  538. {
  539. name: '菜谱设置',
  540. icon: 'smile',
  541. path: '/foodMenu/foodMenuInfo',
  542. component: './foodMenu/foodMenuInfo',
  543. access: 'k12',
  544. },
  545. {
  546. name: '菜谱关联门店',
  547. icon: 'smile',
  548. path: '/foodMenu/storeFoodMenu',
  549. component: './foodMenu/storeFoodMenu',
  550. access: 'k14',
  551. },
  552. {
  553. name: '菜谱关联菜品',
  554. icon: 'smile',
  555. path: '/foodMenu/foodMenu',
  556. component: './foodMenu/foodMenu',
  557. access: 'k14',
  558. }
  559. ]
  560. },
  561. {
  562. name: '会员管理',
  563. icon: 'UserSwitchOutlined',
  564. path: '/member',
  565. routes: [
  566. {
  567. name: '会员信息',
  568. icon: 'smile',
  569. path: '/member/memberInfo',
  570. component: './member/memberInfo',
  571. access: 'k17',
  572. },
  573. {
  574. name: '会员标签信息',
  575. icon: 'smile',
  576. path: '/member/membertag',
  577. component: './member/membertag',
  578. access: 'k18',
  579. },
  580. {
  581. name: '会员数据分析',
  582. icon: 'smile',
  583. path: '/member/memberAnalysis',
  584. component: './member/memberAnalysis',
  585. access: 'k19',
  586. },
  587. ],
  588. },
  589. {
  590. name: '活动管理',
  591. icon: 'CarryOutOutlined',
  592. path: '/activity',
  593. routes: [
  594. {
  595. name: '活动信息',
  596. icon: 'smile',
  597. path: '/activity/activityInfo',
  598. component: './activity/activityInfo',
  599. access: 'k20',
  600. },
  601. {
  602. name: '活动记录信息',
  603. icon: 'smile',
  604. path: '/activity/activityRecord',
  605. component: './activity/activityRecord',
  606. access: 'k21',
  607. },
  608. {
  609. name: '快速开始',
  610. icon: 'smile',
  611. path: '/activity/activityStart',
  612. component: './activity/activityStart',
  613. access: 'k21',
  614. },
  615. ],
  616. },
  617. {
  618. name: '优惠券管理',
  619. icon: 'WalletOutlined',
  620. path: '/crm',
  621. routes: [
  622. {
  623. name: '优惠卷管理',
  624. icon: 'smile',
  625. path: '/crm/coupon/couponInfo',
  626. component: './crm/coupon/couponInfo',
  627. access: 'k22',
  628. },
  629. {
  630. name: '优惠卷批次信息',
  631. icon: 'smile',
  632. path: '/crm/coupon/coupon-Batch',
  633. component: './crm/coupon/coupon-Batch',
  634. access: 'k23',
  635. },
  636. {
  637. name: '优惠卷领取信息',
  638. icon: 'smile',
  639. path: '/crm/coupon/customerCoupon',
  640. component: './crm/coupon/customerCoupon',
  641. access: 'k24',
  642. },
  643. {
  644. code: 'paperCoupon',
  645. name: '纸质优惠卷管理',
  646. icon: 'smile',
  647. path: '/crm/coupon/paperCoupon',
  648. component: './crm/coupon/paperCoupon',
  649. access: 'k24',
  650. },
  651. {
  652. code: 'paperCouponReport',
  653. name: '纸质优惠卷报表统计',
  654. icon: 'smile',
  655. path: '/crm/coupon/paperCouponReport',
  656. component: './crm/coupon/paperCouponReport',
  657. access: 'k24',
  658. },
  659. ],
  660. },
  661. {
  662. name: '分账管理',
  663. icon: 'RedEnvelopeOutlined',
  664. path: '/split',
  665. routes: [
  666. {
  667. name: '分账账户管理',
  668. icon: 'smile',
  669. path: '/split/account',
  670. component: './split/account',
  671. access: 'k25',
  672. },
  673. {
  674. name: '加盟商分账方案',
  675. icon: 'smile',
  676. path: '/split/FranchiseePlan',
  677. component: './split/FranchiseePlan',
  678. access: 'k25',
  679. },
  680. {
  681. name: '分账方案管理',
  682. icon: 'smile',
  683. path: '/split/plan',
  684. component: './split/plan',
  685. access: 'k26',
  686. },
  687. {
  688. name: '分账订单管理',
  689. icon: 'smile',
  690. path: '/split/splitOrders',
  691. component: './split/splitOrders',
  692. access: 'k27',
  693. },
  694. ],
  695. },
  696. {
  697. name: '退款操作',
  698. icon: 'AccountBookOutlined',
  699. path: '/refundment',
  700. routes: [
  701. {
  702. name: '售后申请',
  703. icon: 'smile',
  704. path: '/refundment/orderAfterSales',
  705. component: './refundment/orderAfterSales',
  706. access: 'k28',
  707. },
  708. ],
  709. },
  710. {
  711. name: '报表统计',
  712. icon: 'SmileOutlined',
  713. path: '/order',
  714. routes: [
  715. {
  716. name: '订单汇总',
  717. path: '/order/order-summary-manage',
  718. component: './order/order-summary-manage',
  719. access: 'k29',
  720. },
  721. {
  722. name: '订单流水',
  723. path: '/order/order-flow-manage',
  724. component: './order/order-flow-manage',
  725. access: 'k30',
  726. },
  727. {
  728. name: '未支付订单',
  729. path: '/order/order-nopay-detail',
  730. component: './order/order-nopay-detail',
  731. access: 'k32',
  732. },
  733. {
  734. name: '订单明细',
  735. path: '/order/orderDetail',
  736. component: './order/orderDetail',
  737. access: 'k31',
  738. },
  739. {
  740. name: '退款订单',
  741. path: '/order/refundOrder',
  742. component: './order/refundOrder',
  743. access: 'k31',
  744. },
  745. {
  746. name: '营业日报',
  747. path: '/order/ordersalescountbyday',
  748. component: './order/ordersalescountbyday',
  749. access: 'k32',
  750. },
  751. {
  752. name: '异常订单信息',
  753. path: '/order/exOrder',
  754. component: './order/exOrder',
  755. access: 'k31',
  756. },
  757. {
  758. name: '营收报表',
  759. path: '/order/order-market-report',
  760. component: './order/order-market-report',
  761. access: 'k31',
  762. },
  763. {
  764. name: '订单报表',
  765. path: '/order/order-report',
  766. component: './order/order-report',
  767. access: 'k31',
  768. },
  769. {
  770. name: '订单报表详情',
  771. path: '/order/order-report/order-report-detail',
  772. component: './order/order-report-detail',
  773. access: 'k31',
  774. },
  775. {
  776. name: '营销报表',
  777. path: '/order/order-revenue-statement',
  778. component: './order/order-revenue-statement',
  779. access: 'k31',
  780. },
  781. {
  782. name: '产品报表',
  783. path: '/order/order-product-report',
  784. component: './order/order-product-report',
  785. access: 'k31',
  786. },
  787. {
  788. name: '会员报表',
  789. path: '/order/order-member-statement',
  790. component: './order/order-member-statement',
  791. access: 'k31',
  792. },
  793. {
  794. name: '销售成本分析',
  795. path: '/order/cost-of-sales',
  796. component: './order/cost-of-sales',
  797. access: 'k31',
  798. },
  799. {
  800. name: '销售毛利分析',
  801. path: '/order/sales-gross-profit',
  802. component: './order/sales-gross-profit',
  803. access: 'k31',
  804. },
  805. {
  806. name: '门店销售毛利分析',
  807. path: '/order/gross-profit-store-sales',
  808. component: './order/gross-profit-store-sales',
  809. access: 'k31',
  810. },
  811. ],
  812. },
  813. {
  814. name: '库存管理',
  815. icon: 'HddOutlined',
  816. path: '/stockManager',
  817. routes: [
  818. {
  819. name: '其它物料入库',
  820. path: '/stockManager/stockItem',
  821. component: './stockManager/stockItem',
  822. access: 'k36',
  823. },
  824. {
  825. name: '库存盘点',
  826. path: '/stockManager/stockInventory',
  827. component: './stockManager/stockInventory',
  828. access: 'k37',
  829. },
  830. {
  831. name: '库存报表',
  832. path: '/stockManager/stockReports',
  833. component: './stockManager/stockReports',
  834. access: 'k38',
  835. },
  836. ],
  837. },
  838. {
  839. name: '财务报表',
  840. icon: 'HddOutlined',
  841. path: '/financereport',
  842. routes: [
  843. {
  844. name: '财务账单',
  845. path: '/financereport/finance',
  846. component: './financereport/finance',
  847. access: 'k37',
  848. },
  849. ],
  850. },
  851. {
  852. path: '/',
  853. redirect: '/welcome',
  854. },
  855. {
  856. path: '/welcome',
  857. name: 'welcome',
  858. icon: 'smile',
  859. component: './Welcome',
  860. },
  861. {
  862. name: 'test',
  863. icon: 'HddOutlined',
  864. path: '/test',
  865. routes: [
  866. {
  867. name: 'test',
  868. path: '/test/update',
  869. component: './test/update',
  870. access: 'k37',
  871. },
  872. {
  873. name: 'test',
  874. path: '/test',
  875. component: './test',
  876. access: 'k37',
  877. },
  878. ],
  879. },
  880. //什么都不要想404直接放最后
  881. {
  882. component: './404',
  883. },
  884. ];