Index: ssts-web/src/main/webapp/disinfectsystem/print/print.js =================================================================== diff -u -r14799 -r14833 --- ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 14799) +++ ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 14833) @@ -2210,6 +2210,41 @@ LODOP.ADD_PRINT_HTM(0,0,"95%","100%","
"+tableHtml+""); LODOP.PRINT(); } +function printBarcodeInformation(barcodeInformation){ + var informationType = barcodeInformation.informationType; + switch(informationType){ + case '一次性物品入库': + printBarcodeInformation_DisposablegoodsGodownentry(barcodeInformation); + break; + } +} +// 默认的打印样式,50*50 +function printBarcodeInformation_DisposablegoodsGodownentry(barcodeInformation){ + var infoObj = JSON.parse(barcodeInformation.information); + doGetLodop(); + // 设置默认字体 + setDefaultFontNameSizeBold('宋体',12,1); + // 默认条码属性 + LODOP.SET_PRINT_STYLE('ShowBarText', true); + LODOP.SET_PRINT_STYLE('FontSize', 6); + LODOP.SET_PRINT_STYLE('NotOnlyHighPrecision', true); + + var fontSize = getFontSizeByStr(infoObj.disposableGoodsName,[ + {maxLen:10,fontSize:12}, + {maxLen:20,fontSize:12}, + {maxLen:1000,fontSize:8} + ]); + LODOP.ADD_PRINT_TEXT("1mm","0mm","RightMargin:0mm","10mm", infoObj.disposableGoodsName); + setFontSizeBold(fontSize,1);// 设置字体 + setAlignment('center');// 对齐 + + LODOP.ADD_PRINT_TEXT("12mm","2mm","RightMargin:0mm","10mm", infoObj.supplierName); + setFontSizeBold(10,1);// 设置字体 + setAlignment('center');// 对齐 + + LODOP.ADD_PRINT_BARCODE("27mm","10mm","30mm","10mm","128Auto", barcodeInformation.barcode);// 条码1 + LODOP.PRINT(); +} /** * 打印器械包管理界面的包定义的材料清单 * @param tousseDefinitionObj 器械包定义数据对象 Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/barcodeInformation/barcodeInformation.jsp =================================================================== diff -u -r14820 -r14833 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/barcodeInformation/barcodeInformation.jsp (.../barcodeInformation.jsp) (revision 14820) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/barcodeInformation/barcodeInformation.jsp (.../barcodeInformation.jsp) (revision 14833) @@ -15,6 +15,11 @@ + + + + + +