|
|
@@ -63,27 +63,38 @@ var bootstrap = function ($, learun) { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
selectedRow = $('#gridtable').jfGridGet('rowdata'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
if (selectedRow.billStatus === true) { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form_payCode', |
|
|
|
title: '二维码缴费', |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/PayFeeForm?keyValue=' + keyValue, |
|
|
|
width: 800, |
|
|
|
height: 600, |
|
|
|
btn: null |
|
|
|
}); |
|
|
|
|
|
|
|
if (selectedRow.PayFeeStatus == "1") { |
|
|
|
//查询发票链接 |
|
|
|
learun.httpAsyncGet( |
|
|
|
top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/InvoiceForm?keyValue=' + keyValue, function (res) { |
|
|
|
if (!!res.data && !!res.data.billUrl) { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form_invoice', |
|
|
|
title: '查看发票', |
|
|
|
url: res.data.billUrl, |
|
|
|
width: 1000, |
|
|
|
height: 600, |
|
|
|
btn: null |
|
|
|
}); |
|
|
|
} else { |
|
|
|
learun.alert.warning("当前新生尚未开具发票,请缴费成功后耐心等待!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
learun.alert.warning("当前新生尚未开具发票,请缴费成功后耐心等待!"); |
|
|
|
learun.alert.warning("当前新生尚未缴费,请缴费成功后耐心等待!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
// 缴费 |
|
|
|
$('#lr_payFee').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
selectedRow = $('#gridtable').jfGridGet('rowdata'); |
|
|
|
if (selectedRow.PayFeeStatus == "1") { |
|
|
|
learun.alert.warning("当前新生已线上缴费!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
@@ -245,14 +256,14 @@ var bootstrap = function ($, learun) { |
|
|
|
//同步数据 |
|
|
|
$('#lr_synchronous').on('click', |
|
|
|
function () { |
|
|
|
learun.layerConfirm('是否要同步缴费数据!',function (res) { |
|
|
|
if (res) { |
|
|
|
learun.postForm( |
|
|
|
top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/SynchronousList', {}, function () { |
|
|
|
learun.layerConfirm('是否要同步缴费数据!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.postForm( |
|
|
|
top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/SynchronousList', {}, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
// 取消其他费用缴费 |
|
|
|
$('#lr_cancelOtherPay').on('click', function () { |
|
|
|