Index: ssts-web/src/main/webapp/disinfectsystem/config/bjscylyy/print/printConfig.js =================================================================== diff -u -r26380 -r26760 --- ssts-web/src/main/webapp/disinfectsystem/config/bjscylyy/print/printConfig.js (.../printConfig.js) (revision 26380) +++ ssts-web/src/main/webapp/disinfectsystem/config/bjscylyy/print/printConfig.js (.../printConfig.js) (revision 26760) @@ -1,4 +1,4 @@ -var appropriationInListConfig = { +var appropriationInListConfig = { headerFooter : [ // 页眉名称 {label : "北京市垂杨柳医院调拨入库单", dataIndex : '', fontSize : 15, position : ["0.3cm","37%","99%",5]}, @@ -1002,81 +1002,100 @@ } } +//外来器械接收单打印 var foreignTousseAppliationPrintConfig = { - isPrintTousse : true, - isPrintDisinfectGoods : false, - isPrintDisposableGoods : false, // 打印申请单是否打印一次性物品 - isPrintForeignTousse : true, // 是否打印外来器械包 - isMergePrintTousseAndDisposable : false, // 器械包和一次性物品是否合并打印 - printByOriginalApplications : true, //不合并打印情况下是否按原始单据逐份打印 - printApplyInfo : true, - printOrder : 1, // 1:优先打印一次性物品, 2:优先打印器械包 - // 在器械包和一次性物品不合并打印的情况下,消毒物品打印方式: - // 1:优先与一次性物品合并打印,如果无一次性物品则与器械包合并打印, 2:优先与器械包一起合并打印,如果没有器械包则与一次性物品合并打印 ,3:单独打印 - disinfectGoodsPrintMode : 3, - rowsPerPage : 20, - headerContent : [ - // 标题 - {label : "北京市垂杨柳医院", dataIndex : '', fontSize : 10, position : ["10","4%","90%",5]}, - {label : "外来器械接收单", dataIndex : 'header', fontSize : 17, position : ["30","15%","99%",22]}, - - {label : "姓名:", dataIndex : 'patient', fontSize : 11, position : ["90","4%","90%",5]}, - {label : "性别:", dataIndex : 'patientSex', fontSize : 11, position : ["90","80mm","90%",5]}, - {label : "年龄:", dataIndex : 'patientAge', fontSize : 11, position : ["90","130mm","90%",5]}, - - {label : "床号:", dataIndex : 'bedNumber', fontSize : 11, position : ["120","4%","90%",5]}, - {label : "住院号:", dataIndex : 'hospitalNumber', fontSize : 11, position : ["120","80mm","90%",5]}, - - {label : "单号:", dataIndex : 'serialNum', fontSize : 11, position : ["150","4%","90%",10]}, - {label : "申请科室:", dataIndex : 'depart', fontSize : 11, position : ["150","80mm","90%",5]}, - {label : "结算科室:", dataIndex : 'settleAccountsDepart', fontSize : 11, position : ["150","130mm","90%",10]}, - - {label : "申请人:", dataIndex : 'applicant', fontSize : 11, position : ["180","4%","90%",10]}, - {label : "打印时间:", dataIndex : 'printTime', fontSize : 11, position : ["180","80mm","90%",10]}, - - {label : "备注:", dataIndex : 'remark', fontSize : 11, position : ["210","4%","90%",5]}, - - - {label : "手术名称:", dataIndex : 'surgery', fontSize : 11, position : ["280","4%","90%",10]}, - {label : "手术医生:", dataIndex : 'doctor', fontSize : 11, position : ["320","4%","90%",10]}, - {label : "手术时间:", dataIndex : 'operationTime', fontSize : 11, position : ["360","4%","90%",10]}, - - {label : "手术器械清单:", dataIndex : '', fontSize : 11, position : ["400","4%","90%",10]}, - - - {label : "清洗注意事项:", dataIndex : '', fontSize : 11, position : ["680","4%","90%",5]}, - {label : "灭菌方式:", dataIndex : '', fontSize : 11, position : ["720","4%","90%",5]}, - {label : "公司名称:", dataIndex : 'supplierName', fontSize : 11, position : ["760","4%","90%",5]}, - {label : "联系方式:", dataIndex : '', fontSize : 11, position : ["800","4%","90%",5]}, - {label : "送包日期及时间:", dataIndex : '', fontSize : 11, position : ["840","4%","90%",5]}, - {label : "送包者签名:", dataIndex : '', fontSize : 11, position : ["880","4%","90%",5]}, - {label : "回收者签名:", dataIndex : '', fontSize : 11, position : ["920","4%","90%",5]} - - ], - goodsTable :{ - rowHeight : 25, - position : ["430","8%","170mm","1000"], - content : [ - {header : "序号", dataIndex : 'serialNumber', width : 60, align : 'center', fontSize : 11}, - {header : "名称", dataIndex : 'goodsName', width : 300, align : 'left', fontSize : 11}, - {header : "数量", dataIndex : 'goodsAmount', width : 60, align : 'right', fontSize : 11}, - {header : "材料名称及数量", dataIndex : 'sp', width : 300, align : 'center', fontSize : 11} - ] - }, - footer: { - fontSize : 14, - content : [ - {label : "", dataIndex : ''} - ] - },barcodes : [ - {codeType : "128Auto", dataIndex : 'serialNum', position : ["30","65%",210,30], - styles : [{itemNameID: 0, styleName: 'ShowBarText', styleValue: true}, - {itemNameID: 0, styleName: 'FontSize', styleValue: 6}, - {itemNameID: 0, styleName: 'NotOnlyHighPrecision', styleValue: true} - ] + isPrintTousse : true, + isPrintDisinfectGoods : false, + isPrintDisposableGoods : false, // 打印申请单是否打印一次性物品 + isPrintForeignTousse : true, // 是否打印外来器械包 + isMergePrintTousseAndDisposable : false, // 器械包和一次性物品是否合并打印 + printByOriginalApplications : true, //不合并打印情况下是否按原始单据逐份打印 + printApplyInfo : true, + printOrder : 1, // 1:优先打印一次性物品, 2:优先打印器械包 + // 在器械包和一次性物品不合并打印的情况下,消毒物品打印方式: + // 1:优先与一次性物品合并打印,如果无一次性物品则与器械包合并打印, 2:优先与器械包一起合并打印,如果没有器械包则与一次性物品合并打印 ,3:单独打印 + disinfectGoodsPrintMode : 3, + /* isPrintForeignTousse : true, // 是否打印外来器械包 + printApplyInfo : true, */ + customPrint:function (summaryObj){ + //如果有多个外来器械包,则打印多张单 + if(summaryObj && summaryObj.pages && summaryObj.pages.length > 0){ + for(var i = 0;i < summaryObj.pages.length;i++){ + if(summaryObj.pages[i].rows && summaryObj.pages[i].rows.length > 0){ + var rows = summaryObj.pages[i].rows; + for(var j = 0;j < rows.length;j++){ + var rowsList = rows[j]; + var LODOP = getLodop(document.getElementById('LODOP'), document.getElementById('LODOP_EM')); + LODOP.SET_PRINT_STYLE("FontSize",17); + LODOP.ADD_PRINT_TEXT(5,300,"100%",5,"外来手术器械接收单"); + + var htmlTable ="
包名称: "+ rowsList.goodsName +" | " + + "||
病人姓名: "+ summaryObj.patient +" | " + + "病人科室: "+ summaryObj.patientArea +" | " + + "手术名称: "+ summaryObj.surgery +" | " + + "
住院号: "+ summaryObj.hospitalNumber +" | " + + "性别: "+ summaryObj.patientSex +" | " + + "年龄: "+ summaryObj.patientAge +" | " + + "
床号: "+ summaryObj.bedNumber +" | " + + "手术医生: "+ summaryObj.doctor +" | " + + "手术时间: "+ summaryObj.operationTime +" | " + + "
供应商: "+ rowsList.supplierName +" | " + + "联系人: "+ rowsList.supplierContactName +" | " + + "联系方式: "+ rowsList.supplierPhoneNumber +" | " + + "
接收人: "+ rowsList.receiveMan +" | " + + "清洗人: "+ rowsList.washOperator +" | " + + "装配人: "+ rowsList.operator +" | " + + "
审核人: "+ rowsList.reviewer +" | " + + "灭菌员: "+ rowsList.sterilizationUser +" | " + + "发货员: "+ rowsList.invoiceSender +" | " + + "
器械送达时间: "+ summaryObj.applicationTime +" | " + + "器械发货时间: "+ rowsList.invoiceSendTime +" | " + "