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

386 lines
9.2 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/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/basic/batching',
  117. component: './database/basic/batching',
  118. access: 'k7',
  119. },
  120. {
  121. name: '商品管理',
  122. icon: 'smile',
  123. path: '/database',
  124. routes: [
  125. {
  126. name: '商品类型',
  127. icon: 'smile',
  128. path: '/database/goods/goodstypemanage',
  129. component: './database/goods/goodstypemanage',
  130. access: 'k7',
  131. },
  132. {
  133. name: '商品多属性',
  134. icon: 'smile',
  135. path: '/database/goods/goodsattribute',
  136. component: './database/goods/goodsattribute',
  137. access: 'k7',
  138. },
  139. {
  140. name: '商品基础信息',
  141. icon: 'smile',
  142. path: '/database/goods/newgoods',
  143. component: './database/goods/newgoods',
  144. access: 'k7',
  145. },
  146. {
  147. name: '添加商品基础信息',
  148. icon: 'smile',
  149. path: '/database/goods/goodsInfo',
  150. component: './database/goods/goodsInfo',
  151. access: 'k7',
  152. },
  153. ]
  154. },
  155. ],
  156. },
  157. {
  158. name: '设备管理',
  159. icon: 'BankFilled',
  160. path: '/device',
  161. routes: [
  162. {
  163. name: '产品管理',
  164. icon: 'smile',
  165. path: '/device/product',
  166. component: './device/product',
  167. access: 'k12',
  168. },
  169. {
  170. name: '设备信息',
  171. icon: 'smile',
  172. path: '/device/deviceInfo',
  173. component: './device/deviceInfo',
  174. access: 'k14',
  175. },
  176. {
  177. name: '版本管理',
  178. icon: 'smile',
  179. path: '/device/deviceVesion',
  180. component: './device/deviceVesion',
  181. access: 'k14',
  182. },
  183. {
  184. name: '产品功能',
  185. icon: 'smile',
  186. path: '/device/productmanage',
  187. component: './device/productmanage',
  188. access: 'k14',
  189. },
  190. {
  191. name: '设备数据下发',
  192. icon: 'smile',
  193. path: '/device/devicepush',
  194. component: './device/devicepush',
  195. access: 'k14',
  196. },
  197. // {
  198. // name: '设备工艺信息',
  199. // icon: 'smile',
  200. // path: '/device/devicetechnology',
  201. // component: './device/devicetechnology',
  202. // access: 'k9',
  203. // },
  204. // {
  205. // name: '设备商品管理',
  206. // icon: 'smile',
  207. // path: '/device/deviceFood',
  208. // component: './device/deviceFood',
  209. // access: 'k14',
  210. // },
  211. ],
  212. },
  213. {
  214. path: '/groupMeal/shop',
  215. icon: 'SettingOutlined',
  216. name: '场景管理',
  217. component: './groupMeal/shop',
  218. },
  219. {
  220. name: '会员管理',
  221. icon: 'BankFilled',
  222. path: '/groupMeal/member',
  223. routes: [
  224. {
  225. name: '会员信息',
  226. icon: 'smile',
  227. path: '/groupMeal/member/memberInfo',
  228. component: './groupMeal/member/memberInfo',
  229. },
  230. {
  231. name: '会员标签',
  232. icon: 'smile',
  233. path: '/groupMeal/member/membertag',
  234. component: './groupMeal/member/membertag',
  235. },
  236. ]},
  237. {
  238. name: '一卡通管理',
  239. icon: 'BankFilled',
  240. path: '/groupMeal/oneCard',
  241. routes: [
  242. {
  243. name: '档口管理',
  244. icon: 'smile',
  245. path: '/groupMeal/oneCard/gate',
  246. component: './groupMeal/oneCard/gate',
  247. },
  248. {
  249. name: '刷卡机管理',
  250. icon: 'smile',
  251. path: '/groupMeal/oneCard/machine',
  252. component: './groupMeal/oneCard/machine',
  253. },
  254. {
  255. name: '储值卡管理',
  256. icon: 'smile',
  257. path: '/groupMeal/oneCard/storedValueCard',
  258. component: './groupMeal/oneCard/storedValueCard',
  259. },
  260. {
  261. name: '账号管理',
  262. icon: 'smile',
  263. path: '/groupMeal/oneCard/memberAccount',
  264. component: './groupMeal/oneCard/memberAccount',
  265. },
  266. {
  267. name: '报表统计',
  268. icon: 'BankFilled',
  269. path: '/groupMeal/oneCard/ReportStatistics',
  270. routes: [
  271. {
  272. name: '用餐汇总表',
  273. icon: 'smile',
  274. path: '/groupMeal/oneCard/ReportStatistics/reservation',
  275. component: './groupMeal/oneCard/ReportStatistics/reservation',
  276. },
  277. {
  278. name: '计次就餐天消费',
  279. icon: 'smile',
  280. path: '/groupMeal/oneCard/ReportStatistics/dayConsumption',
  281. component: './groupMeal/oneCard/ReportStatistics/dayConsumption',
  282. },
  283. {
  284. name: '月餐段汇总',
  285. icon: 'smile',
  286. path: '/groupMeal/oneCard/ReportStatistics/monthSummary',
  287. component: './groupMeal/oneCard/ReportStatistics/monthSummary',
  288. },
  289. {
  290. name: '月餐段消费',
  291. icon: 'smile',
  292. path: '/groupMeal/oneCard/ReportStatistics/monthTimeSlot',
  293. component: './groupMeal/oneCard/ReportStatistics/monthTimeSlot',
  294. },
  295. ],
  296. },
  297. ],
  298. },
  299. {
  300. name: '小程序管理',
  301. icon: 'BankFilled',
  302. path: '/groupMeal/applet',
  303. routes: [
  304. {
  305. name: '页面管理',
  306. icon: 'smile',
  307. path: '/groupMeal/applet/paytemplate',
  308. component: './groupMeal/applet/paytemplate',
  309. },
  310. {
  311. name: '素材管理',
  312. icon: 'smile',
  313. path: '/groupMeal/applet/basicconfiguration',
  314. component: './groupMeal/applet/basicconfiguration',
  315. },
  316. {
  317. name: '小程序基础配置',
  318. icon: 'smile',
  319. path: '/groupMeal/applet/appidmanager',
  320. routes: [
  321. {
  322. name: '支付配置',
  323. icon: 'smile',
  324. path: '/groupMeal/applet/appidmanager/payment',
  325. component: './groupMeal/applet/appidmanager/payment',
  326. },
  327. {
  328. name: 'APPID',
  329. icon: 'smile',
  330. path: '/groupMeal/applet/appidmanager/appid',
  331. component: './groupMeal/applet/appidmanager/appid',
  332. },
  333. ],
  334. },
  335. ],
  336. },
  337. {
  338. name: '订单管理',
  339. icon: 'BankFilled',
  340. path: '/order',
  341. routes: [
  342. {
  343. name: '订单流水',
  344. icon: 'smile',
  345. path: '/order/orderflow',
  346. component: './order/orderflow',
  347. },
  348. {
  349. name: '第三方订单',
  350. icon: 'smile',
  351. path: '/order/thirdOrder',
  352. component: './order/thirdOrder',
  353. },
  354. {
  355. name: '店铺授权',
  356. icon: 'smile',
  357. path: '/order/thirdOrder',
  358. component: './order/thirdOrder',
  359. },
  360. {
  361. name: '授权管理',
  362. icon: 'smile',
  363. path: '/order/thirdAuthorize',
  364. component: './order/thirdAuthorize',
  365. },
  366. ],
  367. },
  368. {
  369. path: '/',
  370. redirect: '/welcome',
  371. },
  372. {
  373. path: '/welcome',
  374. name: 'welcome',
  375. icon: 'smile',
  376. component: './Welcome',
  377. },
  378. //什么都不要想404直接放最后
  379. {
  380. component: './404',
  381. },
  382. ];