diff --git a/pc4mobx/hrmSalary/apis/standingBook.js b/pc4mobx/hrmSalary/apis/standingBook.js index 118e6fbc..0dd811a2 100644 --- a/pc4mobx/hrmSalary/apis/standingBook.js +++ b/pc4mobx/hrmSalary/apis/standingBook.js @@ -148,23 +148,11 @@ export const getPaymentGroup = (params) => { }; //获取核算项个人和公司社保福利缴纳详情 export const getPaymentById = ({ id }) => { - return fetch(`/api/bs/hrmsalary/siaccount/getPaymentById?id=${id}`, { - method: "GET", - mode: "cors", - headers: { - "Content-Type": "application/json" - } - }).then(res => res.json()); + return WeaTools.callApi("/api/bs/hrmsalary/siaccount/getPaymentById", "GET", { id }); }; //获取社保福利项列表 export const compensationCategoryType = ({ id }) => { - return fetch(`/api/bs/hrmsalary/siaccount/compensationCategoryType?id=${id}`, { - method: "GET", - mode: "cors", - headers: { - "Content-Type": "application/json" - } - }).then(res => res.json()); + return WeaTools.callApi("/api/bs/hrmsalary/siaccount/compensationCategoryType", "GET", { id }); }; //获取调差列表