diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/addCompensationPersonnelDialog.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/addCompensationPersonnelDialog.js index 34b7edb4..33ee9267 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/addCompensationPersonnelDialog.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/addCompensationPersonnelDialog.js @@ -101,7 +101,8 @@ class AddCompensationPersonnelDialog extends Component { type: "custom", key: "custom", render: (text, record, index, onEdit) => ( - onEdit({ record: { ...record, [`${record.insuranceId}_per`]: v }, index, key: "per", value: v @@ -122,7 +123,8 @@ class AddCompensationPersonnelDialog extends Component { type: "custom", key: "custom", render: (text, record, index, onEdit) => ( - onEdit({ record: { ...record, [`${record.insuranceId}_com`]: v }, index, key: "com", value: v @@ -166,10 +168,10 @@ class AddCompensationPersonnelDialog extends Component { let perJson = {}, comJson = {}; _.forEach(list, o => { if (!_.isNil(o.per)) { - perJson = _.assign(perJson, { [o.insuranceId]: toDecimal_n(o.per, 2) }); + perJson = _.assign(perJson, { [o.insuranceId]: toDecimal_n(o.per, o.perValidNum || 2) }); } if (!_.isNil(o.com)) { - comJson = _.assign(comJson, { [o.insuranceId]: toDecimal_n(o.com, 2) }); + comJson = _.assign(comJson, { [o.insuranceId]: toDecimal_n(o.com, o.comValidNum ||2) }); } }); return { [`${type}PerJson`]: JSON.stringify(perJson), [`${type}ComJson`]: JSON.stringify(comJson) };