|
|
@@ -125,12 +125,12 @@ var bootstrap = function ($, learun) { |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单价(元)', name: 'Price', width: 150, align: 'left', formatter: function (cellvalue) { |
|
|
|
return cellvalue.toString().indexOf(".") > 0 ? cellvalue : cellvalue.toFixed(2); |
|
|
|
return cellvalue.toString().indexOf(".") > 0 ? Number(cellvalue).toFixed(2) : Number(cellvalue).toFixed(2); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '金额(元)', name: 'Amount', width: 150, align: 'left', formatter: function (cellvalue) { |
|
|
|
return cellvalue.toString().indexOf(".") > 0 ? cellvalue : cellvalue.toFixed(2); |
|
|
|
return cellvalue.toString().indexOf(".") > 0 ? Number(cellvalue).toFixed(2) : Number(cellvalue).toFixed(2); |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|