liujie
2023-10-26 e030255c23c7ba3e2cbad1036a810d6d72fa864f
cloud-server-management/src/main/webapp/static/modular/system/cpPayment/cpPayment_info.js
@@ -15,7 +15,7 @@
TCompetition.initColumn = function () {
    return [
        {field: 'selectItem', checkbox: true},
        {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
        {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
        {title: '所在省市', field: 'provinceAndCity', visible: role==1?true:false, align: 'center', valign: 'middle'},
        {title:  '门店名称', field: 'storeName', visible: true, align: 'center', valign: 'middle'},
        {title:  '课包类型', field: 'coursePackageType', visible: true, align: 'center', valign: 'middle'},
@@ -309,8 +309,15 @@
        Feng.info("请输入玩湃币支付")
        return;
    }
    var courseTimeId= $("#courseTime").val()
    console.log("看看课时")
    console.log(courseTimeId)
    if(typeof courseTimeId === 'undefined'){
        console.log("进入")
        courseTimeId=0;
    }
    $.ajax({
        url: Feng.ctxPath + "/cpPayment/addCoursePackagePayment/"+ $("#courseTime").val(),
        url: Feng.ctxPath + "/cpPayment/addCoursePackagePayment/"+ courseTimeId,
        type: "POST",
        contentType: "application/json", // 设置请求头的 Content-Type
        data: JSON.stringify(data), // 将数据转换为 JSON 字符串
@@ -339,7 +346,11 @@
}
TCompetition.getCoursePackage = function (e) {
    var oneId=$(e).val();
    console.log("门店id")
    console.log(oneId)
    var storeId = $("#store").val();
    console.log("课包类型")
    console.log(storeId)
    var content = "<option value=''>请选择</option>";
    var ajax = new $ax(Feng.ctxPath + "/coursePackage/getCoursePackageByType", function(data){
        if(data!=null){
@@ -350,7 +361,8 @@
            $("#coursePackageName").empty().append(content);
        }
    });
    ajax.set("storeId",oneId);
    ajax.set("storeId",storeId);
    ajax.set("typeId",oneId);
    ajax.start();
};
TCompetition.getCoursePackageConfig = function (e) {