2
3

suppliercert.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. deleteEntity (entityId, myAxios) {
  42. return myAxios({
  43. url: '/suppliercert/delete/' + entityId,
  44. method: 'delete'
  45. })
  46. },
  47. auditEntity (entityId, FirstAudit, myAxios) {
  48. return myAxios({
  49. url: '/suppliercert/audit/' + entityId + '?firstAudit=' + FirstAudit,
  50. method: 'post'
  51. })
  52. },
  53. // 专业审批
  54. auditEntityadmission (entityId, myAxios) {
  55. return myAxios({
  56. url: '/suppliercert/admission/' + entityId,
  57. method: 'post'
  58. })
  59. },
  60. // 增项审批
  61. auditEntityappend (entityId, myAxios) {
  62. return myAxios({
  63. url: '/suppliercert/auditappend/' + entityId,
  64. method: 'post'
  65. })
  66. },
  67. auditEntityFir (entityId, status, params, myAxios) {
  68. return myAxios({
  69. url: '/suppliercert/auditEntityFir/' + entityId + '?status=' + status,
  70. method: 'post',
  71. data: params
  72. })
  73. }
  74. }