menu.js 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. const { config } = require('./common')
  2. const { apiPrefix } = config;
  3. let database = [
  4. {
  5. "icon": "setting",
  6. "id": "12",
  7. "name": "采购计划管理",
  8. "parentId": "0",
  9. "url": ""
  10. },
  11. {
  12. "icon": "solution",
  13. "id": "13",
  14. "name": "采购计划列表",
  15. "parentId": "12",
  16. "url": ""
  17. },
  18. {
  19. "icon": "user",
  20. "id": "14",
  21. "name": "供货数量提报列表",
  22. "parentId": "12",
  23. "permissionName":"purchase:authorize:supply",
  24. "url": "/purchase/supplylist"
  25. },
  26. {
  27. "icon": "setting",
  28. "id": "15",
  29. "name": "采购订单管理",
  30. "parentId": "0",
  31. "url": ""
  32. },
  33. {
  34. "icon": "solution",
  35. "id": "16",
  36. "name": "采购订单列表",
  37. "parentId": "15",
  38. "url": ""
  39. },
  40. //供应商用
  41. {
  42. "icon": "user",
  43. "id": "17",
  44. "name": "发货录入快递单号",
  45. "parentId": "15",
  46. "permissionName":"sys:authorize:user",
  47. "url": "/sys/authorize/user"
  48. },
  49. {
  50. "icon": "user",
  51. "id": "18",
  52. "name": "订单入库状态查询",
  53. "parentId": "15",
  54. "permissionName":"sys:authorize:user",
  55. "url": "/sys/authorize/user"
  56. },
  57. {
  58. "icon": "user",
  59. "id": "19",
  60. "name": "退货,拒收明细查询",
  61. "parentId": "15",
  62. "permissionName":"sys:authorize:user",
  63. "url": "/sys/authorize/user"
  64. },
  65. /*{
  66. "icon": "setting",
  67. "id": "20",
  68. "name": "拒收明细查询",
  69. "parentId": "15",
  70. "url": ""
  71. },*/
  72. //供应商用
  73. {
  74. "icon": "setting",
  75. "id": "20",
  76. "name": "新品提交",
  77. "parentId": "0",
  78. "url": ""
  79. },
  80. {
  81. "icon": "setting",
  82. "id": "21",
  83. "name": "有编码新品提交",
  84. "parentId": "20",
  85. "url": ""
  86. },
  87. {
  88. "icon": "setting",
  89. "id": "22",
  90. "name": "无编码新品提交",
  91. "parentId": "20",
  92. "url": ""
  93. },
  94. {
  95. "icon": "setting",
  96. "id": "23",
  97. "name": "采购新品查看",
  98. "parentId": "20",
  99. "url": ""
  100. },
  101. {
  102. "icon": "setting",
  103. "id": "24",
  104. "name": "发票管理",
  105. "parentId": "0",
  106. "url": ""
  107. },
  108. {
  109. "icon": "setting",
  110. "id": "25",
  111. "name": "邮寄录入快递单",
  112. "parentId": "24",
  113. "url": ""
  114. },
  115. {
  116. "icon": "setting",
  117. "id": "26",
  118. "name": "签收状态查询",
  119. "parentId": "24",
  120. "url": ""
  121. },
  122. {
  123. "icon": "setting",
  124. "id": "56",
  125. "name": "发票查询",
  126. "parentId": "24",
  127. "url": "/finance/bird-invioce"
  128. },
  129. {
  130. "icon": "setting",
  131. "id": "28",
  132. "name": "回款查询",
  133. "parentId": "0",
  134. "url": ""
  135. },
  136. {
  137. "icon": "setting",
  138. "id": "29",
  139. "name": "回款日期查询",
  140. "parentId": "28",
  141. "url": ""
  142. },
  143. {
  144. "icon": "setting",
  145. "id": "30",
  146. "name": "付款申请提交",
  147. "parentId": "28",
  148. "url": ""
  149. },
  150. {
  151. "icon": "setting",
  152. "id": "31",
  153. "name": "到期回款提示",
  154. "parentId": "28",
  155. "url": ""
  156. },
  157. {
  158. "icon": "setting",
  159. "id": "32",
  160. "name": "到期回款提示",
  161. "parentId": "28",
  162. "url": ""
  163. },
  164. {
  165. "icon": "setting",
  166. "id": "33",
  167. "name": "回款状态查询",
  168. "parentId": "28",
  169. "url": ""
  170. },
  171. {
  172. "icon": "setting",
  173. "id": "34",
  174. "name": "库存查询",
  175. "parentId": "0",
  176. "url": ""
  177. },
  178. {
  179. "icon": "solution",
  180. "id": "35",
  181. "name": "查询挂靠库存",
  182. "parentId": "34",
  183. "url": "/stock/bird-stock"
  184. },
  185. {
  186. "icon": "setting",
  187. "id": "36",
  188. "name": "批件管理",
  189. "parentId": "0",
  190. "url": ""
  191. },
  192. {
  193. "icon": "setting",
  194. "id": "37",
  195. "name": "上传首营资料(供应商,品种)",
  196. "parentId": "36",
  197. "url": ""
  198. },
  199. {
  200. "icon": "setting",
  201. "id": "38",
  202. "name": "首营资料下载",
  203. "parentId": "36",
  204. "url": ""
  205. },
  206. {
  207. "icon": "user",
  208. "id": "39",
  209. "name": "账户管理",
  210. "parentId": "0",
  211. "url": ""
  212. },
  213. {
  214. "icon": "solution",
  215. "id": "40",
  216. "name": "开通新供应商账户",
  217. "parentId": "39",
  218. "permissionName":"sys:authorize:user",
  219. "url": "/user/bird-supplierform"
  220. },
  221. {
  222. "icon": "solution",
  223. "id": "41",
  224. "name": "供应商账户列表",
  225. "parentId": "39",
  226. "permissionName":"sys:authorize:user",
  227. "url": "/user/bird-supplier"
  228. },
  229. {
  230. "icon": "solution",
  231. "id": "45",
  232. "name": "开通新内部账户",
  233. "parentId": "39",
  234. "permissionName":"sys:authorize:user",
  235. "url": "/user/bird-userform"
  236. },
  237. {
  238. "icon": "solution",
  239. "id": "46",
  240. "name": "内部账户列表",
  241. "parentId": "39",
  242. "url": "/user/bird-user"
  243. },
  244. //供应商用 start
  245. {
  246. "icon": "setting",
  247. "id": "42",
  248. "name": "采购需求管理",
  249. "parentId": "0",
  250. "url": ""
  251. },
  252. {
  253. "icon": "solution",
  254. "id": "43",
  255. "name": "采购需求列表",
  256. "parentId": "42",
  257. "url": ""
  258. },
  259. {
  260. "icon": "user",
  261. "id": "44",
  262. "name": "供货数量提报",
  263. "parentId": "42",
  264. "permissionName":"sys:authorize:user",
  265. "url": "/supply/supply-submit"
  266. },
  267. //供应商用 end
  268. {
  269. "icon": "setting",
  270. "id": "1",
  271. "name": "系统管理",
  272. "parentId": "0",
  273. "url": ""
  274. },
  275. {
  276. "icon": "solution",
  277. "id": "2",
  278. "name": "权限管理",
  279. "parentId": "1",
  280. "url": "/auth/bird-permission"
  281. },
  282. {
  283. "icon": "user",
  284. "id": "3",
  285. "name": "用户管理",
  286. "parentId": "2",
  287. "permissionName":"sys:authorize:user",
  288. "url": "/sys/authorize/user"
  289. },
  290. {
  291. "icon": "share-alt",
  292. "id": "4",
  293. "name": "示例",
  294. "parentId": "0",
  295. "url": ""
  296. },
  297. {
  298. "icon": "share-alt",
  299. "id": "5",
  300. "name": "bird-grid示例",
  301. "parentId": "4",
  302. "permissionName":"",
  303. "url": "/demo/bird-grid"
  304. },
  305. {
  306. "icon": "share-alt",
  307. "id": "6",
  308. "name": "bird-selector示例",
  309. "parentId": "4",
  310. "permissionName":"",
  311. "url": "/demo/bird-selector"
  312. },
  313. {
  314. "icon": "share-alt",
  315. "id": "7",
  316. "name": "bird-multi示例",
  317. "parentId": "4",
  318. "permissionName":"",
  319. "url": "/demo/bird-multi"
  320. },
  321. {
  322. "icon": "share-alt",
  323. "id": "8",
  324. "name": "bird-cascader示例",
  325. "parentId": "4",
  326. "permissionName":"",
  327. "url": "/demo/bird-cascader"
  328. },
  329. {
  330. "icon": "share-alt",
  331. "id": "9",
  332. "name": "bird-form示例",
  333. "parentId": "4",
  334. "permissionName":"",
  335. "url": "/demo/bird-form"
  336. },
  337. {
  338. "icon": "share-alt",
  339. "id": "10",
  340. "name": "bird-tree示例",
  341. "parentId": "4",
  342. "permissionName":"",
  343. "url": "/demo/bird-tree"
  344. },
  345. {
  346. "icon": "share-alt",
  347. "id": "11",
  348. "name": "bird-button示例",
  349. "parentId": "4",
  350. "permissionName":"",
  351. "url": "/demo/bird-button"
  352. }
  353. ]
  354. export default {
  355. [`GET ${apiPrefix}/menus`] (req, res) {
  356. res.status(200).json(database)
  357. },
  358. }