From d9a7814080a35c847d172e2ff9a031054a0aea36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Tue, 7 Nov 2023 16:43:23 +0800 Subject: [PATCH] =?UTF-8?q?feature/2.9.42310.01-=E6=8E=A5=E5=8F=A3fetch?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E5=B0=81=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/apis/calculate.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pc4mobx/hrmSalary/apis/calculate.js b/pc4mobx/hrmSalary/apis/calculate.js index a9f7fbc6..a8ee74c4 100644 --- a/pc4mobx/hrmSalary/apis/calculate.js +++ b/pc4mobx/hrmSalary/apis/calculate.js @@ -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) => {