You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0 KiB

  1. /**
  2. * MES TID EPC日志API - rqrq
  3. * @author rqrq
  4. * @date 2025/01/30
  5. */
  6. import { createAPI } from "@/utils/httpRequest.js";
  7. // ================= 查询 =================
  8. /**
  9. * 分页查询日志列表 - rqrq
  10. * @param data 查询条件
  11. */
  12. export const searchList = data => createAPI(`/pms/mesTidEpcLog/searchList`, 'post', data)
  13. /**
  14. * 导出CSV文件 - rqrq
  15. * @param data 查询条件
  16. */
  17. export const exportCsv = data => createAPI(`/pms/mesTidEpcLog/exportCsv`, 'post', data, 'download')
  18. // ================= 导入 =================
  19. /**
  20. * 导入Excel数据 - rqrq
  21. * @param data FormData对象
  22. */
  23. export const importExcel = data => createAPI(`/pms/mesTidEpcLog/importExcel`, 'post', data)
  24. /**
  25. * 下载导入模板 - rqrq
  26. */
  27. export const downloadTemplate = () => createAPI(`/pms/mesTidEpcLog/downloadTemplate`, 'get', null, 'download')
  28. // ================= 删除 =================
  29. /**
  30. * 删除日志数据 - rqrq
  31. * @param data ID数组
  32. */
  33. export const deleteData = data => createAPI(`/pms/mesTidEpcLog/delete`, 'post', data)