| | |
| | | } |
| | | |
| | | // 通过id获取核算报告 |
| | | export const getCalculateReportById = (params) => { |
| | | export const getCalculateReportById = (contractId,whichYear) => { |
| | | return axios({ |
| | | url: "/calculate-report/" + params, |
| | | url: "/calculate-report/" + contractId+"/"+whichYear, |
| | | method: "GET" |
| | | }) |
| | | } |
| | |
| | | } |
| | | |
| | | // 添加核算报告 |
| | | export const addCalculateReport = (params) => { |
| | | export const addCalculateReport = (data) => { |
| | | return axios({ |
| | | url: "/calculate-report/", |
| | | method: "POST", |
| | | data: params |
| | | 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", |
| | | }) |
| | | } |