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.
 
 
 

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