|
@@ -61,7 +61,11 @@ export default {
|
|
title: '使用数量',
|
|
title: '使用数量',
|
|
dataIndex: 'number',
|
|
dataIndex: 'number',
|
|
width: 120,
|
|
width: 120,
|
|
- className: 'replacecolor'
|
|
|
|
|
|
+ className: 'replacecolor',
|
|
|
|
+ customRender: (text, record, index) => {
|
|
|
|
+ var re = Number(text).toFixed(4)
|
|
|
|
+ return re
|
|
|
|
+ }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '单位成本',
|
|
title: '单位成本',
|
|
@@ -69,8 +73,11 @@ export default {
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor',
|
|
className: 'replacecolor',
|
|
customRender: (text, record, index) => {
|
|
customRender: (text, record, index) => {
|
|
- var re = Number(text).toFixed(4)
|
|
|
|
- return re
|
|
|
|
|
|
+ if(text!==''&&text){
|
|
|
|
+ var re = Number(text).toFixed(4)
|
|
|
|
+ return re
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{
|
|
{
|