|
@@ -62,19 +62,31 @@ export default {
|
|
|
title: '转入数量',
|
|
|
dataIndex: 'number',
|
|
|
width: 120,
|
|
|
- className: 'replacecolor'
|
|
|
+ className: 'replacecolor',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ var re = Number(text).toFixed(2)
|
|
|
+ return re
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '单位成本',
|
|
|
dataIndex: 'unitCost',
|
|
|
width: 120,
|
|
|
- className: 'replacecolor'
|
|
|
+ className: 'replacecolor',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ var re = Number(text).toFixed(3)
|
|
|
+ return re
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '总成本',
|
|
|
dataIndex: 'cost',
|
|
|
width: 120,
|
|
|
- className: 'replacecolor'
|
|
|
+ className: 'replacecolor',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ var re = Number(text).toFixed(2)
|
|
|
+ return re
|
|
|
+ }
|
|
|
}
|
|
|
],
|
|
|
data: [],
|