diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Form.js index 6eba6acf3..e787de04f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Form.js @@ -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); } }, ], diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/FormView.js index a47ad0e59..7e68678db 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/FormView.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/FormView.js @@ -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); } }, ],