无关风月
2025-05-08 9486766c806fe1d9e082b2fd02ea1cc558f1b443
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
 * 初始化详情对话框
 */
var CouponExamineInfoDlg = {
    CouponExamineInfoDlgTable : {}
};
 
 
/**
 * 关闭此对话框
 */
CouponExamineInfoDlg.close = function() {
    parent.layer.close(parent.layer.getFrameIndex(window.frameElement.id));
}
 
 
function refush(){
    $("#detailBox").show()
}
 
function agree(){
    $("#detailBox").hide()
}
 
function ajax(orderNo,value,remark){
    var ajax = new $ax(Feng.ctxPath + "/tCouponExamine/examine", function(data){
        Feng.success("审核成功!");
        window.parent.Coupon.table.refresh();
        CouponExamineInfoDlg.close();
    },function(data){
        Feng.error("审核失败!" + data.responseJSON.message + "!");
    });
    ajax.setData({
        couponOfId:orderNo,
        state:value,
        remark:remark
    });
    ajax.start();
};
 
CouponExamineInfoDlg.addSubmitCoupon = function (){
    var value = $('input:radio:checked').val();
    let orderNo = $("#id").val();
    let remark = $('#detail').val();
    if (value == 1 ){
        ajax(orderNo,value,null);
    }
    if (value == 2 ){
        if (!remark){
            Feng.error("请输入拒绝理由!");
            return;
        }
        ajax(orderNo,value,remark);
    }
}
 
$(function() {
 
});