From 02201018b84cea1db5dabbf326c72cdf87409837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Mon, 26 Feb 2024 15:47:42 +0800 Subject: [PATCH] =?UTF-8?q?custom-=E8=89=BE=E5=BF=97=E5=B7=A5=E4=B8=9A-?= =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=B8=AA=E7=A8=8E=20=E8=96=AA=E8=B5=84?= =?UTF-8?q?=E6=A1=A3=E6=A1=88=E4=BB=A3=E7=A0=81=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/salaryFilesEditSlide/index.js | 6 +++-- .../pages/payrollFiles/config/index.js | 22 +++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFilesEditSlide/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFilesEditSlide/index.js index d4eaf520..9e7b184d 100644 --- a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFilesEditSlide/index.js +++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFilesEditSlide/index.js @@ -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] diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js index a8b4dc15..98d86cda 100644 --- a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js +++ b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js @@ -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 } ] },