无关风月
22 小时以前 b1fb83530b7105e4aa73e4101727dea945eb01c2
cloud-server-management/src/main/webapp/static/modular/system/vipPayment/vipPayment.js
@@ -36,7 +36,7 @@
                var id = row.id;
                // 已退费不展示按钮
                if (temp==0){
                    var str = '<button class="btn btn-outline btn-primary" onclick="TCompetition.refund(\'' + id + '\')" >'+row.id+'</button>'
                    var str = '<button class="btn btn-outline btn-primary" onclick="TCompetition.refund(\'' + id + '\')" >'+'会员退费'+'</button>'
                    btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="" onfocus="TUser.tooltip()">' + str + '</p>']
                    return btn;
                }else{
@@ -46,6 +46,22 @@
        },
    ];
};
TCompetition.export = function (){
    var queryData = TCompetition.getQueryParam();
    // 生成带参数的完整URL
    var exportUrl = Feng.ctxPath + "/vipDetail/export?" + $.param(queryData);
    window.location.href = exportUrl;
}
TCompetition.getQueryParam = function () {
    var queryData = {};
    queryData['appUserName'] = $("#appUserName").val();
    queryData['vipName'] = $("#vipName").val();
    queryData['phone'] = $("#phone").val();
    queryData['isRefund'] = $("#isRefund").val();
    queryData['time'] = $("#time").val();
    return queryData;
}
/**
 * 打开编辑
 */
@@ -54,13 +70,14 @@
    console.log( e)
    const data1 = {
        id:null,
        vipEndTime:""
        endTime:"",
        remark:""
    };
        var index = layer.load(1,{
            type: 1
            , title: '会员退费'
            , area: ['800px', '600px']
            , area: ['600px', '550px']
            , offset: 'auto' //具体配置参考:http://www.layui.com/doc/modules/layer.html#offset
            , id: 'layerDemo' //防止重复弹出cge
            , content: '<div class="form-horizontal" style="padding-top: 20px;">' +
@@ -69,16 +86,17 @@
                '                        <div class="form-group">\n' +
                '<label class="col-sm-3 control-label">*会员到期时间:</label>'+
    '<div class="col-sm-9">'+
        '<input style="width: 300px" class="form-control" id="vipEndTime" name="vipEndTime" type="date">'|
        '<input style="width: 300px" class="form-control" id="vipEndTime" name="vipEndTime" type="date">'+
    '</div>'+
                '                        <div class="form-group refusal" style="display: none;">\n' +
                '                            <label class="col-sm-3 control-label">备注:</label>\n' +
                '                            <div class="col-sm-9">\n' +
                '                     <textarea id="refusal" class="form-control" style="width: 100%;height: 200px"></textarea>'+
                '                            </div>\n' +
                '                        </div>\n' +
                '                       </div>' +
                '                   </div>' +
                '                        <div class="form-group refusal" >\n' +
                '                            <label class="col-sm-3 control-label">备注:</label>\n' +
                '                            <div class="col-sm-9">\n' +
                '                     <textarea id="refusal" class="form-control" style="width: 100%;height: 120px"></textarea>'+
                '                            </div>\n' +
                '                        </div>\n' +
                '</div>'
            , btn: ['保存', '关闭']
            , btnAlign: 'c' //按钮居中
@@ -91,7 +109,8 @@
                    return;
                }
                data1.id = e;
                data1.vipEndTime = $("#vipEndTime").val();
                data1.endTime = $("#vipEndTime").val();
                data1.remark = $("#refusal").val();
                $.ajax({
                    url: Feng.ctxPath + "/vipDetail/refund",
                    type: "POST",
@@ -110,12 +129,24 @@
            }
        });
        this.layerIndex = index;
        $("#status1").change(function () {
            this.value == 3 ? $(".refusal").show() : $(".refusal").hide();
        });
};
TCompetition.export = function (){
    var queryData = TCompetition.getQueryParam();
    // 生成带参数的完整URL
    var exportUrl = Feng.ctxPath + "/vipDetail/export?" + $.param(queryData);
    window.location.href = exportUrl;
}
TCompetition.getQueryParam = function () {
    var queryData = {};
    queryData['appUserName'] = $("#appUserName").val();
    queryData['vipName'] = $("#vipName").val();
    queryData['phone'] = $("#phone").val();
    queryData['isRefund'] = $("#isRefund").val();
    queryData['time'] = $("#time").val();
    return queryData;
}
/**
 * 查询车辆管理列表
 */