xinyb
2022-05-09 e72c740fc114df724313294eac83da04993c2e1e
在线支付关闭后刷新单据
1个文件已修改
80 ■■■■■ 已修改文件
WebRoot/js/hotkey.js 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebRoot/js/hotkey.js
@@ -1832,7 +1832,8 @@
//执行收款显示二维码或退款
function OpenPayAndRefund(doccode,type,formid){
        if(type=="pay"){//显示二维码
            var url = "/general/onlinePayment/payment.jsp?orderNo=" + doccode+"&formId="+formid;
            let doc=doccode;
            var url = "/general/onlinePayment/payment.jsp?orderNo=" + doc+"&formId="+formid;
            layui.layer.open({
                type: 2,
                area: ['700px', '500px'],
@@ -1851,28 +1852,9 @@
                        }
                    }
                    layer.closeAll();
                    getReductionURL();
                    getReductionURL(doc);
                }
            });
        // }else if(type=="refund"){//退款处理
        //     $.ajax({
        //         url: "/abc/refund.do?orderNo="+doccode,
        //         type: "get",
        //         async: false,
        //         success: function (res) {
        //             if(res.state==0){//退款成功后提示
        //                 layer.msg(res.msg, {icon: (res.state==0?1:3)}, function(){
        //                     getReductionURL();
        //                 });
        //             }else{//退款失败提示。
        //                 layer.alert(res.msg);
        //                 closeLoading();
        //                // getReductionURL();
        //             }
        //         }, error: function (e, h, a) {
        //             layer.alert(e.responseText );
        //         }
        //     });
        }else{//确定
            $.ajax({
                url: "/gtGrid.do?m=newTran&formid="+formid+"&docCode="+doccode,
@@ -1890,15 +1872,20 @@
    }
}
//针对收款二维码界面关闭的处理 xin 2021-9-8 10:09:33
function getReductionURL(){
    var url=location.search;
    var parm=Base64().decode(url.substring(1,url.length));
    if(parm.indexOf("&onlinePay=1")!=-1){
        parm=parm.replace("&onlinePay=1","");
        parm="?"+encodeText(parm);
        location.replace(location.href.split("?")[0]+parm);
    }else{
        location.reload();
function getReductionURL(doc){
    var url = location.search;
    var parm = Base64().decode(url.substring(1, url.length));
    if (parm.indexOf("&onlinePay=1") != -1) {
        parm = parm.replace("&onlinePay=1", "");
        parm = "?" + encodeText(parm);
        location.replace(location.href.split("?")[0] + parm);
    } else {
        if (doc != null) {
            let docUrl = '?' + encodeText('doccode=' + doc);
            location.replace(location.href.split("?")[0]  + docUrl);
        } else {
            location.reload();
        }
    }
    layer.closeAll();
}
@@ -1915,6 +1902,26 @@
        }
    });
}
// function colorisLoading(e) {
//     Coloris({
//         el: e
//     });
// }
//
// function progressBar(e,value){
//     value = value != null ? value : '0';
//     if (isNaN(value) || value == "") {//不全是数字
//         value = '0';
//     }
//     top.$(e).jQMeter({
//         goal: '100',
//         raised: value,
//         height: '24px',
//         barColor:'#6699cc',
//         bgColor: '#CCC'
//     });
// }
$(function () {
    //单据窗体头部固定 xin 2020-10-26 17:23:58
    if (isTopFixed()) {
@@ -1930,4 +1937,17 @@
    //------下面的是关于42控件的处理------
    control42DivData.loading();
    //---end---关于42控件的处理结束------
    // $(".coloris46").each(function () {
    //     colorisLoading('.coloris46');
    // })
    //
    // //---------47控件类型加载---------- xin 2022-4-27 10:58:12
    // $(".progressBar47").each(function () {
    //     let id = $(this).data("id");
    //     let value = $("#" + id).val();//获取控件Id的value值
    //     progressBar(this,value);
    // })
})