freight.js 967 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import request from '@/utils/request'
  2. // 获取运费模板列表
  3. export function getList(params) {
  4. return request({
  5. url: '/freight/list',
  6. method: 'get',
  7. params
  8. })
  9. }
  10. // 更改运费模板状态
  11. export function changeFreightStatus(params) {
  12. return request({
  13. url: '/freight/status/update',
  14. method: 'post',
  15. params
  16. })
  17. }
  18. // 删除运费模板
  19. export function deleteFreight(params) {
  20. return request({
  21. url: '/freight/delete',
  22. method: 'post',
  23. params
  24. })
  25. }
  26. // 新增/编辑运费模板
  27. export function addOrEditFreight(params) {
  28. return request({
  29. url: '/freight/save',
  30. method: 'post',
  31. data: params
  32. })
  33. }
  34. // 获取运费模板详情
  35. export function getFreightDetail(params) {
  36. return request({
  37. url: '/freight/detail',
  38. method: 'get',
  39. params
  40. })
  41. }
  42. // 获取地区树
  43. export function getRegionTree(params) {
  44. return request({
  45. url: '/freight/region/tree',
  46. method: 'get',
  47. params
  48. })
  49. }