From d299420aba3a19363755cee0c2b2d8ae93fea928 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期一, 01 九月 2025 15:44:30 +0800
Subject: [PATCH] bug修改
---
cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js | 46 +++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 45 insertions(+), 1 deletions(-)
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js b/cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js
index 9b77955..c97f99c 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tDiscountAudit/coursePackageDiscount.js
@@ -14,8 +14,44 @@
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();
+}
/**
* 提交修改
*/
@@ -399,6 +435,9 @@
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);
@@ -422,6 +461,11 @@
$(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++) {
--
Gitblit v1.7.1