setting.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. import request from '@/utils/request'
  2. //查询成长规则列表
  3. export function getGrouthRuleList() {
  4. return request({
  5. url: '/customer/setting/getGrouthRuleList',
  6. method: 'get',
  7. })
  8. }
  9. //新增成长规则
  10. export function addGrouthRule(data) {
  11. return request({
  12. url: '/customer/setting/addGrouthRule',
  13. method: 'post',
  14. data: data
  15. })
  16. }
  17. //编辑成长规则
  18. export function editGrouthRule(data) {
  19. return request({
  20. url: '/customer/setting/editGrouthRule',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. //删除成长规则
  26. export function delGrouthRule(id) {
  27. return request({
  28. url: '/customer/setting/delGrouthRule?id=' + id,
  29. method: 'delete'
  30. })
  31. }
  32. // 查询客户优惠等级设置列表
  33. export function listSetting(query) {
  34. return request({
  35. url: '/customer/setting/list',
  36. method: 'get',
  37. params: query
  38. })
  39. }
  40. export function getSettingDT(query) {
  41. return request({
  42. url: '/customer/setting/onely',
  43. method: 'get'
  44. })
  45. }
  46. // 查询客户优惠等级设置详细
  47. export function getSetting(id) {
  48. return request({
  49. url: '/customer/setting/' + id,
  50. method: 'get'
  51. })
  52. }
  53. // 新增客户优惠等级设置
  54. export function addSetting(data) {
  55. return request({
  56. url: '/customer/setting',
  57. method: 'post',
  58. data: data
  59. })
  60. }
  61. // 修改客户优惠等级设置
  62. export function updateSetting(data) {
  63. return request({
  64. url: '/customer/setting',
  65. method: 'put',
  66. data: data
  67. })
  68. }
  69. // 删除客户优惠等级设置
  70. export function delSetting(id) {
  71. return request({
  72. url: '/customer/setting/' + id,
  73. method: 'delete'
  74. })
  75. }
  76. // 导出客户优惠等级设置
  77. export function exportSetting(query) {
  78. return request({
  79. url: '/customer/setting/export',
  80. method: 'get',
  81. params: query
  82. })
  83. }