EnrollmentRegistrationService.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. import request from "@/utils/httpRequest";
  2. import { REGISTER_PATH as prefix } from "../../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. saveInfo(inputForm) {
  19. return request({
  20. url: prefix + `/enrollmentRegistration/saveInfo`,
  21. method: "post",
  22. data: inputForm,
  23. });
  24. },
  25. save2(inputForm) {
  26. return request({
  27. url: prefix + `/enrollmentRegistration/save2`,
  28. method: "post",
  29. data: inputForm,
  30. });
  31. },
  32. updateInfo(inputForm) {
  33. return request({
  34. url: prefix + `/enrollmentRegistration/updateInfo`,
  35. method: "post",
  36. data: inputForm,
  37. });
  38. },
  39. saveWageCard(inputForm) {
  40. return request({
  41. url: prefix + `/enrollmentRegistration/saveWageCard`,
  42. method: "post",
  43. data: inputForm,
  44. });
  45. },
  46. saveSocialCard(inputForm) {
  47. return request({
  48. url: prefix + `/enrollmentRegistration/saveSocialCard`,
  49. method: "post",
  50. data: inputForm,
  51. });
  52. },
  53. saveKeyCard(inputForm) {
  54. return request({
  55. url: prefix + `/enrollmentRegistration/saveKeyCard`,
  56. method: "post",
  57. data: inputForm,
  58. });
  59. },
  60. saveRiceCard(inputForm) {
  61. return request({
  62. url: prefix + `/enrollmentRegistration/saveRiceCard`,
  63. method: "post",
  64. data: inputForm,
  65. });
  66. },
  67. findById(id) {
  68. return request({
  69. url: prefix + "/enrollmentRegistration/findById",
  70. method: "get",
  71. params: { id: id },
  72. });
  73. },
  74. findWageCardById(id) {
  75. return request({
  76. url: prefix + "/enrollmentRegistration/findWageCardById",
  77. method: "get",
  78. params: { id: id },
  79. });
  80. },
  81. findSocialCardById(id) {
  82. return request({
  83. url: prefix + "/enrollmentRegistration/findSocialCardById",
  84. method: "get",
  85. params: { id: id },
  86. });
  87. },
  88. findKeyCardById(id) {
  89. return request({
  90. url: prefix + "/enrollmentRegistration/findKeyCardById",
  91. method: "get",
  92. params: { id: id },
  93. });
  94. },
  95. findRiceCardById(id) {
  96. return request({
  97. url: prefix + "/enrollmentRegistration/findRiceCardById",
  98. method: "get",
  99. params: { id: id },
  100. });
  101. },
  102. updateStatusById(param) {
  103. return request({
  104. url: prefix + "/enrollmentRegistration/updateStatusById",
  105. method: "post",
  106. data: param,
  107. });
  108. },
  109. updateWageCardStatusById(param) {
  110. return request({
  111. url: prefix + "/enrollmentRegistration/updateWageCardStatusById",
  112. method: "post",
  113. data: param,
  114. });
  115. },
  116. updateSocialCardStatusById(param) {
  117. return request({
  118. url: prefix + "/enrollmentRegistration/updateSocialCardStatusById",
  119. method: "post",
  120. data: param,
  121. });
  122. },
  123. updateKeyCardStatusById(param) {
  124. return request({
  125. url: prefix + "/enrollmentRegistration/updateKeyCardStatusById",
  126. method: "post",
  127. data: param,
  128. });
  129. },
  130. updateRiceCardStatusById(param) {
  131. return request({
  132. url: prefix + "/enrollmentRegistration/updateRiceCardStatusById",
  133. method: "post",
  134. data: param,
  135. });
  136. },
  137. remove(id) {
  138. return request({
  139. url: prefix + "/enrollmentRegistration/remove",
  140. method: "get",
  141. params: { id: id },
  142. });
  143. },
  144. delByUserId(id) {
  145. return request({
  146. url: prefix + "/enrollmentRegistration/delByUserId",
  147. method: "get",
  148. params: { id: id },
  149. });
  150. },
  151. findIdCardOnly(idCard,id) {
  152. return request({
  153. url: prefix + "/enrollmentRegistration/findIdCardOnly",
  154. method: "get",
  155. params: { idCard: idCard,id:id },
  156. });
  157. },
  158. findMobilePhoneOnly(mobilePhone) {
  159. return request({
  160. url: prefix + "/enrollmentRegistration/findMobilePhoneOnly",
  161. method: "get",
  162. params: { mobilePhone: mobilePhone },
  163. });
  164. },
  165. findByUserId(userId) {
  166. return request({
  167. url: prefix + "/enrollmentRegistration/findByUserId",
  168. method: "get",
  169. params: { userId: userId },
  170. });
  171. },
  172. findInfoByUserId(userId) {
  173. return request({
  174. url: prefix + "/enrollmentRegistration/findInfoByUserId",
  175. method: "get",
  176. params: { userId: userId },
  177. });
  178. },
  179. downloadFile() {
  180. return request({
  181. url: prefix + "/enrollmentRegistration/downloadFile",
  182. method: "get",
  183. params: {},
  184. responseType: "blob",
  185. });
  186. },
  187. downloadDepartFile(handoverId) {
  188. return request({
  189. url: prefix + "/enrollmentRegistration/downloadDepartFile",
  190. method: "get",
  191. params: { handoverId: handoverId },
  192. responseType: "blob",
  193. });
  194. },
  195. exportTemplate() {
  196. return request({
  197. url: prefix + "/enrollmentRegistration/import/template",
  198. method: "get",
  199. responseType: "blob",
  200. });
  201. },
  202. importExcel(data) {
  203. return request({
  204. url: prefix + "/enrollmentRegistration/import",
  205. method: "post",
  206. data: data,
  207. });
  208. },
  209. exportExcel: function (params) {
  210. return request({
  211. url: prefix + "/enrollmentRegistration/export",
  212. method: "get",
  213. params: params,
  214. responseType: "blob",
  215. });
  216. },
  217. };