| | |
| | | couponInfoDlg.close = function () { |
| | | parent.layer.close(window.parent.TCoupon.layerIndex); |
| | | } |
| | | couponInfoDlg.close1 = function () { |
| | | parent.layer.close(window.parent.TCouponExamine.layerIndex); |
| | | } |
| | | |
| | | |
| | | /** |
| | |
| | | couponInfoDlg.delete = function (o) { |
| | | $(o).parent("div").remove() |
| | | } |
| | | couponInfoDlg.audit = function () { |
| | | var id = $("#id").val(); |
| | | 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 + "/tCouponExamine/examine", function (data) { |
| | | if (data.code == 200) { |
| | | Feng.success("操作成功!"); |
| | | |
| | | window.parent.TCouponExamine.table.refresh(); |
| | | couponInfoDlg.close1(); |
| | | } else if(data=="repeat"){ |
| | | window.location.reload(); |
| | | window.parent.layer.closeAll(); |
| | | Feng.error("请勿重复操作"); |
| | | }else { |
| | | return Feng.error(data.msg); |
| | | } |
| | | }, function (data) { |
| | | Feng.error("操作失败!") |
| | | window.location.reload(); |
| | | window.parent.layer.closeAll(); |
| | | return Feng.error("操作失败!"); |
| | | }); |
| | | |
| | | ajax.set("id", id); |
| | | ajax.set("state", audit); |
| | | ajax.set("remark", text); |
| | | ajax.start(); |
| | | layer.closeAll(); |
| | | } |
| | | /** |
| | | * 提交 |
| | | */ |