custom-艾志工业-合并个税

薪资档案代码合并
This commit is contained in:
黎永顺 2024-02-26 15:47:42 +08:00
parent 014a963bcd
commit 02201018b8
2 changed files with 26 additions and 2 deletions

View File

@ -85,6 +85,8 @@ class Index extends Component {
viewAttr: (runStatuses === "stop" || !showOperateBtn) ? 1 : (runStatuses === "suspend" && showOperateBtn) ? 3 : g.viewAttr,
rules: (runStatuses === "suspend" && showOperateBtn) ? "required|string" : ""
};
} else if (getKey(g) === "firstPayDate" || getKey(g) === "lastPayDate") {
return { ...g, label: getLabel(g.lanId, g.label), viewAttr: runStatuses === "stop" ? 1 : 2 };
}
return {
...g, label: getLabel(g.lanId, g.label)
@ -110,11 +112,11 @@ class Index extends Component {
} = this.props;
const [salaryForm] = await Promise.all([salaryFileForm.validateForm()]);
if (salaryForm.isValid) {
const { payStartDate, payEndDate, ...extraParams } = salaryForm.getFormParams();
const { payStartDate, payEndDate, firstPayDate, lastPayDate, ...extraParams } = salaryForm.getFormParams();
const payload = {
//status-非系统人员保存与定薪人员一样
salaryArchiveId, status: _.toUpper(runStatuses === "ext" ? "fixed" : runStatuses),
payStartDate, payEndDate,
payStartDate, payEndDate, firstPayDate, lastPayDate,
salaryArchiveItems: _.map(salaryArchiveItems, o => ({
salaryItemId: o.salaryItemId,
adjustValue: (o.dataType === "number" && (extraParams[o.salaryItemId] || extraParams[o.salaryItemId] === 0)) ? toDecimal_n(extraParams[o.salaryItemId], o.pattern || 2) : extraParams[o.salaryItemId]

View File

@ -444,6 +444,28 @@ export const salaryFilesConditions = [
labelcol: 8,
value: "",
viewAttr: 2
},
{
colSpan: 1,
conditionType: "DATEPICKER",
domkey: ["firstPayDate"],
fieldcol: 16,
label: "首次薪资发放日期",
lanId: 111,
labelcol: 8,
value: "",
viewAttr: 2
},
{
colSpan: 1,
conditionType: "DATEPICKER",
domkey: ["lastPayDate"],
fieldcol: 16,
label: "末次薪资发放日期",
lanId: 111,
labelcol: 8,
value: "",
viewAttr: 2
}
]
},