diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js index 5268b20b..ff516018 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/accumulationFundForm.js @@ -167,7 +167,7 @@ export default class AccumulationFundForm extends React.Component { precision={2} value={(paymentData && paymentData[item.domkey[0]]) ? Number(paymentData[item.domkey[0]]) : 0} onChange={(value) => { - this.handlePaymentChange({ [item.domkey[0]]: String(value) }); + this.handlePaymentChange({ [item.domkey[0]]: value ? String(value) : '0' }); }} /> diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js index 1707897e..388c92b4 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/otherForm.js @@ -154,7 +154,7 @@ export default class OtherForm extends React.Component { precision={2} value={(paymentData && paymentData[item.domkey[0]]) ? Number(paymentData[item.domkey[0]]) : 0} onChange={(value) => { - this.handlePaymentChange({ [item.domkey[0]]: String(value) }); + this.handlePaymentChange({ [item.domkey[0]]: value ? String(value) : '0' }); }} /> diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js index 2b508320..7f86be27 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/socialSecurityForm.js @@ -169,7 +169,7 @@ export default class SocialSecurityForm extends React.Component { precision={2} value={(paymentData && paymentData[item.domkey[0]]) ? Number(paymentData[item.domkey[0]]) : 0} onChange={(value) => { - this.handlePaymentChange({ [item.domkey[0]]: String(value) }); + this.handlePaymentChange({ [item.domkey[0]]: value ? String(value) : '0' }); }} />