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 });