Merge branch 'feature/2.9.42310.01-社保档案操作日志' into develop
This commit is contained in:
commit
bc28d4ea2f
|
|
@ -1,4 +1,5 @@
|
||||||
import { WeaTools } from 'ecCom';
|
import { WeaTools } from "ecCom";
|
||||||
|
import { postFetch } from "../util/request";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 薪资档案api
|
* 薪资档案api
|
||||||
|
|
@ -7,120 +8,120 @@ import { WeaTools } from 'ecCom';
|
||||||
|
|
||||||
//薪资档案-薪资档案列表
|
//薪资档案-薪资档案列表
|
||||||
export const getArchiveList = params => {
|
export const getArchiveList = params => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/list', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/list", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
//薪资档案的高级搜索
|
//薪资档案的高级搜索
|
||||||
export const getSaCondition = params => {
|
export const getSaCondition = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/archives/getSearchCondition', 'get', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/archives/getSearchCondition", "get", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
//薪资档案-导出薪资档案
|
//薪资档案-导出薪资档案
|
||||||
export const exportArchiveList = params => {
|
export const exportArchiveList = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/exportList', 'POST', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/exportList", "POST", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
//薪资档案-获取导入参数
|
//薪资档案-获取导入参数
|
||||||
export const getImportArchiveParam = params => {
|
export const getImportArchiveParam = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/getImportParams', 'get', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/getImportParams", "get", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
//薪资档案-获取薪资档案详情表单
|
//薪资档案-获取薪资档案详情表单
|
||||||
export const getArchiveForm = params => {
|
export const getArchiveForm = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/getForm', 'get', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/getForm", "get", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
//薪资档案-获取薪资项目调整表单
|
//薪资档案-获取薪资项目调整表单
|
||||||
export const getSalaryItemForm = params => {
|
export const getSalaryItemForm = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/getSalaryItemForm', 'GET', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/getSalaryItemForm", "GET", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
//薪资档案-保存薪资项目调整
|
//薪资档案-保存薪资项目调整
|
||||||
export const saveSalaryItem = params => {
|
export const saveSalaryItem = params => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/saveSalaryItem', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/saveSalaryItem", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
|
|
||||||
//薪资档案-获取个税扣缴义务人调整表单
|
//薪资档案-获取个税扣缴义务人调整表单
|
||||||
export const getTaxAgentForm = params => {
|
export const getTaxAgentForm = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/getTaxAgentForm', 'GET', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/getTaxAgentForm", "GET", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
//薪资档案-保存个税扣缴义务人调整
|
//薪资档案-保存个税扣缴义务人调整
|
||||||
export const saveTaxAgent = params => {
|
export const saveTaxAgent = params => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/saveTaxAgent', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/saveTaxAgent", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
|
|
||||||
//薪资档案-删除个税扣缴义务人调整
|
//薪资档案-删除个税扣缴义务人调整
|
||||||
export const deleteTaxAgent = params => {
|
export const deleteTaxAgent = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/deleteTaxAgent', 'GET', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/deleteTaxAgent", "GET", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
//薪资档案操作记录-薪资项目操作记录列表
|
//薪资档案操作记录-薪资项目操作记录列表
|
||||||
export const getItemAdjustList = params => {
|
export const getItemAdjustList = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchiveOperateLog/salaryItemList', 'POST', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchiveOperateLog/salaryItemList", "POST", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
//薪资档案操作记录-薪资项目操作记录列表的高级搜索
|
//薪资档案操作记录-薪资项目操作记录列表的高级搜索
|
||||||
export const getItemAdjustSaCondition = params => {
|
export const getItemAdjustSaCondition = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchiveOperateLog/getSalaryItemSearchCondition', 'GET', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchiveOperateLog/getSalaryItemSearchCondition", "GET", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
//薪资档案操作记录-导出-薪资项目操作记录列表
|
//薪资档案操作记录-导出-薪资项目操作记录列表
|
||||||
export const exportItemAdjust = params => {
|
export const exportItemAdjust = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchiveOperateLog/exportSalaryItemList', 'POST', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchiveOperateLog/exportSalaryItemList", "POST", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
//薪资档案操作记录-个税扣缴义务人操作记录列表
|
//薪资档案操作记录-个税扣缴义务人操作记录列表
|
||||||
export const getPersonAdjustList = params => {
|
export const getPersonAdjustList = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchiveOperateLog/salaryItemList', 'POST', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchiveOperateLog/salaryItemList", "POST", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
//薪资档案操作记录-个税扣缴义务人操作记录列表的高级搜索
|
//薪资档案操作记录-个税扣缴义务人操作记录列表的高级搜索
|
||||||
export const getPersonAdjustSaCondition = params => {
|
export const getPersonAdjustSaCondition = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchiveOperateLog/getTaxAgentSearchCondition', 'GET', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchiveOperateLog/getTaxAgentSearchCondition", "GET", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
//薪资档案操作记录-导出-个税扣缴义务人操作记录列表
|
//薪资档案操作记录-导出-个税扣缴义务人操作记录列表
|
||||||
export const exportPersonAdjust = params => {
|
export const exportPersonAdjust = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchiveOperateLog/exportTaxAgentList', 'POST', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchiveOperateLog/exportTaxAgentList", "POST", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
//薪资档案-获取设置表单
|
//薪资档案-获取设置表单
|
||||||
export const getSettingForm = params => {
|
export const getSettingForm = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/getDimissionSetForm', 'GET', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/getDimissionSetForm", "GET", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
//薪资档案-保存离职时段设置
|
//薪资档案-保存离职时段设置
|
||||||
export const saveSetting = params => {
|
export const saveSetting = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/saveDimissionSet', 'POST', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/saveDimissionSet", "POST", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
//薪资档案-模版下载链接(无数据)
|
//薪资档案-模版下载链接(无数据)
|
||||||
|
|
@ -128,166 +129,170 @@ export const downloadSalaryArchiveTemplateurl = `/api/bs/hrmsalary/salaryArchive
|
||||||
|
|
||||||
// 薪资档案- 模版下载 (有之前数据)
|
// 薪资档案- 模版下载 (有之前数据)
|
||||||
export const downloadsalaryArchiveDetail = params => {
|
export const downloadsalaryArchiveDetail = params => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/exportList', 'POST', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/exportList", "POST", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
// 获取导入类型
|
// 获取导入类型
|
||||||
export const getImportTypes = () => {
|
export const getImportTypes = () => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/getImportTypes', 'GET', {});
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/getImportTypes", "GET", {});
|
||||||
}
|
};
|
||||||
// 获取档案和人员状态类型
|
// 获取档案和人员状态类型
|
||||||
export const commonEnumList = (params) => {
|
export const commonEnumList = (params) => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/common/enum/list', 'GET', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/common/enum/list", "GET", params);
|
||||||
}
|
};
|
||||||
// 发起调薪地址
|
// 发起调薪地址
|
||||||
export const salaryAdjustmentInfo = (params) => {
|
export const salaryAdjustmentInfo = (params) => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/process/salaryAdjustmentInfo', 'GET', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/process/salaryAdjustmentInfo", "GET", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
// 导入预览
|
// 导入预览
|
||||||
export const importPreview = (params) => {
|
export const importPreview = (params) => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/preview', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/preview", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
|
|
||||||
// 导入档案
|
// 导入档案
|
||||||
export const importSalaryArchive = (params) => {
|
export const importSalaryArchive = (params) => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/importSalaryArchive', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/importSalaryArchive", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
|
|
||||||
// 导出档案
|
// 导出档案
|
||||||
export const exportSalaryArchive = (ids = "") => {
|
export const exportSalaryArchive = (ids = "") => {
|
||||||
fetch('/api/bs/hrmsalary/salaryArchive/exportList?ids=' + ids).then(res => res.blob().then(blob => {
|
fetch("/api/bs/hrmsalary/salaryArchive/exportList?ids=" + ids).then(res => res.blob().then(blob => {
|
||||||
var filename=`薪资档案.xlsx`
|
var filename = `薪资档案.xlsx`;
|
||||||
var a = document.createElement('a');
|
var a = document.createElement("a");
|
||||||
var url = window.URL.createObjectURL(blob);
|
var url = window.URL.createObjectURL(blob);
|
||||||
a.href = url;
|
a.href = url;
|
||||||
a.download = filename;
|
a.download = filename;
|
||||||
a.click();
|
a.click();
|
||||||
window.URL.revokeObjectURL(url);
|
window.URL.revokeObjectURL(url);
|
||||||
}))
|
}));
|
||||||
}
|
};
|
||||||
|
|
||||||
// 调整记录-个税扣缴义务人列表
|
// 调整记录-个税扣缴义务人列表
|
||||||
export const adjustRecordTaxAgentList = (params) => {
|
export const adjustRecordTaxAgentList = (params) => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/adjustRecord/taxAgentList', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/adjustRecord/taxAgentList", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
|
|
||||||
// 调整记录-薪资项目-列表
|
// 调整记录-薪资项目-列表
|
||||||
export const adjustRecordSalaryItemList = (params) => {
|
export const adjustRecordSalaryItemList = (params) => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/adjustRecord/salaryItemList', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/adjustRecord/salaryItemList", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
|
|
||||||
// 调整记录-薪资项目-单个
|
// 调整记录-薪资项目-单个
|
||||||
export const singleSalaryItemList = (params) => {
|
export const singleSalaryItemList = (params) => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/adjustRecord/singleSalaryItemList', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/adjustRecord/singleSalaryItemList", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
|
|
||||||
// 调整记录-个税扣缴义务人-单个
|
// 调整记录-个税扣缴义务人-单个
|
||||||
export const singleTaxAgentList = (params) => {
|
export const singleTaxAgentList = (params) => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/adjustRecord/singleTaxAgentList', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/adjustRecord/singleTaxAgentList", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
|
|
||||||
// 调整-义务扣缴人-通过薪资档案的个税扣缴义务人id获取个税扣缴义务人调整表单
|
// 调整-义务扣缴人-通过薪资档案的个税扣缴义务人id获取个税扣缴义务人调整表单
|
||||||
export const getTaxAgentFormBySalaryArchiveTaxAgentId = (params) => {
|
export const getTaxAgentFormBySalaryArchiveTaxAgentId = (params) => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/getTaxAgentFormBySalaryArchiveTaxAgentId', 'GET', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/getTaxAgentFormBySalaryArchiveTaxAgentId", "GET", params);
|
||||||
}
|
};
|
||||||
|
|
||||||
// 调整-薪资项目-获取调整前的值
|
// 调整-薪资项目-获取调整前的值
|
||||||
export const getSalaryItemAdjustBeforeValue = (params) => {
|
export const getSalaryItemAdjustBeforeValue = (params) => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/getSalaryItemAdjustBeforeValue', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/getSalaryItemAdjustBeforeValue", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
// 停薪
|
// 停薪
|
||||||
export const stopSalary = (params) => {
|
export const stopSalary = (params) => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/stopSalary', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/stopSalary", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
|
|
||||||
// 调整-薪资项目-通过薪资档案的薪资项目id获取薪资项目调整表单
|
// 调整-薪资项目-通过薪资档案的薪资项目id获取薪资项目调整表单
|
||||||
export const getSalaryItemFormByItemId = (params) => {
|
export const getSalaryItemFormByItemId = (params) => {
|
||||||
return WeaTools.callApi('/api/bs/hrmsalary/salaryArchive/getSalaryItemFormBySalaryArchiveItemId', 'GET', params);
|
return WeaTools.callApi("/api/bs/hrmsalary/salaryArchive/getSalaryItemFormBySalaryArchiveItemId", "GET", params);
|
||||||
}
|
};
|
||||||
// 删除薪资项目调薪
|
// 删除薪资项目调薪
|
||||||
export const deleteSalaryItem = (params) => {
|
export const deleteSalaryItem = (params) => {
|
||||||
return fetch(`/api/bs/hrmsalary/salaryArchive/deleteSalaryItem?salaryArchiveItemId=${params.salaryArchiveItemId}`, {
|
return fetch(`/api/bs/hrmsalary/salaryArchive/deleteSalaryItem?salaryArchiveItemId=${params.salaryArchiveItemId}`, {
|
||||||
method: 'GET',
|
method: "GET",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
}
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
export const getSingleSalaryItemInfo = (params) => {
|
export const getSingleSalaryItemInfo = (params) => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/adjustRecord/getSingleSalaryItemInfo', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/adjustRecord/getSingleSalaryItemInfo", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
export const editSingleSalaryItem = (params) => {
|
export const editSingleSalaryItem = (params) => {
|
||||||
return fetch('/api/bs/hrmsalary/salaryArchive/adjustRecord/editSingleSalaryItem', {
|
return fetch("/api/bs/hrmsalary/salaryArchive/adjustRecord/editSingleSalaryItem", {
|
||||||
method: 'POST',
|
method: "POST",
|
||||||
mode: 'cors',
|
mode: "cors",
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify(params)
|
body: JSON.stringify(params)
|
||||||
}).then(res => res.json())
|
}).then(res => res.json());
|
||||||
}
|
};
|
||||||
|
// 基数调整记录列表
|
||||||
|
export const getAdjustHistoryList = (params) => {
|
||||||
|
return postFetch("/api/bs/hrmsalary/archives/getAdjustHistoryList", params);
|
||||||
|
};
|
||||||
|
|
|
||||||
|
|
@ -163,7 +163,7 @@ export const salarySetConditions = [
|
||||||
checkboxValue: false,
|
checkboxValue: false,
|
||||||
conditionType: "SELECT",
|
conditionType: "SELECT",
|
||||||
domkey: ["salarySobIds"],
|
domkey: ["salarySobIds"],
|
||||||
fieldcol: 18,
|
fieldcol: 14,
|
||||||
label: "薪资账套",
|
label: "薪资账套",
|
||||||
lanId: 538010,
|
lanId: 538010,
|
||||||
labelcol: 6,
|
labelcol: 6,
|
||||||
|
|
|
||||||
|
|
@ -320,7 +320,7 @@ export default class FormalFormModal extends React.Component {
|
||||||
if (status) {
|
if (status) {
|
||||||
message.success("测试结果已更新");
|
message.success("测试结果已更新");
|
||||||
this.setState({
|
this.setState({
|
||||||
showTestVal: data
|
showTestVal: !_.isNil(data) ? data.toString() : data
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
message.error(errormsg || "");
|
message.error(errormsg || "");
|
||||||
|
|
|
||||||
|
|
@ -323,7 +323,7 @@ export default class SalaryItem extends React.Component {
|
||||||
})}
|
})}
|
||||||
>{getLabel(111, "同步到薪资账套")}</Button>,
|
>{getLabel(111, "同步到薪资账套")}</Button>,
|
||||||
<Button type="primary" onClick={() => {
|
<Button type="primary" onClick={() => {
|
||||||
handleSlideSave(false);
|
handleSlideSave(true);
|
||||||
}}>保存</Button>
|
}}>保存</Button>
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,26 @@
|
||||||
|
|
||||||
.salarySetDialog {
|
.salarySetDialog {
|
||||||
.salarySetDialogContent {
|
.salarySetDialogContent {
|
||||||
|
background: #f6f6f6;
|
||||||
|
|
||||||
|
.wea-search-group {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wea-content {
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
.wea-form-cell-wrapper {
|
||||||
|
background: #FFF;
|
||||||
|
border: 1px solid #e5e5e5;
|
||||||
|
border-bottom: none;
|
||||||
|
|
||||||
|
.wea-form-cell {
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.wea-select, .ant-select, .ant-select-selection {
|
.wea-select, .ant-select, .ant-select-selection {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
@ -125,7 +145,7 @@
|
||||||
height: 30px;
|
height: 30px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
max-width: 345px;
|
max-width: 237px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 4px 17px 4px 4px;
|
padding: 4px 17px 4px 4px;
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ class SyncToSalaryAccountSetDialog extends Component {
|
||||||
return (
|
return (
|
||||||
<WeaDialog
|
<WeaDialog
|
||||||
{...this.props} className="salarySetDialog" initLoadCss
|
{...this.props} className="salarySetDialog" initLoadCss
|
||||||
style={{ width: 550 }}
|
style={{ width: 480 }}
|
||||||
buttons={[<Button type="primary" onClick={this.save}
|
buttons={[<Button type="primary" onClick={this.save}
|
||||||
loading={this.state.loading}>{getLabel(537558, "确定")}</Button>]}
|
loading={this.state.loading}>{getLabel(537558, "确定")}</Button>]}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,10 @@
|
||||||
|
import { WeaSwitch } from "comsMobx";
|
||||||
|
import { Button } from "antd";
|
||||||
|
import { WeaFormItem, WeaLocaleProvider, WeaSearchGroup, WeaTools } from "ecCom";
|
||||||
|
|
||||||
|
const getKey = WeaTools.getKey;
|
||||||
|
const getLabel = WeaLocaleProvider.getLabel;
|
||||||
|
|
||||||
export const tabCondition = [
|
export const tabCondition = [
|
||||||
{
|
{
|
||||||
color: "#000000",
|
color: "#000000",
|
||||||
|
|
@ -33,5 +40,99 @@ export const tabCondition = [
|
||||||
showcount: true,
|
showcount: true,
|
||||||
title: "非系统人员",
|
title: "非系统人员",
|
||||||
viewcondition: "ext"
|
viewcondition: "ext"
|
||||||
},
|
}
|
||||||
];
|
];
|
||||||
|
export const logConditions = [
|
||||||
|
{
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
colSpan: 1,
|
||||||
|
conditionType: "BROWSER",
|
||||||
|
browserConditionParam: {
|
||||||
|
completeParams: {},
|
||||||
|
conditionDataParams: {},
|
||||||
|
dataParams: {},
|
||||||
|
destDataParams: {},
|
||||||
|
hasAddBtn: false,
|
||||||
|
hasAdvanceSerach: true,
|
||||||
|
idSeparator: ",",
|
||||||
|
isAutoComplete: 1,
|
||||||
|
isDetail: 0,
|
||||||
|
isMultCheckbox: false,
|
||||||
|
isSingle: true,
|
||||||
|
linkUrl: "/hrm/resource/HrmResource.jsp?id=",
|
||||||
|
pageSize: 10,
|
||||||
|
quickSearchName: "",
|
||||||
|
replaceDatas: [],
|
||||||
|
title: "",
|
||||||
|
type: "1"
|
||||||
|
},
|
||||||
|
domkey: ["employeeId"],
|
||||||
|
fieldcol: 17,
|
||||||
|
label: "对象",
|
||||||
|
lanId: 106,
|
||||||
|
labelcol: 7,
|
||||||
|
value: ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
colSpan: 1,
|
||||||
|
conditionType: "BROWSER",
|
||||||
|
browserConditionParam: {
|
||||||
|
completeParams: {},
|
||||||
|
conditionDataParams: {},
|
||||||
|
dataParams: {},
|
||||||
|
destDataParams: {},
|
||||||
|
hasAddBtn: false,
|
||||||
|
hasAdvanceSerach: true,
|
||||||
|
idSeparator: ",",
|
||||||
|
isAutoComplete: 1,
|
||||||
|
isDetail: 0,
|
||||||
|
isMultCheckbox: false,
|
||||||
|
isSingle: true,
|
||||||
|
linkUrl: "/hrm/resource/HrmResource.jsp?id=",
|
||||||
|
pageSize: 10,
|
||||||
|
quickSearchName: "",
|
||||||
|
replaceDatas: [],
|
||||||
|
title: "",
|
||||||
|
type: "1"
|
||||||
|
},
|
||||||
|
domkey: ["operator"],
|
||||||
|
fieldcol: 17,
|
||||||
|
label: "操作人",
|
||||||
|
lanId: 111,
|
||||||
|
labelcol: 7,
|
||||||
|
value: ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
defaultshow: true
|
||||||
|
}
|
||||||
|
];
|
||||||
|
export const getLogSearchsForm = (form, condition, onSearch = () => void (0)) => {
|
||||||
|
const { isFormInit } = form;
|
||||||
|
const formParams = form.getFormParams();
|
||||||
|
let group = [];
|
||||||
|
isFormInit && condition && condition.map(c => {
|
||||||
|
let items = [];
|
||||||
|
c.items.map(fields => {
|
||||||
|
items.push({
|
||||||
|
com: (
|
||||||
|
<WeaFormItem
|
||||||
|
label={`${fields.label}`} labelCol={{ span: `${fields.labelcol}` }}
|
||||||
|
wrapperCol={{ span: `${fields.fieldcol}` }} error={form.getError(fields)}
|
||||||
|
tipPosition="bottom"
|
||||||
|
>
|
||||||
|
<WeaSwitch fieldConfig={fields} form={form} formParams={formParams}/>
|
||||||
|
{
|
||||||
|
getKey(fields) === "operator" &&
|
||||||
|
<Button type="primary" onClick={onSearch} style={{ position: "absolute", right: "-70px", top: "0" }}>{getLabel(388113, "搜索")}</Button>
|
||||||
|
}
|
||||||
|
</WeaFormItem>),
|
||||||
|
colSpan: 1
|
||||||
|
});
|
||||||
|
});
|
||||||
|
group.push(
|
||||||
|
<WeaSearchGroup col={4} needTigger={true} title={c.title} showGroup={c.defaultshow} items={items} center={false}
|
||||||
|
/>);
|
||||||
|
});
|
||||||
|
return group;
|
||||||
|
};
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ import UnifiedTable from "../../../components/UnifiedTable";
|
||||||
import { convertToUrlString, getURLParameters } from "../../../util/url";
|
import { convertToUrlString, getURLParameters } from "../../../util/url";
|
||||||
import { salaryArchiveDelete } from "../../../apis/payrollFiles";
|
import { salaryArchiveDelete } from "../../../apis/payrollFiles";
|
||||||
import ImportDialog from "../../../components/importDialog";
|
import ImportDialog from "../../../components/importDialog";
|
||||||
|
import OperateLogDialog from "./operateLogDialog";
|
||||||
import "./index.less";
|
import "./index.less";
|
||||||
import { sysinfo } from "../../../apis/ruleconfig";
|
import { sysinfo } from "../../../apis/ruleconfig";
|
||||||
|
|
||||||
|
|
@ -66,7 +67,8 @@ export default class Archives extends React.Component {
|
||||||
link: "", importResult: {}, imageId: "",
|
link: "", importResult: {}, imageId: "",
|
||||||
previewUrl: "/api/bs/hrmsalary/scheme/preview"
|
previewUrl: "/api/bs/hrmsalary/scheme/preview"
|
||||||
},
|
},
|
||||||
extEmpsWitch: "1" //非系统人员开关, 1: 开启, 0:关闭
|
extEmpsWitch: "1", //非系统人员开关, 1: 开启, 0:关闭
|
||||||
|
logDialog: { visible: false }
|
||||||
};
|
};
|
||||||
this.record = {};
|
this.record = {};
|
||||||
}
|
}
|
||||||
|
|
@ -627,7 +629,8 @@ export default class Archives extends React.Component {
|
||||||
tabCount,
|
tabCount,
|
||||||
loading,
|
loading,
|
||||||
importDialog,
|
importDialog,
|
||||||
extEmpsWitch
|
extEmpsWitch,
|
||||||
|
logDialog
|
||||||
} = this.state;
|
} = this.state;
|
||||||
const {
|
const {
|
||||||
form, condition, showSearchAd, setShowSearchAd,
|
form, condition, showSearchAd, setShowSearchAd,
|
||||||
|
|
@ -814,10 +817,15 @@ export default class Archives extends React.Component {
|
||||||
return (
|
return (
|
||||||
<div className="mySalaryBenefitsWrapper">
|
<div className="mySalaryBenefitsWrapper">
|
||||||
<WeaTop
|
<WeaTop
|
||||||
title="社保福利档案" // 文字
|
title="社保福利档案" icon={<i className="icon-coms-fa"/>} iconBgcolor="#F14A2D" showDropIcon={true}
|
||||||
icon={<i className="icon-coms-fa"/>} // 左侧图标
|
dropMenuDatas={[
|
||||||
iconBgcolor="#F14A2D" // 左侧图标背景色
|
{
|
||||||
showDropIcon={false} // 是否显示下拉按钮
|
key: "log",
|
||||||
|
icon: <i className="iconfont icon-caozuorizhi32"/>,
|
||||||
|
content: getLabel(111, "操作日志"),
|
||||||
|
onClick: key => this.setState({ logDialog: { ...logDialog, visible: true } })
|
||||||
|
}
|
||||||
|
]}
|
||||||
>
|
>
|
||||||
<WeaTab
|
<WeaTab
|
||||||
datas={(extEmpsWitch === "0" || !extEmpsWitch) ? _.dropRight(tabCondition) : tabCondition}
|
datas={(extEmpsWitch === "0" || !extEmpsWitch) ? _.dropRight(tabCondition) : tabCondition}
|
||||||
|
|
@ -866,6 +874,10 @@ export default class Archives extends React.Component {
|
||||||
</WeaNewScroll>
|
</WeaNewScroll>
|
||||||
</div>
|
</div>
|
||||||
</WeaTop>
|
</WeaTop>
|
||||||
|
{/*操作日志*/}
|
||||||
|
<OperateLogDialog {...logDialog}
|
||||||
|
onCancel={() => this.setState({ logDialog: { ...logDialog, visible: false } })}
|
||||||
|
/>
|
||||||
{
|
{
|
||||||
this.state.editSlideVisible &&
|
this.state.editSlideVisible &&
|
||||||
<WeaSlideModal
|
<WeaSlideModal
|
||||||
|
|
|
||||||
|
|
@ -85,3 +85,36 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//重构-社保福利档案
|
||||||
|
.logDialog {
|
||||||
|
.wea-dialog-body {
|
||||||
|
overflow-y: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logDialogContent {
|
||||||
|
background: #F6F6F6;
|
||||||
|
padding: 16px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.wea-search-group {
|
||||||
|
padding: 0;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
background: #FFF;
|
||||||
|
|
||||||
|
.wea-form-cell {
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
.wea-form-item {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.logTable {
|
||||||
|
background: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,117 @@
|
||||||
|
/*
|
||||||
|
* Author: 黎永顺
|
||||||
|
* name: 社保福利档案-操作日志
|
||||||
|
* Description:
|
||||||
|
* Date: 2023/10/23
|
||||||
|
*/
|
||||||
|
import React, { Component } from "react";
|
||||||
|
import { inject, observer } from "mobx-react";
|
||||||
|
import { WeaDialog, WeaLocaleProvider, WeaTable } from "ecCom";
|
||||||
|
import { getAdjustHistoryList } from "../../../../apis/archive";
|
||||||
|
import { getLogSearchsForm, logConditions } from "../config";
|
||||||
|
import moment from "moment";
|
||||||
|
|
||||||
|
const getLabel = WeaLocaleProvider.getLabel;
|
||||||
|
|
||||||
|
@inject("archivesStore")
|
||||||
|
@observer
|
||||||
|
class Index extends Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state = {
|
||||||
|
dataSource: [], columns: [], pageInfo: { current: 0, pageSize: 10, total: 0 },
|
||||||
|
loading: false, conditions: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
const { archivesStore: { logForm } } = this.props;
|
||||||
|
this.setState({
|
||||||
|
conditions: _.map(logConditions, it => ({
|
||||||
|
...it, items: _.map(it.items, o => ({ ...o, label: getLabel(o.lanId, o.label) }))
|
||||||
|
}))
|
||||||
|
}, () => logForm.initFormFields(this.state.conditions));
|
||||||
|
}
|
||||||
|
|
||||||
|
componentWillReceiveProps(nextProps, nextContext) {
|
||||||
|
if (nextProps.visible !== this.props.visible && nextProps.visible) this.getAdjustHistoryList();
|
||||||
|
if (nextProps.visible !== this.props.visible && !nextProps.visible) {
|
||||||
|
this.setState({
|
||||||
|
dataSource: [], columns: [], pageInfo: { current: 0, pageSize: 10, total: 0 },
|
||||||
|
loading: false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getAdjustHistoryList = (extra = {}) => {
|
||||||
|
const { pageInfo } = this.state;
|
||||||
|
const { archivesStore: { logForm } } = this.props;
|
||||||
|
const payload = { ...pageInfo, ...logForm.getFormParams(), ...extra };
|
||||||
|
this.setState({ loading: true });
|
||||||
|
getAdjustHistoryList(payload).then(({ status, data }) => {
|
||||||
|
this.setState({ loading: false });
|
||||||
|
if (status) {
|
||||||
|
const { columns, list: dataSource, pageNum: current, pageSize, total } = data;
|
||||||
|
this.setState({
|
||||||
|
pageInfo: { ...pageInfo, current, pageSize, total },
|
||||||
|
dataSource, columns: _.map(columns, it => {
|
||||||
|
if (it.dataIndex === "operateTime") {
|
||||||
|
return { ...it, render: (text) => (<span>{moment(text).format("YYYY-MM-DD")}</span>) };
|
||||||
|
}
|
||||||
|
return { ...it };
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}).catch(() => this.setState({ loading: false }));
|
||||||
|
};
|
||||||
|
|
||||||
|
render() {
|
||||||
|
const { loading, dataSource, columns, pageInfo, conditions } = this.state;
|
||||||
|
const { archivesStore: { logForm } } = this.props;
|
||||||
|
const pagination = {
|
||||||
|
...pageInfo,
|
||||||
|
showTotal: total => `${getLabel(18609, "共")} ${total} ${getLabel(18256, "条")}`,
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
pageSizeOptions: ["10", "20", "50", "100"],
|
||||||
|
onShowSizeChange: (current, pageSize) => {
|
||||||
|
this.setState({
|
||||||
|
pageInfo: { ...pageInfo, current, pageSize }
|
||||||
|
}, () => this.getAdjustHistoryList());
|
||||||
|
},
|
||||||
|
onChange: current => {
|
||||||
|
this.setState({
|
||||||
|
pageInfo: { ...pageInfo, current }
|
||||||
|
}, () => this.getAdjustHistoryList());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const scrollHeight = this.logRef ? this.logRef.state.height - 210 : 606.6;
|
||||||
|
return (
|
||||||
|
<WeaDialog
|
||||||
|
{...this.props} title={getLabel(111, "操作日志")}
|
||||||
|
ref={dom => this.logRef = dom} className="logDialog" initLoadCss
|
||||||
|
style={{
|
||||||
|
width: 1150,
|
||||||
|
height: 606.6,
|
||||||
|
minHeight: 200,
|
||||||
|
minWidth: 380,
|
||||||
|
maxHeight: "90%",
|
||||||
|
maxWidth: "90%",
|
||||||
|
overflow: "hidden",
|
||||||
|
transform: "translate(0px, 0px)"
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div className="logDialogContent">
|
||||||
|
{getLogSearchsForm(logForm, conditions, () => this.getAdjustHistoryList({ current: 1 }))}
|
||||||
|
<WeaTable
|
||||||
|
columns={columns} dataSource={dataSource}
|
||||||
|
loading={loading} className="logTable"
|
||||||
|
pagination={pagination} scroll={{ y: `${scrollHeight}px` }}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</WeaDialog>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Index;
|
||||||
|
|
@ -8,6 +8,13 @@ import * as API from "../apis/welfareArchive"; // 引入API接口文件
|
||||||
const { TableStore } = WeaTableNew;
|
const { TableStore } = WeaTableNew;
|
||||||
|
|
||||||
export class ArchivesStore {
|
export class ArchivesStore {
|
||||||
|
@observable logForm = new WeaForm(); // 社保福利档案重构-日志查询条件log
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@observable tableStore = new TableStore(
|
@observable tableStore = new TableStore(
|
||||||
// {dataHandle: (datas) => {
|
// {dataHandle: (datas) => {
|
||||||
// return dataSource;
|
// return dataSource;
|
||||||
|
|
|
||||||
|
|
@ -309,7 +309,7 @@ export class SalaryItemStore {
|
||||||
if (!continueFlag) {
|
if (!continueFlag) {
|
||||||
this.editSlideVisible = false;
|
this.editSlideVisible = false;
|
||||||
}
|
}
|
||||||
this.initRequest();
|
((!params.id && continueFlag) || !continueFlag) && this.initRequest();
|
||||||
message.success("保存成功");
|
message.success("保存成功");
|
||||||
resolve();
|
resolve();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue