feature/2.9.42310.01-接口fetch重新封装

This commit is contained in:
黎永顺 2023-11-07 16:43:23 +08:00
parent 858b694568
commit d9a7814080
1 changed files with 8 additions and 7 deletions

View File

@ -108,13 +108,14 @@ export const deleteSalaryacct = (params) => {
// 薪资记录--归档薪资核算记录
export const fileSalaryAcct = (params) => {
return fetch(`/api/bs/hrmsalary/salaryacct/file?id=${params.id}`, {
method: "GET",
mode: "cors",
headers: {
"Content-Type": "application/json"
}
}).then(res => res.json());
return WeaTools.callApi(`/api/bs/hrmsalary/salaryacct/file`, "GET", params);
// return fetch(`/api/bs/hrmsalary/salaryacct/file?id=${params.id}`, {
// method: "GET",
// mode: "cors",
// headers: {
// "Content-Type": "application/json"
// }
// }).then(res => res.json());
};
// 薪资记录-回算
export const backCalculate = (params) => {