Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

918 linhas
21 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: 'paperCoupon',
  653. name: '商品优惠卷管理',
  654. icon: 'smile',
  655. path: '/crm/coupon/goodsCoupon',
  656. component: './crm/coupon/goodsCoupon',
  657. access: 'k24',
  658. },
  659. {
  660. code: 'paperCouponReport',
  661. name: '纸质优惠卷报表统计',
  662. icon: 'smile',
  663. path: '/crm/coupon/paperCouponReport',
  664. component: './crm/coupon/paperCouponReport',
  665. access: 'k24',
  666. },
  667. {
  668. code: 'paperCouponReport',
  669. name: '商品优惠卷报表统计',
  670. icon: 'smile',
  671. path: '/crm/coupon/goodsCouponReport',
  672. component: './crm/coupon/goodsCouponReport',
  673. access: 'k24',
  674. },
  675. ],
  676. },
  677. {
  678. name: '分账管理',
  679. icon: 'RedEnvelopeOutlined',
  680. path: '/split',
  681. routes: [
  682. {
  683. name: '分账账户管理',
  684. icon: 'smile',
  685. path: '/split/account',
  686. component: './split/account',
  687. access: 'k25',
  688. },
  689. {
  690. name: '加盟商分账方案',
  691. icon: 'smile',
  692. path: '/split/FranchiseePlan',
  693. component: './split/FranchiseePlan',
  694. access: 'k25',
  695. },
  696. {
  697. name: '分账方案管理',
  698. icon: 'smile',
  699. path: '/split/plan',
  700. component: './split/plan',
  701. access: 'k26',
  702. },
  703. {
  704. name: '分账订单管理',
  705. icon: 'smile',
  706. path: '/split/splitOrders',
  707. component: './split/splitOrders',
  708. access: 'k27',
  709. },
  710. ],
  711. },
  712. {
  713. name: '退款操作',
  714. icon: 'AccountBookOutlined',
  715. path: '/refundment',
  716. routes: [
  717. {
  718. name: '售后申请',
  719. icon: 'smile',
  720. path: '/refundment/orderAfterSales',
  721. component: './refundment/orderAfterSales',
  722. access: 'k28',
  723. },
  724. ],
  725. },
  726. {
  727. name: '报表统计',
  728. icon: 'SmileOutlined',
  729. path: '/order',
  730. routes: [
  731. {
  732. name: '订单汇总',
  733. path: '/order/order-summary-manage',
  734. component: './order/order-summary-manage',
  735. access: 'k29',
  736. },
  737. {
  738. name: '订单流水',
  739. path: '/order/order-flow-manage',
  740. component: './order/order-flow-manage',
  741. access: 'k30',
  742. },
  743. {
  744. name: '未支付订单',
  745. path: '/order/order-nopay-detail',
  746. component: './order/order-nopay-detail',
  747. access: 'k32',
  748. },
  749. {
  750. name: '订单明细',
  751. path: '/order/orderDetail',
  752. component: './order/orderDetail',
  753. access: 'k31',
  754. },
  755. {
  756. name: '退款订单',
  757. path: '/order/refundOrder',
  758. component: './order/refundOrder',
  759. access: 'k31',
  760. },
  761. {
  762. name: '商品销量报表',
  763. path: '/order/salesReport',
  764. component: './order/salesReport',
  765. access: 'k31',
  766. },
  767. {
  768. name: '营业日报',
  769. path: '/order/ordersalescountbyday',
  770. component: './order/ordersalescountbyday',
  771. access: 'k32',
  772. },
  773. {
  774. name: '营业报表',
  775. path: '/order/DailyReport',
  776. component: './order/DailyReport',
  777. access: 'k32',
  778. },
  779. {
  780. name: '异常订单信息',
  781. path: '/order/exOrder',
  782. component: './order/exOrder',
  783. access: 'k31',
  784. },
  785. {
  786. name: '营收报表',
  787. path: '/order/order-market-report',
  788. component: './order/order-market-report',
  789. access: 'k31',
  790. },
  791. {
  792. name: '订单报表',
  793. path: '/order/order-report',
  794. component: './order/order-report',
  795. access: 'k31',
  796. },
  797. {
  798. name: '订单报表详情',
  799. path: '/order/order-report/order-report-detail',
  800. component: './order/order-report-detail',
  801. access: 'k31',
  802. },
  803. {
  804. name: '营销报表',
  805. path: '/order/order-revenue-statement',
  806. component: './order/order-revenue-statement',
  807. access: 'k31',
  808. },
  809. {
  810. name: '产品报表',
  811. path: '/order/order-product-report',
  812. component: './order/order-product-report',
  813. access: 'k31',
  814. },
  815. {
  816. name: '会员报表',
  817. path: '/order/order-member-statement',
  818. component: './order/order-member-statement',
  819. access: 'k31',
  820. },
  821. {
  822. name: '销售成本分析',
  823. path: '/order/cost-of-sales',
  824. component: './order/cost-of-sales',
  825. access: 'k31',
  826. },
  827. {
  828. name: '销售毛利分析',
  829. path: '/order/sales-gross-profit',
  830. component: './order/sales-gross-profit',
  831. access: 'k31',
  832. },
  833. {
  834. name: '门店销售毛利分析',
  835. path: '/order/gross-profit-store-sales',
  836. component: './order/gross-profit-store-sales',
  837. access: 'k31',
  838. },
  839. ],
  840. },
  841. {
  842. name: '库存管理',
  843. icon: 'HddOutlined',
  844. path: '/stockManager',
  845. routes: [
  846. {
  847. name: '其它物料入库',
  848. path: '/stockManager/stockItem',
  849. component: './stockManager/stockItem',
  850. access: 'k36',
  851. },
  852. {
  853. name: '库存盘点',
  854. path: '/stockManager/stockInventory',
  855. component: './stockManager/stockInventory',
  856. access: 'k37',
  857. },
  858. {
  859. name: '库存报表',
  860. path: '/stockManager/stockReports',
  861. component: './stockManager/stockReports',
  862. access: 'k38',
  863. },
  864. ],
  865. },
  866. {
  867. name: '财务报表',
  868. icon: 'HddOutlined',
  869. path: '/financereport',
  870. routes: [
  871. {
  872. name: '财务账单',
  873. path: '/financereport/finance',
  874. component: './financereport/finance',
  875. access: 'k37',
  876. },
  877. ],
  878. },
  879. {
  880. path: '/',
  881. redirect: '/welcome',
  882. },
  883. {
  884. path: '/welcome',
  885. name: 'welcome',
  886. icon: 'smile',
  887. component: './Welcome',
  888. },
  889. {
  890. name: 'test',
  891. icon: 'HddOutlined',
  892. path: '/test',
  893. routes: [
  894. {
  895. name: 'test',
  896. path: '/test/update',
  897. component: './test/update',
  898. access: 'k37',
  899. },
  900. {
  901. name: 'test',
  902. path: '/test',
  903. component: './test',
  904. access: 'k37',
  905. },
  906. ],
  907. },
  908. //什么都不要想404直接放最后
  909. {
  910. component: './404',
  911. },
  912. ];