调差NaN的bug

This commit is contained in:
黎永顺 2022-12-29 15:34:20 +08:00
parent 755ef54c21
commit 992bba159d
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ class AdjustTable extends Component {
if (index === childidx) {
return {
...child,
adjustmentTotal: (Number(child.countryTotal) - Number(child.companyTotal)).toFixed(2)
adjustmentTotal: (Number(!_.isNil(child.countryTotal) ? child.countryTotal : 0) - Number(child.companyTotal)).toFixed(2)
};
} else {
return { ...child };