Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

855 rader
19 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. },
  211. {
  212. name: '物料管理',
  213. icon: 'DropboxSquareFilled',
  214. path: '/erp',
  215. routes: [
  216. {
  217. name: '物料信息',
  218. icon: 'smile',
  219. path: '/erp/basic/product',
  220. component: './erp/basic/product',
  221. access: 'k7',
  222. },
  223. {
  224. name: '物料单位',
  225. icon: 'smile',
  226. path: '/erp/basic/unit',
  227. component: './erp/basic/unit',
  228. access: 'k8',
  229. },
  230. {
  231. name: '物料分类',
  232. icon: 'smile',
  233. path: '/erp/basic/productType',
  234. component: './erp/basic/productType',
  235. access: 'k9',
  236. },
  237. {
  238. name: '验收入库',
  239. icon: 'smile',
  240. path: '/erp/bill/receivingNote',
  241. component: './erp/bill/receivingNote',
  242. access: 'k15',
  243. },
  244. {
  245. name: '采购管理',
  246. icon: 'smile',
  247. path: '/erp/bill/purchaseOrder',
  248. component: './erp/bill/purchaseOrder',
  249. },
  250. {
  251. name: '物料库存',
  252. icon: 'smile',
  253. path: '/erp/stock',
  254. component: './erp/stock',
  255. access: 'k16',
  256. },
  257. ],
  258. },
  259. {
  260. name: '物料管理',
  261. icon: 'DropboxSquareFilled',
  262. path: '/bom',
  263. routes: [
  264. {
  265. name: '配方管理',
  266. icon: 'smile',
  267. path: '/bom/manage',
  268. component: './bom/manage',
  269. access: 'k7',
  270. },
  271. {
  272. name: '配方分类',
  273. icon: 'smile',
  274. path: '/bom/bomtype',
  275. component: './bom/bomtype',
  276. access: 'k7',
  277. },
  278. {
  279. name: '小炒配置',
  280. icon: 'smile',
  281. path: '/bom/cookingentry',
  282. component: './bom/cookingentry',
  283. access: 'k8',
  284. },
  285. ],
  286. },
  287. {
  288. name: '商品管理',
  289. icon: 'ProjectFilled',
  290. path: '/goods',
  291. routes: [
  292. {
  293. name: '商品管理',
  294. icon: 'smile',
  295. path: '/goods/goods-manage',
  296. component: './goods/goods-manage',
  297. access: 'k10',
  298. },
  299. {
  300. name: '商品管理新',
  301. icon: 'smile',
  302. path: '/goods/newgoods',
  303. component: './goods/newgoods',
  304. access: 'k10',
  305. },
  306. {
  307. name: '商品口味',
  308. icon: 'smile',
  309. path: '/goods/goods-taste',
  310. component: './goods/goods-taste',
  311. access: 'k11',
  312. },
  313. {
  314. name: '商品小类',
  315. icon: 'smile',
  316. path: '/goods/goods-type-manage',
  317. component: './goods/goods-type-manage',
  318. access: 'k11',
  319. },
  320. {
  321. name: '商品大类',
  322. icon: 'smile',
  323. path: '/goods/goodsParentTypemanage',
  324. component: './goods/goodsParentTypemanage',
  325. access: 'k11',
  326. },
  327. {
  328. name: '商品单位',
  329. icon: 'smile',
  330. path: '/goods/unit',
  331. component: './goods/unit',
  332. access: 'k11',
  333. },
  334. {
  335. name: '商品详情',
  336. icon: 'smile',
  337. path: '/goods/goodsInfo',
  338. component: './goods/goodsInfo',
  339. access: 'k11',
  340. },
  341. {
  342. name: '商品做法',
  343. icon: 'smile',
  344. path: '/goods/goodsPractice',
  345. component: './goods/goodsPractice',
  346. access: 'k9',
  347. },
  348. {
  349. name: '商品做法类别',
  350. icon: 'smile',
  351. path: '/goods/goodsPracticeType',
  352. component: './goods/goodsPracticeType',
  353. access: 'k9',
  354. },
  355. {
  356. name: '商品做法基础信息',
  357. icon: 'smile',
  358. path: '/goods/goodsPracticeInfo',
  359. component: './goods/goodsPracticeInfo',
  360. access: 'k9',
  361. },
  362. ],
  363. },
  364. {
  365. name: '店铺管理',
  366. icon: 'BankFilled',
  367. path: '/store',
  368. routes: [
  369. {
  370. name: '店铺类型',
  371. icon: 'smile',
  372. path: '/store/storeType',
  373. component: './store/storeType',
  374. access: 'k12',
  375. },
  376. {
  377. name: '店铺员工',
  378. icon: 'smile',
  379. path: '/store/storeStaff',
  380. component: './store/storeStaff',
  381. access: 'k12',
  382. },
  383. {
  384. name: '店铺小票打印机',
  385. icon: 'smile',
  386. path: '/store/printer/Printer',
  387. component: './store/printer/Printer',
  388. access: 'k12',
  389. },
  390. {
  391. name: '打印机模板',
  392. icon: 'smile',
  393. path: '/store/printer/printerTemplate',
  394. component: './store/printer/printerTemplate',
  395. access: 'k12',
  396. },
  397. {
  398. name: '店铺桌面码',
  399. icon: 'smile',
  400. path: '/store/storeDesktopNumber',
  401. component: './store/storeDesktopNumber',
  402. access: 'k12',
  403. },
  404. {
  405. name: '店铺等级',
  406. icon: 'smile',
  407. path: '/store/storeLevel',
  408. component: './store/storeLevel',
  409. access: 'k13',
  410. },
  411. {
  412. name: '店铺信息',
  413. icon: 'smile',
  414. path: '/store/storeInfo',
  415. component: './store/storeInfo',
  416. access: 'k14',
  417. },
  418. {
  419. name: '加购商品',
  420. icon: 'smile',
  421. path: '/store/storeAddGoodsInfo',
  422. component: './store/storeAddGoodsInfo',
  423. access: 'k14',
  424. },
  425. {
  426. name: '店铺商品',
  427. icon: 'smile',
  428. path: '/store/storeGoodsInfo',
  429. component: './store/storeGoodsInfo',
  430. access: 'k14',
  431. },
  432. {
  433. name: '店铺广告',
  434. icon: 'smile',
  435. path: '/store/storeAdvertisement',
  436. component: './store/storeAdvertisement',
  437. access: 'k39',
  438. },
  439. ],
  440. },
  441. {
  442. name: '设备管理',
  443. icon: 'BankFilled',
  444. path: '/device',
  445. routes: [
  446. {
  447. name: '设备分类',
  448. icon: 'smile',
  449. path: '/device/deviceType',
  450. component: './device/deviceType',
  451. access: 'k12',
  452. },
  453. {
  454. name: '设备信息',
  455. icon: 'smile',
  456. path: '/device/deviceInfo',
  457. component: './device/deviceInfo',
  458. access: 'k14',
  459. },
  460. {
  461. name: '设备商品管理',
  462. icon: 'smile',
  463. path: '/device/deviceFood',
  464. component: './device/deviceFood',
  465. access: 'k14',
  466. },
  467. {
  468. name: '小炒',
  469. icon: 'smile',
  470. path: '/device/deviceStirFryTime',
  471. component: './device/deviceStirFryTime',
  472. access: 'k14',
  473. },
  474. {
  475. code: 'deviceBOM',
  476. name: '设备配方管理',
  477. icon: 'smile',
  478. path: '/device/deviceBom',
  479. component: './device/deviceBom',
  480. access: 'k14',
  481. },
  482. {
  483. name: '设备补货',
  484. icon: 'smile',
  485. path: '/device/deviceStock',
  486. component: './device/deviceStock',
  487. access: 'k14',
  488. },
  489. {
  490. name: '设备配方补货',
  491. icon: 'smile',
  492. path: '/device/deviceRecipeStock',
  493. component: './device/deviceRecipeStock',
  494. access: 'k14',
  495. },
  496. {
  497. name: '调酒设备',
  498. icon: 'smile',
  499. path: '/device/devicemorkmwpush',
  500. component: './device/devicemorkmwpush',
  501. access: 'k14',
  502. },
  503. ],
  504. },
  505. {
  506. name: '积分管理',
  507. icon: 'BankFilled',
  508. path: '/integral',
  509. routes: [
  510. {
  511. name: '积分规则',
  512. icon: 'smile',
  513. path: '/integral/integralConfigure',
  514. component: './integral/integralConfigure',
  515. access: 'k12',
  516. },
  517. {
  518. name: '规则分发',
  519. icon: 'smile',
  520. path: '/integral/integralDistribute',
  521. component: './integral/integralDistribute',
  522. access: 'k12',
  523. },
  524. ]
  525. },
  526. {
  527. name: '菜谱管理',
  528. icon: 'BankFilled',
  529. path: '/foodMenu',
  530. routes: [
  531. {
  532. name: '菜谱设置',
  533. icon: 'smile',
  534. path: '/foodMenu/foodMenuInfo',
  535. component: './foodMenu/foodMenuInfo',
  536. access: 'k12',
  537. },
  538. {
  539. name: '菜谱关联门店',
  540. icon: 'smile',
  541. path: '/foodMenu/storeFoodMenu',
  542. component: './foodMenu/storeFoodMenu',
  543. access: 'k14',
  544. },
  545. {
  546. name: '菜谱关联菜品',
  547. icon: 'smile',
  548. path: '/foodMenu/foodMenu',
  549. component: './foodMenu/foodMenu',
  550. access: 'k14',
  551. }
  552. ]
  553. },
  554. {
  555. name: '会员管理',
  556. icon: 'UserSwitchOutlined',
  557. path: '/member',
  558. routes: [
  559. {
  560. name: '会员信息',
  561. icon: 'smile',
  562. path: '/member/memberInfo',
  563. component: './member/memberInfo',
  564. access: 'k17',
  565. },
  566. {
  567. name: '会员标签信息',
  568. icon: 'smile',
  569. path: '/member/membertag',
  570. component: './member/membertag',
  571. access: 'k18',
  572. },
  573. {
  574. name: '会员数据分析',
  575. icon: 'smile',
  576. path: '/member/memberAnalysis',
  577. component: './member/memberAnalysis',
  578. access: 'k19',
  579. },
  580. ],
  581. },
  582. {
  583. name: '活动管理',
  584. icon: 'CarryOutOutlined',
  585. path: '/activity',
  586. routes: [
  587. {
  588. name: '活动信息',
  589. icon: 'smile',
  590. path: '/activity/activityInfo',
  591. component: './activity/activityInfo',
  592. access: 'k20',
  593. },
  594. {
  595. name: '活动记录信息',
  596. icon: 'smile',
  597. path: '/activity/activityRecord',
  598. component: './activity/activityRecord',
  599. access: 'k21',
  600. },
  601. {
  602. name: '快速开始',
  603. icon: 'smile',
  604. path: '/activity/activityStart',
  605. component: './activity/activityStart',
  606. access: 'k21',
  607. },
  608. ],
  609. },
  610. {
  611. name: '优惠券管理',
  612. icon: 'WalletOutlined',
  613. path: '/crm',
  614. routes: [
  615. {
  616. name: '优惠卷管理',
  617. icon: 'smile',
  618. path: '/crm/coupon/couponInfo',
  619. component: './crm/coupon/couponInfo',
  620. access: 'k22',
  621. },
  622. {
  623. name: '优惠卷批次信息',
  624. icon: 'smile',
  625. path: '/crm/coupon/coupon-Batch',
  626. component: './crm/coupon/coupon-Batch',
  627. access: 'k23',
  628. },
  629. {
  630. name: '优惠卷领取信息',
  631. icon: 'smile',
  632. path: '/crm/coupon/customerCoupon',
  633. component: './crm/coupon/customerCoupon',
  634. access: 'k24',
  635. },
  636. ],
  637. },
  638. {
  639. name: '分账管理',
  640. icon: 'RedEnvelopeOutlined',
  641. path: '/split',
  642. routes: [
  643. {
  644. name: '分账账户管理',
  645. icon: 'smile',
  646. path: '/split/account',
  647. component: './split/account',
  648. access: 'k25',
  649. },
  650. {
  651. name: '加盟商分账方案',
  652. icon: 'smile',
  653. path: '/split/FranchiseePlan',
  654. component: './split/FranchiseePlan',
  655. access: 'k25',
  656. },
  657. {
  658. name: '分账方案管理',
  659. icon: 'smile',
  660. path: '/split/plan',
  661. component: './split/plan',
  662. access: 'k26',
  663. },
  664. {
  665. name: '分账订单管理',
  666. icon: 'smile',
  667. path: '/split/splitOrders',
  668. component: './split/splitOrders',
  669. access: 'k27',
  670. },
  671. ],
  672. },
  673. {
  674. name: '退款操作',
  675. icon: 'AccountBookOutlined',
  676. path: '/refundment',
  677. routes: [
  678. {
  679. name: '售后申请',
  680. icon: 'smile',
  681. path: '/refundment/orderAfterSales',
  682. component: './refundment/orderAfterSales',
  683. access: 'k28',
  684. },
  685. ],
  686. },
  687. {
  688. name: '报表统计',
  689. icon: 'SmileOutlined',
  690. path: '/order',
  691. routes: [
  692. {
  693. name: '订单汇总',
  694. path: '/order/order-summary-manage',
  695. component: './order/order-summary-manage',
  696. access: 'k29',
  697. },
  698. {
  699. name: '订单流水',
  700. path: '/order/order-flow-manage',
  701. component: './order/order-flow-manage',
  702. access: 'k30',
  703. },
  704. {
  705. name: '订单明细',
  706. path: '/order/orderDetail',
  707. component: './order/orderDetail',
  708. access: 'k31',
  709. },
  710. {
  711. name: '营业日报',
  712. path: '/order/ordersalescountbyday',
  713. component: './order/ordersalescountbyday',
  714. access: 'k32',
  715. },
  716. {
  717. name: '异常订单信息',
  718. path: '/order/exOrder',
  719. component: './order/exOrder',
  720. access: 'k31',
  721. },
  722. {
  723. name: '营收报表',
  724. path: '/order/order-market-report',
  725. component: './order/order-market-report',
  726. access: 'k31',
  727. },
  728. {
  729. name: '订单报表',
  730. path: '/order/order-report',
  731. component: './order/order-report',
  732. access: 'k31',
  733. },
  734. {
  735. name: '订单报表详情',
  736. path: '/order/order-report/order-report-detail',
  737. component: './order/order-report-detail',
  738. access: 'k31',
  739. },
  740. {
  741. name: '营销报表',
  742. path: '/order/order-revenue-statement',
  743. component: './order/order-revenue-statement',
  744. access: 'k31',
  745. },
  746. {
  747. name: '产品报表',
  748. path: '/order/order-product-report',
  749. component: './order/order-product-report',
  750. access: 'k31',
  751. },
  752. {
  753. name: '会员报表',
  754. path: '/order/order-member-statement',
  755. component: './order/order-member-statement',
  756. access: 'k31',
  757. },
  758. {
  759. name: '销售成本分析',
  760. path: '/order/cost-of-sales',
  761. component: './order/cost-of-sales',
  762. access: 'k31',
  763. },
  764. {
  765. name: '销售毛利分析',
  766. path: '/order/sales-gross-profit',
  767. component: './order/sales-gross-profit',
  768. access: 'k31',
  769. },
  770. {
  771. name: '门店销售毛利分析',
  772. path: '/order/gross-profit-store-sales',
  773. component: './order/gross-profit-store-sales',
  774. access: 'k31',
  775. },
  776. ],
  777. },
  778. {
  779. name: '库存管理',
  780. icon: 'HddOutlined',
  781. path: '/stockManager',
  782. routes: [
  783. {
  784. name: '其它物料入库',
  785. path: '/stockManager/stockItem',
  786. component: './stockManager/stockItem',
  787. access: 'k36',
  788. },
  789. {
  790. name: '库存盘点',
  791. path: '/stockManager/stockInventory',
  792. component: './stockManager/stockInventory',
  793. access: 'k37',
  794. },
  795. {
  796. name: '库存报表',
  797. path: '/stockManager/stockReports',
  798. component: './stockManager/stockReports',
  799. access: 'k38',
  800. },
  801. ],
  802. },
  803. {
  804. name: '财务报表',
  805. icon: 'HddOutlined',
  806. path: '/financereport',
  807. routes: [
  808. {
  809. name: '财务账单',
  810. path: '/financereport/finance',
  811. component: './financereport/finance',
  812. access: 'k37',
  813. },
  814. ],
  815. },
  816. {
  817. path: '/',
  818. redirect: '/welcome',
  819. },
  820. {
  821. path: '/welcome',
  822. name: 'welcome',
  823. icon: 'smile',
  824. component: './Welcome',
  825. },
  826. {
  827. name: 'test',
  828. icon: 'HddOutlined',
  829. path: '/test',
  830. routes: [
  831. {
  832. name: 'test',
  833. path: '/test/update',
  834. component: './test/update',
  835. access: 'k37',
  836. },
  837. {
  838. name: 'test',
  839. path: '/test',
  840. component: './test',
  841. access: 'k37',
  842. },
  843. ],
  844. },
  845. //什么都不要想404直接放最后
  846. {
  847. component: './404',
  848. },
  849. ];