diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_PayFee/PayFeeForm.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_PayFee/PayFeeForm.js
index e5bae24d6..98692b5a9 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_PayFee/PayFeeForm.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic_PayFee/PayFeeForm.js
@@ -19,6 +19,9 @@ var bootstrap = function ($, learun) {
bind: function () {
//获取缴费二维码
$('#confirmPayFee').click(function () {
+ if (parseFloat($('#PayMoney').html()) === 0) {
+ return learun.alert.warning("所交费用不能为0!");
+ }
if (parseFloat($('#PayMoney').html()) > PayFeeTotal) {
return learun.alert.warning("所交费用超出应交费用!");
}
@@ -43,14 +46,14 @@ var bootstrap = function ($, learun) {
$('#queryPayFee').click(function () {
location.reload();
});
-
+
//计算实交金额
$('table').on('change',
'.paydetail',
function () {
var num = 0;
num = parseFloat(num);
- $(".paydetail").each(function (i, item) {
+ $(".paydetail").each(function (i, item) {
var val = 0;
if (!!$(this).val()) {
val = parseFloat($(this).val()).toFixed(2);
@@ -99,10 +102,14 @@ var bootstrap = function ($, learun) {
html += "
姓名 | " + StuInfoFresh.StuName + " |
";
html += "班级 | " + className + " |
";
html += "系别 | " + deptName + " |
";
+
html += '缴费项目 | 收费标准 | 本次实缴 |
';
$.each(data['FinaChargesStandardList'], function (i, item) {
- html += '' + item.ChargeItemName + ' | ' + item.Standard + '元 | |
';
+ html += '' + item.ChargeItemName + ' | ' + item.Standard + '元 | ' +
+ ' |
';
});
+
html += '应缴合计 | ' + data['PayFeeTotal'] + '元 | ' + PayFeeTotal+' |
';
html += ' | |
';
html += '已缴金额 | ' + YJAmount + ' |
';
@@ -114,10 +121,10 @@ var bootstrap = function ($, learun) {
var list = [];
var detail = "";
var ifisnull = false;
- $('.paydetail').each(function (i, item) {
+ $('.paydetail').each(function (i, item) {
var value = 0;
if (!!$(this).val()) {
- value = parseFloat($(this).val());
+ value = parseFloat($(this).val());
} else {
ifisnull = true;
}
@@ -128,7 +135,7 @@ var bootstrap = function ($, learun) {
ChargeItemID: $(this).attr('id'),
YJAmount: $(this).attr('data-amount'),
SJAmount: value
- };
+ };
list.push(entity);
});
if (ifisnull) {
@@ -138,7 +145,8 @@ var bootstrap = function ($, learun) {
$('.paydetail').each(function(i, item) {
$(this).attr('disabled', 'disabled');
});
- detail = detail.substring(0, detail.length - 1);
+ detail = detail.substring(0, detail.length - 1);
+
var param = {};
//param.LoanMoney = $('#LoanMoney').val();
param.PayFeeDetail = detail;
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeForm.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeForm.js
index 520e7021a..5d3678d6e 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeForm.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/PayFeeForm.js
@@ -19,6 +19,9 @@ var bootstrap = function ($, learun) {
bind: function () {
//获取缴费二维码
$('#confirmPayFee').click(function () {
+ if (parseFloat($('#PayMoney').html()) === 0) {
+ return learun.alert.warning("所交费用不能为0!");
+ }
if (parseFloat($('#PayMoney').html()) > PayFeeTotal) {
return learun.alert.warning("所交费用超出应交费用!");
}
@@ -42,8 +45,8 @@ var bootstrap = function ($, learun) {
});
$('#queryPayFee').click(function () {
location.reload();
- });
-
+ });
+
//计算实交金额
$('table').on('change',
'.paydetail',
@@ -100,7 +103,9 @@ var bootstrap = function ($, learun) {
html += "系别 | " + deptName + " |
";
html += '缴费项目 | 收费标准 | 本次实缴 |
';
$.each(data['FinaChargesStandardList'], function (i, item) {
- html += '' + item.ChargeItemName + ' | ' + item.Standard + '元 | |
';
+ html += '' + item.ChargeItemName + ' | ' + item.Standard + '元 | ' +
+ ' |
';
});
html += '应缴合计 | ' + data['PayFeeTotal'] + '元 | ' + PayFeeTotal+' |
';
html += ' | |
';