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.
 
 
 

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