approve.js 643 B

1234567891011121314151617181920212223242526272829303132333435
  1. // 新增设备维修申请
  2. import request from "@/utils/request";
  3. export function addApprove(data) {
  4. return request({
  5. url: '/intact/maintenance',
  6. method: 'post',
  7. data: data
  8. })
  9. }
  10. // 查询
  11. export function getApprove(id) {
  12. return request({
  13. url: '/intact/approve/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 查询设备维修申请详细
  18. export function getApproveInfo(id) {
  19. return request({
  20. url: '/intact/maintenance/info/' + id,
  21. method: 'get'
  22. })
  23. }
  24. // 设备维修申请处理
  25. export function handleApprove(data) {
  26. return request({
  27. url: '/intact/maintenance/handle',
  28. data: data,
  29. method: 'put'
  30. })
  31. }