EnrollmentRegistrationService.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. import request from "../../../common/request"
  2. import { REGISTER_PATH as prefix } from "@/api/AppPath";
  3. export default {
  4. list: function (params) {
  5. return request({
  6. url: prefix + '/enrollmentRegistration/list',
  7. method: 'get',
  8. params: params
  9. })
  10. },
  11. save (inputForm) {
  12. return request({
  13. url: prefix + `/enrollmentRegistration/save`,
  14. method: 'post',
  15. data: inputForm
  16. })
  17. },
  18. saveWageCard (inputForm) {
  19. return request({
  20. url: prefix + `/enrollmentRegistration/saveWageCard`,
  21. method: 'post',
  22. data: inputForm
  23. })
  24. },
  25. saveSocialCard (inputForm) {
  26. return request({
  27. url: prefix + `/enrollmentRegistration/saveSocialCard`,
  28. method: 'post',
  29. data: inputForm
  30. })
  31. },
  32. saveKeyCard (inputForm) {
  33. return request({
  34. url: prefix + `/enrollmentRegistration/saveKeyCard`,
  35. method: 'post',
  36. data: inputForm
  37. })
  38. },
  39. saveRiceCard (inputForm) {
  40. return request({
  41. url: prefix + `/enrollmentRegistration/saveRiceCard`,
  42. method: 'post',
  43. data: inputForm
  44. })
  45. },
  46. findById (id) {
  47. return request({
  48. url: prefix + '/enrollmentRegistration/findById',
  49. method: 'get',
  50. params: {id: id}
  51. })
  52. },
  53. findWageCardById (id) {
  54. return request({
  55. url: prefix + '/enrollmentRegistration/findWageCardById',
  56. method: 'get',
  57. params: {id: id}
  58. })
  59. },
  60. findSocialCardById (id) {
  61. return request({
  62. url: prefix + '/enrollmentRegistration/findSocialCardById',
  63. method: 'get',
  64. params: {id: id}
  65. })
  66. },
  67. findKeyCardById (id) {
  68. return request({
  69. url: prefix + '/enrollmentRegistration/findKeyCardById',
  70. method: 'get',
  71. params: {id: id}
  72. })
  73. },
  74. findRiceCardById (id) {
  75. return request({
  76. url: prefix + '/enrollmentRegistration/findRiceCardById',
  77. method: 'get',
  78. params: {id: id}
  79. })
  80. },
  81. updateStatusById (param) {
  82. return request({
  83. url: prefix + '/enrollmentRegistration/updateStatusById',
  84. method: 'post',
  85. data: param
  86. })
  87. },
  88. updateWageCardStatusById (param) {
  89. return request({
  90. url: prefix + '/enrollmentRegistration/updateWageCardStatusById',
  91. method: 'post',
  92. data: param
  93. })
  94. },
  95. updateSocialCardStatusById (param) {
  96. return request({
  97. url: prefix + '/enrollmentRegistration/updateSocialCardStatusById',
  98. method: 'post',
  99. data: param
  100. })
  101. },
  102. updateKeyCardStatusById (param) {
  103. return request({
  104. url: prefix + '/enrollmentRegistration/updateKeyCardStatusById',
  105. method: 'post',
  106. data: param
  107. })
  108. },
  109. updateRiceCardStatusById (param) {
  110. return request({
  111. url: prefix + '/enrollmentRegistration/updateRiceCardStatusById',
  112. method: 'post',
  113. data: param
  114. })
  115. },
  116. remove (id) {
  117. return request({
  118. url: prefix + '/enrollmentRegistration/remove',
  119. method: 'get',
  120. params: {id: id}
  121. })
  122. },
  123. findIdCardOnly (idCard) {
  124. return request({
  125. url: prefix + '/enrollmentRegistration/findIdCardOnly',
  126. method: 'get',
  127. params: {idCard: idCard}
  128. })
  129. },
  130. findMobilePhoneOnly (mobilePhone) {
  131. return request({
  132. url: prefix + '/enrollmentRegistration/findMobilePhoneOnly',
  133. method: 'get',
  134. params: {mobilePhone: mobilePhone}
  135. })
  136. },
  137. downloadFile () {
  138. return request({
  139. url: prefix + '/enrollmentRegistration/downloadFile',
  140. method: 'get',
  141. params: {},
  142. responseType: 'blob'
  143. })
  144. }
  145. }