baseMemberApply.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. export const getBaseMemberApplys = (params) => {
  4. return new request({
  5. url: './project/baseMemberApplys/getSelfMemberApply',
  6. method: 'get',
  7. params: params
  8. });
  9. }
  10. export const get = (id) => {
  11. return new request({
  12. url: './project/baseMemberApplys/' + id,
  13. method: 'get',
  14. });
  15. }
  16. export function saveAndUpdate(baseMemberApply,baseContactsInfo,attachmentIds,approver, comment, token) {
  17. return new request({
  18. url: './project/baseMemberApplys',
  19. method: (baseMemberApply.id ? 'put' : 'post'),
  20. headers: {
  21. token
  22. },
  23. data: {
  24. baseMemberApply,
  25. baseContactsInfo,
  26. attachmentIds,
  27. approver,
  28. comment
  29. }
  30. });
  31. }
  32. export function del(id) {
  33. return new request({
  34. url: './project/baseMemberApplys/' + id,
  35. method: 'delete',
  36. });
  37. }
  38. export function submitMemberConfirm(baseMemberApply,attachmentIds, token) {
  39. return new request({
  40. url: './project/baseMemberApplys/submitMemberConfirm',
  41. method: 'post',
  42. headers: {
  43. token
  44. },
  45. data: {
  46. baseMemberApply,
  47. attachmentIds
  48. }
  49. });
  50. }