|
|
@@ -112,10 +112,14 @@ var bootstrap = function ($, learun) { |
|
|
|
label: '数量', name: 'Number', width: 150, align: 'left' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单价(元)', name: 'Price', width: 150, align: 'left' |
|
|
|
label: '单价(元)', name: 'Price', width: 150, align: 'left', formatter: function (cellvalue) { |
|
|
|
return cellvalue.toString().indexOf(".") > 0 ? cellvalue : cellvalue.toFixed(2); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '金额(元)', name: 'Amount', width: 150, align: 'left' |
|
|
|
label: '金额(元)', name: 'Amount', width: 150, align: 'left', formatter: function (cellvalue) { |
|
|
|
return cellvalue.toString().indexOf(".") > 0 ? cellvalue : cellvalue.toFixed(2); |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|
height: 400, |
|
|
@@ -135,6 +139,7 @@ var bootstrap = function ($, learun) { |
|
|
|
$('[data-table="' + id + '"]').lrSetFormData(data[id]); |
|
|
|
if (data[id].SumAmount) { |
|
|
|
pricecount = data[id].SumAmount; |
|
|
|
$("#SumAmount").val(pricecount.toFixed(2)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|