| | |
| | | CoursePackageDiscount.close = function () { |
| | | parent.layer.close(window.parent.CoursePackage.layerIndex); |
| | | }; |
| | | CoursePackageDiscount.close1 = function () { |
| | | parent.layer.close(window.parent.TCompetition.layerIndex); |
| | | }; |
| | | |
| | | |
| | | CoursePackageDiscount.audit = function () { |
| | | var id = $("#id").val(); |
| | | var type = $("#type").val(); |
| | | if (type=="未通过"){ |
| | | Feng.error("当前状态不能再次审核!") |
| | | return ; |
| | | } |
| | | let audit = document.querySelector('input[name="r1"]:checked').value; |
| | | let text = $("#text").val() |
| | | if(audit==3){ |
| | | if(text==''){ |
| | | Feng.info("请输入拒绝理由") |
| | | return false; |
| | | } |
| | | } |
| | | var ajax = new $ax(Feng.ctxPath + "/tDiscount/auditDiscount", function (data) { |
| | | if (data.code == 200) { |
| | | Feng.success("操作成功!"); |
| | | window.parent.TCompetition.table.refresh(); |
| | | CoursePackageDiscount.close1(); |
| | | } else if(data=="repeat"){ |
| | | Feng.error("请勿重复操作"); |
| | | }else { |
| | | return Feng.error(data.msg); |
| | | } |
| | | }, function (data) { |
| | | return Feng.error("操作失败!"); |
| | | }); |
| | | ajax.set("id", id); |
| | | ajax.set("audit", audit); |
| | | ajax.set("text", text); |
| | | ajax.start(); |
| | | layer.closeAll(); |
| | | } |
| | | /** |
| | | * 提交修改 |
| | | */ |
| | |
| | | |
| | | let index = $('#classHours').find('button[checked]').attr('index'); |
| | | let obj = CoursePackageDiscount.coursePackagePaymentConfig[index]; |
| | | console.log(obj) |
| | | console.log("看看obj") |
| | | |
| | | $('#payment').text(obj.payment); |
| | | $('#cashPayment').text(obj.cashPayment); |
| | | |
| | |
| | | |
| | | |
| | | $(function () { |
| | | var type2 = $('#type2').val(); |
| | | if (type2 == 3){ |
| | | console.log("进入隐藏") |
| | | $('#classHours').hide(); |
| | | } |
| | | CoursePackageDiscount.coursePackagePaymentConfig = JSON.parse($('#coursePackagePaymentConfig').val()); |
| | | let htmlStr = ''; |
| | | for (let i = 0; i < CoursePackageDiscount.coursePackagePaymentConfig.length; i++) { |