s0501.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import request from '@/utils/request'
  2. // 查询质量月报S0501列表
  3. export function listS0501Month(query) {
  4. return request({
  5. url: '/production/s0501/listMonth',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询质量月报S0501列表
  11. export function listS0501(query) {
  12. return request({
  13. url: '/production/s0501/list',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询质量月报S0501详细
  19. export function getS0501(id) {
  20. return request({
  21. url: '/production/s0501/' + id,
  22. method: 'get'
  23. })
  24. }
  25. // 新增质量月报S0501
  26. export function addS0501(data) {
  27. return request({
  28. url: '/production/s0501',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 修改质量月报S0501
  34. export function updateS0501(data) {
  35. return request({
  36. url: '/production/s0501',
  37. method: 'put',
  38. data: data
  39. })
  40. }
  41. // 删除质量月报S0501
  42. export function delS0501(id) {
  43. return request({
  44. url: '/production/s0501/' + id,
  45. method: 'delete'
  46. })
  47. }
  48. // 导出质量月报S0501
  49. export function exportS0501(query) {
  50. return request({
  51. url: '/production/s0501/export',
  52. method: 'get',
  53. params: query
  54. })
  55. }