index.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import request from "@/utils/request";
  2. import {OrderInfoQuery} from "@/api/order/types";
  3. /**
  4. * 设备维护
  5. *
  6. * @param ids
  7. */
  8. export function maintenanceUpdate(params: any) {
  9. return request({
  10. url: "/api/v1/device/maintenance/maintenance",
  11. method: "post",
  12. data: params,
  13. });
  14. }
  15. /**
  16. * 设备维修
  17. * @param params
  18. */
  19. export function repair(params: any) {
  20. return request({
  21. url: "/api/v1/device/repair/repair",
  22. method: "post",
  23. data: params,
  24. });
  25. }
  26. export function audit(params: any) {
  27. return request({
  28. url: "/api/v1/device/repair/audit",
  29. method: "post",
  30. data: params,
  31. });
  32. }
  33. export function allocateAudit(params: any) {
  34. return request({
  35. url: "/api/v1/device/allocate/audit",
  36. method: "post",
  37. data: params,
  38. });
  39. }
  40. export function allocateExport(deviceNo: String) {
  41. return request({
  42. url: "/api/v1/device/allocate/export/" + deviceNo,
  43. method: "get",
  44. responseType: "arraybuffer",
  45. });
  46. }
  47. export function queryTypeDataList() {
  48. return request({
  49. url: "/api/v1/device/fieldAlias/deviceTypeList",
  50. method: "get",
  51. });
  52. }