safeStorageInspect.js 709 B

123456789101112131415161718192021222324252627282930313233
  1. import request from "@/utils/request"
  2. export const getList = (query) => {
  3. return request.get({
  4. url: '/client/c/safeStorage/ssSafeGrainStorageInspectionResult/page',
  5. data: query,
  6. })
  7. }
  8. export const getDetail = (id) => {
  9. const query = {
  10. ssSafeGrainStorageInspectionId: id,
  11. }
  12. return request.get({
  13. url: '/client/c/safeStorage/ssSafeGrainStorageInspectionResult/ipadDetail',
  14. data: query,
  15. })
  16. }
  17. export const update = (data) => {
  18. return request.post({
  19. url: '/client/c/safeStorage/ssSafeGrainStorageInspectionResult/edit',
  20. data,
  21. })
  22. }
  23. export const getGrain = (query) => {
  24. return request.get({
  25. url: '/client/c/safeStorage/ssSafeGrainStorageInspectionResult/getGrain',
  26. data: query,
  27. })
  28. }