|
|
@@ -63,6 +63,35 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
//补开发票 |
|
|
|
$('#lr_viewinvoice').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('FSYId'); |
|
|
|
var selectedRow = $('#gridtable').jfGridGet('rowdata'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
if (selectedRow.PayFeeStatus == "1") { |
|
|
|
//查询发票链接 |
|
|
|
learun.httpAsyncGet( |
|
|
|
top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeStuYear/GetInvoiceRecord?keyValue=' + keyValue, function (res) { |
|
|
|
if (!!res.data && res.data.length > 0) { |
|
|
|
learun.alert.warning("当前学生已开具发票,请登录学生端查看!"); |
|
|
|
return; |
|
|
|
} else { |
|
|
|
//开票 |
|
|
|
learun.layerConfirm('是否确认补开发票?', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.postForm(top.$.rootUrl + '/ReceiveSendFeeManagement/FinaChargeStuYear/SetUnInvoiceHandleByFSYID', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
learun.alert.warning("当前学生尚未全额缴费,请缴费成功后再试!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 初始化列表 |
|
|
|
initGird: function () { |
|
|
|