record.js 781 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import request from '@/utils/request'
  2. //获取所有配置价格
  3. export function customerList(parms){
  4. return request({
  5. url:"/customer/page",
  6. method:"get",
  7. params:parms
  8. })
  9. }
  10. // 删除配置价格
  11. export function deleteCustomer(id) {
  12. return request({
  13. url: '/customer/' + id,
  14. method: 'delete',
  15. })
  16. }
  17. // 新增
  18. export function addCustomer(data) {
  19. return request({
  20. url: '/customer/add',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 编辑
  26. export function editCustomer(data) {
  27. return request({
  28. url: '/customer',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 编辑
  34. export function userList() {
  35. return request({
  36. url: '/customer/bidding',
  37. method: 'get',
  38. })
  39. }