record.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import request from '@/utils/request'
  2. import { method } from 'lodash'
  3. // 获取所有配置价格
  4. export function customerList(parms) {
  5. return request({
  6. url: '/customer/page',
  7. method: 'get',
  8. params: parms
  9. })
  10. }
  11. // 删除配置价格
  12. export function deleteCustomer(customerId,id) {
  13. return request({
  14. url: '/customer/'+customerId+'/' + id,
  15. method: 'delete'
  16. })
  17. }
  18. // 新增
  19. export function addCustomer(data) {
  20. return request({
  21. url: '/customer/add',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. // 编辑
  27. export function editCustomer(data) {
  28. return request({
  29. url: '/customer',
  30. method: 'put',
  31. data: data
  32. })
  33. }
  34. // 编辑
  35. export function userList() {
  36. return request({
  37. url: '/customer/bidding',
  38. method: 'get'
  39. })
  40. }
  41. // 角色
  42. export function userRoles() {
  43. return request({
  44. url: '/role/roles',
  45. method: 'get'
  46. })
  47. }
  48. // 获取下载模板URL
  49. export function apiFile(){
  50. return request({
  51. url:"/file/template/customer",
  52. method:"get"
  53. })
  54. }
  55. // 批量上传客户
  56. export function addBatch(data){
  57. return request({
  58. url:"/customer/batch",
  59. method:"post",
  60. data:data
  61. })
  62. }