2022-04-22 14:35:51 +08:00
|
|
|
import { WeaTools } from "ecCom";
|
2022-11-23 15:12:19 +08:00
|
|
|
import { postFetch } from "../util/request";
|
2022-04-22 14:35:51 +08:00
|
|
|
|
|
|
|
|
//社会福利台账-获取正常缴纳列表
|
|
|
|
|
export const getCommonList = (params) => {
|
|
|
|
|
// return WeaTools.callApi('/api/bs/hrmsalary/siaccount/batch/list', 'POST', params);
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/batch/list", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-04-22 14:35:51 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-04-22 14:35:51 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//社会福利台账-获取tab列表
|
|
|
|
|
export const getTabList = (params) => {
|
|
|
|
|
return WeaTools.callApi("/api/bs/hrmsalary/siaccount/tabList", "get", params);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//社会福利台账-获取正常缴纳列表
|
|
|
|
|
export const getNormalList = (params) => {
|
|
|
|
|
// return WeaTools.callApi('/api/bs/hrmsalary/siaccount/detail/common/list', 'get', params);
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/detail/common/list", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-04-22 14:35:51 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-04-22 14:35:51 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
//社会福利台账-获取补缴列表
|
|
|
|
|
export const getSupplementaryList = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/detail/supplementary/list", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-04-22 14:35:51 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-04-22 14:35:51 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//社会福利台账-获取总览列表
|
|
|
|
|
export const getOverViewList = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/overView", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-04-22 14:35:51 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-04-22 14:35:51 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//社会福利台账-获取异常列表
|
|
|
|
|
export const getChangeList = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/changeList", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-04-22 14:35:51 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-04-22 14:35:51 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
//社会福利台账-保存并进入核算
|
|
|
|
|
export const save = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/save", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-04-22 14:35:51 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-04-22 14:35:51 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
//社会福利台账-归档
|
|
|
|
|
export const siaccountFile = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/file", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-04-22 14:35:51 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-04-22 14:35:51 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
//社会福利台账-核算异常列表
|
|
|
|
|
export const inspectList = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/inspectList", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-04-22 14:35:51 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-04-22 14:35:51 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
//社会福利台账-删除正常缴纳人员
|
|
|
|
|
export const siaccountCommonDelete = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/common/delete", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-04-22 14:35:51 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-04-22 14:35:51 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
//社会福利台账-添加正常缴纳人员
|
|
|
|
|
export const siaccountCommonSave = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/common/save", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-04-22 14:35:51 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-04-22 14:35:51 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
//社会福利台账-添加补缴人员
|
|
|
|
|
export const siaccountSupplementarySave = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/supplementary/save", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-04-22 14:35:51 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-04-22 14:35:51 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
//社会福利台账-删除月份表单
|
|
|
|
|
export const siaccountDelete = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/delete", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-04-22 14:35:51 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-04-22 14:35:51 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
//社会福利台账-正常缴纳添加缴纳人员表单
|
|
|
|
|
export const siaccountCommonForm = (params) => {
|
|
|
|
|
return WeaTools.callApi(
|
|
|
|
|
"/api/bs/hrmsalary/siaccount/commonForm",
|
|
|
|
|
"get",
|
|
|
|
|
params
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
//社会福利台账-补缴添加缴纳人员表单
|
|
|
|
|
export const querySupplementaryForm = (params) => {
|
|
|
|
|
return WeaTools.callApi(
|
|
|
|
|
"/api/bs/hrmsalary/siaccount/querySupplementaryForm",
|
|
|
|
|
"get",
|
|
|
|
|
params
|
|
|
|
|
);
|
|
|
|
|
};
|
2022-05-26 09:46:28 +08:00
|
|
|
|
|
|
|
|
// 核算详情页核算
|
|
|
|
|
export const commonAccount = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/commonAccount", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-05-26 09:46:28 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-05-26 09:46:28 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
2022-06-09 18:30:19 +08:00
|
|
|
|
2022-07-21 17:34:10 +08:00
|
|
|
// 社保福利台账重新核算
|
|
|
|
|
export const socialSecurityBenefitsRecalculate = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/socialSecurityBenefitsRecalculate", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-07-21 17:34:10 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-07-21 17:34:10 +08:00
|
|
|
}).then((res) => res.json());
|
|
|
|
|
};
|
|
|
|
|
|
2022-06-09 18:30:19 +08:00
|
|
|
|
|
|
|
|
// 获取当前管理员下的所有的个税扣缴义务人
|
|
|
|
|
export const getAdminTaxAgentList = () => {
|
|
|
|
|
return WeaTools.callApi(
|
|
|
|
|
"/api/bs/hrmsalary/siaccount/getAdminTaxAgentList",
|
|
|
|
|
"get",
|
|
|
|
|
{}
|
|
|
|
|
);
|
2022-11-23 15:12:19 +08:00
|
|
|
};
|
2022-09-08 17:04:36 +08:00
|
|
|
|
|
|
|
|
// 表单字段对应的接口
|
|
|
|
|
export const getWelfareList = () => {
|
|
|
|
|
return WeaTools.callApi(
|
|
|
|
|
"/api/bs/hrmsalary/siaccount/getWelfareList",
|
|
|
|
|
"get",
|
|
|
|
|
{}
|
|
|
|
|
);
|
2022-11-23 15:12:19 +08:00
|
|
|
};
|
2022-09-08 17:04:36 +08:00
|
|
|
|
|
|
|
|
// 社保福利台账-导入预览
|
|
|
|
|
export const welfarePreview = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/welfare/preview", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-09-08 17:04:36 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-09-08 17:04:36 +08:00
|
|
|
}).then((res) => res.json());
|
2022-11-23 15:12:19 +08:00
|
|
|
};
|
2022-09-08 17:04:36 +08:00
|
|
|
|
|
|
|
|
// 社保福利台账-核算数据导入
|
|
|
|
|
export const importInsuranceAcctDetail = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/welfare/importInsuranceAcctDetail", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-09-08 17:04:36 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-09-08 17:04:36 +08:00
|
|
|
}).then((res) => res.json());
|
2022-11-23 15:12:19 +08:00
|
|
|
};
|
2022-09-29 16:35:41 +08:00
|
|
|
|
|
|
|
|
// 社保福利台账-线下对比数据导入
|
|
|
|
|
export const importExcelInsuranceDetail = (params) => {
|
|
|
|
|
return fetch("/api/bs/hrmsalary/siaccount/comparisonwelfare/importExcelInsuranceDetail", {
|
|
|
|
|
method: "post",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
2022-11-23 15:12:19 +08:00
|
|
|
"Content-Type": "application/json"
|
2022-09-29 16:35:41 +08:00
|
|
|
},
|
2022-11-23 15:12:19 +08:00
|
|
|
body: JSON.stringify(params)
|
2022-09-29 16:35:41 +08:00
|
|
|
}).then((res) => res.json());
|
2022-11-23 15:12:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//获取当前登录人所控制的人员范围
|
|
|
|
|
export const getEmployeeListByTaxAgent = (params) => {
|
|
|
|
|
return postFetch("/api/bs/hrmsalary/siaccount/getEmployeeListByTaxAgent", params);
|
|
|
|
|
};
|
|
|
|
|
//新增退差数据
|
|
|
|
|
export const saveRecession = (params) => {
|
|
|
|
|
return postFetch("/api/bs/hrmsalary/siaccount/saveRecession", params);
|
|
|
|
|
};
|
|
|
|
|
//查询退差列表
|
|
|
|
|
export const recessionList = (params) => {
|
|
|
|
|
return postFetch("/api/bs/hrmsalary/siaccount/detail/recession/list", params);
|
|
|
|
|
};
|
|
|
|
|
//删除退差数据
|
|
|
|
|
export const delRecession = (params) => {
|
|
|
|
|
return postFetch("/api/bs/hrmsalary/siaccount/delRecession", params);
|
|
|
|
|
};
|
2022-11-24 15:56:10 +08:00
|
|
|
//编辑社保福利缴纳数据
|
|
|
|
|
export const editAccount = (params) => {
|
|
|
|
|
return postFetch("/api/bs/hrmsalary/siaccount/editAccount", params);
|
|
|
|
|
};
|
2022-11-23 15:12:19 +08:00
|
|
|
//获取核算项个人和公司社保福利缴纳详情
|
|
|
|
|
export const getPaymentById = ({ id }) => {
|
|
|
|
|
return fetch(`/api/bs/hrmsalary/siaccount/getPaymentById?id=${id}`, {
|
|
|
|
|
method: "GET",
|
|
|
|
|
mode: "cors",
|
|
|
|
|
headers: {
|
|
|
|
|
"Content-Type": "application/json"
|
2022-12-05 14:28:38 +08:00
|
|
|
}
|
2022-11-23 15:12:19 +08:00
|
|
|
}).then(res => res.json());
|
|
|
|
|
};
|
2022-12-05 14:28:38 +08:00
|
|
|
|
|
|
|
|
//获取调差列表
|
|
|
|
|
export const getCompensationList = (params) => {
|
|
|
|
|
return postFetch("/api/bs/hrmsalary/siaccount/compensationList", params);
|
|
|
|
|
};
|