From a0021e7102442e7e309e1a254fc274f46b57b319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Wed, 16 Nov 2022 17:15:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=96=AA=E8=B5=84=E6=A1=A3=E6=A1=88=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E7=BC=96=E8=BE=91=E4=BF=9D=E5=AD=98=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js b/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js index 142d343a..6a3260fe 100644 --- a/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js +++ b/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js @@ -167,7 +167,7 @@ export default class ChangeSalaryModal extends React.Component { handleSave() { const { salaryFileStore: { saveSalaryItem, editSingleSalaryItem, fetchSingleSalaryItemList, getArchiveForm }, recordId } = this.props; let saveRequest = { ...this.state.request }; - const { salaryArchiveItems } = this.state; + const { salaryArchiveItems, canOperator } = this.state; if (salaryArchiveItems.length === 0) { message.warning("请添加调薪明细"); return; @@ -185,7 +185,7 @@ export default class ChangeSalaryModal extends React.Component { this.props.onCancel(); }); } else { - editSingleSalaryItem({ ...saveRequest, salaryArchiveItemId: recordId }).then(() => { + editSingleSalaryItem({ ...saveRequest, salaryArchiveItemId: recordId, canOperator }).then(() => { getArchiveForm(this.props.currentId); fetchSingleSalaryItemList({ salaryArchiveId: this.props.currentId }); this.props.onCancel(); @@ -274,6 +274,7 @@ export default class ChangeSalaryModal extends React.Component { { this.handleChange({ description: value }); }}