checkRecordApi.js 928 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import request from '@/utils/request'
  2. /**
  3. * 列表查询检查记录
  4. * @param data
  5. * @returns {AxiosPromise}
  6. */
  7. export function getCheckRecordByList(data) {
  8. return request({
  9. url: `/goaf/goafcheckRecord/list`,
  10. method: 'get',
  11. params: data
  12. })
  13. }
  14. /**
  15. * 分页查询检查记录
  16. * @param data
  17. * @returns {AxiosPromise}
  18. */
  19. export function getCheckRecordByPage(data) {
  20. return request({
  21. url: '/goaf/goafcheckRecord/page',
  22. method: 'GET',
  23. params: data
  24. })
  25. }
  26. /**
  27. * 根据检查记录id获取检查记录的详细信息
  28. * @param data
  29. * @returns {AxiosPromise}
  30. */
  31. export function getCheckRecordById(id) {
  32. return request({
  33. url: `/goaf/goafcheckRecord/${id}`,
  34. method: 'GET'
  35. })
  36. }
  37. /**
  38. * 增加检查记录 hh
  39. * @param data
  40. * @returns {AxiosPromise}
  41. */
  42. export function createCheckRecord(data) {
  43. return request({
  44. url: '/goaf/goafChecklist/add',
  45. method: 'POST',
  46. data
  47. })
  48. }