Index: ssts-web/src/main/webapp/disinfectsystem/config/hbsxkyy/print/printConfig.js
===================================================================
diff -u -r28389 -r29198
--- ssts-web/src/main/webapp/disinfectsystem/config/hbsxkyy/print/printConfig.js (.../printConfig.js) (revision 28389)
+++ ssts-web/src/main/webapp/disinfectsystem/config/hbsxkyy/print/printConfig.js (.../printConfig.js) (revision 29198)
@@ -1,4 +1,7 @@
-var appropriationInListConfig = {
+//var printerNameMapping = {
+// '模板-低温标签' : 'Argox CP-2140M PPLA'
+//};
+var appropriationInListConfig = {
headerFooter : [
// 页眉名称
{label : "河北省胸科医院调拨入库单", dataIndex : '', fontSize : 15, position : ["0.3cm","37%","99%",5]},
@@ -251,92 +254,181 @@
}
};
+var recyclingInvoiceTotalConfig_fsszyy = {
+ customPrint:printRecyclingInvoiceTotalConfig_GroupByTousseGroupName,
+ name:'printRecyclingInvoiceTotalConfig_GroupByDepart'
+}
+function printRecyclingInvoiceTotalConfig_GroupByTousseGroupName(time,obj,name,loginUser){
+ if(name == 'printRecyclingInvoiceTotalConfig_GroupByDepart'){
+ var tableHtml ="
";
+ for(var item in obj.data){
+ tableHtml += "";
+ tableHtml += ""+item+" | ";
+ tableHtml += "
";
+ tableHtml += "";
+ tableHtml += "序号 | ";
+ tableHtml += "名称 | ";
+ tableHtml += "数量 | ";
+ tableHtml += "备注 | ";
+ //tableHtml += "单价 | ";
+ //tableHtml += "金额 | ";
+ tableHtml += "
";
+ for(var i=0;i";
+ tableHtml += ""+(i+1)+" | ";
+ tableHtml += ""+obj.data[item][i].tosseName+" | ";
+ tableHtml += ""+obj.data[item][i].amount+" | ";
+ tableHtml += ""+" | ";
+ //tableHtml += ""+obj.data[item][i].price+" | ";
+ //tableHtml += ""+obj.data[item][i].totalPrice+" | ";
+ tableHtml += "";
+ }
+ }
+ tableHtml += "
";
+ var headHtml = "回收清单
";
+ var printTimeHtml = "制单人: "+loginUser+" 打印时间: "+time+"
";
+ //打印设置
+ var LODOP = getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM'));
+ //打印医院名称
+ LODOP.ADD_PRINT_HTM(10,"3%",100,30,'河北省胸科医院');
+ //打印日期
+ LODOP.ADD_PRINT_HTM(90,"3%","90%","100%",printTimeHtml);
+ //项目内容
+ LODOP.ADD_PRINT_TABLE(110,"3%","90%","100%",tableHtml);
+ //标题
+ LODOP.ADD_PRINT_HTM(30,20,"95%",30,headHtml);
+ LODOP.PRINT();
+ }else {
+ var headHtml = "科室申领物品汇总单
";
+ var tableHtml ="";
+ tableHtml += "";
+ tableHtml += "名称 | ";
+ tableHtml += "数量 | ";
+ tableHtml += "名称 | ";
+ tableHtml += "数量 | ";
+ tableHtml += "
";
+ for(var i=0;i < obj.data.length;){
+ var num = obj.data[i+1];
+ var tosseName;
+ var amount;
+ if(num == "" || num == undefined || num == null){
+ tosseName = "";
+ amount = "";
+ }else{
+ tosseName = num.tosseName;
+ amount = num.amount;
+ }
+
+ tableHtml += "";
+ tableHtml += ""+obj.data[i].tosseName+" | ";
+ tableHtml += ""+obj.data[i].amount+" | ";
+ tableHtml += ""+tosseName+" | ";
+ tableHtml += ""+amount+" | ";
+ tableHtml += "
";
+ i = i+2;
+ }
+ tableHtml += "
";
+ var printTimeHtml = "打印日期: "+time+"
";
+ //打印设置
+ var LODOP = getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM'));
+ //打印日期
+ LODOP.ADD_PRINT_HTM(80,"5%","90%","100%",printTimeHtml);
+ //项目内容
+ LODOP.ADD_PRINT_TABLE(106,"5%","90%","100%",tableHtml);
+ //标题
+ LODOP.ADD_PRINT_HTM(20,20,"95%",30,headHtml);
+ LODOP.PRINT();
+ }
+}
+
var batchPrintInvoicesConfig = {
headerFooter : [
- // 页眉名称
- {label : "河北省胸科医院", dataIndex : '', fontSize : 9, position : ["2","1%","90%",5]},
- // 标题
- {label : "消毒供应室器械包发放查询单", dataIndex : '', fontSize : 14, position : ["8","35%","99%",5]},
- {label : "申请科室:", dataIndex : 'depart', fontSize : 9, position : ["30","2%","90%",5]},
- {label : "仓库:消毒供应中心", dataIndex : '', fontSize : 9, position : ["50","70%","90%",5]},
- //{label : "制单人:", dataIndex : 'printUser', fontSize : 9, position : ["55","35%","90%",5]},
- {label : "发放日期:", dataIndex : 'printTime', fontSize : 9, position : ["50","35%","90%",5]},
- {label : "备注:", dataIndex : 'remark', fontSize : 9, position : ["50","2%","90%",5]},
- {label : "制单人:", dataIndex : 'printUser', fontSize : 10, position : ["5.5cm","5%","90%",5]},
- {label : "配发人:", dataIndex : '', fontSize : 10, position : ["5.5cm","25%","90%",5]},
- {label : "领用人:", dataIndex : '', fontSize : 10, position : ["5.5cm","60%","90%",5]},
- {barcodes : [
- {codeType : "128Auto", dataIndex : 'departBarcode', position : ["3mm","70%","40mm","8mm"],
- styles : [{itemNameID: 0, styleName: 'ShowBarText', styleValue: true},
- {itemNameID: 0, styleName: 'FontSize', styleValue: 6},
- {itemNameID: 0, styleName: 'NotOnlyHighPrecision', styleValue: true}
- ]
- }
- ]}
- ],
- currentPageNumber : {label : "第#页", fontSize : 9, position : ["6cm","70%","90%",5]},
- totalPageAmount : {label : "共&页", fontSize : 9, position : ["6cm","75%","90%",5]},
- goodsTable :{
- rowHeight : 22,
- position : ["70","1%","97%","5.5cm"],
- headRepeat : true,
- columns : [
- {header : "序号", dataIndex : 'serialNumber', width : '10%', align : 'center', fontSize : 9},
- {header : "名称", dataIndex : 'name', width : '30%', align : 'left', fontSize : 9},
- {header : "有效期", dataIndex : '', width : '10%', align : 'center', fontSize : 9},
- //{header : "包装规格", dataIndex : 'packageSpec', width : '15%', align : 'center', fontSize : 9},
- {header : "发放数量", dataIndex : 'amount', width : '10%', align : 'center', fontSize : 9},
- {header : "单位", dataIndex : 'unit', width : '5%', align : 'right', fontSize : 9},
-// {header : "批次/灭菌日期", dataIndex : 'batchNumber', width : 105, align : 'center', fontSize : 9},
-// {header : "失效日期", dataIndex : 'expireDate', width : 85, align : 'center', fontSize : 9},
- {header : "单价", dataIndex : 'price', width : '10%', align : 'right', fontSize : 9},
- {header : "金额", dataIndex : 'totalPrice', width : '10%', align : 'right', fontSize : 9}
- ]
- }
+ // 页眉名称
+ //{label : "河北省胸科医院", dataIndex : '', fontSize : 10, position : ["2","1%","90%",5]},
+ // 标题
+ {label : "河北省胸科医院消毒供应室器械包发放查询单", dataIndex : '', fontSize : 20, position : ["5","10%","99%",5]},
+ {label : "申请科室:", dataIndex : 'depart', fontSize : 11, position : ["50","2%","90%",5]},
+ //{label : "出库:消毒供应室", dataIndex : '', fontSize : 11, position : ["50","75%","90%",5]},
+ //{label : "制单人:", dataIndex : 'printUser', fontSize : 9, position : ["55","35%","90%",5]},
+ {label : "打印日期:", dataIndex : 'printTime', fontSize : 11, position : ["50","35%","90%",5]},
+ //{label : "备注:", dataIndex : 'remark', fontSize : 9, position : ["11cm","2%","90%",5]},
+ {label : "发货人:", dataIndex : 'sender', fontSize : 11, position : ["11.5cm","5%","90%",5]},
+ {label : "下送人:", dataIndex : 'personInCharge', fontSize : 11, position : ["11.5cm","25%","90%",5]},
+ {label : "签收人:", dataIndex : '', fontSize : 11, position : ["11.5cm","60%","90%",5]},
+ {barcodes : [
+ {codeType : "128Auto", dataIndex : 'departBarcode', position : ["9mm","75%","40mm","8mm"],
+ styles : [{itemNameID: 0, styleName: 'ShowBarText', styleValue: true},
+ {itemNameID: 0, styleName: 'FontSize', styleValue: 6},
+ {itemNameID: 0, styleName: 'NotOnlyHighPrecision', styleValue: true}
+ ]
+ }
+ ]}
+ ],
+ currentPageNumber : {label : "第#页", fontSize : 11, position : ["12cm","80%","90%",5]},
+ totalPageAmount : {label : "共&页", fontSize : 11, position : ["12cm","85%","90%",5]},
+ goodsTable :{
+ rowHeight : 25,
+ position : ["70","1%","98%","9cm"],
+ headRepeat : true,
+ columns : [
+ {header : "序号", dataIndex : 'serialNumber', width : "40", align : 'center', fontSize : 11},
+ {header : "名称", dataIndex : 'name', width : "250", align : 'left', fontSize : 11},
+ //{header : "有效期", dataIndex : '', width : '10%', align : 'center', fontSize : 9},
+ //{header : "包装规格", dataIndex : 'packageSpec', width : '15%', align : 'center', fontSize : 9},
+ {header : "发放数量", dataIndex : 'amount', width : '80', align : 'center', fontSize : 11},
+ {header : "炉号", dataIndex : 'sterilizerName', width : '150', align : 'center', fontSize : 11},
+ {header : "炉次", dataIndex : 'frequency', width : '40', align : 'center', fontSize : 11},
+ {header : "灭菌日期", dataIndex : 'batchNumber', width : "85", align : 'center', fontSize : 11},
+ {header : "失效日期", dataIndex : 'expireDate', width : "85", align : 'center', fontSize : 11}
+ //{header : "单价", dataIndex : 'price', width : '10%', align : 'right', fontSize : 9},
+ //{header : "金额", dataIndex : 'totalPrice', width : '10%', align : 'right', fontSize : 9}
+ ]
+ }
}
//
var invoiceComboPrintConfig = {
- headerFooter : [
- // 页眉名称
- {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 : 'serialNumber', fontSize : 11, position : ["55","35%","90%",5]},
- {label : "仓库:消毒供应中心", dataIndex : '', fontSize : 11, position : ["55","75%","90%",5]},
- {label : "制单人:", dataIndex : 'printUser', fontSize : 11, position : ["80","75%","90%",5]},
- //{label : "申请时间:", dataIndex : 'applicationTime', fontSize : 11, position : ["80","35%","90%",5]},
- {label : "备注:", dataIndex : 'remark', fontSize : 11, position : ["80","2%","90%",5]},
- //{label : "主管:", dataIndex : '', fontSize : 11, position : ["415","5%","90%",5]},
- {label : "领用人:", dataIndex : '', fontSize : 11, position : ["415","20%","90%",5]},
- {label : "配发人:", dataIndex : '', fontSize : 11, position : ["415","75%","90%",5]},
- {label : "发货日期:", dataIndex : 'sendTime', fontSize : 11, position : ["445","5%","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}
- ]
- }
- ]}
- ],
- currentPageNumber : {label : "第#页", fontSize : 11, position : ["445","75%","90%",5]},
- totalPageAmount : {label : "共&页", fontSize : 11, position : ["445","81%","90%",5]},
- goodsTable :{
- rowHeight : 25,
- position : ["100","1%","97%","5.5cm"],
- headRepeat : true,
- columns : [
- {header : "名称", dataIndex : 'name', width : 220, align : 'left', fontSize : 11},
- {header : "数量", dataIndex : 'count', width : 40, align : 'right', fontSize : 11},
- {header : "单位", dataIndex : 'unit', width : 40, align : 'center', fontSize : 11},
- //{header : "规格", dataIndex : 'specification', width : 110, align : 'center', fontSize : 11},
- {header : "批次/灭菌日期", dataIndex : 'batchNumber', width : 105, align : 'center', fontSize : 11},
- //{header : "失效日期", dataIndex : 'expireDate', width : 85, align : 'center', fontSize : 11},
- {header : "单价", dataIndex : 'price', width : 60, align : 'right', fontSize : 11},
- {header : "金额", dataIndex : 'totalPrice', width : 75, align : 'right', fontSize : 11}
- ]
- }
+ headerFooter : [
+ // 页眉名称
+ //{label : "河北省胸科医院", dataIndex : '', fontSize : 10, position : ["2","1%","90%",5]},
+ // 标题
+ {label : "河北省胸科医院消毒供应室器械包发放查询单", dataIndex : '', fontSize : 20, position : ["5","10%","99%",5]},
+ {label : "申请科室:", dataIndex : 'depart', fontSize : 11, position : ["50","2%","90%",5]},
+ //{label : "出库:消毒供应室", dataIndex : '', fontSize : 11, position : ["50","75%","90%",5]},
+ //{label : "制单人:", dataIndex : 'printUser', fontSize : 9, position : ["55","35%","90%",5]},
+ {label : "打印日期:", dataIndex : 'printTime', fontSize : 11, position : ["50","35%","90%",5]},
+ //{label : "备注:", dataIndex : 'remark', fontSize : 9, position : ["11cm","2%","90%",5]},
+ {label : "发货人:", dataIndex : 'sender', fontSize : 11, position : ["11.5cm","5%","90%",5]},
+ {label : "下送人:", dataIndex : 'personInCharge', fontSize : 11, position : ["11.5cm","25%","90%",5]},
+ {label : "签收人:", dataIndex : '', fontSize : 11, position : ["11.5cm","60%","90%",5]},
+ {barcodes : [
+ {codeType : "128Auto", dataIndex : 'departBarcode', position : ["9mm","75%","40mm","8mm"],
+ styles : [{itemNameID: 0, styleName: 'ShowBarText', styleValue: true},
+ {itemNameID: 0, styleName: 'FontSize', styleValue: 6},
+ {itemNameID: 0, styleName: 'NotOnlyHighPrecision', styleValue: true}
+ ]
+ }
+ ]}
+ ],
+ currentPageNumber : {label : "第#页", fontSize : 11, position : ["12cm","80%","90%",5]},
+ totalPageAmount : {label : "共&页", fontSize : 11, position : ["12cm","85%","90%",5]},
+ goodsTable :{
+ rowHeight : 25,
+ position : ["70","1%","98%","9cm"],
+ headRepeat : true,
+ columns : [
+ {header : "序号", dataIndex : 'serialNumber', width : "40", align : 'center', fontSize : 11},
+ {header : "名称", dataIndex : 'name', width : "250", align : 'left', fontSize : 11},
+ //{header : "有效期", dataIndex : '', width : '10%', align : 'center', fontSize : 9},
+ //{header : "包装规格", dataIndex : 'packageSpec', width : '15%', align : 'center', fontSize : 9},
+ {header : "发放数量", dataIndex : 'amount', width : '80', align : 'center', fontSize : 11},
+ {header : "炉号", dataIndex : 'sterilizerName', width : '150', align : 'center', fontSize : 11},
+ {header : "炉次", dataIndex : 'frequency', width : '40', align : 'center', fontSize : 11},
+ {header : "灭菌日期", dataIndex : 'batchNumber', width : "85", align : 'center', fontSize : 11},
+ {header : "失效日期", dataIndex : 'expireDate', width : "85", align : 'center', fontSize : 11}
+ //{header : "单价", dataIndex : 'price', width : '10%', align : 'right', fontSize : 9},
+ //{header : "金额", dataIndex : 'totalPrice', width : '10%', align : 'right', fontSize : 9}
+ ]
+ }
}
var applicationPrintConfig = {
@@ -1139,6 +1231,8 @@
return;
}
doGetLodop();
+ // 设置纸张类型为连续纸,纸张宽度为100mm,打印完毕后的下边距为20mm
+ LODOP.SET_PRINT_PAGESIZE(3,"69mm","20mm","CreateCustomPage");
var ret = buildTousseDefinitionMeterialTable(tousseDefinitionObj,tousseDefinitionObj.unit);
var barcode = tousseDefinitionObj.barcode?tousseDefinitionObj.barcode:'';
var tableHtml = ret.tableHtml + "";
@@ -1168,7 +1262,7 @@
//批量打印发货单(器械包),如果没有配置,则跟batchPrintInvoices一样
batchPrintInvoice_Tousse:batchPrintInvoicesConfig,
//批量打印发货单(一次性物品),如果没有配置,则跟batchPrintInvoices一样
- batchPrintInvoice_disposable:invoiceComboPrintConfig,
+ batchPrintInvoice_disposable:batchPrintInvoicesConfig,
//批量打印发货单(消毒物品),如果没有配置,则跟batchPrintInvoices一样
batchPrintInvoice_disinfect:batchPrintInvoicesConfig,
// 发货单(通用发货单)
@@ -1225,6 +1319,6 @@
//打印器械包明细单
tousseDefinitionMaterials:tousseDefinitionMaterialsConfig_qifuyy,
//待回收申请单,是否打印回收汇总单
- recyclingInvoiceTotal:recyclingInvoiceTotalConfig_bjdxzlyy
+ recyclingInvoiceTotal:recyclingInvoiceTotalConfig_fsszyy
};
\ No newline at end of file