2022-09-15 17:57:38 +08:00
|
|
|
import { WeaTools } from "ecCom";
|
2022-02-28 09:29:46 +08:00
|
|
|
|
2022-04-18 16:57:42 +08:00
|
|
|
// 薪资记录--薪资核算列表
|
|
|
|
|
export const getSalaryAcctList = params => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/list", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 10:11:40 +08:00
|
|
|
|
|
|
|
|
// 薪资记录--保存薪资核算的基本信息
|
|
|
|
|
export const saveBasic = params => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/basic/save", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 10:11:40 +08:00
|
|
|
|
|
|
|
|
// 薪资记录--薪资核算详情
|
|
|
|
|
export const salaryacctGetForm = params => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryacct/getForm", "GET", params);
|
|
|
|
|
};
|
2022-04-19 10:11:40 +08:00
|
|
|
|
2022-04-19 14:45:29 +08:00
|
|
|
// 核算人员--薪资核算环比上期减少人员列表
|
|
|
|
|
export const reducedemployeeList = params => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/reducedemployee/list", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2023-09-14 11:41:29 +08:00
|
|
|
// 核算人员--薪资核算环比上月增加人员
|
|
|
|
|
export const addedemployeeList = params => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/addedemployee/list", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
|
|
|
|
// 核算人员--薪资核算人员确认列表
|
|
|
|
|
export const acctemployeeList = params => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctemployee/list", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
|
|
|
|
// 核算人员--检查薪资核算人员的个税扣缴义务人
|
|
|
|
|
export const checkTaxAgent = params => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctemployee/checkTaxAgent", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
|
|
|
|
// 薪资记录--获取薪资核算的薪资周期、考勤周期等
|
|
|
|
|
export const getSalarySobCycle = params => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryacct/getSalarySobCycle", "GET", params);
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
|
|
|
|
// 核算人员--添加薪资核算人员
|
|
|
|
|
export const saveAcctemployee = params => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctemployee/save", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
|
|
|
|
// 核算人员--导出环比减少人员
|
|
|
|
|
export const exportReducedEmployee = (id) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
fetch("/api/bs/hrmsalary/salaryacct/reducedemployee/export?salaryAcctRecordId=" + id).then(res => res.blob().then(blob => {
|
|
|
|
|
var filename = `导出环比减少人员.xlsx`;
|
|
|
|
|
var a = document.createElement("a");
|
|
|
|
|
var url = window.URL.createObjectURL(blob);
|
|
|
|
|
a.href = url;
|
|
|
|
|
a.download = filename;
|
|
|
|
|
a.click();
|
|
|
|
|
window.URL.revokeObjectURL(url);
|
|
|
|
|
}));
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
|
|
|
|
// 核算人员--导出人员范围
|
|
|
|
|
export const exportAcctEmployee = (id) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
fetch("/api/bs/hrmsalary/salaryacct/acctemployee/export?salaryAcctRecordId=" + id).then(res => res.blob().then(blob => {
|
|
|
|
|
var filename = `导出环比减少人员.xlsx`;
|
|
|
|
|
var a = document.createElement("a");
|
|
|
|
|
var url = window.URL.createObjectURL(blob);
|
|
|
|
|
a.href = url;
|
|
|
|
|
a.download = filename;
|
|
|
|
|
a.click();
|
|
|
|
|
window.URL.revokeObjectURL(url);
|
|
|
|
|
}));
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
|
|
|
|
// 核算人员--删除薪资核算人员
|
|
|
|
|
export const deleteAcctemployee = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctemployee/delete", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
|
|
|
|
// 核算结果--列表
|
|
|
|
|
export const acctResultList = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctresult/list", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
|
|
|
|
// 核算结果--薪资核算
|
|
|
|
|
export const acctresultAccounting = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctresult/accounting", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
|
|
|
|
// 线下比对-列表
|
|
|
|
|
export const comparisonresultList = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctresult/accounting", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
|
|
|
|
// 核算人员--刷新薪资核算人员的个税扣缴义务人
|
|
|
|
|
export const refreshTaxAgent = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctemployee/refreshTaxAgent", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
|
|
|
|
// 薪资核算-编辑表单
|
|
|
|
|
export const acctresultDetail = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryacct/acctresult/detail", "GET", params);
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
2022-04-19 16:34:19 +08:00
|
|
|
// 薪资记录--删除薪资核算记录
|
|
|
|
|
export const deleteSalaryacct = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/delete", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 16:34:19 +08:00
|
|
|
|
|
|
|
|
// 薪资记录--归档薪资核算记录
|
|
|
|
|
export const fileSalaryAcct = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch(`/api/bs/hrmsalary/salaryacct/file?id=${params.id}`, {
|
|
|
|
|
method: "GET",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
}
|
|
|
|
|
}).then(res => res.json());
|
2022-12-14 19:40:05 +08:00
|
|
|
};
|
|
|
|
|
// 薪资记录-回算
|
|
|
|
|
export const backCalculate = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/backCalculate", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
2022-09-15 17:57:38 +08:00
|
|
|
};
|
2022-04-19 16:34:19 +08:00
|
|
|
|
|
|
|
|
// 薪资记录-重新核算
|
|
|
|
|
export const reAccounting = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/reAccounting", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 16:34:19 +08:00
|
|
|
|
2022-04-20 15:28:40 +08:00
|
|
|
// 薪资结果-编辑表单保存
|
|
|
|
|
export const saveAcctResult = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctresult/save", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-20 15:28:40 +08:00
|
|
|
|
2022-04-26 16:35:07 +08:00
|
|
|
// 核算结果--导入核算结果前生成导入模板时可选的薪资项目
|
|
|
|
|
export const getImportField = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryacct/acctresult/importField", "GET", params);
|
|
|
|
|
};
|
2022-04-19 16:34:19 +08:00
|
|
|
|
2022-04-26 16:35:07 +08:00
|
|
|
// 核算结果-导入模板
|
|
|
|
|
export const getImportTemplate = (salaryItemIds, salaryAcctRecordId) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
fetch("/api/bs/hrmsalary/salaryacct/acctresult/importtemplate/export?salaryItemIds=" + salaryItemIds + "&salaryAcctRecordId=" + salaryAcctRecordId).then(res => res.blob().then(blob => {
|
|
|
|
|
var filename = `薪资核算.xlsx`;
|
|
|
|
|
var a = document.createElement("a");
|
|
|
|
|
var url = window.URL.createObjectURL(blob);
|
|
|
|
|
a.href = url;
|
|
|
|
|
a.download = filename;
|
|
|
|
|
a.click();
|
|
|
|
|
window.URL.revokeObjectURL(url);
|
|
|
|
|
}));
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
2022-04-26 16:35:07 +08:00
|
|
|
// 核算结果-导入预览
|
2022-09-15 17:57:38 +08:00
|
|
|
export const previewAcctResult = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctresult/preview", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
2022-04-26 16:35:07 +08:00
|
|
|
// 核算结果-导入
|
|
|
|
|
export const importAcctResult = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctresult/importSalaryAcctResult", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
2022-04-26 16:35:07 +08:00
|
|
|
// 核算结果-导出全部
|
2022-05-30 09:38:45 +08:00
|
|
|
export const exportAcctResult = (salaryAcctRecordId, ids) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
fetch("/api/bs/hrmsalary/salaryacct/acctresult/export?salaryAcctRecordId=" + salaryAcctRecordId + "&ids=" + ids).then(res => res.blob().then(blob => {
|
|
|
|
|
var filename = `薪资核算.xlsx`;
|
|
|
|
|
var a = document.createElement("a");
|
|
|
|
|
var url = window.URL.createObjectURL(blob);
|
|
|
|
|
a.href = url;
|
|
|
|
|
a.download = filename;
|
|
|
|
|
a.click();
|
|
|
|
|
window.URL.revokeObjectURL(url);
|
|
|
|
|
}));
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
2022-04-26 16:35:07 +08:00
|
|
|
// 线下对比-列表
|
|
|
|
|
export const comparisonResultList = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/comparisonresult/list", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-19 14:45:29 +08:00
|
|
|
|
2022-04-27 11:14:20 +08:00
|
|
|
// 线下对比--结果导入模板
|
|
|
|
|
export const exportImportTemplate = (salaryAcctRecordId) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
fetch("/api/bs/hrmsalary/salaryacct/comparisonresult/importtemplate/export?salaryAcctRecordId=" + salaryAcctRecordId).then(res => res.blob().then(blob => {
|
|
|
|
|
var filename = `线下对比导入模板.xlsx`;
|
|
|
|
|
var a = document.createElement("a");
|
|
|
|
|
var url = window.URL.createObjectURL(blob);
|
|
|
|
|
a.href = url;
|
|
|
|
|
a.download = filename;
|
|
|
|
|
a.click();
|
|
|
|
|
window.URL.revokeObjectURL(url);
|
|
|
|
|
}));
|
|
|
|
|
};
|
2022-04-27 11:14:20 +08:00
|
|
|
|
|
|
|
|
// 线下对比--导入预览
|
|
|
|
|
export const previewComparisonResult = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/comparisonresult/preview", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-27 11:14:20 +08:00
|
|
|
|
|
|
|
|
// 线下对比--导入
|
|
|
|
|
export const importComparisonExcelAcctResult = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/comparisonresult/importExcelAcctResult", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-04-27 11:14:20 +08:00
|
|
|
|
|
|
|
|
// 线下对比-导出
|
|
|
|
|
export const exportComparisonResult = (salaryAcctRecordId) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
fetch("/api/bs/hrmsalary/salaryacct/comparisonresult/export?salaryAcctRecordId=" + salaryAcctRecordId).then(res => res.blob().then(blob => {
|
|
|
|
|
var filename = `线下对比结果.xlsx`;
|
|
|
|
|
var a = document.createElement("a");
|
|
|
|
|
var url = window.URL.createObjectURL(blob);
|
|
|
|
|
a.href = url;
|
|
|
|
|
a.download = filename;
|
|
|
|
|
a.click();
|
|
|
|
|
window.URL.revokeObjectURL(url);
|
|
|
|
|
}));
|
|
|
|
|
};
|
2022-04-27 11:14:20 +08:00
|
|
|
|
2022-05-05 12:17:12 +08:00
|
|
|
// 核算进度条
|
|
|
|
|
export const getCalculateProgress = (id) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return WeaTools.callApi("/api/bs/hrmsalary/progress/getRate?cacheKey=ACCT_PROGRESS_" + id, "get", {});
|
|
|
|
|
};
|
2022-04-19 10:11:40 +08:00
|
|
|
|
2022-08-02 18:17:08 +08:00
|
|
|
// 核算进度条
|
|
|
|
|
export const getColumnDesc = (params) => {
|
2022-09-15 17:57:38 +08:00
|
|
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryacct/acctresult/getColumnDesc", "get", params);
|
|
|
|
|
};
|
2022-08-02 18:17:08 +08:00
|
|
|
|
2022-11-17 14:17:34 +08:00
|
|
|
// 更新薪资核算结果的锁定状态
|
|
|
|
|
export const updateLockStatus = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctresult/updateLockStatus", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2023-03-17 17:52:27 +08:00
|
|
|
// 导入薪资核算添加表头字段缓存
|
|
|
|
|
export const cacheImportField = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctresult/cacheImportField", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2023-06-27 17:11:52 +08:00
|
|
|
//薪资核算-页面查看权限
|
|
|
|
|
export const salaryacctAcctresultCheckAuth = params => {
|
|
|
|
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryacct/acctresult/checkAuth", "GET", params);
|
|
|
|
|
};
|
2023-07-17 16:49:02 +08:00
|
|
|
|
|
|
|
|
//薪资核算-导出核算结果前生成可选的薪资项目
|
|
|
|
|
export const getExportField = params => {
|
|
|
|
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryacct/acctresult/exportField", "GET", params);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//薪资核算-导出薪资核算添加表头字段缓存
|
|
|
|
|
export const customCacheExportField = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/salaryacct/acctresult/cacheExportField", {
|
|
|
|
|
method: "POST",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify(params)
|
|
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|