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

455 lines
10 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. name: '设备日志',
  66. icon: 'smile',
  67. path: '/sys/devicelog',
  68. component: './sys/devicelog',
  69. access: 'k3',
  70. },
  71. ],
  72. },
  73. {
  74. name: '加盟商管理',
  75. icon: 'SettingOutlined',
  76. path: '/company',
  77. routes: [
  78. {
  79. name: '账号管理',
  80. icon: 'smile',
  81. path: '/company/account',
  82. component: './company/account',
  83. access: 'k2',
  84. },
  85. ]
  86. },
  87. {
  88. name: '组织管理',
  89. icon: 'SettingOutlined',
  90. path: '/org',
  91. routes: [
  92. {
  93. name: '机构管理',
  94. icon: 'smile',
  95. path: '/org/orgamange',
  96. component: './org/orgamange',
  97. access: 'k2',
  98. },
  99. {
  100. name: '角色管理',
  101. icon: 'smile',
  102. path: '/org/roles',
  103. component: './org/roles',
  104. access: 'k5',
  105. },
  106. {
  107. name: '用户账号管理',
  108. icon: 'smile',
  109. path: '/org/users',
  110. component: './org/users',
  111. access: 'k5',
  112. },
  113. ]
  114. },
  115. {
  116. name: '元数据管理',
  117. icon: 'DropboxSquareFilled',
  118. path: '/database',
  119. routes: [
  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/goodsclassify',
  143. component: './database/goods/goodsclassify',
  144. access: 'k7',
  145. },
  146. {
  147. name: '工艺分类',
  148. icon: 'smile',
  149. path: '/database/goods/goodstypemanage',
  150. component: './database/goods/goodstypemanage',
  151. access: 'k7',
  152. },
  153. {
  154. name: '商品多属性',
  155. icon: 'smile',
  156. path: '/database/goods/goodsattribute',
  157. component: './database/goods/goodsattribute',
  158. access: 'k7',
  159. },
  160. {
  161. name: '商品基础信息',
  162. icon: 'smile',
  163. path: '/database/goods/newgoods',
  164. component: './database/goods/newgoods',
  165. access: 'k7',
  166. },
  167. {
  168. name: '添加商品基础信息',
  169. icon: 'smile',
  170. path: '/database/goods/goodsInfo',
  171. component: './database/goods/goodsInfo',
  172. access: 'k7',
  173. },
  174. {
  175. name: '商品配方',
  176. icon: 'smile',
  177. path: '/database/goods/goodsbom',
  178. component: './database/goods/goodsbom',
  179. access: 'k7',
  180. },
  181. {
  182. name: '商品工艺',
  183. icon: 'smile',
  184. path: '/database/goods/goodstechnology',
  185. component: './database/goods/goodstechnology',
  186. access: 'k7',
  187. },
  188. {
  189. name: '商品属性配置',
  190. icon: 'smile',
  191. path: '/database/goods/goodsattributeprice',
  192. component: './database/goods/goodsattributeprice',
  193. access: 'k7',
  194. },
  195. ]
  196. },
  197. ],
  198. },
  199. {
  200. name: '设备管理',
  201. icon: 'BankFilled',
  202. path: '/device',
  203. routes: [
  204. {
  205. name: '产品管理',
  206. icon: 'smile',
  207. path: '/device/product',
  208. component: './device/product',
  209. access: 'k12',
  210. },
  211. {
  212. name: '设备信息',
  213. icon: 'smile',
  214. path: '/device/deviceInfo',
  215. component: './device/deviceInfo',
  216. access: 'k14',
  217. },
  218. {
  219. name: '设备仓位模板',
  220. icon: 'smile',
  221. path: '/device/warehousepostion',
  222. component: './device/warehousepostion',
  223. access: 'k14',
  224. },
  225. {
  226. name: '版本管理',
  227. icon: 'smile',
  228. path: '/device/deviceVesion',
  229. component: './device/deviceVesion',
  230. access: 'k14',
  231. },
  232. {
  233. name: '产品功能',
  234. icon: 'smile',
  235. path: '/device/productmanage',
  236. component: './device/productmanage',
  237. access: 'k14',
  238. },
  239. {
  240. name: '设备工艺',
  241. icon: 'smile',
  242. path: '/device/technology',
  243. component: './device/technology',
  244. access: 'k14',
  245. },
  246. // {
  247. // name: '设备工艺信息',
  248. // icon: 'smile',
  249. // path: '/device/devicetechnology',
  250. // component: './device/devicetechnology',
  251. // access: 'k9',
  252. // },
  253. // {
  254. // name: '设备商品管理',
  255. // icon: 'smile',
  256. // path: '/device/deviceFood',
  257. // component: './device/deviceFood',
  258. // access: 'k14',
  259. // },
  260. ],
  261. },
  262. {
  263. name: '场景管理',
  264. icon: 'BankFilled',
  265. path: '/scene',
  266. routes: [
  267. {
  268. name: '场景基础信息',
  269. icon: 'smile',
  270. path: '/scene/store',
  271. component: './scene/store',
  272. access: 'k12',
  273. },
  274. {
  275. name: '场景菜谱信息',
  276. icon: 'smile',
  277. path: '/scene/foodmenu',
  278. component: './scene/foodmenu',
  279. access: 'k14',
  280. },
  281. ],
  282. },
  283. {
  284. name: '设备数据下发',
  285. icon: 'BankFilled',
  286. path: '/push',
  287. routes: [
  288. {
  289. name: '商品数据下发',
  290. icon: 'smile',
  291. path: '/push/goodspush',
  292. component: './push/goodspush',
  293. access: 'k12',
  294. },
  295. {
  296. name: '物料数据下发',
  297. icon: 'smile',
  298. path: '/push/batchingpush',
  299. component: './push/batchingpush',
  300. access: 'k14',
  301. },
  302. {
  303. name: '配方数据下发',
  304. icon: 'smile',
  305. path: '/push/bompush',
  306. component: './push/bompush',
  307. access: 'k14',
  308. },
  309. {
  310. name: '工艺数据下发',
  311. icon: 'smile',
  312. path: '/push/technologypush',
  313. component: './push/technologypush',
  314. access: 'k14',
  315. },
  316. ],
  317. },
  318. {
  319. name: '订单管理',
  320. icon: 'BankFilled',
  321. path: '/order',
  322. routes: [
  323. {
  324. name: '订单流水',
  325. icon: 'smile',
  326. path: '/order/orderflow',
  327. component: './order/orderflow',
  328. access: 'k12',
  329. },
  330. {
  331. name: '订单授权',
  332. icon: 'smile',
  333. path: '/order/thirdAuthorize',
  334. component: './order/thirdAuthorize',
  335. access: 'k12',
  336. },
  337. {
  338. name: '第三方订单',
  339. icon: 'smile',
  340. path: '/order/thirdOrder',
  341. component: './order/thirdOrder',
  342. access: 'k12',
  343. },
  344. ],
  345. },
  346. {
  347. name: '授权管理',
  348. icon: 'BankFilled',
  349. path: '/authorization',
  350. routes: [
  351. {
  352. name: '平台授权',
  353. icon: 'smile',
  354. path: '/authorization/platformAuthorization',
  355. component: './authorization/platformAuthorization',
  356. access: 'k12',
  357. },
  358. {
  359. name: '店铺授权',
  360. icon: 'smile',
  361. path: '/authorization/storeAuthorization',
  362. component: './authorization/storeAuthorization',
  363. access: 'k12',
  364. }
  365. ],
  366. },
  367. {
  368. name: '接口文档',
  369. icon: 'smile',
  370. path: '/interfacedoc/index',
  371. component: './interfacedoc/index',
  372. access: 'k12'
  373. },
  374. {
  375. name: '物料管理',
  376. icon: 'BankFilled',
  377. path: '/batching',
  378. routes: [
  379. {
  380. name: '物料信息',
  381. icon: 'smile',
  382. path: '/batching/batchinginfo',
  383. component: './batching/batchinginfo',
  384. access: 'k12',
  385. }
  386. ]
  387. },
  388. {
  389. name: '配方管理',
  390. icon: 'BankFilled',
  391. path: '/recipe',
  392. routes: [
  393. {
  394. name: '配方信息',
  395. icon: 'smile',
  396. path: '/recipe/recipeinfo',
  397. component: './recipe/recipeinfo',
  398. access: 'k12',
  399. }
  400. ]
  401. },
  402. {
  403. name: '门店管理',
  404. icon: 'BankFilled',
  405. path: '/store',
  406. routes: [
  407. {
  408. name: '门店基础信息',
  409. icon: 'smile',
  410. path: '/store/storeinfo',
  411. component: './store/storeinfo',
  412. access: 'k12',
  413. }
  414. ]
  415. },
  416. {
  417. name: '报表管理',
  418. icon: 'BankFilled',
  419. path: '/report',
  420. routes: [
  421. {
  422. name: '配方明细',
  423. icon: 'smile',
  424. path: '/report/recipereport',
  425. component: './report/recipereport',
  426. access: 'k12',
  427. },
  428. {
  429. name: '物料明细',
  430. icon: 'smile',
  431. path: '/report/batchingreport',
  432. component: './report/batchingreport',
  433. access: 'k12',
  434. }
  435. ]
  436. },
  437. {
  438. path: '/',
  439. redirect: '/welcome',
  440. },
  441. {
  442. path: '/welcome',
  443. name: 'welcome',
  444. icon: 'smile',
  445. component: './Welcome',
  446. },
  447. //什么都不要想404直接放最后
  448. {
  449. component: './404',
  450. },
  451. ];