Index: ssts-web/src/main/webapp/disinfectsystem/print/print.js =================================================================== diff -u -r17925 -r18246 --- ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 17925) +++ ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 18246) @@ -193,7 +193,7 @@ //@param goodsTable 要打印的表格 //@param col 表格的列号,从0开始 function getTableTdStyle(goodsTable,col){ - var def = "'BORDER: #000000 1px solid'"; + var def = "'BORDER: #000000 1px solid; padding-right:2px;'"; if(isObjEmpty(goodsTable) || isObjEmpty(goodsTable.columns)){ return def; } @@ -429,11 +429,10 @@ if(value === 0){ //类型和值都相等,不处理,直接打印0 }else{ - value = ''; + value = ' '; } } var tdContent = value; - tdContent += " "; if(myObj.nowrap){ //不换行.如果直接将样式应用到td标签,效果出不来,在td里加一个div是可以的 tdContent = "
"; } var style = getTableTdStyle(myObj.goodsTable,i); @@ -473,7 +471,7 @@ var align = columnObj.align; if(isUndefinedOrNullOrEmpty(text)){ - text = ''; + text = ' '; } if(isUndefinedOrNullOrEmpty(align)){ align = 'center'; @@ -493,7 +491,7 @@ if(format){ tableHtml += " format='" + format + "'"; } - tableHtml += ">" + text + " "; + tableHtml += ">" + text + ""; } tableHtml += ""; } @@ -523,7 +521,7 @@ value = formatMoney(printSummaryObj.totalPrice); } - tableHtml += "