import request from '@/utils/httpRequest'

export default class ProjectReportArchiveService {
  list (params) {
    return request({
      url: '/cwProjectReportArchive/list',
      method: 'get',
      params: params
    })
  }
  reportList (params) {
    return request({
      url: '/cwProjectReportArchive/reportList',
      method: 'get',
      params: params
    })
  }
  queryById (id) {
    return request({
      url: '/cwProjectReportArchive/queryById',
      method: 'get',
      params: {id: id}
    })
  }
  save (inputForm) {
    return request({
      url: `/cwProjectReportArchive/save`,
      method: 'post',
      data: inputForm
    })
  }
  saveForm (inputForm) {
    return request({
      url: `/cwProjectReportArchive/saveForm`,
      method: 'post',
      data: inputForm
    })
  }
  delete (ids) {
    return request({
      url: '/cwProjectReportArchive/delete',
      method: 'delete',
      params: {ids: ids}
    })
  }
  updateStatusById (data) {
    return request({
      url: '/cwProjectReportArchive/updateStatusById',
      method: 'post',
      data: data
    })
  }
  exportFile (params) {
    return request({
      url: '/cwProjectReportArchive/export',
      method: 'get',
      params: params,
      responseType: 'blob'
    })
  }
  findReportUse (reportNo) {
    return request({
      url: '/cwProjectReportArchive/findReportUse',
      method: 'get',
      params: {reportNo: reportNo}
    })
  }
}
