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.
 
 
 

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