182 lines
5.0 KiB
JavaScript
182 lines
5.0 KiB
JavaScript
import { WeaTools } from "ecCom";
|
|
|
|
//社会福利台账-获取正常缴纳列表
|
|
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: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).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: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).then((res) => res.json());
|
|
};
|
|
//社会福利台账-获取补缴列表
|
|
export const getSupplementaryList = (params) => {
|
|
return fetch("/api/bs/hrmsalary/siaccount/detail/supplementary/list", {
|
|
method: "post",
|
|
mode: "cors",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).then((res) => res.json());
|
|
};
|
|
|
|
//社会福利台账-获取总览列表
|
|
export const getOverViewList = (params) => {
|
|
return fetch("/api/bs/hrmsalary/siaccount/overView", {
|
|
method: "post",
|
|
mode: "cors",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).then((res) => res.json());
|
|
};
|
|
|
|
//社会福利台账-获取异常列表
|
|
export const getChangeList = (params) => {
|
|
return fetch("/api/bs/hrmsalary/siaccount/changeList", {
|
|
method: "post",
|
|
mode: "cors",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).then((res) => res.json());
|
|
};
|
|
//社会福利台账-保存并进入核算
|
|
export const save = (params) => {
|
|
return fetch("/api/bs/hrmsalary/siaccount/save", {
|
|
method: "post",
|
|
mode: "cors",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).then((res) => res.json());
|
|
};
|
|
//社会福利台账-归档
|
|
export const siaccountFile = (params) => {
|
|
return fetch("/api/bs/hrmsalary/siaccount/file", {
|
|
method: "post",
|
|
mode: "cors",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).then((res) => res.json());
|
|
};
|
|
//社会福利台账-核算异常列表
|
|
export const inspectList = (params) => {
|
|
return fetch("/api/bs/hrmsalary/siaccount/inspectList", {
|
|
method: "post",
|
|
mode: "cors",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).then((res) => res.json());
|
|
};
|
|
//社会福利台账-删除正常缴纳人员
|
|
export const siaccountCommonDelete = (params) => {
|
|
return fetch("/api/bs/hrmsalary/siaccount/common/delete", {
|
|
method: "post",
|
|
mode: "cors",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).then((res) => res.json());
|
|
};
|
|
//社会福利台账-添加正常缴纳人员
|
|
export const siaccountCommonSave = (params) => {
|
|
return fetch("/api/bs/hrmsalary/siaccount/common/save", {
|
|
method: "post",
|
|
mode: "cors",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).then((res) => res.json());
|
|
};
|
|
//社会福利台账-添加补缴人员
|
|
export const siaccountSupplementarySave = (params) => {
|
|
return fetch("/api/bs/hrmsalary/siaccount/supplementary/save", {
|
|
method: "post",
|
|
mode: "cors",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).then((res) => res.json());
|
|
};
|
|
//社会福利台账-删除月份表单
|
|
export const siaccountDelete = (params) => {
|
|
return fetch("/api/bs/hrmsalary/siaccount/delete", {
|
|
method: "post",
|
|
mode: "cors",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).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
|
|
);
|
|
};
|
|
|
|
// 核算详情页核算
|
|
export const commonAccount = (params) => {
|
|
return fetch("/api/bs/hrmsalary/siaccount/commonAccount", {
|
|
method: "post",
|
|
mode: "cors",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify(params),
|
|
}).then((res) => res.json());
|
|
};
|
|
|
|
|
|
// 获取当前管理员下的所有的个税扣缴义务人
|
|
export const getAdminTaxAgentList = () => {
|
|
return WeaTools.callApi(
|
|
"/api/bs/hrmsalary/siaccount/getAdminTaxAgentList",
|
|
"get",
|
|
{}
|
|
);
|
|
} |