customerInfo.js 858 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import request from '../../utils/request'
  2. // 查询客户信息列表
  3. export function listCustomerInfo(query) {
  4. return request({
  5. url: '/market/customerInfo/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询客户信息详细
  11. export function getCustomerInfo(customerId) {
  12. return request({
  13. url: '/market/customerInfo/' + customerId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增客户信息
  18. export function addCustomerInfo(data) {
  19. return request({
  20. url: '/market/customerInfo',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改客户信息
  26. export function updateCustomerInfo(data) {
  27. return request({
  28. url: '/market/customerInfo',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除客户信息
  34. export function delCustomerInfo(customerId) {
  35. return request({
  36. url: '/market/customerInfo/' + customerId,
  37. method: 'delete'
  38. })
  39. }