Pārlūkot izejas kodu

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

新疆警官学校中职
dyy pirms 2 gadiem
vecāks
revīzija
c7f9e17401
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt