customer.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import axios from '@/libs/axios.js'
  2. // 客户列表
  3. export const customerList = (params) => {
  4. const url=`cust/queryPage/${params.pageNo}/${params.pageSize}`
  5. delete params.pageNo
  6. delete params.pageSize
  7. return axios.request({
  8. url: url,
  9. data: params,
  10. method: 'post'
  11. })
  12. }
  13. // 新增客户
  14. export const custSave = (params) => {
  15. return axios.request({
  16. url: 'cust/save',
  17. data: params,
  18. method: 'post'
  19. })
  20. }
  21. // 根据sn修改客户信息
  22. export const updateByCustomerSn = params => {
  23. return axios.request({
  24. url: 'cust/updateByCustomerSn',
  25. data: params,
  26. method: 'post'
  27. })
  28. }
  29. // 客户详情
  30. export const customerDetail = params => {
  31. return axios.request({
  32. url: `cust/findById/${params.id}`,
  33. data: {},
  34. method: 'get'
  35. })
  36. }
  37. // 客户类型
  38. export const custType = (params) => {
  39. return axios.request({
  40. url: 'custType/findAll',
  41. data: params,
  42. method: 'post'
  43. })
  44. }
  45. // 业务员
  46. export const employeeAllList = (params) => {
  47. return axios.request({
  48. url: 'employee/queryList',
  49. data: {},
  50. method: 'post'
  51. })
  52. }