family.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import request from './request.js';
  2. // 修改家人信息
  3. const familyInfo = async (data) => {
  4. const res = await request.post({ url: `/user/commit-application`, data });
  5. return res.data;
  6. }
  7. // 获取家人信息
  8. const getFamilyInfo = async (data) => {
  9. const res = await request.get({ url: `/wx/resident/members`, data });
  10. return res.data;
  11. }
  12. // 获取家人信息详情
  13. const getFamilyInfoDetails = async (data) => {
  14. const res = await request.get({ url: `/wx/resident/info`, data });
  15. return res.data;
  16. }
  17. // 报备状态
  18. const membersStatus = async (data) => {
  19. const res = await request.post({ url: `/nat/members-status`, data });
  20. return res.data;
  21. }
  22. // 当前任务
  23. const runningTask = async (data) => {
  24. const res = await request.get({ url: `/nat/running-task`, data });
  25. return res.data;
  26. }
  27. // 报备
  28. const filing = async (data) => {
  29. const res = await request.post({ url: `/nat/add-record`, data });
  30. return res.data;
  31. }
  32. // 获取家庭成员列表 待审核,含本人
  33. const getApplyUser = async (data) => {
  34. const res = await request.get({ url: `/resident/req/list`, data });
  35. return res.data;
  36. }
  37. // 获取待审核信息详情
  38. const getReqInfoDetails = async (data) => {
  39. const res = await request.get({ url: `/resident/req/${data.residentReqId}` });
  40. return res.data;
  41. }
  42. // 所有待报备
  43. const getUserAll = async (data) => {
  44. const res = await request.get({ url: `/wx/resident/members-for-reporting` });
  45. return res.data;
  46. }
  47. // 取消审核申请
  48. const removeApply = async (data) => {
  49. const res = await request.post({ url: `/resident/req/cancel/${data.residentReqId}`, data });
  50. return res.data;
  51. }
  52. export default { familyInfo, getFamilyInfo, filing, membersStatus, runningTask, getFamilyInfoDetails, getApplyUser, getReqInfoDetails, getUserAll, removeApply };