Selaa lähdekoodia

经费开支申报单 金额追加俩位小数

新疆警官学校中职
ndbs 1 vuosi sitten
vanhempi
commit
111b87f042
5 muutettua tiedostoa jossa 17 lisäystä ja 7 poistoa
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Form.cshtml
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/FormView.cshtml
  3. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js
  4. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.cshtml
  5. +10
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.js

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Form.cshtml Näytä tiedosto

@@ -30,7 +30,7 @@
<input id="ApplyUser" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FundsApply">
<div class="lr-form-item-title">备注</div>
<div class="lr-form-item-title">申报人</div>
<input id="Remark" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/FormView.cshtml Näytä tiedosto

@@ -30,7 +30,7 @@
<input id="ApplyUser" type="text" readonly class="form-control currentInfo lr-currentInfo-user" />
</div>
<div class="col-xs-6 lr-form-item" data-table="FundsApply">
<div class="lr-form-item-title">备注</div>
<div class="lr-form-item-title">申报人</div>
<input id="Remark" type="text" class="form-control" />
</div>
@*<div class="col-xs-12 lr-form-item">


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApply/Index.js Näytä tiedosto

@@ -58,7 +58,7 @@ var bootstrap = function ($, learun) {
title: '申请',
url: top.$.rootUrl + '/AssetManagementSystem/FundsApply/Form',
width: 860,
height: 750,
height: 780,
callBack: function (id) {
var res = false;
// 验证数据
@@ -90,7 +90,7 @@ var bootstrap = function ($, learun) {
title: '编辑',
url: top.$.rootUrl + '/AssetManagementSystem/FundsApply/Form?keyValue=' + keyValue,
width: 860,
height: 750,
height: 780,
callBack: function (id) {
var res = false;
// 验证数据
@@ -156,7 +156,7 @@ var bootstrap = function ($, learun) {
title: '查看',
url: top.$.rootUrl + '/AssetManagementSystem/FundsApply/FormView?keyValue=' + keyValue,
width: 860,
height: 720,
height: 730,
callBack: function (id) {

}
@@ -193,7 +193,7 @@ var bootstrap = function ($, learun) {
});
}
},
{ label: "备注", name: "Remark", width: 100, align: "left" },
{ label: "申报人", name: "Remark", width: 100, align: "left" },
{ label: "总金额", name: "SumAmount", width: 100, align: "left" },
{ label: "人民币(大写)", name: "UpperAmount", width: 200, align: "left" },
{


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.cshtml Näytä tiedosto

@@ -13,7 +13,7 @@
</div>
<div class="col-xs-12 lr-form-item" data-table="FundsApplyDetail" >
<div class="lr-form-item-title">单价(元)<font face="宋体">*</font></div>
<input id="Price" type="text" class="form-control calcul" isvalid="yes" checkexpession="PositiveFloatintZero" />
<input id="Price" type="text" class="form-control calcul" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-12 lr-form-item" data-table="FundsApplyDetail" >
<div class="lr-form-item-title">金额(元)</div>


+ 10
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/FundsApplyDetail/Form.js Näytä tiedosto

@@ -20,6 +20,16 @@ var bootstrap = function ($, learun) {
$('.calcul').blur(function () {
var num = $('#Number').val();
var Price = $('#Price').val();
if (!!Price) {
let regNeg = /^(0|[1-9]\d*|(0|[1-9]\d*)\.\d*[1-9])$/;
if (regNeg.test(Price)) {
$('#Price').val(parseFloat(Price).toFixed(2));
} else {
$('#Price').val('');
learun.alert.warning("单价必须为整数或小数(不能为负数)!");
return false;
}
}
if (!!num && !!Price) {
$('#Amount').val((parseInt(num) * parseFloat(Price)).toFixed(2));
}


Ladataan…
Peruuta
Tallenna