suppliercert.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. export default {
  2. getList (CreateOn, params, myAxios) {
  3. return myAxios({
  4. url: '/suppliercert/list?CreateOn=' + CreateOn,
  5. method: 'GET',
  6. params: params
  7. })
  8. },
  9. getDictList (myAxios) {
  10. return myAxios({
  11. url: '/suppliercert/dictlist/',
  12. method: 'GET'
  13. })
  14. },
  15. getEntityByCreatorAndType (typeCode, myAxios) {
  16. return myAxios({
  17. url: '/suppliercert/getbycreatorandtype/' + typeCode,
  18. method: 'GET'
  19. })
  20. },
  21. getEntity (entityId, myAxios) {
  22. return myAxios({
  23. url: '/suppliercert/get/' + entityId,
  24. method: 'GET'
  25. })
  26. },
  27. addEntity (formData, myAxios) {
  28. return myAxios({
  29. url: '/suppliercert/add',
  30. method: 'post',
  31. data: formData
  32. })
  33. },
  34. updateEntity (entityId, formData, myAxios) {
  35. return myAxios({
  36. url: '/suppliercert/update/' + entityId,
  37. method: 'post',
  38. data: formData
  39. })
  40. },
  41. updateStorage (entityId, params, myAxios) {
  42. return myAxios({
  43. url: '/suppliercert/updatestorage/' + entityId,
  44. method: 'post',
  45. params: params
  46. })
  47. },
  48. updateIsStorage (entityId, params, myAxios) {
  49. return myAxios({
  50. url: '/suppliercert/update-is-storage/' + entityId,
  51. method: 'post',
  52. params: params
  53. })
  54. },
  55. deleteEntity (entityId, myAxios) {
  56. return myAxios({
  57. url: '/suppliercert/delete/' + entityId,
  58. method: 'delete'
  59. })
  60. },
  61. checkSupplierCertCanSubmit (entityId, myAxios) {
  62. return myAxios({
  63. url: '/suppliercert/check-suppliercert-submit/' + entityId,
  64. method: 'post'
  65. })
  66. },
  67. companyAuditEntity (entityId, params, myAxios) {
  68. return myAxios({
  69. url: '/suppliercert/company-audit/' + entityId,
  70. method: 'post',
  71. params: params
  72. })
  73. },
  74. unitAuditEntity (entityId, params, myAxios) {
  75. return myAxios({
  76. url: '/suppliercert/unit-audit/' + entityId,
  77. method: 'post',
  78. params: params
  79. })
  80. },
  81. // 专业审批
  82. auditEntityadmission (entityId, myAxios) {
  83. return myAxios({
  84. url: '/suppliercert/admission/' + entityId,
  85. method: 'post'
  86. })
  87. },
  88. // 增项审批
  89. auditEntityappend (entityId, myAxios) {
  90. return myAxios({
  91. url: '/suppliercert/auditappend/' + entityId,
  92. method: 'post'
  93. })
  94. },
  95. auditEntityFir (entityId, audit, params, myAxios) {
  96. return myAxios({
  97. url: '/suppliercert/auditEntityFir/' + entityId,
  98. method: 'post',
  99. data: params,
  100. params: audit
  101. })
  102. },
  103. isAccess (params, myAxios) {
  104. return myAxios({
  105. url: '/suppliercert/isaccess',
  106. method: 'get',
  107. params: params
  108. })
  109. },
  110. createAccessCardNo (Id, SupplierCertId, type, myAxios) {
  111. return myAxios({
  112. url: '/suppliercert/createaccesscardno/' + type + '?Id=' + Id + '&SupplierCertId=' + SupplierCertId,
  113. method: 'GET'
  114. })
  115. },
  116. UpdateInFlag (myAxios) {
  117. return myAxios({
  118. url: '/suppliercert/updateinflag/',
  119. method: 'GET'
  120. })
  121. },
  122. saveAccessCardNo (Id, SupplierCertId, AccessCardNo, type, myAxios) {
  123. return myAxios({
  124. url: '/suppliercert/saveaccesscardno/' + Id + '?AccessCardNo=' + AccessCardNo + '&SupplierCertId=' + SupplierCertId + '&typeCode=' + type,
  125. method: 'GET'
  126. })
  127. },
  128. reInput (entityId, params, myAxios) {
  129. return myAxios({
  130. url: '/suppliercert/reinput/' + entityId,
  131. method: 'post',
  132. params: params
  133. })
  134. },
  135. updateInFlag (entityId, params, myAxios) {
  136. return myAxios({
  137. url: '/suppliercert/updateInFlag/' + entityId,
  138. method: 'post',
  139. data: params
  140. })
  141. },
  142. UpdateApplyTime (entityId, params, myAxios) {
  143. return myAxios({
  144. url: '/suppliercert/updateapplytime/' + entityId,
  145. method: 'post',
  146. data: params
  147. })
  148. },
  149. getApplyTimeList (params, myAxios) {
  150. return myAxios({
  151. url: '/suppliercert/getapplytimelist',
  152. method: 'GET',
  153. params: params
  154. })
  155. },
  156. backStatus (id, params, myAxios) {
  157. return myAxios({
  158. url: '/suppliercert/backstatus/' + id,
  159. method: 'post',
  160. params: params
  161. })
  162. },
  163. updateIsRestrict (id, params, myAxios) {
  164. return myAxios({
  165. url: '/suppliercert/updateisrestrict/' + id,
  166. method: 'post',
  167. params: params
  168. })
  169. },
  170. separateAuditEntity (id, params, myAxios) {
  171. return myAxios({
  172. url: 'suppliercert/separate-audit/' + id,
  173. method: 'post',
  174. params: params
  175. })
  176. },
  177. updatePayStatus (id, params, myAxios) {
  178. return myAxios({
  179. url: 'suppliercert/update-pay-status/' + id,
  180. method: 'post',
  181. params: params
  182. })
  183. },
  184. commonAuditEntity (id, params, myAxios) {
  185. return myAxios({
  186. url: 'suppliercert/common-audit/' + id,
  187. method: 'post',
  188. params: params
  189. })
  190. },
  191. businessOfficeSeparateAuditEntity (id, params, myAxios) {
  192. return myAxios({
  193. url: 'suppliercert/business-separate-audit/' + id,
  194. method: 'post',
  195. params: params
  196. })
  197. }
  198. }