调差NaN的bug
This commit is contained in:
parent
755ef54c21
commit
992bba159d
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Reference in New Issue