Index: ssts-web/src/main/webapp/disinfectsystem/config/zjyy/print/printConfig.js =================================================================== diff -u -r13307 -r20008 --- ssts-web/src/main/webapp/disinfectsystem/config/zjyy/print/printConfig.js (.../printConfig.js) (revision 13307) +++ ssts-web/src/main/webapp/disinfectsystem/config/zjyy/print/printConfig.js (.../printConfig.js) (revision 20008) @@ -251,45 +251,44 @@ }; var batchPrintInvoicesConfig = { + /*在打印之前调用,可用于排序,合并等操作*/ + beforeBatchPrintInvoices:beforeBatchPrintInvoices, + fixed:true,//打印表格的时候,表格是否固定。如果固定,就不会有某一列内容比较长而挤压其他列的情况 headerFooter : [ // 页眉名称 - {label : "珠江医院", dataIndex : '', fontSize : 10, position : ["5","1%","90%",5]}, + //{label : "成都五冶医院", dataIndex : '', fontSize : 10, position : ["5","1%","90%",5]}, // 标题 - {label : "材料出库单", dataIndex : '', fontSize : 15, position : ["20","40%","99%",5]}, - {label : "部门:", dataIndex : 'depart', fontSize : 11, position : ["55","2%","90%",5]}, - {label : "仓库:消毒供应中心", dataIndex : '', fontSize : 11, position : ["55","75%","90%",5]}, - {label : "制单人:", dataIndex : 'printUser', fontSize : 11, position : ["55","35%","90%",5]}, - {label : "打印时间:", dataIndex : 'printTime', fontSize : 11, position : ["80","35%","90%",5]}, - {label : "备注:", dataIndex : 'remark', fontSize : 11, position : ["80","2%","90%",5]}, - {label : "主管:", dataIndex : '', fontSize : 11, position : ["10cm","5%","90%",5]}, - {label : "领料人:", dataIndex : '', fontSize : 11, position : ["10cm","40%","90%",5]}, - {label : "发料人:", dataIndex : 'sender', fontSize : 11, position : ["10cm","75%","90%",5]}, - {barcodes : [ - {codeType : "128Auto", dataIndex : 'departBarcode', position : ["3mm","74%","40mm","8mm"], - styles : [{itemNameID: 0, styleName: 'ShowBarText', styleValue: true}, - {itemNameID: 0, styleName: 'FontSize', styleValue: 6}, - {itemNameID: 0, styleName: 'NotOnlyHighPrecision', styleValue: true} - ] - } - ]} + {label : "珠江医院卫生材料出库单", dataIndex : '', fontSize : 15, position : ["5","32%","99%",5]}, + {label : "科室:", dataIndex : 'depart', fontSize : 11, position : ["30","2%","90%",5]}, + {label : "备注:", dataIndex : 'remark2', fontSize : 11, position : ["30","25%","90%",5]}, + {label : "记账日期:", dataIndex : 'sendTime', fontSize : 11, position : ["30","58%","90%",5]}, + {label : "出库单号:", dataIndex : 'serialNumber2', fontSize : 11, position : ["30","80%","90%",5]}, + {label : "住院号:", dataIndex : 'hospitalNumber', fontSize : 11, position : ["50","2%","90%",5]}, + //页脚 + {label : "制单日期:", dataIndex : 'printDate', fontSize : 11, position : ["310","2%","90%",5]}, + {label : "制单人:", dataIndex : 'printUser', fontSize : 11, position : ["310","25%","90%",5]}, + {label : "领用人:", dataIndex : '', fontSize : 11, position : ["310","45%","90%",5]}, + {label : "保管人:", dataIndex : '', fontSize : 11, position : ["310","65%","90%",5]}, + {label : "记账人:", dataIndex : 'sender', fontSize : 11, position : ["310","80%","90%",5]} ], - currentPageNumber : {label : "第#页", fontSize : 11, position : ["11cm","75%","90%",5]}, - totalPageAmount : {label : "共&页", fontSize : 11, position : ["11cm","81%","90%",5]}, + currentPageNumber : {label : "第#页", fontSize : 11, position : ["30","45%","90%",5]}, + totalPageAmount : {label : "共&页", fontSize : 11, position : ["30","50%","90%",5]}, goodsTable :{ - rowHeight : 25, - position : ["100","1%","97%","6.5cm"], + rowHeight : 20, + position : ["70","1%","99%","6.0cm"], headRepeat : true, columns : [ - {header : "序号", dataIndex : 'serialNumber', width : '10%', align : 'center', fontSize : 11}, - {header : "名称", dataIndex : 'name', width : '30%', align : 'left', fontSize : 11}, - {header : "规格", dataIndex : 'specification', width : '15%', align : 'center', fontSize : 11}, - {header : "包装规格", dataIndex : 'packageSpec', width : '15%', align : 'center', fontSize : 11}, - {header : "单位", dataIndex : 'unit', width : '5%', align : 'center', fontSize : 11}, - {header : "数量", dataIndex : 'amount', width : '5%', align : 'right', fontSize : 11}, -// {header : "批次/灭菌日期", dataIndex : 'batchNumber', width : 105, align : 'center', fontSize : 11}, -// {header : "失效日期", dataIndex : 'expireDate', width : 85, align : 'center', fontSize : 11}, - {header : "单价", dataIndex : 'price', width : '10%', align : 'right', fontSize : 11}, - {header : "金额", dataIndex : 'totalPrice', width : '10%', align : 'right', fontSize : 11} + {header : "序号", dataIndex : 'serialNumber', width : 50, align : 'center', fontSize : 11}, + {header : "编码", dataIndex : 'externalCode', width : 50, align : 'left', fontSize : 11}, + {header : "名称", dataIndex : 'name', width : 185, align : 'center', fontSize : 11}, + {header : "规格", dataIndex : 'specification', width : 150, align : 'center', fontSize : 11}, +// {header : "包装规格", dataIndex : 'packageSpec', width : '15%', align : 'center', fontSize : 11}, + {header : "单位", dataIndex : 'unit', width : 50, align : 'center', fontSize : 11}, + {header : "数量", dataIndex : 'amount', width : 50, align : 'right', fontSize : 11}, + {header : "有效日期", dataIndex : 'expireDate', width : 100, align : 'center', fontSize : 11}, + {header : "批号", dataIndex : 'batchNumber', width : 120, align : 'center', fontSize : 11} +// {header : "单价", dataIndex : 'price', width : '10%', align : 'right', fontSize : 11}, +// {header : "金额", dataIndex : 'totalPrice', width : '10%', align : 'right', fontSize : 11} ] } }