From 9949df47fbfdbe4a0a2ad548c43fcd8f71cd3f85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Thu, 30 Nov 2023 09:10:59 +0800 Subject: [PATCH] =?UTF-8?q?feature/2.9.9.2312.01-=E7=A4=BE=E4=BF=9D?= =?UTF-8?q?=E6=A0=B8=E7=AE=97=E4=BB=A5=E5=8F=8A=E8=96=AA=E8=B5=84=E8=B4=A6?= =?UTF-8?q?=E5=A5=97=E6=9F=A5=E8=AF=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/supplementarySlide.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/supplementarySlide.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/supplementarySlide.js index 84a23912..e280052b 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/supplementarySlide.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/supplementarySlide.js @@ -91,12 +91,11 @@ class SupplementarySlide extends Component { _.map(inputPaymentAmount[item], child => { const key = child.insuranceId, valuePer = child[`${child.insuranceId}_per`], valueCom = child[`${child.insuranceId}_com`]; - console.log(child); - if (!_.isNil(valuePer) && valuePer !== "") { - _.assign(payload[`${item}PerString`], { [key]: toDecimal_n(valuePer, 2) }); + if (!_.isNil(valuePer) && !child.perDisabled) { + _.assign(payload[`${item}PerString`], { [key]: toDecimal_n(valuePer, 2) || "0" }); } - if (!_.isNil(valueCom) && valuePer !== "") { - _.assign(payload[`${item}ComString`], { [key]: toDecimal_n(valueCom, 2) }); + if (!_.isNil(valueCom) && !child.comDisabled) { + _.assign(payload[`${item}ComString`], { [key]: toDecimal_n(valueCom, 2) || "0" }); } }); }); @@ -133,8 +132,6 @@ class SupplementarySlide extends Component { ...this.convertBusinessAccounting(), ...this.convertInputPaymentAmount() }; - console.log(payload); - return; this.setState({ loading: true }); siaccountSupplementarySave(payload).then(({ status, errormsg }) => { this.setState({ loading: false });