import request from '@/utils/request' import qs from 'qs' export const getWtWorkReportInfos = (params) => { return new request({ url: './work/wtWorkReportAllInfos/', method: 'get', params: params }); } export const get = (id) => { return new request({ url: './work/wtWorkReportAllInfos/' + id, method: 'get', }); } export function saveOrUpdate(wtWorkReportInfo, token) { return new request({ url: './work/wtWorkReportAllInfos', method: (wtWorkReportInfo.id ? 'put' : 'post'), headers: { token }, data: { wtWorkReportInfo } }); } export function del(id) { return new request({ url: './work/wtWorkReportAllInfos/' + id, method: 'delete', }); } export const downloadWtWorkReports = (params) => { return new request({ url: './work/wtWorkReportAllInfos/batchDownloadWtWorkReports', method: 'get', params: params, responseType: 'blob', }); }