From 96f754728c0bd255fe8a8f1801696b75e6ba0a7a Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Wed, 2 Jul 2025 18:31:51 +0800 Subject: [PATCH] =?UTF-8?q?release/2.19.1.2501.01-=E4=B8=AA=E7=A8=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/dataAcquisition/otherDeduct/detailSettingsDialog.js | 2 +- .../pages/dataAcquisition/otherDeduct/taxSetDialog.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/detailSettingsDialog.js b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/detailSettingsDialog.js index bdcf7f53..3fd2e1e4 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/detailSettingsDialog.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/detailSettingsDialog.js @@ -55,7 +55,7 @@ class DetailSettingsDialog extends Component { }, () => { this.props.otherDeductStore.settingsForm.initFormFields(this.state.conditions); if (nextProps.id) _.map(getDomkes(this.state.conditions), domkey => { - this.props.otherDeductStore.settingsForm.updateFields({ [domkey]: { value: nextProps.record[domkey] } }); + this.props.otherDeductStore.settingsForm.updateFields({ [domkey]: { value: nextProps.record[domkey].toString() } }); }); }); } else if (nextProps.visible !== this.props.visible && !nextProps.visible) { diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/taxSetDialog.js b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/taxSetDialog.js index 97fbb38c..1848f4a9 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/taxSetDialog.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/taxSetDialog.js @@ -66,12 +66,12 @@ class TaxSetDialog extends Component { }); }; handleDelete = (ids = []) => { - const { selectedRowKeys } = this.state, { dataType } = this.props; + const { selectedRowKeys } = this.state, { dataType, id: mainId } = this.props; Modal.confirm({ title: getLabel(131329, "信息确认"), content: getLabel(388758, "确认要删除吗?"), onOk: () => { - postFetch(`/api/bs/hrmsalary/otherDeduction/delete${_.upperFirst(dataType)}`, { ids }) + postFetch(`/api/bs/hrmsalary/otherDeduction/delete${_.upperFirst(dataType)}`, { ids, mainId }) .then(({ status, errormsg }) => { if (status) { message.success(getLabel(502230, "删除成功!"));