From 33280a603f3ef0dd254adf26d3a31a71c7c7a9fe Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Fri, 27 Dec 2024 14:11:20 +0800 Subject: [PATCH] =?UTF-8?q?feature/2.15.2.2411.01=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hrmSalary/pages/ledgerPage/components/copyLedgerModal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/copyLedgerModal.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/copyLedgerModal.js index 76b48432..916efbc2 100644 --- a/pc4mobx/hrmSalary/pages/ledgerPage/components/copyLedgerModal.js +++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/copyLedgerModal.js @@ -63,7 +63,8 @@ class CopyLedgerModal extends Component { const { copyForm: form } = ledgerStore; form.validateForm().then(f => { if (f.isValid) { - const payload = { id, ...form.getFormParams(), taxAgentIds: form.getFormParams().taxAgentId.split(",") }; + const { taxAgentId, ...formParams } = form.getFormParams(); + const payload = { id, ...formParams, taxAgentIds: taxAgentId.split(",") }; this.setState({ loading: true }); duplicateLedger(payload).then(({ status, errormsg }) => { this.setState({ loading: false });