From c7f9e17401d8607e6f0411571a31a81f38024738 Mon Sep 17 00:00:00 2001 From: dyy <807692433@qq.com> Date: Thu, 8 Dec 2022 18:09:48 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E7=BB=8F?= =?UTF-8?q?=E8=B4=B9=E5=BC=80=E6=94=AF=E7=94=B3=E6=8A=A5=EF=BC=9A=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=87=91=E9=A2=9D=E7=A9=BA=E5=88=A4=E6=96=AD=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Areas/AssetManagementSystem/Views/FundsApply/Index.js | 2 +- .../AssetManagementSystem/Views/FundsApplyDetail/Index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js index e207e1b05..d03a7e1e5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js @@ -194,7 +194,7 @@ var bootstrap = function ($, learun) { { label: "申报人", name: "Remark", width: 100, align: "left" }, { label: "总金额", name: "SumAmount", width: 100, align: "left", formatter: function (cellvalue) { - return cellvalue.toFixed(2); + return cellvalue != null && cellvalue != "" && cellvalue != undefined ? cellvalue.toFixed(2):"0.00" ; } }, { label: "人民币(大写)", name: "UpperAmount", width: 200, align: "left" }, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Index.js index df0b22486..f4d548a22 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Index.js @@ -73,12 +73,12 @@ var bootstrap = function ($, learun) { { label: "数量", name: "Number", width: 100, align: "left"}, { label: "单价(元)", name: "Price", width: 100, align: "left", formatter: function (cellvalue) { - return cellvalue.toFixed(2); + return cellvalue != null && cellvalue != "" && cellvalue != undefined ? cellvalue.toFixed(2) : "0.00"; } }, { label: "金额(元)", name: "Amount", width: 100, align: "left", formatter: function (cellvalue) { - return cellvalue.toFixed(2); + return cellvalue != null && cellvalue != "" && cellvalue != undefined ? cellvalue.toFixed(2) : "0.00"; } }, ],