Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

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