You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

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