reportReview.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { post, get, DELETE } from "@/utils/request";
  2. let BASE_API = "https://www.eiacloud.com/hpy";
  3. export const getReportReviewList = (params) => {
  4. return fetch("https://www.eiacloud.com/hpy/api/report/approval/homePage");
  5. };
  6. export const getOssStr = () => {
  7. return fetch("https://www.eiacloud.com/hpy/api/report/approval/getOssSts", {
  8. method: "get",
  9. });
  10. };
  11. export const getFileBaseInfo = (filePath) => {
  12. return fetch(
  13. `${BASE_API}/api/report/approval/fileBaseInfo?filePathReport=${filePath}`,
  14. {
  15. method: "get",
  16. // headers: {
  17. // "Content-Type": "application/json",
  18. // },
  19. }
  20. );
  21. };
  22. export const delOssFile = (filePath) => {
  23. return fetch(
  24. `${BASE_API}/api/report/approval/removeOss?filePathReport=${filePath}`,
  25. {
  26. method: "get",
  27. }
  28. );
  29. };
  30. export const getPaymentStatus = (id) => {
  31. return fetch(`${BASE_API}/api/report/approval/result?id=${id}`, {
  32. method: "get",
  33. });
  34. };
  35. export const getFileAuditRes = (id, userId) => {
  36. return fetch(
  37. `${BASE_API}/api/report/approval/view?id=${id}&userId=${userId}`,
  38. {
  39. method: "get",
  40. }
  41. );
  42. };