router.ts 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192
  1. const appmenu = {
  2. url: '/account/menu',
  3. type: 'get',
  4. response: {
  5. code: 200,
  6. msg: 'success',
  7. total: 0,
  8. data: [
  9. {
  10. authType: 1,
  11. sort: 1,
  12. title: '主页',
  13. code: 'home',
  14. url: '/home',
  15. urlType: 1,
  16. component: 'views/home/main/index.vue',
  17. icon: 'g-icon--home-filled',
  18. },
  19. {
  20. authType: 1,
  21. sort: 2,
  22. title: '钻石搜索',
  23. code: 'search',
  24. url: '/search',
  25. urlType: 1,
  26. component: 'Main',
  27. icon: 'g-icon--search-filled',
  28. children: [
  29. {
  30. authType: 1,
  31. sort: 1,
  32. title: '单颗裸钻',
  33. code: 'search_diamond',
  34. url: '',
  35. urlType: 1,
  36. component: 'views/search/diamond/index.vue',
  37. children: [
  38. {
  39. authType: 3,
  40. title: '详情',
  41. code: 'search_diamond_details',
  42. component: 'views/warehousing/goods/components/details/index.vue',
  43. },
  44. {
  45. authType: 3,
  46. title: '收藏',
  47. code: 'search_diamond_favorite',
  48. component: 'views/warehousing/goods/components/favorite/index.vue',
  49. },
  50. ]
  51. },
  52. {
  53. authType: 1,
  54. sort: 2,
  55. title: '单颗彩钻',
  56. code: 'search_fancy',
  57. url: 'fancy',
  58. urlType: 1,
  59. component: 'views/search/fancy/index.vue',
  60. children: [
  61. {
  62. authType: 3,
  63. title: '详情',
  64. code: 'search_fancy_details',
  65. component: 'views/warehousing/goods/components/details/index.vue',
  66. },
  67. {
  68. authType: 3,
  69. title: '收藏',
  70. code: 'search_fancy_favorite',
  71. component: 'views/warehousing/goods/components/favorite/index.vue',
  72. },
  73. ]
  74. },
  75. ]
  76. },
  77. {
  78. authType: 1,
  79. sort: 3,
  80. title: '钻石首饰',
  81. code: 'search_jewelry',
  82. url: '/search/jewelry',
  83. urlType: 1,
  84. component: 'views/search/jewelry/index.vue',
  85. icon: 'g-icon--diamond-filled',
  86. },
  87. {
  88. authType: 1,
  89. sort: 4,
  90. title: '挂牌大厅',
  91. code: 'trade',
  92. url: '/trade',
  93. urlType: 1,
  94. component: 'Main',
  95. icon: 'g-icon--listing-filled',
  96. children: [
  97. {
  98. authType: 1,
  99. sort: 1,
  100. title: '出售大厅',
  101. code: 'trade_sell',
  102. url: '',
  103. urlType: 1,
  104. component: 'views/trade/sell/index.vue',
  105. children: [
  106. {
  107. authType: 3,
  108. title: '详情',
  109. code: 'trade_sell_details',
  110. component: 'views/warehousing/goods/components/details/index.vue',
  111. },
  112. {
  113. authType: 3,
  114. title: '收藏',
  115. code: 'trade_sell_favorite',
  116. component: 'views/warehousing/goods/components/favorite/index.vue',
  117. },
  118. ]
  119. },
  120. {
  121. authType: 1,
  122. sort: 1,
  123. title: '求购大厅',
  124. code: 'trade_buy',
  125. url: 'buy',
  126. urlType: 1,
  127. component: 'views/trade/buy/index.vue',
  128. children: [
  129. {
  130. authType: 3,
  131. title: '详情',
  132. code: 'trade_buy_details',
  133. component: 'views/trade/buy/components/details/index.vue',
  134. children: [
  135. {
  136. authType: 2,
  137. title: '摘牌',
  138. code: 'trade_buy_delisting',
  139. component: 'views/trade/buy/components/delisting/index.vue',
  140. className: 'el-button--primary',
  141. },
  142. ]
  143. },
  144. ]
  145. },
  146. {
  147. authType: 1,
  148. sort: 1,
  149. title: '我的出售',
  150. code: 'trade_sale',
  151. url: 'sale',
  152. urlType: 1,
  153. component: 'views/trade/sale/index.vue',
  154. children: [
  155. {
  156. authType: 3,
  157. title: '我要出售',
  158. code: 'trade_sale_add',
  159. component: 'views/trade/sale/components/add/index.vue',
  160. className: 'el-button--primary',
  161. },
  162. {
  163. authType: 3,
  164. title: '详情',
  165. code: 'trade_sale_details',
  166. component: 'views/trade/sale/components/details/index.vue',
  167. },
  168. {
  169. authType: 3,
  170. title: '撤销',
  171. code: 'trade_sale_cancel',
  172. component: 'views/trade/sale/components/cancel/index.vue',
  173. },
  174. ]
  175. },
  176. {
  177. authType: 1,
  178. sort: 1,
  179. title: '我的求购',
  180. code: 'trade_purchase',
  181. url: 'purchase',
  182. urlType: 1,
  183. component: 'views/trade/purchase/index.vue',
  184. children: [
  185. {
  186. authType: 3,
  187. title: '我要求购',
  188. code: 'trade_purchase_add',
  189. component: 'views/trade/purchase/components/add/index.vue',
  190. className: 'el-button--primary',
  191. },
  192. {
  193. authType: 3,
  194. title: '详情',
  195. code: 'trade_purchase_details',
  196. component: 'views/trade/purchase/components/details/index.vue',
  197. },
  198. {
  199. authType: 3,
  200. title: '撤销',
  201. code: 'trade_purchase_cancel',
  202. component: 'views/trade/purchase/components/cancel/index.vue',
  203. },
  204. ]
  205. },
  206. {
  207. authType: 1,
  208. sort: 1,
  209. title: '我的摘牌',
  210. code: 'trade_delisting',
  211. url: 'delisting',
  212. urlType: 1,
  213. component: 'views/trade/delisting/index.vue',
  214. children: [
  215. {
  216. authType: 3,
  217. title: '详情',
  218. code: 'trade_delisting_details',
  219. component: 'views/trade/delisting/components/details/index.vue',
  220. },
  221. ]
  222. },
  223. {
  224. authType: 1,
  225. sort: 1,
  226. title: '我的询价',
  227. code: 'trade_bargain',
  228. url: 'bargain',
  229. urlType: 1,
  230. component: 'views/trade/bargain/index.vue',
  231. children: [
  232. {
  233. authType: 3,
  234. title: '详情',
  235. code: 'trade_bargain_details',
  236. component: 'views/trade/bargain/components/details/index.vue',
  237. },
  238. {
  239. authType: 3,
  240. title: '撤销',
  241. code: 'trade_bargain_cancel',
  242. component: 'views/trade/bargain/components/cancel/index.vue',
  243. },
  244. ]
  245. }
  246. ]
  247. },
  248. {
  249. authType: 1,
  250. sort: 5,
  251. title: '竞价大厅',
  252. code: 'bidding',
  253. url: '/bidding',
  254. urlType: 1,
  255. component: 'Main',
  256. icon: 'g-icon--bidding-filled',
  257. },
  258. {
  259. authType: 1,
  260. sort: 4,
  261. title: '预售大厅',
  262. code: 'presale',
  263. url: '/presale',
  264. urlType: 1,
  265. component: 'Main',
  266. icon: 'g-icon--presale-filled',
  267. children: [
  268. {
  269. authType: 1,
  270. sort: 1,
  271. title: '预售大厅',
  272. code: 'presale_list',
  273. url: '',
  274. urlType: 1,
  275. component: 'views/presale/list/index.vue',
  276. children: [
  277. {
  278. authType: 3,
  279. title: '认购下单',
  280. code: 'presale_list_details',
  281. component: 'views/presale/list/components/details/index.vue',
  282. },
  283. ]
  284. },
  285. {
  286. authType: 1,
  287. sort: 2,
  288. title: '我的预售',
  289. code: 'presale_mine',
  290. url: 'mine',
  291. urlType: 1,
  292. component: 'views/presale/mine/index.vue',
  293. children: [
  294. {
  295. authType: 3,
  296. title: '预售申请',
  297. code: 'presale_mine_add',
  298. component: 'views/presale/mine/components/add/index.vue',
  299. className: 'el-button--primary',
  300. },
  301. {
  302. authType: 3,
  303. title: '我的申请',
  304. code: 'presale_mine_apply',
  305. component: 'views/presale/mine/components/apply/index.vue',
  306. className: 'el-button--primary',
  307. },
  308. {
  309. authType: 3,
  310. title: '详情',
  311. code: 'presale_mine_details',
  312. component: 'views/presale/mine/components/details/index.vue',
  313. },
  314. ]
  315. },
  316. {
  317. authType: 1,
  318. sort: 3,
  319. title: '我参与的预售',
  320. code: 'presale_partake',
  321. url: 'partake',
  322. urlType: 1,
  323. component: 'views/presale/partake/index.vue',
  324. children: [
  325. {
  326. authType: 3,
  327. title: '详情',
  328. code: 'presale_partake_details',
  329. component: 'views/presale/partake/components/details/index.vue',
  330. },
  331. ]
  332. },
  333. ]
  334. },
  335. {
  336. authType: 1,
  337. sort: 5,
  338. title: '集采交易',
  339. code: 'centralize',
  340. url: '/centralize',
  341. urlType: 1,
  342. component: 'Main',
  343. icon: 'g-icon--centralize-filled',
  344. children: [
  345. {
  346. authType: 1,
  347. sort: 1,
  348. title: '集采大厅',
  349. code: 'centralize_list',
  350. url: '',
  351. urlType: 1,
  352. component: 'views/centralize/list/index.vue',
  353. children: [
  354. {
  355. authType: 3,
  356. title: '采购下单',
  357. code: 'centralize_list_details',
  358. component: 'views/centralize/list/components/details/index.vue',
  359. },
  360. ]
  361. },
  362. {
  363. authType: 1,
  364. sort: 2,
  365. title: '我的集采',
  366. code: 'centralize_mine',
  367. url: 'mine',
  368. urlType: 1,
  369. component: 'views/centralize/mine/index.vue',
  370. children: [
  371. {
  372. authType: 3,
  373. title: '集采申请',
  374. code: 'centralize_mine_add',
  375. component: 'views/centralize/mine/components/add/index.vue',
  376. className: 'el-button--primary',
  377. },
  378. {
  379. authType: 3,
  380. title: '我的申请',
  381. code: 'centralize_mine_apply',
  382. component: 'views/centralize/mine/components/apply/index.vue',
  383. className: 'el-button--primary',
  384. },
  385. {
  386. authType: 3,
  387. title: '详情',
  388. code: 'centralize_mine_details',
  389. component: 'views/centralize/mine/components/details/index.vue',
  390. },
  391. ]
  392. },
  393. {
  394. authType: 1,
  395. sort: 3,
  396. title: '我参与的集采',
  397. code: 'centralize_partake',
  398. url: 'partake',
  399. urlType: 1,
  400. component: 'views/centralize/partake/index.vue',
  401. },
  402. ]
  403. },
  404. {
  405. authType: 1,
  406. sort: 5,
  407. title: '我的收藏',
  408. code: 'favorite',
  409. url: '/favorite',
  410. urlType: 1,
  411. component: 'views/favorite/main/index.vue',
  412. icon: 'g-icon--favorite-filled',
  413. children: [
  414. {
  415. authType: 3,
  416. title: '详情',
  417. code: 'favorite_details',
  418. component: 'views/warehousing/goods/components/details/index.vue',
  419. },
  420. {
  421. authType: 3,
  422. title: '取消',
  423. code: 'favorite_cancel',
  424. component: 'views/favorite/main/components/cancel/index.vue',
  425. },
  426. ]
  427. },
  428. {
  429. authType: 1,
  430. sort: 6,
  431. title: '订单管理',
  432. code: 'order',
  433. url: '/order',
  434. urlType: 1,
  435. component: 'Main',
  436. icon: 'g-icon--order-filled',
  437. children: [
  438. {
  439. authType: 1,
  440. sort: 1,
  441. title: '我的买履约',
  442. code: 'order_buy',
  443. url: '',
  444. urlType: 1,
  445. component: 'views/order/main/index.vue',
  446. children: [
  447. {
  448. authType: 3,
  449. title: '详情',
  450. code: 'order_buy_details',
  451. component: 'views/order/main/components/details/index.vue',
  452. },
  453. {
  454. authType: 3,
  455. title: '手动',
  456. code: 'order_buy_manual',
  457. component: 'views/order/main/components/manual/index.vue',
  458. },
  459. {
  460. authType: 3,
  461. title: '延期',
  462. code: 'order_buy_delay',
  463. component: 'views/order/main/components/delay/index.vue',
  464. },
  465. {
  466. authType: 3,
  467. title: '违约',
  468. code: 'order_buy_contracted',
  469. component: 'views/order/main/components/contracted/index.vue',
  470. },
  471. {
  472. authType: 3,
  473. title: '修改',
  474. code: 'order_buy_edit',
  475. component: 'views/order/main/components/edit/index.vue',
  476. },
  477. ]
  478. },
  479. {
  480. authType: 1,
  481. sort: 2,
  482. title: '我的卖履约',
  483. code: 'order_sell',
  484. url: 'sell',
  485. urlType: 1,
  486. component: 'views/order/main/index.vue',
  487. children: [
  488. {
  489. authType: 3,
  490. title: '详情',
  491. code: 'order_sell_details',
  492. component: 'views/order/main/components/details/index.vue',
  493. },
  494. {
  495. authType: 3,
  496. title: '手动',
  497. code: 'order_sell_manual',
  498. component: 'views/order/main/components/manual/index.vue',
  499. },
  500. {
  501. authType: 3,
  502. title: '延期',
  503. code: 'order_sell_delay',
  504. component: 'views/order/main/components/delay/index.vue',
  505. },
  506. {
  507. authType: 3,
  508. title: '违约',
  509. code: 'order_sell_contracted',
  510. component: 'views/order/main/components/contracted/index.vue',
  511. },
  512. {
  513. authType: 3,
  514. title: '修改',
  515. code: 'order_sell_edit',
  516. component: 'views/order/main/components/edit/index.vue',
  517. },
  518. ]
  519. },
  520. ]
  521. },
  522. {
  523. authType: 1,
  524. sort: 7,
  525. title: '交易服务',
  526. code: 'customs',
  527. url: '/customs',
  528. urlType: 1,
  529. component: 'Main',
  530. icon: 'g-icon--trade-filled',
  531. children: [
  532. {
  533. authType: 1,
  534. sort: 1,
  535. title: '出境检测',
  536. code: 'customs_exit',
  537. url: '',
  538. urlType: 1,
  539. component: 'views/customs/exit/index.vue',
  540. children: [
  541. {
  542. authType: 3,
  543. title: '详情',
  544. code: 'customs_exit_details',
  545. component: 'views/customs/exit/components/details/index.vue',
  546. },
  547. {
  548. authType: 3,
  549. title: '提交申请',
  550. code: 'customs_exit_add',
  551. component: 'views/customs/exit/components/edit/index.vue',
  552. className: 'el-button--primary',
  553. },
  554. {
  555. authType: 3,
  556. title: '修改',
  557. code: 'customs_exit_edit',
  558. component: 'views/customs/exit/components/edit/index.vue',
  559. },
  560. {
  561. authType: 3,
  562. title: '撤回',
  563. code: 'customs_exit_cancel',
  564. component: 'views/customs/exit/components/cancel/index.vue',
  565. },
  566. {
  567. authType: 3,
  568. title: '下载',
  569. code: 'customs_exit_download',
  570. component: 'components/modules/download/index.vue',
  571. },
  572. {
  573. authType: 3,
  574. title: '确认发货',
  575. code: 'customs_exit_delivery',
  576. component: 'views/customs/exit/components/delivery/index.vue',
  577. },
  578. {
  579. authType: 3,
  580. title: '确认检测结果',
  581. code: 'customs_exit_check',
  582. component: 'views/customs/exit/components/check/index.vue',
  583. },
  584. {
  585. authType: 3,
  586. title: '确认预付款',
  587. code: 'customs_exit_advance_payment',
  588. component: 'views/customs/exit/components/advance-payment/index.vue',
  589. },
  590. {
  591. authType: 3,
  592. title: '确认付款',
  593. code: 'customs_exit_payment',
  594. component: 'views/customs/exit/components/payment/index.vue',
  595. },
  596. ]
  597. },
  598. {
  599. authType: 1,
  600. sort: 2,
  601. title: '保税服务',
  602. code: 'customs_bonded',
  603. url: 'bonded',
  604. urlType: 1,
  605. component: 'views/customs/bonded/index.vue',
  606. children: [
  607. {
  608. authType: 3,
  609. title: '详情',
  610. code: 'customs_bonded_details',
  611. component: 'views/customs/bonded/components/details/index.vue',
  612. },
  613. {
  614. authType: 3,
  615. title: '上传发货单',
  616. code: 'customs_bonded_upload_bill',
  617. component: 'views/customs/bonded/components/upload-bill/index.vue',
  618. },
  619. {
  620. authType: 3,
  621. title: '下载',
  622. code: 'customs_bonded_download',
  623. component: 'components/modules/download/index.vue',
  624. },
  625. {
  626. authType: 3,
  627. title: '上传盖章单据',
  628. code: 'customs_bonded_upload_seal',
  629. component: 'views/customs/bonded/components/upload-seal/index.vue',
  630. },
  631. {
  632. authType: 3,
  633. title: '确认预付款',
  634. code: 'customs_bonded_advance_payment',
  635. component: 'views/customs/bonded/components/advance-payment/index.vue',
  636. },
  637. {
  638. authType: 3,
  639. title: '确认付款',
  640. code: 'customs_bonded_payment',
  641. component: 'views/customs/bonded/components/payment/index.vue',
  642. },
  643. ]
  644. },
  645. ]
  646. },
  647. {
  648. authType: 1,
  649. sort: 8,
  650. title: '保税仓业务',
  651. code: 'bonded',
  652. url: '/bonded',
  653. urlType: 1,
  654. component: 'Main',
  655. icon: 'g-icon--bonded-filled',
  656. children: [
  657. {
  658. authType: 1,
  659. sort: 1,
  660. title: '进仓管理',
  661. code: 'bonded_inbound',
  662. url: '',
  663. urlType: 1,
  664. component: 'views/bonded/inbound/index.vue',
  665. children: [
  666. {
  667. authType: 3,
  668. title: '提交申请',
  669. code: 'bonded_inbound_apply',
  670. component: 'views/bonded/inbound/components/apply/index.vue',
  671. className: 'el-button--primary',
  672. },
  673. {
  674. authType: 3,
  675. title: '详情',
  676. code: 'bonded_inbound_details',
  677. component: 'views/bonded/inbound/components/details/index.vue',
  678. },
  679. {
  680. authType: 3,
  681. title: '下载',
  682. code: 'bonded_inbound_download',
  683. component: 'components/modules/download/index.vue',
  684. },
  685. {
  686. authType: 3,
  687. title: '上传',
  688. code: 'bonded_inbound_upload',
  689. component: 'views/bonded/components/upload/index.vue',
  690. },
  691. ]
  692. },
  693. {
  694. authType: 1,
  695. sort: 2,
  696. title: '出仓管理',
  697. code: 'bonded_outbound',
  698. url: 'outbound',
  699. urlType: 1,
  700. component: 'views/bonded/outbound/index.vue',
  701. children: [
  702. {
  703. authType: 3,
  704. title: '提交申请',
  705. code: 'bonded_outbound_apply',
  706. component: 'views/bonded/outbound/components/apply/index.vue',
  707. className: 'el-button--primary',
  708. },
  709. {
  710. authType: 3,
  711. title: '详情',
  712. code: 'bonded_outbound_details',
  713. component: 'views/bonded/outbound/components/details/index.vue',
  714. },
  715. {
  716. authType: 3,
  717. title: '下载',
  718. code: 'bonded_outbound_download',
  719. component: 'components/modules/download/index.vue',
  720. },
  721. {
  722. authType: 3,
  723. title: '上传',
  724. code: 'bonded_outbound_upload',
  725. component: 'views/bonded/components/upload/index.vue',
  726. },
  727. ]
  728. },
  729. {
  730. authType: 1,
  731. sort: 3,
  732. title: '计费管理',
  733. code: 'bonded_expense',
  734. url: 'expense',
  735. urlType: 1,
  736. component: 'views/bonded/expense/index.vue',
  737. children: [
  738. {
  739. authType: 3,
  740. title: '详情',
  741. code: 'bonded_expense_details',
  742. component: 'views/bonded/expense/components/details/index.vue',
  743. },
  744. {
  745. authType: 3,
  746. title: '支付',
  747. code: 'bonded_expense_payment',
  748. component: 'views/bonded/expense/components/payment/index.vue',
  749. },
  750. ]
  751. }
  752. ]
  753. },
  754. {
  755. authType: 1,
  756. sort: 9,
  757. title: '我的仓储',
  758. code: 'warehousing',
  759. url: '/warehousing',
  760. urlType: 1,
  761. component: 'Main',
  762. icon: 'g-icon--warehousing-filled',
  763. children: [
  764. {
  765. authType: 1,
  766. sort: 1,
  767. title: '我的库存',
  768. code: 'warehousing_goods',
  769. url: '',
  770. urlType: 1,
  771. component: 'views/warehousing/goods/index.vue',
  772. children: [
  773. {
  774. authType: 3,
  775. title: '添加商品',
  776. code: 'warehousing_goods_add',
  777. component: 'views/warehousing/goods/components/edit/index.vue',
  778. className: 'el-button--primary',
  779. },
  780. {
  781. authType: 3,
  782. title: '商品上架',
  783. code: 'warehousing_goods_sell',
  784. component: 'views/warehousing/goods/components/edit/index.vue',
  785. className: 'el-button--primary',
  786. },
  787. {
  788. authType: 3,
  789. title: '详情',
  790. code: 'warehousing_goods_details',
  791. component: 'views/warehousing/goods/components/details/index.vue',
  792. },
  793. {
  794. authType: 3,
  795. title: '上架',
  796. code: 'warehousing_goods_put',
  797. component: 'views/warehousing/goods/components/put/index.vue',
  798. },
  799. {
  800. authType: 3,
  801. title: '下架',
  802. code: 'warehousing_goods_pull',
  803. component: 'views/warehousing/goods/components/pull/index.vue',
  804. },
  805. {
  806. authType: 3,
  807. title: '删除',
  808. code: 'warehousing_goods_delete',
  809. component: 'views/warehousing/goods/components/delete/index.vue',
  810. },
  811. ]
  812. },
  813. {
  814. authType: 1,
  815. sort: 1,
  816. title: '我的仓库',
  817. code: 'warehousing_warehouse',
  818. url: 'warehouse',
  819. urlType: 1,
  820. component: 'views/warehousing/warehouse/index.vue',
  821. children: [
  822. {
  823. authType: 3,
  824. title: '新增仓库',
  825. code: 'warehousing_warehouse_add',
  826. component: 'views/warehousing/warehouse/components/edit/index.vue',
  827. className: 'el-button--primary',
  828. },
  829. {
  830. authType: 3,
  831. title: '修改',
  832. code: 'warehousing_warehouse_edit',
  833. component: 'views/warehousing/warehouse/components/edit/index.vue',
  834. }
  835. ]
  836. },
  837. ]
  838. },
  839. {
  840. authType: 1,
  841. sort: 10,
  842. title: '会员中心',
  843. code: 'mine',
  844. url: '/mine',
  845. urlType: 1,
  846. component: 'Main',
  847. icon: 'g-icon--member-filled',
  848. children: [
  849. {
  850. authType: 1,
  851. sort: 1,
  852. title: '会员信息',
  853. code: 'mine_profile',
  854. url: '',
  855. urlType: 1,
  856. component: 'views/mine/profile/index.vue',
  857. children: [
  858. {
  859. authType: 3,
  860. title: '签约',
  861. code: 'mine_profile_sign',
  862. component: 'views/mine/profile/components/sign/index.vue',
  863. className: 'el-button--primary',
  864. },
  865. {
  866. authType: 3,
  867. title: '解约',
  868. code: 'mine_profile_rescind',
  869. component: 'views/mine/profile/components/rescind/index.vue',
  870. className: 'el-button--primary',
  871. },
  872. {
  873. authType: 3,
  874. title: '修改登录密码',
  875. code: 'mine_profile_loginpassword',
  876. component: 'views/mine/profile/components/password/index.vue',
  877. className: 'el-button--primary',
  878. },
  879. {
  880. authType: 3,
  881. title: '修改资金密码',
  882. code: 'mine_profile_accountpassword',
  883. component: 'views/mine/profile/components/password/index.vue',
  884. className: 'el-button--primary',
  885. hidden: true,
  886. }
  887. ]
  888. },
  889. {
  890. authType: 1,
  891. sort: 2,
  892. title: '我的出入金',
  893. code: 'mine_bank',
  894. url: 'bank',
  895. urlType: 1,
  896. component: 'views/mine/bank/index.vue',
  897. children: [
  898. {
  899. authType: 3,
  900. title: '入金申请',
  901. code: 'bank_deposit',
  902. component: 'views/mine/bank/components/deposit/index.vue',
  903. className: 'el-button--primary',
  904. },
  905. {
  906. authType: 3,
  907. title: '出金申请',
  908. code: 'bank_withdraw',
  909. component: 'views/mine/bank/components/withdraw/index.vue',
  910. className: 'el-button--primary',
  911. },
  912. {
  913. authType: 3,
  914. title: '撤销',
  915. code: 'bank_cancel',
  916. component: 'views/mine/bank/components/cancel/index.vue',
  917. }
  918. ]
  919. },
  920. {
  921. authType: 1,
  922. sort: 3,
  923. title: '我的地址',
  924. code: 'mine_address',
  925. url: 'address',
  926. urlType: 1,
  927. component: 'views/mine/address/index.vue',
  928. children: [
  929. {
  930. authType: 3,
  931. title: '新增地址',
  932. code: 'mine_address_add',
  933. component: 'views/mine/address/components/edit/index.vue',
  934. className: 'el-button--primary',
  935. },
  936. {
  937. authType: 3,
  938. title: '修改',
  939. code: 'mine_address_edit',
  940. component: 'views/mine/address/components/edit/index.vue',
  941. },
  942. {
  943. authType: 3,
  944. title: '默认',
  945. code: 'mine_address_default',
  946. component: 'views/mine/address/components/default/index.vue',
  947. },
  948. {
  949. authType: 3,
  950. title: '删除',
  951. code: 'mine_address_delete',
  952. component: 'views/mine/address/components/delete/index.vue',
  953. },
  954. ]
  955. },
  956. {
  957. authType: 1,
  958. sort: 4,
  959. title: '我的发票',
  960. code: 'mine_invoice',
  961. url: 'invoice',
  962. urlType: 1,
  963. component: 'views/mine/invoice/index.vue',
  964. children: [
  965. {
  966. authType: 3,
  967. title: '新增发票',
  968. code: 'mine_invoice_add',
  969. component: 'views/mine/invoice/components/edit/index.vue',
  970. className: 'el-button--primary',
  971. },
  972. {
  973. authType: 3,
  974. title: '修改',
  975. code: 'mine_invoice_edit',
  976. component: 'views/mine/invoice/components/edit/index.vue',
  977. },
  978. {
  979. authType: 3,
  980. title: '删除',
  981. code: 'mine_invoice_delete',
  982. component: 'views/mine/invoice/components/delete/index.vue',
  983. }
  984. ]
  985. },
  986. ]
  987. },
  988. {
  989. authType: 1,
  990. sort: 11,
  991. title: '报表',
  992. code: 'report',
  993. url: '/report',
  994. urlType: 1,
  995. component: 'Main',
  996. icon: 'g-icon--chart-filled',
  997. children: [
  998. {
  999. authType: 1,
  1000. sort: 1,
  1001. title: '会员报表',
  1002. code: 'report_member',
  1003. url: '',
  1004. urlType: 1,
  1005. component: 'views/report/member/index.vue',
  1006. },
  1007. {
  1008. authType: 1,
  1009. sort: 2,
  1010. title: '仓储报表',
  1011. code: 'report_warehousing',
  1012. url: 'warehousing',
  1013. urlType: 1,
  1014. component: 'views/report/warehousing/index.vue',
  1015. },
  1016. {
  1017. authType: 1,
  1018. sort: 3,
  1019. title: '交易报表',
  1020. code: 'report_trade',
  1021. url: 'trade',
  1022. urlType: 1,
  1023. component: 'views/report/trade/index.vue',
  1024. },
  1025. ]
  1026. },
  1027. {
  1028. authType: 1,
  1029. sort: 12,
  1030. title: '询价消息',
  1031. code: 'bargain',
  1032. url: '/bargain',
  1033. urlType: 1,
  1034. component: 'Main',
  1035. icon: 'Comment',
  1036. hidden: true,
  1037. children: [
  1038. {
  1039. authType: 1,
  1040. sort: 1,
  1041. title: '买方询价',
  1042. code: 'bargain_buy',
  1043. url: '',
  1044. urlType: 1,
  1045. component: 'views/bargain/buy/index.vue',
  1046. children: [
  1047. {
  1048. authType: 3,
  1049. title: '同意',
  1050. code: 'bargain_buy_agree',
  1051. component: 'views/bargain/buy/components/audit/index.vue',
  1052. },
  1053. {
  1054. authType: 3,
  1055. title: '拒绝',
  1056. code: 'bargain_buy_refuse',
  1057. component: 'views/bargain/buy/components/audit/index.vue',
  1058. }
  1059. ]
  1060. },
  1061. {
  1062. authType: 1,
  1063. sort: 1,
  1064. title: '卖方询价',
  1065. code: 'bargain_sell',
  1066. url: 'sell',
  1067. urlType: 1,
  1068. component: 'views/bargain/sell/index.vue',
  1069. children: [
  1070. {
  1071. authType: 3,
  1072. title: '详情',
  1073. code: 'bargain_sell_details',
  1074. component: 'views/warehousing/goods/components/details/index.vue',
  1075. },
  1076. {
  1077. authType: 3,
  1078. title: '同意',
  1079. code: 'bargain_sell_agree',
  1080. component: 'views/bargain/sell/components/audit/index.vue',
  1081. },
  1082. {
  1083. authType: 3,
  1084. title: '拒绝',
  1085. code: 'bargain_sell_refuse',
  1086. component: 'views/bargain/sell/components/audit/index.vue',
  1087. }
  1088. ]
  1089. }
  1090. ]
  1091. },
  1092. {
  1093. authType: 1,
  1094. sort: 13,
  1095. title: '帮助支持',
  1096. code: 'help',
  1097. url: '/help',
  1098. urlType: 1,
  1099. component: 'views/help/main/index.vue',
  1100. icon: 'g-icon--help-filled',
  1101. },
  1102. {
  1103. authType: 1,
  1104. sort: 14,
  1105. title: '系统管理',
  1106. code: 'system',
  1107. url: '/system',
  1108. urlType: 1,
  1109. component: 'Main',
  1110. icon: 'Setting',
  1111. hidden: true,
  1112. children: [
  1113. {
  1114. authType: 1,
  1115. sort: 1,
  1116. title: '菜单管理',
  1117. code: 'system_menu',
  1118. url: '',
  1119. urlType: 1,
  1120. component: 'views/system/menu/index.vue',
  1121. children: [
  1122. {
  1123. authType: 3,
  1124. title: '新增',
  1125. code: 'system_menu_add',
  1126. icon: 'Plus',
  1127. component: 'views/system/menu/components/edit/index.vue',
  1128. className: 'el-button--primary',
  1129. },
  1130. {
  1131. authType: 3,
  1132. title: '编辑',
  1133. code: 'system_menu_edit',
  1134. icon: 'Edit',
  1135. component: 'views/system/menu/components/edit/index.vue',
  1136. },
  1137. {
  1138. authType: 3,
  1139. title: '删除',
  1140. code: 'system_menu_delete',
  1141. icon: 'Delete',
  1142. }
  1143. ]
  1144. },
  1145. {
  1146. authType: 1,
  1147. sort: 1,
  1148. title: '角色管理',
  1149. code: 'system_role',
  1150. url: 'role',
  1151. urlType: 1,
  1152. component: 'views/system/role/index.vue',
  1153. children: [
  1154. {
  1155. authType: 3,
  1156. title: '新增',
  1157. code: 'system_role_add',
  1158. icon: 'Plus',
  1159. className: 'el-button--primary',
  1160. },
  1161. {
  1162. authType: 3,
  1163. title: '权限',
  1164. code: 'system_role_auth',
  1165. icon: 'Lock',
  1166. component: 'views/system/role/components/auth/index.vue',
  1167. },
  1168. {
  1169. authType: 3,
  1170. title: '编辑',
  1171. code: 'system_role_edit',
  1172. icon: 'Edit',
  1173. },
  1174. {
  1175. authType: 3,
  1176. title: '删除',
  1177. code: 'system_role_delete',
  1178. icon: 'Delete',
  1179. }
  1180. ]
  1181. },
  1182. ]
  1183. },
  1184. ]
  1185. }
  1186. };
  1187. export default [
  1188. appmenu,
  1189. ]