relatives.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import request from '@/utils/request'
  2. import Qs from 'qs';
  3. //获取亲属列表
  4. export function getRelationList() {
  5. return request({
  6. url: '/mobile/relationApi/relationList',
  7. data: Qs.stringify({}),
  8. method: 'post',
  9. })
  10. }
  11. //获取亲属详情
  12. export function getRelationInfo(popedomId) {
  13. return request({
  14. url: '/mobile/relationApi/findByPopedomId',
  15. data: Qs.stringify({
  16. popedomId: popedomId
  17. }),
  18. method: 'post',
  19. })
  20. }
  21. //清除亲属关系
  22. export function delRelation(popedomId) {
  23. return request({
  24. url: '/mobile/relationApi/clearRelation',
  25. data: Qs.stringify({
  26. popedomId: popedomId
  27. }),
  28. method: 'post',
  29. })
  30. }
  31. //获取联系人列表
  32. export function getPhoneNumberList(params) {
  33. return request({
  34. url: '/mobile/phoneBookApi/phoneList',
  35. data: Qs.stringify(params),
  36. method: 'post',
  37. })
  38. }
  39. //获取联系人详情
  40. export function getPhoneNumberInfo(bookId) {
  41. return request({
  42. url: '/mobile/phoneBookApi/findByBookId',
  43. data: Qs.stringify({
  44. bookId: bookId
  45. }),
  46. method: 'post',
  47. })
  48. }
  49. //新增修改联系人
  50. export function updatePhoneNumber(params) {
  51. return request({
  52. url: '/mobile/phoneBookApi/updateBook',
  53. data: Qs.stringify(params),
  54. method: 'post',
  55. })
  56. }
  57. //删除联系人
  58. export function delPhoneNumber(bookId) {
  59. return request({
  60. url: '/mobile/phoneBookApi/deleteBook',
  61. data: Qs.stringify({
  62. bookId: bookId
  63. }),
  64. method: 'post',
  65. })
  66. }