import request from '@/utils/request' import qs from 'qs' export const getWtWorkReportStats = (params) => { return new request({ url: './wt/wtWorkReportStats/', method: 'get', params: params }); } export const get = (id) => { return new request({ url: './wt/wtWorkReportStats/' + id, method: 'get', }); } export function saveOrUpdate(wtWorkReportStat, token) { return new request({ url: './wt/wtWorkReportStats', method: (wtWorkReportStat.id ? 'put' : 'post'), headers: { token }, data: { wtWorkReportStat } }); } export function del(id) { return new request({ url: './wt/wtWorkReportStats/' + id, method: 'delete', }); } export const wtWorkReportStatCount = (params) => { return new request({ url: './wt/wtWorkReportStats/', method: 'get', params: params }); } export const downloadWtWorkReport = (params) => { return new request({ url: './work/wtWorkReportStats/batchDownloadWtWorkReport', method: 'get', params: params, responseType: 'blob', }); }