var shengcheng = _g().parameterEl.getWidgetByName("shengcheng").getValue(); var reg = new RegExp("#","g");//g,表示全部替换。 p2 = p2.replace(reg,"^"); var reg = new RegExp("#","g");//g,表示全部替换。 p3 = p3.replace(reg,"^"); function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 var r = window.location.search.substr(1).match(reg); //匹配目标参数 if (r != null) return unescape(r[2]); return null; //返回参数值 } var orgCode = getUrlParam('orgCode'); v_paramstr = "orgCode="+orgCode; var a =hebao.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3") if(hebao==''&&hebao1==''&&shengcheng==''&&shengcheng1==''&&baoxian==''&&baoxian1==''){ FR.Msg.alert("提示:","请输入日期!"); $('#popup_close').remove(); $('#popup_container').css('min-width','180px'); $('#popup_container').css('width','200px'); $('#popup_header').css('width','200px'); $('#popup_message').css('width','190px'); $('#popup_content').css('text-align','center'); $('.fr-core-btn').css('right','65px') return false; } var bxqq1 = new Date(a.replaceAll('-','/')); var subdate1 = (bxqq2-bxqq1)/ (1000 *60 *60 *24); if(subdate1>365) { FR.Msg.alert("提示:","请缩小查询的开始日期区间,可查询1年的数据!"); return false; } if(shengcheng != ''){ v_paramstr+="!shengcheng="+shengcheng } var value; var v_tjsj = this.options.form.getWidgetByName("button0"); |