Index: ssts-reports/src/main/java/com/forgon/disinfectsystem/jasperreports/action/JasperreportsAction.java =================================================================== diff -u -r26921 -r27021 --- ssts-reports/src/main/java/com/forgon/disinfectsystem/jasperreports/action/JasperreportsAction.java (.../JasperreportsAction.java) (revision 26921) +++ ssts-reports/src/main/java/com/forgon/disinfectsystem/jasperreports/action/JasperreportsAction.java (.../JasperreportsAction.java) (revision 27021) @@ -4,8 +4,10 @@ package com.forgon.disinfectsystem.jasperreports.action; import java.io.IOException; +import java.io.UnsupportedEncodingException; import java.math.BigDecimal; import java.math.RoundingMode; +import java.net.URLDecoder; import java.sql.ResultSet; import java.sql.SQLException; import java.text.ParseException; @@ -770,6 +772,13 @@ //由于是中文,且还含有特殊符号(如#),所以改由form进行post提交,参数名另取防止与原ext的元素id相同 String goodsSearch = StrutsParamUtils.getPraramValue("goodsNameSearch", null); + if(StringUtils.isNotBlank(goodsSearch)){ + try { + goodsSearch = URLDecoder.decode(goodsSearch, "utf-8"); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + } String batch = StrutsParamUtils.getPraramValue("batch", null); String disposableGoodsType = StrutsParamUtils.getPraramValue("disposableGoodsType", ""); String goodsType = StrutsParamUtils.getPraramValue("goodsType", ""); Index: ssts-web/src/main/webapp/disinfectsystem/reportforms/departmentMonthlyDetailDSInvoiceItemView.js =================================================================== diff -u -r26930 -r27021 --- ssts-web/src/main/webapp/disinfectsystem/reportforms/departmentMonthlyDetailDSInvoiceItemView.js (.../departmentMonthlyDetailDSInvoiceItemView.js) (revision 26930) +++ ssts-web/src/main/webapp/disinfectsystem/reportforms/departmentMonthlyDetailDSInvoiceItemView.js (.../departmentMonthlyDetailDSInvoiceItemView.js) (revision 27021) @@ -135,7 +135,7 @@ + "&disposableGoodsType=" + disposableGoodsType + "&showCustonTousseAmount=" + showCustonTousseAmount + "&patternOfReport=" + patternOfReport; - document.getElementById("goodsNameSearch").value = goodsSearch; + document.getElementById("goodsNameSearch").value = encodeURI(goodsSearch); document.getElementById("reportHiddenForm").action = url; document.getElementById("reportHiddenForm").submit(); }