corps.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import request from '@/utils/request'
  2. // 查询客户详情列表
  3. export function listCorps(query) {
  4. return request({
  5. url: '/basicdata/corps/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询客户详情详细
  11. export function getCorps(fId) {
  12. return request({
  13. url: '/basicdata/corps/' + fId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增客户详情
  18. export function addCorps(data) {
  19. return request({
  20. url: '/basicdata/corps',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改客户详情
  26. export function updateCorps(data) {
  27. return request({
  28. url: '/basicdata/corps',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 状态修改
  34. export function changeCorpsStatus(fId, fStatus) {
  35. const data = {
  36. fId,
  37. fStatus
  38. }
  39. return request({
  40. url: '/basicdata/corps',
  41. method: 'put',
  42. data: data
  43. })
  44. }
  45. // 删除客户详情
  46. export function delCorps(fId) {
  47. return request({
  48. url: '/basicdata/corps/' + fId,
  49. method: 'delete'
  50. })
  51. }
  52. // 导出客户详情
  53. export function exportCorps(query) {
  54. return request({
  55. url: '/basicdata/corps/export',
  56. method: 'get',
  57. params: query
  58. })
  59. }