Browse Source

【修改】助学贷款状态:填写了贷款回执码后默认状态为已审核;

中职版本
dyy 4 years ago
parent
commit
47fa6df8dc
5 changed files with 30 additions and 11 deletions
  1. +8
    -8
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.js
  2. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.js
  3. +5
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/StudentLoan/StudentLoan.js
  4. +6
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/LoanForm.js
  5. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs

+ 8
- 8
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/PayFee.js View File

@@ -94,15 +94,15 @@
text: 'classname'
}));
_$item.append($('<p class="lr-ellipsis"><span>线上缴费状态:</span></p>').dataFormatter({
value: _item.PayFeeStatus,
type: 'dataItem',
code: 'PayStatus'
}));
_$item.append($('<p class="lr-ellipsis"><span>线上缴费时间:</span></p>').dataFormatter({
value: _item.PayFeeDate,
type: 'datetime',
dateformat: 'yyyy-MM-dd hh:mm:ss'
value: _item.PayFeeStatus == "1" ? "已缴费" : "未缴费"
//type: 'dataItem',
//code: 'PayStatus'
}));
//_$item.append($('<p class="lr-ellipsis"><span>线上缴费时间:</span></p>').dataFormatter({
// value: _item.PayFeeDate,
// type: 'datetime',
// dateformat: 'yyyy-MM-dd hh:mm:ss'
//}));
_$item.append($('<p class="lr-ellipsis"><span>贷款回执码:</span></p>').dataFormatter({ value: _item.StudentLoan }));
_$item.append($('<p class="lr-ellipsis"><span>助学贷款状态:</span></p>').dataFormatter({ value: _item.StudentLoanStatus == "1" ? "已审核" : "未审核" }));
_$item.append($('<p class="lr-ellipsis"><span>现场缴费状态:</span></p>').dataFormatter({


+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/PayFee/form/form.js View File

@@ -83,9 +83,14 @@
if (!$page.find('.lr-form-container').lrformValid()) {
return false;
}
var data = $page.find('.lr-form-container').lrformGet();
data.StudentLoanStatus = "0";
if ($('#StudentLoan').val().trim() != null && $('#StudentLoan').val().trim() != "" && $('#StudentLoan').val().trim() != undefined) {
data.StudentLoanStatus = "1";
}
var _postData = {}
_postData.keyValue = keyValue;
_postData.strEntity = JSON.stringify($page.find('.lr-form-container').lrformGet());
_postData.strEntity = JSON.stringify(data);
learun.layer.loading(true, '正在提交数据');
learun.httppost(config.webapi + 'StuInfoFresh/save', _postData, (data) => {
learun.layer.loading(false);


+ 5
- 1
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/EducationalAdministration/StuInfoFresh/StudentLoan/StudentLoan.js View File

@@ -28,8 +28,12 @@
$page.find('#saveBtn').on('tap', function () {
var postdata = {
ID: $('#ID').val(),
StudentLoan: $('#StudentLoan').val()
StudentLoan: $('#StudentLoan').val(),
StudentLoanStatus: "0"
};
if ($('#StudentLoan').val().trim() != null && $('#StudentLoan').val().trim() != "" && $('#StudentLoan').val().trim() != undefined) {
postdata.StudentLoanStatus = "1";
}
learun.httpget(config.webapi + "StuInfoFresh/saveLoan", postdata, (data) => {
if (data) {
learun.layer.toast('保存成功');


+ 6
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoFresh/LoanForm.js View File

@@ -38,9 +38,14 @@ var bootstrap = function ($, learun) {
if (!$('body').lrValidform()) {
return false;
}
var data = $('[data-table="StuInfoFresh"]').lrGetFormData();
data.StudentLoanStatus = "0";
if ($("#StudentLoan").val().trim() != null && $("#StudentLoan").val().trim() != "" && $("#StudentLoan").val().trim() != undefined) {
data.StudentLoanStatus = "1";
}

var postData = {};
postData.strEntity = JSON.stringify($('[data-table="StuInfoFresh"]').lrGetFormData());
postData.strEntity = JSON.stringify(data);
$.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/SaveLoanForm?keyValue=' + keyValue, postData, function (res) {
// 保存成功后才回调
if (!!callBack) {


+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/StuInfoFreshApi.cs View File

@@ -198,6 +198,7 @@ namespace Learun.Application.WebApi.Modules

var entity = stuInfoFreshIBLL.GetStuInfoFreshEntity(model.ID);
entity.StudentLoan = model.StudentLoan;
entity.StudentLoanStatus = model.StudentLoanStatus;

stuInfoFreshIBLL.SaveEntity(entity.ID, entity);

@@ -377,6 +378,10 @@ namespace Learun.Application.WebApi.Modules
/// </summary>
public string StudentLoan { get; set; }
/// <summary>
/// 贷款回执码状态
/// </summary>
public string StudentLoanStatus { get; set; }
/// <summary>
/// 家庭成员
/// </summary>
public List<StuInfoFreshFamilyEntity> StuInfoFreshFamilyEntities { get; set; }


Loading…
Cancel
Save