|
@@ -226,8 +226,14 @@ export default {
|
|
|
this.tableData = res.data.map((i) => {
|
|
|
return {
|
|
|
...i,
|
|
|
- prhbzzl: i.prhbzzl ? i.prhbzzl.toFixed(2) : i.prhbzzl,
|
|
|
- prtbzzl: i.prtbzzl ? i.prtbzzl.toFixed(2) : i.prtbzzl,
|
|
|
+ prhbzzl:
|
|
|
+ i.prhbzzl && typeof i.prhbzzl == "number"
|
|
|
+ ? i.prhbzzl.toFixed(2)
|
|
|
+ : i.prhbzzl,
|
|
|
+ prtbzzl:
|
|
|
+ i.prtbzzl && typeof i.prtbzzl == "number"
|
|
|
+ ? i.prtbzzl.toFixed(2)
|
|
|
+ : i.prtbzzl,
|
|
|
};
|
|
|
});
|
|
|
}
|