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

372 lines
8.4 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/bom',
  124. component: './database/bom',
  125. access: 'k7',
  126. },
  127. {
  128. name: '商品管理',
  129. icon: 'smile',
  130. path: '/database',
  131. routes: [
  132. {
  133. name: '商品类型',
  134. icon: 'smile',
  135. path: '/database/goods/goodstypemanage',
  136. component: './database/goods/goodstypemanage',
  137. access: 'k7',
  138. },
  139. {
  140. name: '商品多属性',
  141. icon: 'smile',
  142. path: '/database/goods/goodsattribute',
  143. component: './database/goods/goodsattribute',
  144. access: 'k7',
  145. },
  146. {
  147. name: '商品基础信息',
  148. icon: 'smile',
  149. path: '/database/goods/newgoods',
  150. component: './database/goods/newgoods',
  151. access: 'k7',
  152. },
  153. {
  154. name: '添加商品基础信息',
  155. icon: 'smile',
  156. path: '/database/goods/goodsInfo',
  157. component: './database/goods/goodsInfo',
  158. access: 'k7',
  159. },
  160. {
  161. name: '商品配方',
  162. icon: 'smile',
  163. path: '/database/goods/goodsbom',
  164. component: './database/goods/goodsbom',
  165. access: 'k7',
  166. },
  167. {
  168. name: '商品工艺',
  169. icon: 'smile',
  170. path: '/database/goods/goodstechnology',
  171. component: './database/goods/goodstechnology',
  172. access: 'k7',
  173. },
  174. {
  175. name: '商品属性配置',
  176. icon: 'smile',
  177. path: '/database/goods/goodsattributeprice',
  178. component: './database/goods/goodsattributeprice',
  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: '/scene',
  252. routes: [
  253. {
  254. name: '场景基础信息',
  255. icon: 'smile',
  256. path: '/scene/store',
  257. component: './scene/store',
  258. access: 'k12',
  259. },
  260. {
  261. name: '场景菜谱信息',
  262. icon: 'smile',
  263. path: '/scene/foodmenu',
  264. component: './scene/foodmenu',
  265. access: 'k14',
  266. },
  267. ],
  268. },
  269. {
  270. name: '设备数据下发',
  271. icon: 'BankFilled',
  272. path: '/push',
  273. routes: [
  274. {
  275. name: '商品数据下发',
  276. icon: 'smile',
  277. path: '/push/goodspush',
  278. component: './push/goodspush',
  279. access: 'k12',
  280. },
  281. {
  282. name: '物料数据下发',
  283. icon: 'smile',
  284. path: '/push/batchingpush',
  285. component: './push/batchingpush',
  286. access: 'k14',
  287. },
  288. {
  289. name: '配方数据下发',
  290. icon: 'smile',
  291. path: '/push/bompush',
  292. component: './push/bompush',
  293. access: 'k14',
  294. },
  295. {
  296. name: '工艺数据下发',
  297. icon: 'smile',
  298. path: '/push/technologypush',
  299. component: './push/technologypush',
  300. access: 'k14',
  301. },
  302. ],
  303. },
  304. {
  305. name: '订单管理',
  306. icon: 'BankFilled',
  307. path: '/order',
  308. routes: [
  309. {
  310. name: '订单流水',
  311. icon: 'smile',
  312. path: '/order/orderflow',
  313. component: './order/orderflow',
  314. access: 'k12',
  315. },
  316. {
  317. name: '订单授权',
  318. icon: 'smile',
  319. path: '/order/thirdAuthorize',
  320. component: './order/thirdAuthorize',
  321. access: 'k12',
  322. },
  323. {
  324. name: '第三方订单',
  325. icon: 'smile',
  326. path: '/order/thirdOrder',
  327. component: './order/thirdOrder',
  328. access: 'k12',
  329. },
  330. ],
  331. },
  332. {
  333. name: '授权管理',
  334. icon: 'BankFilled',
  335. path: '/authorization',
  336. routes: [
  337. {
  338. name: '平台授权',
  339. icon: 'smile',
  340. path: '/authorization/platformAuthorization',
  341. component: './authorization/platformAuthorization',
  342. access: 'k12',
  343. },
  344. {
  345. name: '店铺授权',
  346. icon: 'smile',
  347. path: '/authorization/storeAuthorization',
  348. component: './authorization/storeAuthorization',
  349. access: 'k12',
  350. }
  351. ],
  352. },
  353. {
  354. path: '/',
  355. redirect: '/welcome',
  356. },
  357. {
  358. path: '/welcome',
  359. name: 'welcome',
  360. icon: 'smile',
  361. component: './Welcome',
  362. },
  363. //什么都不要想404直接放最后
  364. {
  365. component: './404',
  366. },
  367. ];