wtWorkReportStat.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. export const getWtWorkReportStats = (params) => {
  4. return new request({
  5. url: './wt/wtWorkReportStats/',
  6. method: 'get',
  7. params: params
  8. });
  9. }
  10. export const get = (id) => {
  11. return new request({
  12. url: './wt/wtWorkReportStats/' + id,
  13. method: 'get',
  14. });
  15. }
  16. export function saveOrUpdate(wtWorkReportStat, token) {
  17. return new request({
  18. url: './wt/wtWorkReportStats',
  19. method: (wtWorkReportStat.id ? 'put' : 'post'),
  20. headers: {
  21. token
  22. },
  23. data: {
  24. wtWorkReportStat
  25. }
  26. });
  27. }
  28. export function del(id) {
  29. return new request({
  30. url: './wt/wtWorkReportStats/' + id,
  31. method: 'delete',
  32. });
  33. }
  34. export const wtWorkReportStatCount = (params) => {
  35. return new request({
  36. url: './wt/wtWorkReportStats/',
  37. method: 'get',
  38. params: params
  39. });
  40. }
  41. export const downloadWtWorkReport = (params) => {
  42. return new request({
  43. url: './work/wtWorkReportStats/batchDownloadWtWorkReport',
  44. method: 'get',
  45. params: params,
  46. responseType: 'blob',
  47. });
  48. }