Browse Source

【修改】经费开支申报:列表金额空判断;

新疆警官学校中职
dyy 1 year ago
parent
commit
c7f9e17401
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Index.js

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js View File

@@ -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" },


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Index.js View File

@@ -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";
}
},
],


Loading…
Cancel
Save