Index: ssts-web/src/main/webapp/disinfectsystem/config/zsyy/print/printConfig.js =================================================================== diff -u -r19841 -r19928 --- ssts-web/src/main/webapp/disinfectsystem/config/zsyy/print/printConfig.js (.../printConfig.js) (revision 19841) +++ ssts-web/src/main/webapp/disinfectsystem/config/zsyy/print/printConfig.js (.../printConfig.js) (revision 19928) @@ -198,6 +198,59 @@ } } +//批量打印发货单配置 +var batchPrintInvoicesConfig = { + fixed : true,//表格宽度固定 + headerFooter : [ + // 页眉名称 + //{label : "", dataIndex : 'unitName', fontSize : 10, position : ["5","1%","90%",5]}, + // 标题 + {label : "中山大学附属第一医院供应室出库清单", dataIndex : '', fontSize : 15, position : ["5","20%","99%",5]}, + {label : "科室:", dataIndex : 'depart', fontSize : 11, position : ["40","2%","90%",5]}, + {label : "单号:", dataIndex : 'serialNumber2', fontSize : 11, position : ["40","25%","90%",5]}, + {label : "发货时间:", dataIndex : 'sendTime', fontSize : 11, position : ["40","50%","90%",5]}, + //{label : "仓库:供应室器械仓库", dataIndex : '', fontSize : 11, position : ["42","75%","90%",5]}, + //{label : "制单人:", dataIndex : 'printUser', fontSize : 11, position : ["42","35%","90%",5]}, + +// {label : "备注:", dataIndex : 'remark2', fontSize : 11, position : ["57","75%","90%",5]}, + {label : "发货人:", dataIndex : '', fontSize : 11, position : ["9.3cm","2%","90%",5],onlyLast:true},//只在最后一页打印 + {label : "领物人:", dataIndex : '', fontSize : 11, position : ["9.3cm","30%","90%",5],onlyLast:true}, + //{label : "复核人:", dataIndex : '', fontSize : 11, position : ["11cm","5%","90%",5]}, +// {label : "审核人:", dataIndex : '', fontSize : 11, position : ["8.4cm","83%","90%",5]} + {barcodes : [ + {codeType : "128Auto", dataIndex : 'departBarcode', position : ["5","70%","40mm","8mm"], + styles : [{itemNameID: 0, styleName: 'ShowBarText', styleValue: false}, + {itemNameID: 0, styleName: 'FontSize', styleValue: 6}, + {itemNameID: 0, styleName: 'NotOnlyHighPrecision', styleValue: true} + ] + } + ]} + ], + currentPageNumber : {label : "页: # / ", fontSize : 11, position : ["40","80%","90%",5]}, + totalPageAmount : {label : "&", fontSize : 11, position : ["40","88%","90%",5]}, + goodsTable :{ + rowHeight : 25, + position : ["67","0.2cm","22cm","6.8cm"], + headRepeat : true, + fontSize:13, +// style:'"border-left:0px;border-right:0px;border-top:#000000 1px solid;border-bottom:#000000 1px solid;"', + columns : [ + {header : "序号", dataIndex : 'serialNumber', width : '40', align : 'center', fontSize : 11}, + {header : "物品名称", dataIndex : 'name', width : '300', align : 'center', fontSize : 11}, + {header : "规格", dataIndex : 'specification', width : '130', align : 'center', fontSize : 11}, + //{header : "包装规格", dataIndex : 'packageSpec', width : '9%', align : 'center', fontSize : 11}, + {header : "批次/灭菌日期", dataIndex : 'batchNumber', width : '90', align : 'center', fontSize : 11}, + //{header : "失效日期", dataIndex : 'expireDate', width : '70', align : 'center', fontSize : 11}, + {header : "单位", dataIndex : 'unit', width : '50', align : 'center', fontSize : 11}, + {header : "数量", dataIndex : 'amount', width : '50', align : 'center', fontSize : 11}, + {header : "单价", dataIndex : 'price', width : '50', align : 'center', fontSize : 11}, + {header : "金额", dataIndex : 'totalPrice', width : '70', align : 'center', fontSize : 11} + //{header : "备注", dataIndex : '', width : '70', align : 'center', fontSize : 11} + //{header : "生产厂家", dataIndex : 'manufacturer', width : '17%', align : 'center', fontSize : 11} + ] + } +} + //打印外部代理灭菌单 var foreignProxyDisinfectionApplicationPrintConfig = { headerFooter : [ @@ -1601,6 +1654,7 @@ invoicePlan : invoicePlanPrintConfig, foreignProxyDisinfectionApplication: foreignProxyDisinfectionApplicationPrintConfig,// 外部代理灭菌单 batchPrintMaterialInvoices:batchPrintMaterialInvoicesConfig, + batchPrintInvoices:batchPrintInvoicesConfig, // 发货单(通用发货单) invoiceCombo : invoiceComboPrintConfig, // 发货单(一次性物品) Index: ssts-web/src/main/webapp/disinfectsystem/print/print.js =================================================================== diff -u -r19841 -r19928 --- ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 19841) +++ ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 19928) @@ -167,6 +167,9 @@ LODOP.ADD_PRINT_TEXT(item.position[0], item.position[1], item.position[2], item.position[3], item.text); } } + if(item.onlyLast){ + LODOP.SET_PRINT_STYLEA(0,"PageIndex","Last"); + } } function addPrintBarcode(item, text){