import axios from '@/utils/request';
|
|
// 获取核算报告分页
|
export const getCalculateReports = (params) => {
|
return axios({
|
url: "/calculate-report/page",
|
method: "GET",
|
params: params
|
})
|
}
|
|
// 获取核算报告列表
|
export const getCalculateReportList = () => {
|
return axios({
|
url: "/calculate-report/list",
|
method: "GET"
|
})
|
}
|
|
// 通过id获取核算报告
|
export const getCalculateReportById = (contractId,whichYear,whichMoth) => {
|
return axios({
|
url: "/calculate-report/" + contractId+"/"+whichYear+"/"+whichMoth,
|
method: "GET"
|
})
|
}
|
|
// 通过id删除核算报告
|
export const deleteCalculateReportById = (params) => {
|
return axios({
|
url: "/calculate-report/" + params,
|
method: "DELETE"
|
})
|
}
|
|
// 批量删除核算报告
|
export const deleteCalculateReportByIds = (params) => {
|
return axios({
|
url: "/calculate-report/batch",
|
method: "DELETE",
|
data: params
|
})
|
}
|
|
// 修改核算报告
|
export const editCalculateReport = (params) => {
|
return axios({
|
url: "/calculate-report/",
|
method: "PUT",
|
data: params
|
})
|
}
|
|
// 添加核算报告
|
export const addCalculateReport = (data) => {
|
return axios({
|
url: "/calculate-report/",
|
method: "POST",
|
data: data
|
})
|
}
|
|
// 回填金额
|
export const backfill = (data) => {
|
return axios({
|
url: "/calculate-report/backfill/money",
|
method: "POST",
|
data: data
|
})
|
}
|
|
// 修改发布状态
|
export const updatePublishStatus = (contractId,whichYear) => {
|
return axios({
|
url: "/calculate-report/status/" + contractId+"/"+whichYear,
|
method: "PUT",
|
})
|
}
|
// 修改发布状态
|
export const updatePublishStatusById = (id,status) => {
|
return axios({
|
url: "/calculate-report/status/detail/"+ id+"/"+status,
|
method: "PUT",
|
})
|
}
|