包含后厨 团餐 门店分支
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.

routes.js 12 KiB

11 months ago
10 months ago
10 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
9 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
9 months ago
10 months ago
11 months ago
11 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  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/menus',
  33. component: './sys/menus',
  34. access: 'k6',
  35. },
  36. // {
  37. // name: '字典信息',
  38. // icon: 'smile',
  39. // path: '/sys/dictionary/dictdata',
  40. // component: './sys/dictionary/dictdata',
  41. // access: 'k6',
  42. // },
  43. {
  44. name: '字典类型',
  45. icon: 'smile',
  46. path: '/sys/dictionary/dicttype',
  47. component: './sys/dictionary/dicttype',
  48. access: 'k6',
  49. },
  50. // {
  51. // name: '操作日志',
  52. // icon: 'smile',
  53. // path: '/sys/log',
  54. // component: './sys/log',
  55. // access: 'k3',
  56. // },
  57. // {
  58. // name: '错误日志',
  59. // icon: 'smile',
  60. // path: '/sys/log',
  61. // component: './sys/log',
  62. // access: 'k3',
  63. // },
  64. ],
  65. },
  66. {
  67. name: '加盟商管理',
  68. icon: 'SettingOutlined',
  69. path: '/company',
  70. routes: [
  71. {
  72. name: '账号管理',
  73. icon: 'smile',
  74. path: '/company/account',
  75. component: './company/account',
  76. access: 'k2',
  77. },
  78. ]
  79. },
  80. {
  81. name: '组织管理',
  82. icon: 'SettingOutlined',
  83. path: '/org',
  84. routes: [
  85. {
  86. name: '机构管理',
  87. icon: 'smile',
  88. path: '/org/orgamange',
  89. component: './org/orgamange',
  90. access: 'k2',
  91. },
  92. {
  93. name: '角色管理',
  94. icon: 'smile',
  95. path: '/org/roles',
  96. component: './org/roles',
  97. access: 'k5',
  98. },
  99. {
  100. name: '用户账号管理',
  101. icon: 'smile',
  102. path: '/org/users',
  103. component: './org/users',
  104. access: 'k5',
  105. },
  106. ]
  107. },
  108. {
  109. name: '元数据管理',
  110. icon: 'DropboxSquareFilled',
  111. path: '/database',
  112. routes: [
  113. {
  114. name: '配方管理',
  115. icon: 'smile',
  116. path: '/database/bom',
  117. component: './database/bom',
  118. access: 'k7',
  119. },
  120. {
  121. name: '物料管理',
  122. icon: 'smile',
  123. path: '/database/basic/batching',
  124. component: './database/basic/batching',
  125. access: 'k7',
  126. },
  127. {
  128. name: '配方管理',
  129. icon: 'smile',
  130. path: '/database/bom',
  131. component: './database/bom',
  132. access: 'k7',
  133. },
  134. {
  135. name: '商品管理',
  136. icon: 'smile',
  137. path: '/database',
  138. routes: [
  139. {
  140. name: '商品类型',
  141. icon: 'smile',
  142. path: '/database/goods/goodstypemanage',
  143. component: './database/goods/goodstypemanage',
  144. access: 'k7',
  145. },
  146. {
  147. name: '商品多属性',
  148. icon: 'smile',
  149. path: '/database/goods/goodsattribute',
  150. component: './database/goods/goodsattribute',
  151. access: 'k7',
  152. },
  153. {
  154. name: '商品基础信息',
  155. icon: 'smile',
  156. path: '/database/goods/newgoods',
  157. component: './database/goods/newgoods',
  158. access: 'k7',
  159. },
  160. {
  161. name: '添加商品基础信息',
  162. icon: 'smile',
  163. path: '/database/goods/goodsInfo',
  164. component: './database/goods/goodsInfo',
  165. access: 'k7',
  166. },
  167. {
  168. name: '商品配方',
  169. icon: 'smile',
  170. path: '/database/goods/goodsbom',
  171. component: './database/goods/goodsbom',
  172. access: 'k7',
  173. },
  174. {
  175. name: '商品工艺',
  176. icon: 'smile',
  177. path: '/database/goods/goodstechnology',
  178. component: './database/goods/goodstechnology',
  179. access: 'k7',
  180. },
  181. ]
  182. },
  183. ],
  184. },
  185. {
  186. name: '设备管理',
  187. icon: 'BankFilled',
  188. path: '/device',
  189. routes: [
  190. {
  191. name: '产品管理',
  192. icon: 'smile',
  193. path: '/device/product',
  194. component: './device/product',
  195. access: 'k12',
  196. },
  197. {
  198. name: '设备信息',
  199. icon: 'smile',
  200. path: '/device/deviceInfo',
  201. component: './device/deviceInfo',
  202. access: 'k14',
  203. },
  204. {
  205. name: '设备仓位模板',
  206. icon: 'smile',
  207. path: '/device/warehousepostion',
  208. component: './device/warehousepostion',
  209. access: 'k14',
  210. },
  211. {
  212. name: '版本管理',
  213. icon: 'smile',
  214. path: '/device/deviceVesion',
  215. component: './device/deviceVesion',
  216. access: 'k14',
  217. },
  218. {
  219. name: '产品功能',
  220. icon: 'smile',
  221. path: '/device/productmanage',
  222. component: './device/productmanage',
  223. access: 'k14',
  224. },
  225. {
  226. name: '设备工艺',
  227. icon: 'smile',
  228. path: '/device/technology',
  229. component: './device/technology',
  230. access: 'k14',
  231. },
  232. // {
  233. // name: '设备工艺信息',
  234. // icon: 'smile',
  235. // path: '/device/devicetechnology',
  236. // component: './device/devicetechnology',
  237. // access: 'k9',
  238. // },
  239. // {
  240. // name: '设备商品管理',
  241. // icon: 'smile',
  242. // path: '/device/deviceFood',
  243. // component: './device/deviceFood',
  244. // access: 'k14',
  245. // },
  246. ],
  247. },
  248. {
  249. name: '设备数据下发',
  250. icon: 'BankFilled',
  251. path: '/push',
  252. routes: [
  253. {
  254. name: '商品数据下发',
  255. icon: 'smile',
  256. path: '/push/goodspush',
  257. component: './push/goodspush',
  258. access: 'k12',
  259. },
  260. {
  261. name: '工艺数据下发',
  262. icon: 'smile',
  263. path: '/push/technologypush',
  264. component: './push/technologypush',
  265. access: 'k14',
  266. },
  267. {
  268. name: '物料数据下发',
  269. icon: 'smile',
  270. path: '/push/batchingpush',
  271. component: './push/batchingpush',
  272. access: 'k14',
  273. },
  274. {
  275. name: '配方数据下发',
  276. icon: 'smile',
  277. path: '/push/bompush',
  278. component: './push/bompush',
  279. access: 'k14',
  280. },
  281. ],
  282. },
  283. {
  284. path: '/groupMeal/shop',
  285. icon: 'SettingOutlined',
  286. name: '团餐场景管理',
  287. routes: [
  288. {
  289. name: '会员信息',
  290. icon: 'smile',
  291. path: '/groupMeal/shop',
  292. component: './groupMeal/shop',
  293. }]
  294. },
  295. {
  296. name: '团餐会员管理',
  297. icon: 'BankFilled',
  298. path: '/groupMeal/member',
  299. routes: [
  300. {
  301. name: '会员信息',
  302. icon: 'smile',
  303. path: '/groupMeal/member/memberInfo',
  304. component: './groupMeal/member/memberInfo',
  305. },
  306. {
  307. name: '会员标签',
  308. icon: 'smile',
  309. path: '/groupMeal/member/membertag',
  310. component: './groupMeal/member/membertag',
  311. },
  312. ]},
  313. {
  314. name: '团餐一卡通管理',
  315. icon: 'BankFilled',
  316. path: '/groupMeal/oneCard',
  317. routes: [
  318. {
  319. name: '档口管理',
  320. icon: 'smile',
  321. path: '/groupMeal/oneCard/gate',
  322. component: './groupMeal/oneCard/gate',
  323. },
  324. {
  325. name: '刷卡机管理',
  326. icon: 'smile',
  327. path: '/groupMeal/oneCard/machine',
  328. component: './groupMeal/oneCard/machine',
  329. },
  330. {
  331. name: '储值卡管理',
  332. icon: 'smile',
  333. path: '/groupMeal/oneCard/storedValueCard',
  334. component: './groupMeal/oneCard/storedValueCard',
  335. },
  336. {
  337. name: '账号管理',
  338. icon: 'smile',
  339. path: '/groupMeal/oneCard/memberAccount',
  340. component: './groupMeal/oneCard/memberAccount',
  341. },
  342. {
  343. name: '报表统计',
  344. icon: 'BankFilled',
  345. path: '/groupMeal/oneCard/ReportStatistics',
  346. routes: [
  347. {
  348. name: '用餐汇总表',
  349. icon: 'smile',
  350. path: '/groupMeal/oneCard/ReportStatistics/reservation',
  351. component: './groupMeal/oneCard/ReportStatistics/reservation',
  352. },
  353. {
  354. name: '计次就餐天消费',
  355. icon: 'smile',
  356. path: '/groupMeal/oneCard/ReportStatistics/dayConsumption',
  357. component: './groupMeal/oneCard/ReportStatistics/dayConsumption',
  358. },
  359. {
  360. name: '月餐段汇总',
  361. icon: 'smile',
  362. path: '/groupMeal/oneCard/ReportStatistics/monthSummary',
  363. component: './groupMeal/oneCard/ReportStatistics/monthSummary',
  364. },
  365. {
  366. name: '月餐段消费',
  367. icon: 'smile',
  368. path: '/groupMeal/oneCard/ReportStatistics/monthTimeSlot',
  369. component: './groupMeal/oneCard/ReportStatistics/monthTimeSlot',
  370. },
  371. ],
  372. },
  373. ],
  374. },
  375. {
  376. name: '团餐小程序管理',
  377. icon: 'BankFilled',
  378. path: 'applet',
  379. routes: [
  380. {
  381. name: '页面管理',
  382. icon: 'smile',
  383. path: '/applet/paytemplate',
  384. component: './applet/paytemplate',
  385. },
  386. {
  387. name: '素材管理',
  388. icon: 'smile',
  389. path: '/applet/basicconfiguration',
  390. component: './applet/basicconfiguration',
  391. },
  392. {
  393. name: '小程序基础配置',
  394. icon: 'smile',
  395. path: '/applet/appidmanager',
  396. routes: [
  397. {
  398. name: '支付配置',
  399. icon: 'smile',
  400. path: '/applet/appidmanager/payment',
  401. component: './applet/appidmanager/payment',
  402. },
  403. {
  404. name: 'APPID',
  405. icon: 'smile',
  406. path: '/applet/appidmanager/appid',
  407. component: './applet/appidmanager/appid',
  408. },
  409. ],
  410. },
  411. ],
  412. },
  413. {
  414. name: '订单管理',
  415. icon: 'BankFilled',
  416. path: '/order',
  417. routes: [
  418. {
  419. name: '称重订单',
  420. icon: 'smile',
  421. path: '/order/weighOrder',
  422. component: './order/weighOrder',
  423. },
  424. {
  425. name: '订单流水',
  426. icon: 'smile',
  427. path: '/order/orderflow',
  428. component: './order/orderflow',
  429. },
  430. {
  431. name: '第三方订单',
  432. icon: 'smile',
  433. path: '/order/thirdOrder',
  434. component: './order/thirdOrder',
  435. },
  436. {
  437. name: '授权管理',
  438. icon: 'smile',
  439. path: '/order/thirdAuthorize',
  440. component: './order/thirdAuthorize',
  441. },
  442. ],
  443. },
  444. {
  445. name: '产盘管理',
  446. icon: 'BankFilled',
  447. path: '/groupMeal/diningPlate',
  448. routes: [
  449. {
  450. name: '产盘管理',
  451. icon: 'smile',
  452. path: '/groupMeal/diningPlate',
  453. component: './groupMeal/diningPlate',
  454. },
  455. ],
  456. },
  457. {
  458. name: '授权管理',
  459. icon: 'BankFilled',
  460. path: '/authorization',
  461. routes: [
  462. {
  463. name: '平台授权',
  464. icon: 'smile',
  465. path: '/authorization/platformAuthorization',
  466. component: './authorization/platformAuthorization',
  467. access: 'k12',
  468. },
  469. {
  470. name: '店铺授权',
  471. icon: 'smile',
  472. path: '/authorization/storeAuthorization',
  473. component: './authorization/storeAuthorization',
  474. access: 'k12',
  475. }
  476. ],
  477. },
  478. {
  479. path: '/',
  480. redirect: '/welcome',
  481. },
  482. {
  483. path: '/welcome',
  484. name: 'welcome',
  485. icon: 'smile',
  486. component: './Welcome',
  487. },
  488. //什么都不要想404直接放最后
  489. {
  490. component: './404',
  491. },
  492. ];