Index: ssts-web/src/main/webapp/disinfectsystem/print/print.js =================================================================== diff -u -r17921 -r17925 --- ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 17921) +++ ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 17925) @@ -387,7 +387,12 @@ LODOP.SET_PRINT_STYLE("ItemType",4); // 打印物品表格 // 打印表格头 - var tableHtml = ""; + var tableStyle = "border-collapse:collapse;"; + if(myObj.fixed){ + tableStyle += "table-layout:fixed;"; + } + var tableHtml = "
"; + // 如果需要表头在每页重复打印,则增加thead标签 if (myObj.goodsTable.headRepeat){ tableHtml += ""; @@ -413,7 +418,6 @@ var row = goodsArray[k]; tableHtml = appendTableRowString(tableHtml, myObj.goodsTable.rowHeight , myObj.goodsTable.fontSize); - for (var i=0;i" + value + " "; + var tdWidth = myObj.fixed?'width='+item.width:''; + tableHtml += ""; } tableHtml += ""; } Index: ssts-web/src/main/webapp/disinfectsystem/config/gdsy/print/printConfig.js =================================================================== diff -u -r16393 -r17925 --- ssts-web/src/main/webapp/disinfectsystem/config/gdsy/print/printConfig.js (.../printConfig.js) (revision 16393) +++ ssts-web/src/main/webapp/disinfectsystem/config/gdsy/print/printConfig.js (.../printConfig.js) (revision 17925) @@ -212,6 +212,9 @@ //241*93 var invoicePlanPrintConfig_disposableGoods = { print2:true, + nowrap:true,//一行显示不下的时候,是否换行,为true表示不换行,没有定义或者为false表示会换行(此为默认行为) + ellipsis:false,//不换行的情况下,如果显示不下,是否在末尾打印出省略号。nowrap为false或者未定义时,此配置无效。浏览器上有效果,lodop打印没有打印出省略号 + fixed:true,//打印表格的时候,表格是否固定。如果固定,就不会有某一列内容比较长而挤压其他列的情况 isPrintTousse : true, isPrintDisinfectGoods : true, isPrintDisposableGoods : true, // 打印申请单是否打印一次性物品 @@ -239,20 +242,21 @@ currentPageNumber : {label : "第#页", fontSize : 11, position : ["7.8cm","190mm","90%",5]}, totalPageAmount : {label : "/共&页", fontSize : 11, position : ["7.8cm","200mm","90%",5]}, goodsTable :{ + donotPrintTotal:true, rowHeight : 25, position : ["49","1%","99%","55mm"], fontSize : 14, headRepeat : true, columns : [ - {header : "编码", dataIndex : 'externalCode', width : 40, align : 'center', fontSize : 10}, - {header : "名称", dataIndex : 'goodsName', width : 115, align : 'left', fontSize : 10}, - {header : "申领规格", dataIndex : 'sp', width : 115, align : 'left', fontSize : 10}, + {header : "编码", dataIndex : 'externalCode', width : 50, align : 'center', fontSize : 10}, + {header : "名称", dataIndex : 'goodsName', width : 230, align : 'left', fontSize : 10}, + {header : "申领规格", dataIndex : 'sp', width : 150, align : 'left', fontSize : 10}, {header : "申领单位", dataIndex : 'unit', width : 60, align : 'center', fontSize : 10}, {header : "发放数量", dataIndex : 'goodsAmount', width : 60, align : 'center', fontSize : 10}, {header : "生产批号", dataIndex : 'batchNumber', width : 70, align : 'center', fontSize : 10}, {header : "灭菌日期", dataIndex : 'sterileBatchNumber', width : 70, align : 'center', fontSize : 10}, {header : "失效日期", dataIndex : 'expDate', width : 70, align : 'center', fontSize : 10}, - {header : "生产厂家", dataIndex : 'manufacturer', width : 70, align : 'center', fontSize : 10} + {header : "生产厂家", dataIndex : 'manufacturer', width : 60, align : 'center', fontSize : 10} // {header : "回收数量", dataIndex : 'recyclingAmount', width : 70, align : 'center', fontSize : 10} //{header : "单位", dataIndex : 'unit', width : 60, align : 'left', fontSize : 10}, ]
" + tdContent + "