inspection.js 853 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import request from '@/utils/request'
  2. // 查询拍照检查附件列表
  3. export function listInspection(query) {
  4. return request({
  5. url: '/laboratory/inspection/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询拍照检查附件详细
  11. export function getInspection(id) {
  12. return request({
  13. url: '/laboratory/inspection/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增拍照检查附件
  18. export function addInspection(data) {
  19. return request({
  20. url: '/laboratory/inspection',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改拍照检查附件
  26. export function updateInspection(data) {
  27. return request({
  28. url: '/laboratory/inspection',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除拍照检查附件
  34. export function delInspection(id) {
  35. return request({
  36. url: '/laboratory/inspection/' + id,
  37. method: 'delete'
  38. })
  39. }