| | |
| | | var panelWidth = document.documentElement.clientWidth; |
| | | var treeWidth = $('#wrappers').outerWidth(true);// 树形的宽度 |
| | | var treeHeight = $('#tplt-panels').outerHeight(true);// 树形的高度 |
| | | $('#' + gridId[0]).css('height', (treeHeight - 30) + 'px');// 减去30是因为margin和padding的值 |
| | | $('#' + gridId[0]).css('height', (treeHeight - 30 - 20) + 'px');// 减去30是因为margin和padding的值 |
| | | $('#' + gridId[0]).css('width', (panelWidth - treeWidth - 30) + 'px'); |
| | | return; |
| | | } |
| | |
| | | if (topPanelHeight == null) {// 没有标题的高度 |
| | | topPanelHeight = $('#tplt-top').outerHeight(true)+10; |
| | | } |
| | | panelHeight = panelHeight - 20;//文字颜色说明占了20高 |
| | | if (panelType == 1) { |
| | | $('#' + gridId[0]).css('height', (panelHeight - topPanelHeight - 50) + 'px');// 减去50是因为margin和padding的值 |
| | | return; |
| | |
| | | //执行收款显示二维码或退款 |
| | | 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(); |
| | | } |
| | |
| | | cancel: function (index, layero) { |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function progressBar(e,value){ |
| | | top.$(e).jQMeter({ |
| | | goal: '100', |
| | | raised: value+'', |
| | | height: '24px', |
| | | barColor:'#6699cc', |
| | | bgColor: '#CCC' |
| | | }); |
| | | } |
| | | $(function () { |
| | |
| | | //------下面的是关于42控件的处理------ |
| | | control42DivData.loading(); |
| | | //---end---关于42控件的处理结束------ |
| | | |
| | | //---------47控件类型加载---------- xin 2022-4-27 10:58:12 |
| | | $(".progressBar47").each(function () { |
| | | let id = $(this).data("id"); |
| | | let value = $("#" + id).val();//获取控件Id的value值 |
| | | value = value != null ? value : 0; |
| | | if (isNaN(value) || value == "") {//不全是数字 |
| | | value = 0; |
| | | } |
| | | if (value >= 1) { |
| | | value = 100; |
| | | } |
| | | if (value > 0 && value < 1) {//这种情况是1表示100%的值,那么0.1*100=10 |
| | | value = value * 100; |
| | | } |
| | | progressBar(this, value); |
| | | }) |
| | | |
| | | }) |