index.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import http from '@/http/api.js'
  2. export function submitRecycling(data) {
  3. return http.request({
  4. url: '/blade-sales-part/green/recycling/save',
  5. method: 'post',
  6. data
  7. })
  8. }
  9. export function updateRecycling(data) {
  10. return http.request({
  11. url: '/blade-sales-part/green/recycling/update',
  12. method: 'post',
  13. data
  14. })
  15. }
  16. export function getPageList(data) {
  17. return http.request({
  18. url: '/blade-sales-part/green/recycling/page',
  19. method: 'get',
  20. params: data
  21. })
  22. }
  23. export function getDetail(data) {
  24. return http.request({
  25. url: '/blade-sales-part/green/recycling/detail?id=' + data,
  26. method: 'get'
  27. })
  28. }
  29. export function getCustomerPageList(data) {
  30. return http.request({
  31. url: '/blade-sales-part/corpsDesc/page',
  32. method: 'get',
  33. params: data
  34. })
  35. }
  36. export function delGreenRecycling(data) {
  37. return http.request({
  38. url: '/blade-sales-part/green/recycling/delGreenRecycling?id=' + data,
  39. method: 'post'
  40. })
  41. }
  42. export function greenRecyclingGoods() {
  43. return http.request({
  44. url: '/blade-sales-part/green/recycling/greenRecyclingGoods',
  45. method: 'post'
  46. })
  47. }