| | |
| | | //执行收款显示二维码或退款 |
| | | 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'], |
| | |
| | | } |
| | | } |
| | | 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, |
| | |
| | | } |
| | | } |
| | | //针对收款二维码界面关闭的处理 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(); |
| | | } |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // 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()) { |
| | |
| | | //------下面的是关于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); |
| | | // }) |
| | | |
| | | }) |