Index: ssts-web/src/main/resources/config/sfypyfy/mybatis/FindPatientInfoByHospitalNumMapper.xml
===================================================================
diff -u
--- ssts-web/src/main/resources/config/sfypyfy/mybatis/FindPatientInfoByHospitalNumMapper.xml (revision 0)
+++ ssts-web/src/main/resources/config/sfypyfy/mybatis/FindPatientInfoByHospitalNumMapper.xml (revision 17570)
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: ssts-web/src/main/resources/spring/projects/sfypyfy/applicationContext-his.xml
===================================================================
diff -u
--- ssts-web/src/main/resources/spring/projects/sfypyfy/applicationContext-his.xml (revision 0)
+++ ssts-web/src/main/resources/spring/projects/sfypyfy/applicationContext-his.xml (revision 17570)
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PROPAGATION_REQUIRED,-Exception
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: ssts-web/src/main/webapp/disinfectsystem/config/sfypyfy/print/printConfig.js
===================================================================
diff -u
--- ssts-web/src/main/webapp/disinfectsystem/config/sfypyfy/print/printConfig.js (revision 0)
+++ ssts-web/src/main/webapp/disinfectsystem/config/sfypyfy/print/printConfig.js (revision 17570)
@@ -0,0 +1,1604 @@
+var appropriationInListConfig = {
+ headerFooter : [
+ // 页眉名称
+ {label : "省妇幼番禺分院调拨入库单", dataIndex : '', fontSize : 15, position : ["0.3cm","37%","99%",5]},
+ {label : "调拨日期:", dataIndex : 'date', fontSize : 9, position : ["1cm","38%","99%",5]},
+ {label : "仓库:", dataIndex : 'warehouse', fontSize : 9, position : ["1cm","2%","90%",5]}
+ ],
+ //currentPageNumber : {label : "第#页", fontSize : 9, position : ["1cm","40%","90%",5]},
+ //totalPageAmount : {label : "共&页", fontSize : 9, position : ["1cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 20,
+ //position : ["50","1%","96%","6.0cm"],
+ fontSize:10,
+ position : ["1.5cm","0.2cm","99%","29cm"],
+ headRepeat : true,
+ columns : [
+ {header : "单号", dataIndex : 'serialNumber', width : 60, align : 'center'},
+ {header : "操作员", dataIndex : 'operator', width : 60, align : 'center'},
+ {header : "出库仓库", dataIndex : 'warehouseName', width : 60, align : 'center'},
+ //{header : "入库仓库", dataIndex : 'targetWareHouseName', width : 60, align : 'center'},
+ {header : "操作时间", dataIndex : 'time', width : 110, align : 'center'},
+ {header : "金额", dataIndex : 'totalPrice', width : 75, align : 'center'},
+ {header : "供应商", dataIndex : 'supplierName', width : 225, align : 'center'},
+ {header : "备注", dataIndex : 'remark', width : 100, align : 'center'}
+ ]
+ }
+};
+var borrowRecordConfig = {
+ headerFooter : [
+
+ // 页眉名称
+ {label : "省妇幼番禺分院借还记录", dataIndex : '', fontSize : 15, position : ["0.3cm","37%","99%",5]},
+ {label : "借出科室:", dataIndex : 'rentalDepartName', fontSize : 9, position : ["1cm","5%","90%",5]},
+ {label : "出借人:", dataIndex : 'lender', fontSize : 9, position : ["1cm","45%","90%",5]},
+ {label : "出借时间:", dataIndex : 'lendingTime', fontSize : 9, position : ["1cm","75%","90%",5]},
+ {label : "借用科室:", dataIndex : 'departName', fontSize : 9, position : ["1.5cm","5%","99%",5]}
+
+
+ //{label : "接收者:", dataIndex : 'receiver', fontSize : 9, position : ["1.5cm","33%","90%",5]},
+ //{label : "接收时间:", dataIndex : 'receivingTime', fontSize : 9, position : ["1.5cm","65%","90%",5]}
+ ],
+ //currentPageNumber : {label : "第#页", fontSize : 9, position : ["1cm","40%","90%",5]},
+ //totalPageAmount : {label : "共&页", fontSize : 9, position : ["1cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 20,
+ //position : ["50","1%","96%","6.0cm"],
+ fontSize:10,
+ position : ["2cm","0.2cm","99%","29cm"],
+ headRepeat : true,
+ columns : [
+ {header : "名称", dataIndex : 'tousseName', width : 400, align : 'center'},
+ {header : "数量", dataIndex : 'amount', width : 350, align : 'center'}
+ ]
+ }
+}
+var appropriationOutListConfig = {
+ headerFooter : [
+ // 页眉名称
+ {label : "省妇幼番禺分院调拨出库单", dataIndex : '', fontSize : 15, position : ["0.3cm","37%","99%",5]},
+ {label : "调拨日期:", dataIndex : 'date', fontSize : 9, position : ["1cm","38%","99%",5]},
+ {label : "仓库:", dataIndex : 'warehouse', fontSize : 9, position : ["1cm","2%","90%",5]}
+ ],
+ //currentPageNumber : {label : "第#页", fontSize : 9, position : ["1cm","40%","90%",5]},
+ //totalPageAmount : {label : "共&页", fontSize : 9, position : ["1cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 20,
+ //position : ["50","1%","96%","6.0cm"],
+ fontSize:10,
+ position : ["1.5cm","0.2cm","99%","29cm"],
+ headRepeat : true,
+ columns : [
+ {header : "单号", dataIndex : 'serialNumber', width : 60, align : 'center'},
+ {header : "操作员", dataIndex : 'operator', width : 60, align : 'center'},
+ //{header : "出库仓库", dataIndex : 'warehouseName', width : 60, align : 'center'},
+ {header : "入库仓库", dataIndex : 'targetWareHouseName', width : 60, align : 'center'},
+ {header : "操作时间", dataIndex : 'time', width : 110, align : 'center'},
+ {header : "金额", dataIndex : 'totalPrice', width : 75, align : 'center'},
+ {header : "供应商", dataIndex : 'supplierName', width : 225, align : 'center'},
+ {header : "备注", dataIndex : 'remark', width : 100, align : 'center'}
+ ]
+ }
+};
+var appropriationListConfig = {
+ headerFooter : [
+ // 页眉名称
+ {label : "省妇幼番禺分院调拨单查询", dataIndex : 'depart', fontSize : 15, position : ["0.3cm","30%","99%",5]},
+ {label : "调拨日期:", dataIndex : 'date', fontSize : 9, position : ["1cm","38%","99%",5]}
+ //{label : "科室:", dataIndex : 'depart', fontSize : 9, position : ["30","2%","90%",5]}
+ ],
+ //currentPageNumber : {label : "第#页", fontSize : 9, position : ["1cm","40%","90%",5]},
+ //totalPageAmount : {label : "共&页", fontSize : 9, position : ["1cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 20,
+ //position : ["50","1%","96%","6.0cm"],
+ fontSize:10,
+ position : ["1.5cm","0.2cm","99%","29cm"],
+ headRepeat : true,
+ columns : [
+ {header : "单号", dataIndex : 'serialNumber', width : 60, align : 'center'},
+ {header : "操作员", dataIndex : 'operator', width : 60, align : 'center'},
+ {header : "出库仓库", dataIndex : 'warehouseName', width : 60, align : 'center'},
+ {header : "入库仓库", dataIndex : 'targetWareHouseName', width : 60, align : 'center'},
+ {header : "操作时间", dataIndex : 'time', width : 110, align : 'center'},
+ {header : "金额", dataIndex : 'totalPrice', width : 75, align : 'center'},
+ {header : "供应商", dataIndex : 'supplierName', width : 225, align : 'center'},
+ {header : "备注", dataIndex : 'remark', width : 100, align : 'center'}
+ ]
+ }
+}
+var godownEntryOutListConfig = {
+ headerFooter : [
+ // 页眉名称
+ {label : "省妇幼番禺分院退库单查询", dataIndex : 'depart', fontSize : 15, position : ["0.3cm","30%","99%",5]},
+ {label : "退库日期:", dataIndex : 'date', fontSize : 9, position : ["1cm","38%","99%",5]}
+ //{label : "科室:", dataIndex : 'depart', fontSize : 9, position : ["30","2%","90%",5]}
+ ],
+ //currentPageNumber : {label : "第#页", fontSize : 9, position : ["1cm","40%","90%",5]},
+ //totalPageAmount : {label : "共&页", fontSize : 9, position : ["1cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 20,
+ //position : ["50","1%","96%","6.0cm"],
+ fontSize:10,
+ position : ["1.5cm","0.2cm","99%","29cm"],
+ headRepeat : true,
+ columns : [
+ {header : "单号", dataIndex : 'serialNumber', width : 60, align : 'center'},
+ {header : "操作员", dataIndex : 'operator', width : 60, align : 'center'},
+ {header : "退库时间", dataIndex : 'time', width : 110, align : 'center'},
+ {header : "金额", dataIndex : 'totalPrice', width : 75, align : 'center'},
+ {header : "供应商", dataIndex : 'supplierName', width : 285, align : 'center'},
+ {header : "备注", dataIndex : 'remark', width : 160, align : 'center'}
+ ]
+ }
+}
+var godownStockTakeListConfig = {
+ headerFooter : [
+ // 页眉名称
+ {label : "省妇幼番禺分院盘盈盘亏单查询", dataIndex : 'depart', fontSize : 15, position : ["0.3cm","30%","99%",5]},
+ {label : "日期:", dataIndex : 'date', fontSize : 9, position : ["1cm","38%","99%",5]}
+ //{label : "科室:", dataIndex : 'depart', fontSize : 9, position : ["30","2%","90%",5]}
+ ],
+ //currentPageNumber : {label : "第#页", fontSize : 9, position : ["1cm","40%","90%",5]},
+ //totalPageAmount : {label : "共&页", fontSize : 9, position : ["1cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 20,
+ //position : ["50","1%","96%","6.0cm"],
+ fontSize:10,
+ position : ["1.5cm","0.2cm","99%","29cm"],
+ headRepeat : true,
+ columns : [
+ {header : "单号", dataIndex : 'serialNumber', width : 60, align : 'center'},
+ {header : "操作员", dataIndex : 'operator', width : 60, align : 'center'},
+ {header : "仓库", dataIndex : 'warehouseName', width : 285, align : 'center'},
+ {header : "类型", dataIndex : 'subType', width : 160, align : 'center'},
+ {header : "时间", dataIndex : 'time', width : 110, align : 'center'},
+ {header : "金额", dataIndex : 'totalPrice', width : 75, align : 'center'}
+ ]
+ }
+}
+var godownEntryListPrintConfig = {
+ headerFooter : [
+ // 页眉名称
+ {label : "省妇幼番禺分院入库单查询", dataIndex : 'depart', fontSize : 15, position : ["0.3cm","30%","99%",5]},
+ {label : "入库日期:", dataIndex : 'date', fontSize : 9, position : ["1cm","38%","99%",5]}
+ //{label : "科室:", dataIndex : 'depart', fontSize : 9, position : ["30","2%","90%",5]}
+ ],
+ //currentPageNumber : {label : "第#页", fontSize : 9, position : ["1cm","40%","90%",5]},
+ //totalPageAmount : {label : "共&页", fontSize : 9, position : ["1cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 20,
+ //position : ["50","1%","96%","6.0cm"],
+ fontSize:10,
+ position : ["1.5cm","0.2cm","99%","29cm"],
+ headRepeat : true,
+ columns : [
+ {header : "单号", dataIndex : 'serialNumber', width : 60, align : 'center'},
+ {header : "操作员", dataIndex : 'operator', width : 60, align : 'center'},
+ {header : "入库时间", dataIndex : 'time', width : 110, align : 'center'},
+ {header : "金额", dataIndex : 'totalPrice', width : 75, align : 'center'},
+ {header : "供应商", dataIndex : 'supplierName', width : 285, align : 'center'},
+ {header : "备注", dataIndex : 'remark', width : 160, align : 'center'}
+ ]
+ }
+}
+
+var invoicePlanPrintConfig = {
+ isPrintTousse : true,
+ isPrintDisinfectGoods : true,
+ isPrintDisposableGoods : true, // 打印申请单是否打印一次性物品
+ isMergePrintTousseAndDisposable : true, // 器械包和一次性物品是否合并打印
+ printByOriginalApplications : true, //不合并打印情况下是否按原始单据逐份打印
+ printApplyInfo : false,
+ printOrder : 1, // 1:优先打印一次性物品, 2:优先打印器械包
+
+ // 在器械包和一次性物品不合并打印的情况下,消毒物品打印方式:
+ // 1:优先与一次性物品合并打印,如果无一次性物品则与器械包合并打印, 2:优先与器械包一起合并打印,如果没有器械包则与一次性物品合并打印 ,3:单独打印
+ disinfectGoodsPrintMode : 1,
+ rowsPerPage : 10,
+ headerContent : [
+ // 标题
+ {label : "省妇幼番禺分院器械仓库领用出库单", dataIndex : 'header', fontSize : 17, position : ["15","1%","99%",5],type: 'html', beforeStr: "
"},
+ {label : "接收科室:", dataIndex : 'depart', fontSize : 10, position : ["55","5%","90%",5]},
+ {label : "单号:", dataIndex : 'serialNum', fontSize : 10, position : ["55","25%","90%",5]},
+ {label : "日期:", dataIndex : 'printTime', fontSize : 10, position : ["55","41%","90%",5]},
+ {label : "备注:", dataIndex : 'remark', fontSize : 10, position : ["55","65%","90%",5]}
+ ],
+ goodsTable :{
+ rowHeight : 9.4,
+ position : ["75","1%","95%","2000"],
+ content : [
+ {header : "序号", dataIndex : 'serialNumber', width : 60, align : 'center', fontSize : 11},
+ {header : "名称", dataIndex : 'goodsName', width : 340, align : 'left', fontSize : 11},
+ {header : "数量", dataIndex : 'goodsAmount', width : 60, align : 'right', fontSize : 11},
+ {header : "规格", dataIndex : 'sp', width : 180, align : 'center', fontSize : 11},
+ {header : "单位", dataIndex : 'unit', width : 50, align : 'center', fontSize : 11},
+ {header : "单价", dataIndex : 'price', width : 50, align : 'right', fontSize : 11},
+ {header : "金额", dataIndex : 'rowPrice', width : 70, align : 'right', fontSize : 11}
+ ]
+ },
+ footer: {
+ fontSize : 14,
+ content : [
+ {label : "科室接收人: ", dataIndex : ''},
+ {label : "下送人: ", dataIndex : ''},
+ {label : "回收人:", dataIndex : 'recyclingUser'},
+ {label : " 发货人:", dataIndex : 'printUser'}
+ //{label : "提交时间:", dataIndex : 'applicationTime'}
+ ]
+ },
+ barcodes : [
+ {codeType : "128Auto", dataIndex : 'departBarcode', position : ["5","74%","40mm","8mm"],
+ styles : [{itemNameID: 0, styleName: 'ShowBarText', styleValue: true},
+ {itemNameID: 0, styleName: 'FontSize', styleValue: 6},
+ {itemNameID: 0, styleName: 'NotOnlyHighPrecision', styleValue: true}
+ ]
+ }
+ ]
+}
+
+var batchPrintMaterialInvoicesConfig = {
+ headerFooter : [
+ // 页眉名称
+ //{label : "省妇幼番禺分院", dataIndex : '', fontSize : 10, position : ["5","1%","90%",5]},
+ // 标题
+ {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 : '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 : ["30","45%","90%",5]},
+ totalPageAmount : {label : "共&页", fontSize : 11, position : ["30","50%","90%",5]},
+ goodsTable :{
+ rowHeight : 20,
+ position : ["50","1%","99%","6.0cm"],
+ headRepeat : true,
+ columns : [
+ {header : "序号", dataIndex : 'serialNumber', width : '100', align : 'center', fontSize : 11},
+ {header : "编码", dataIndex : 'externalCode', width : '150', align : 'center', fontSize : 11},
+ {header : "名称", dataIndex : 'name', width : '150', 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 : '100', align : 'center', fontSize : 11},
+ {header : "数量", dataIndex : 'amount', width : '100', align : 'center', fontSize : 11}
+ //{header : "有效日期", dataIndex : 'expireDate', width : 85, align : 'center', fontSize : 11},
+ //{header : "批号", dataIndex : 'batchNumber', width : 105, align : 'center', fontSize : 11}
+// {header : "单价", dataIndex : 'price', width : '10%', align : 'right', fontSize : 11},
+// {header : "金额", dataIndex : 'totalPrice', width : '10%', align : 'right', fontSize : 11}
+ ]
+ }
+};
+
+//批量打印发货单配置
+var batchPrintInvoicesConfig = {
+ headerFooter : [
+ // 页眉名称
+ //{label : "", dataIndex : 'unitName', fontSize : 10, position : ["5","1%","90%",5]},
+ // 标题
+ {label : "省妇幼番禺分院 供应室器械仓库领用出库单", dataIndex : '', fontSize : 15, position : ["15","10%","99%",5]},
+ {label : "接收科室:", dataIndex : 'depart', fontSize : 11, position : ["57","2%","90%",5]},
+ {label : "日期:", dataIndex : 'printDate', fontSize : 11, position : ["57","33%","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 : 'printTime', fontSize : 11, position : ["8.4cm","2%","90%",5]},
+ {label : "发货人:", dataIndex : 'sender', fontSize : 11, position : ["8.4cm","33%","90%",5]},
+ {label : "下送人:", dataIndex : '', fontSize : 11, position : ["8.4cm","53%","90%",5]},
+ {label : "领用人:", dataIndex : '', fontSize : 11, position : ["8.4cm","67%","90%",5]},
+ //{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 : ["15","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 : 11, position : ["57","55%","90%",5]},
+ totalPageAmount : {label : "&", fontSize : 11, position : ["57","63%","90%",5]},
+ goodsTable :{
+ rowHeight : 25,
+ position : ["85","0.2cm","20.4cm","5.4cm"],
+ headRepeat : true,
+ fontSize:11,
+ style:'"border-left:0px;border-right:0px;border-top:#000000 1px solid;border-bottom:#000000 1px solid;"',
+ columns : [
+ {header : "序号", dataIndex : 'serialNumber', width : '30', align : 'center', fontSize : 11},
+ {header : "名称", dataIndex : 'name', width : '280', align : 'center', fontSize : 11},
+ //{header : "规格", dataIndex : 'specification', width : '9%', align : 'center', fontSize : 11},
+ //{header : "包装规格", dataIndex : 'packageSpec', width : '9%', align : 'center', fontSize : 11},
+ {header : "单位", dataIndex : 'unit', width : '70', align : 'center', fontSize : 11},
+ {header : "数量", dataIndex : 'amount', width : '70', align : 'center', fontSize : 11},
+ {header : "灭菌日期", dataIndex : 'batchNumber', width : '70', align : 'center', fontSize : 11},
+ {header : "失效日期", dataIndex : 'expireDate', width : '70', align : 'center', fontSize : 11},
+ {header : "单价", dataIndex : 'price', width : '70', align : 'center', fontSize : 11},
+ {header : "金额", dataIndex : 'totalPrice', width : '70', align : 'center', fontSize : 11}
+ //{header : "生产厂家", dataIndex : 'manufacturer', width : '17%', align : 'center', fontSize : 11}
+ ]
+ }
+}
+var batchPrintInvoicesConfig_disposable = {
+ headerFooter : [
+ // 页眉名称
+ //{label : "", dataIndex : 'unitName', fontSize : 10, position : ["5","1%","90%",5]},
+ // 标题
+ {label : "省妇幼番禺分院 供应室器械仓库领用出库单", dataIndex : '', fontSize : 15, position : ["15","10%","99%",5]},
+ {label : "接收科室:", dataIndex : 'depart', fontSize : 11, position : ["57","2%","90%",5]},
+ {label : "日期:", dataIndex : 'printDate', fontSize : 11, position : ["57","33%","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 : 'printTime', fontSize : 11, position : ["8.4cm","5%","90%",5]},
+ {label : "发货人:", dataIndex : 'sender', fontSize : 11, position : ["8.4cm","35%","90%",5]},
+ {label : "下送人:", dataIndex : '', fontSize : 11, position : ["8.4cm","50%","90%",5]},
+ {label : "领用人:", dataIndex : '', fontSize : 11, position : ["8.4cm","65%","90%",5]},
+ //{label : "复核人:", dataIndex : '', fontSize : 11, position : ["11cm","5%","90%",5]},
+ {label : "审核人:", dataIndex : '', fontSize : 11, position : ["8.4cm","80%","90%",5]},
+ {barcodes : [
+ {codeType : "128Auto", dataIndex : 'departBarcode', position : ["15","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 : 11, position : ["57","55%","90%",5]},
+ totalPageAmount : {label : "&", fontSize : 11, position : ["57","63%","90%",5]},
+ goodsTable :{
+ rowHeight : 25,
+ position : ["85","0.2cm","20.4cm","5.4cm"],
+ headRepeat : true,
+ fontSize:11,
+ style:'"border-left:0px;border-right:0px;border-top:#000000 1px solid;border-bottom:#000000 1px solid;"',
+ columns : [
+ {header : "序号", dataIndex : 'serialNumber', width : '5%', align : 'center', fontSize : 11},
+ {header : "名称", dataIndex : 'name', width : 145, align : 'center', fontSize : 11},
+ {header : "规格", dataIndex : 'specification', width : '9%', align : 'center', fontSize : 11},
+ {header : "包装规格", dataIndex : 'packageSpec', width : '9%', align : 'center', fontSize : 11},
+ {header : "单位", dataIndex : 'unit', width : '4%', align : 'center', fontSize : 11},
+ {header : "数量", dataIndex : 'amount', width : '4%', align : 'right', fontSize : 11},
+ {header : "批次", dataIndex : 'batchNumber', width : '10%', align : 'center', fontSize : 11},
+ {header : "失效日期", dataIndex : 'expireDate', width : '8%', align : 'center', fontSize : 11},
+ {header : "单价", dataIndex : 'price', width : '6%', align : 'center', fontSize : 11},
+ {header : "金额", dataIndex : 'totalPrice', width : '9%', align : 'center', fontSize : 11},
+ {header : "生产厂家", dataIndex : 'manufacturer', width : '17%', align : 'center', fontSize : 11}
+ ]
+ }
+}
+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","40%","90%",5]},
+ {label : "发货员:", dataIndex : 'sender', 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%","7cm"],
+ 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}
+ ]
+ }
+}
+
+var applicationPrintConfig = {
+ isPrintTousse : true,
+ isPrintDisinfectGoods : true,
+ isPrintDisposableGoods : true, // 打印申请单是否打印一次性物品
+ isMergePrintTousseAndDiposable : true, // 器械包和一次性物品是否合并打印
+ printApplyInfo : true,
+ // 在器械包和一次性物品不合并打印的情况下,消毒物品打印方式:
+ // 1:优先与一次性物品合并打印,如果无一次性物品则与器械包合并打印, 2:优先与器械包一起合并打印,如果没有器械包则与一次性物品合并打印 ,3:单独打印
+ disinfectGoodsPrintMode : 1,
+ rowsPerPage : 14,
+ headerContent : [
+ // 标题
+ {label : "省妇幼番禺分院部门领货凭证", dataIndex : '', fontSize : 17, position : ["15","35%","99%",5]},
+ {label : "去向:", dataIndex : 'depart', fontSize : 10, position : ["55","5%","90%",5]},
+ {label : "单号:", dataIndex : 'serialNum', fontSize : 10, position : ["55","25%","90%",5]},
+ {label : "日期:", dataIndex : 'printTime', fontSize : 10, position : ["55","41%","90%",5]},
+ {label : "备注:", dataIndex : 'remark', fontSize : 10, position : ["55","65%","90%",5]}
+ ],
+ goodsTable :{
+ rowHeight : 25,
+ position : ["75","2%","97%","2000"],
+ content : [
+ {header : "序号", dataIndex : 'serialNumber', width : 60, align : 'center', fontSize : 11},
+ {header : "名称", dataIndex : 'goodsName', width : 340, align : 'left', fontSize : 11},
+ {header : "数量", dataIndex : 'goodsAmount', width : 60, align : 'right', fontSize : 11},
+ {header : "规格", dataIndex : 'sp', width : 185, align : 'center', fontSize : 11},
+ {header : "单位", dataIndex : 'unit', width : 60, align : 'center', fontSize : 11},
+ {header : "单价", dataIndex : 'price', width : 60, align : 'right', fontSize : 11},
+ {header : "金额", dataIndex : 'rowPrice', width : 75, align : 'right', fontSize : 11}
+ ]
+ },
+ footer: {
+ fontSize : 14,
+ content : [
+ {label : "制单:", dataIndex : 'printUser'},
+ {label : " 申请人:", dataIndex : 'applicant'},
+ {label : " 复核: ", dataIndex : ''},
+ {label : " 验收: ", dataIndex : ''},
+ {label : "提交时间:", dataIndex : 'applicationTime'}
+ ]
+ }
+ }
+
+ var borrowPrintConfig = {
+ isPrintTousse : true,
+ isPrintDisinfectGoods : true,
+ isPrintDisposableGoods : false, // 打印申请单是否打印一次性物品
+ isMergePrintTousseAndDiposable : true, // 器械包和一次性物品是否合并打印
+ printApplyInfo : true,
+ disinfectGoodsPrintMode : 1,
+ rowsPerPage : 14,
+ headerContent : [
+ // 标题
+ {label : "部门领货凭证(借物单)", dataIndex : '', fontSize : 17, position : ["15","35%","99%",5]},
+ {label : "去向:", dataIndex : 'depart', fontSize : 10, position : ["55","5%","90%",5]},
+ {label : "单号:", dataIndex : 'serialNum', fontSize : 10, position : ["55","25%","90%",5]},
+ {label : "日期:", dataIndex : 'printTime', fontSize : 10, position : ["55","41%","90%",5]},
+ {label : "备注:", dataIndex : 'remark', fontSize : 10, position : ["55","65%","90%",5]}
+ ],
+ goodsTable :{
+ rowHeight : 25,
+ position : ["75","2%","97%","2000"],
+ content : [
+ {header : "序号", dataIndex : 'serialNumber', width : 60, align : 'center', fontSize : 11},
+ {header : "名称", dataIndex : 'goodsName', width : 340, align : 'left', fontSize : 11},
+ {header : "数量", dataIndex : 'goodsAmount', width : 60, align : 'right', fontSize : 11},
+ {header : "规格", dataIndex : 'sp', width : 185, align : 'center', fontSize : 11},
+ {header : "单位", dataIndex : 'unit', width : 60, align : 'center', fontSize : 11},
+ {header : "单价", dataIndex : 'price', width : 60, align : 'right', fontSize : 11},
+ {header : "金额", dataIndex : 'rowPrice', width : 75, align : 'right', fontSize : 11}
+ ]
+ },
+ footer: {
+ fontSize : 14,
+ content : [
+ {label : "制单:", dataIndex : 'printUser'},
+ {label : " 申请人:", dataIndex : 'applicant'},
+ {label : " 复核: ", dataIndex : ''},
+ {label : " 验收: ", dataIndex : ''},
+ {label : "提交时间:", dataIndex : 'applicationTime'}
+ ]
+ }
+
+ }
+var appropriationConfig = {
+ headerFooter : [
+ // 标题
+ {label : "省妇幼番禺分院卫生材料调拨单", dataIndex : '', fontSize : 15, position : ["0.2cm","28%","99%",5]},
+ {label : "调拨类型:手工调拨", dataIndex : '', fontSize : 9, position : ["1cm","2%","90%",5]},
+ {label : "供应商:", dataIndex : 'supplierName', fontSize : 9, position : ["1.5cm","2%","90%",5]},
+ {label : "出库仓库:", dataIndex : 'warehouseName', fontSize : 9, position : ["1cm","40%","90%",5]},
+ {label : "入库仓库:", dataIndex : 'targetWarehouseName', fontSize : 9, position : ["1cm","75%","90%",5]},
+ {label : "操作日期:", dataIndex : 'godownEntryTime', fontSize : 9, position : ["1.5cm","53%","90%",5]},
+ {label : "调拨单号:", dataIndex : 'serialNumber', fontSize : 9, position : ["1.5cm","75%","90%",5]},
+
+
+ {label : "小计: ", dataIndex : 'totalPrice', fontSize : 9, position : ["7.5cm","2%","90%",4]},
+ {label : "制单日期:", dataIndex : 'printTime', fontSize : 9, position : ["8cm","2%","90%",4]},
+ {label : "制单人:", dataIndex : 'printUser', fontSize : 9, position : ["8cm","25%","90%",4]},
+ //{label : "验收:", dataIndex : '', fontSize : 9, position : ["8cm","38%","90%",4]},
+ //{label : "采购:", dataIndex : '', fontSize : 9, position : ["8cm","51%","90%",4]},
+ {label : "复核人:", dataIndex : 'printUser', fontSize : 9, position : ["8cm","64%","90%",4]},
+ {label : "总合计: ", dataIndex : 'totalPrice', fontSize : 9, position : ["8cm","77%","99%",4]}
+ ],
+ currentPageNumber : {label : "第#页", fontSize : 9, position : ["1.5cm","40%","90%",5]},
+ totalPageAmount : {label : "共&页", fontSize : 9, position : ["1.5cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 22,
+ fontSize:10,
+ position : ["2cm","0.2cm","100%","5.5cm"],
+ headRepeat : true,
+ columns : [
+ {header : "编码", dataIndex : 'code', width : '35', align : 'center'},
+ {header : "名称", dataIndex : 'name', width : '170', align : 'left'},
+ {header : "规格", dataIndex : 'specification', width : '100', align : 'center'},
+ {header : "单位", dataIndex : 'unit', width : '30', align : 'center'},
+ {header : "数量", dataIndex : 'amount', width : '30', align : 'center'},
+ {header : "进价", dataIndex : 'price', width : '40', align : 'right'},
+ {header : "进价金额", dataIndex : 'totalPrice', width : '50', align : 'right'},
+ {header : "批号", dataIndex : 'batchNumber', width : '60', align : 'right'},
+ {header : "产地", dataIndex : 'producingArea', width : '50', align : 'right'},
+ {header : "注册证号", dataIndex : 'certification', width : '180', align : 'left'}
+ ]
+ }
+}
+
+var godownOutEntryConfig = {
+ headerFooter : [
+ // 标题
+ {label : "省妇幼番禺分院卫生材料退库单", dataIndex : '', fontSize : 15, position : ["0.2cm","28%","99%",5]},
+ {label : "退库类型:手工退库", dataIndex : '', fontSize : 9, position : ["0.5cm","2%","90%",5]},
+ {label : "供应商:", dataIndex : 'supplierName', fontSize : 9, position : ["1cm","2%","90%",5]},
+ {label : "退库日期:", dataIndex : 'godownEntryTime', fontSize : 9, position : ["1cm","53%","90%",5]},
+ {label : "退库单号:", dataIndex : 'serialNumber', fontSize : 9, position : ["1cm","75%","90%",5]},
+
+ {label : "小计: ", dataIndex : 'totalPrice', fontSize : 9, position : ["7.5cm","2%","90%",4]},
+ {label : "制单日期:", dataIndex : 'printTime', fontSize : 9, position : ["8cm","2%","90%",4]},
+ {label : "制单人:", dataIndex : 'printUser', fontSize : 9, position : ["8cm","25%","90%",4]},
+ //{label : "验收:", dataIndex : '', fontSize : 9, position : ["8cm","38%","90%",4]},
+ //{label : "采购:", dataIndex : '', fontSize : 9, position : ["8cm","51%","90%",4]},
+ {label : "复核人:", dataIndex : 'printUser', fontSize : 9, position : ["8cm","64%","90%",4]},
+ {label : "总合计: ", dataIndex : 'totalPrice', fontSize : 9, position : ["8cm","77%","99%",4]}
+ ],
+ currentPageNumber : {label : "第#页", fontSize : 9, position : ["1cm","40%","90%",5]},
+ totalPageAmount : {label : "共&页", fontSize : 9, position : ["1cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 22,
+ fontSize:10,
+ position : ["1.5cm","0.2cm","100%","5.5cm"],
+ headRepeat : true,
+ columns : [
+ {header : "编码", dataIndex : 'code', width : '35', align : 'center'},
+ {header : "名称", dataIndex : 'name', width : '170', align : 'left'},
+ {header : "规格", dataIndex : 'specification', width : '100', align : 'center'},
+ {header : "单位", dataIndex : 'unit', width : '30', align : 'center'},
+ {header : "数量", dataIndex : 'amount', width : '30', align : 'center'},
+ {header : "进价", dataIndex : 'price', width : '40', align : 'right'},
+ {header : "进价金额", dataIndex : 'totalPrice', width : '50', align : 'right'},
+ {header : "批号", dataIndex : 'batchNumber', width : '60', align : 'right'},
+ {header : "产地", dataIndex : 'producingArea', width : '50', align : 'right'},
+ {header : "注册证号", dataIndex : 'certification', width : '180', align : 'left'}
+ ]
+ }
+}
+var materialEntryConfig = {
+ headerFooter : [
+ // 标题
+ {label : "省妇幼番禺分院卫生材料入库单", dataIndex : '', fontSize : 15, position : ["0.2cm","28%","99%",5]},
+ {label : "入库类型:购入入库", dataIndex : '', fontSize : 9, position : ["0.5cm","2%","90%",5]},
+ {label : "供应商:", dataIndex : 'supplierName', fontSize : 9, position : ["1cm","2%","90%",5]},
+ {label : "入库日期:", dataIndex : 'godownEntryTime', fontSize : 9, position : ["1cm","53%","90%",5]},
+ {label : "入库单号:", dataIndex : 'serialNumber', fontSize : 9, position : ["1cm","75%","90%",5]},
+
+ {label : "小计: ", dataIndex : 'totalPrice', fontSize : 9, position : ["7.5cm","2%","90%",4]},
+ {label : "制单日期:", dataIndex : 'printTime', fontSize : 9, position : ["8cm","2%","90%",4]},
+ {label : "制单人:", dataIndex : 'printUser', fontSize : 9, position : ["8cm","25%","90%",4]},
+ {label : "验收:", dataIndex : '', fontSize : 9, position : ["8cm","38%","90%",4]},
+ {label : "采购:", dataIndex : '', fontSize : 9, position : ["8cm","51%","90%",4]},
+ {label : "复核人:", dataIndex : 'printUser', fontSize : 9, position : ["8cm","64%","90%",4]},
+ {label : "总合计: ", dataIndex : 'totalPrice', fontSize : 9, position : ["8cm","77%","99%",4]}
+ ],
+ currentPageNumber : {label : "第#页", fontSize : 9, position : ["1cm","40%","90%",5]},
+ totalPageAmount : {label : "共&页", fontSize : 9, position : ["1cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 22,
+ fontSize:10,
+ position : ["1.5cm","0.2cm","100%","5.5cm"],
+ headRepeat : true,
+ columns : [
+ {header : "编码", dataIndex : 'code', width : '55', align : 'center'},
+ {header : "名称", dataIndex : 'name', width : '220', align : 'center'},
+ {header : "规格", dataIndex : 'specification', width : '100', align : 'center'},
+ {header : "单位", dataIndex : 'unit', width : '30', align : 'center'},
+ {header : "数量", dataIndex : 'amount', width : '30', align : 'center'},
+ {header : "进价", dataIndex : 'price', width : '40', align : 'right'},
+ {header : "进价金额", dataIndex : 'totalPrice', width : '50', align : 'right'},
+ //{header : "批号", dataIndex : 'batchNumber', width : '60', align : 'right'},
+ //{header : "产地", dataIndex : 'producingArea', width : '50', align : 'right'},
+ {header : "注册证号", dataIndex : 'certification', width : '220', align : 'center'}
+ ]
+ }
+}
+// 一次性物品盘盈盘亏单
+var godownStockTakeConfig = {
+ headerFooter : [
+ // 标题
+ {label : "省妇幼番禺分院卫生材料盘盈盘亏单", dataIndex : '', fontSize : 15, position : ["0.2cm","28%","99%",5]},
+ {label : "入库类型:", dataIndex : 'subType', fontSize : 9, position : ["0.5cm","2%","90%",5]},
+ {label : "供应商:", dataIndex : 'supplierName', fontSize : 9, position : ["1cm","2%","90%",5]},
+ {label : "日期:", dataIndex : 'godownEntryTime', fontSize : 9, position : ["1cm","53%","90%",5]},
+ {label : "单号:", dataIndex : 'serialNumber', fontSize : 9, position : ["1cm","75%","90%",5]},
+
+ {label : "小计: ", dataIndex : 'totalPrice', fontSize : 9, position : ["7.5cm","2%","90%",4]},
+// {label : "", dataIndex : 'totalPrice', fontSize : 11, position : ["8cm","60%","90%",4]},
+ {label : "制单日期:", dataIndex : 'printTime', fontSize : 9, position : ["8cm","2%","90%",4]},
+ {label : "制单人:", dataIndex : 'printUser', fontSize : 9, position : ["8cm","25%","90%",4]},
+ {label : "验收:", dataIndex : '', fontSize : 9, position : ["8cm","38%","90%",4]},
+ {label : "采购:", dataIndex : '', fontSize : 9, position : ["8cm","51%","90%",4]},
+ {label : "复核人:", dataIndex : 'printUser', fontSize : 9, position : ["8cm","64%","90%",4]},
+ {label : "总合计: ", dataIndex : 'totalPrice', fontSize : 9, position : ["8cm","77%","99%",4]}
+// {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}
+// ]
+// }
+// ]}
+ ],
+ currentPageNumber : {label : "第#页", fontSize : 9, position : ["1cm","40%","90%",5]},
+ totalPageAmount : {label : "共&页", fontSize : 9, position : ["1cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 22,
+ fontSize:10,
+ position : ["1.5cm","0.2cm","100%","5.5cm"],
+ headRepeat : true,
+ columns : [
+ //{header : "序号", dataIndex : 'serialNumber', width : '30', align : 'center'},
+ //{header : "编码", dataIndex : 'code', width : '35', align : 'center'},
+ {header : "名称", dataIndex : 'name', width : '270', align : 'center'},
+ //{header : "规格", dataIndex : 'specification', width : '100', align : 'center'},
+ //{header : "单位", dataIndex : 'unit', width : '30', align : 'center'},
+ {header : "数量", dataIndex : 'amount', width : '130', align : 'center'},
+ {header : "批次", dataIndex : 'batchNumber', width : '160', align : 'center'},
+ {header : "单价", dataIndex : 'price', width : '100', align : 'right'},
+ {header : "小计", dataIndex : 'totalPrice', width : '100', align : 'right'}
+
+ //{header : "产地", dataIndex : 'producingArea', width : '50', align : 'right'},
+ //{header : "注册证号", dataIndex : 'certification', width : '180', align : 'left'}
+
+// {header : "批次", dataIndex : 'batchNumber', width : 105, align : 'center', fontSize : 11},
+// {header : "失效日期", dataIndex : 'expireDate', width : 85, align : 'center', fontSize : 11},
+
+ ]
+ }
+}
+// 一次性物品入库单
+var godownEntryConfig = {
+ headerFooter : [
+ // 标题
+ {label : "省妇幼番禺分院卫生材料入库单", dataIndex : '', fontSize : 15, position : ["0.2cm","28%","99%",5]},
+ {label : "入库类型:购入入库", dataIndex : '', fontSize : 9, position : ["0.5cm","2%","90%",5]},
+ {label : "供应商:", dataIndex : 'supplierName', fontSize : 9, position : ["1cm","2%","90%",5]},
+ {label : "入库日期:", dataIndex : 'godownEntryTime', fontSize : 9, position : ["1cm","53%","90%",5]},
+ {label : "入库单号:", dataIndex : 'serialNumber', fontSize : 9, position : ["1cm","75%","90%",5]},
+
+ {label : "小计: ", dataIndex : 'totalPrice', fontSize : 9, position : ["7.5cm","2%","90%",4]},
+// {label : "", dataIndex : 'totalPrice', fontSize : 11, position : ["8cm","60%","90%",4]},
+ {label : "制单日期:", dataIndex : 'printTime', fontSize : 9, position : ["8cm","2%","90%",4]},
+ {label : "制单人:", dataIndex : 'printUser', fontSize : 9, position : ["8cm","25%","90%",4]},
+ {label : "验收:", dataIndex : '', fontSize : 9, position : ["8cm","38%","90%",4]},
+ {label : "采购:", dataIndex : '', fontSize : 9, position : ["8cm","51%","90%",4]},
+ {label : "复核人:", dataIndex : 'printUser', fontSize : 9, position : ["8cm","64%","90%",4]},
+ {label : "总合计: ", dataIndex : 'totalPrice', fontSize : 9, position : ["8cm","77%","99%",4]}
+// {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}
+// ]
+// }
+// ]}
+ ],
+ currentPageNumber : {label : "第#页", fontSize : 9, position : ["1cm","40%","90%",5]},
+ totalPageAmount : {label : "共&页", fontSize : 9, position : ["1cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 22,
+ fontSize:10,
+ position : ["1.5cm","0.2cm","100%","5.5cm"],
+ headRepeat : true,
+ columns : [
+ //{header : "序号", dataIndex : 'serialNumber', width : '30', align : 'center'},
+ {header : "编码", dataIndex : 'code', width : '35', align : 'center'},
+ {header : "名称", dataIndex : 'name', width : '170', align : 'left'},
+ {header : "规格", dataIndex : 'specification', width : '100', align : 'center'},
+ {header : "单位", dataIndex : 'unit', width : '30', align : 'center'},
+ {header : "数量", dataIndex : 'amount', width : '30', align : 'center'},
+ {header : "进价", dataIndex : 'price', width : '40', align : 'right'},
+ {header : "进价金额", dataIndex : 'totalPrice', width : '50', align : 'right'},
+ {header : "批号", dataIndex : 'batchNumber', width : '60', align : 'right'},
+ {header : "产地", dataIndex : 'producingArea', width : '50', align : 'right'},
+ {header : "注册证号", dataIndex : 'certification', width : '180', align : 'left'}
+
+// {header : "批次/灭菌日期", dataIndex : 'batchNumber', width : 105, align : 'center', fontSize : 11},
+// {header : "失效日期", dataIndex : 'expireDate', width : 85, align : 'center', fontSize : 11},
+
+ ]
+ }
+}
+var purchasePlanConfig = {
+ headerFooter : [
+ // 标题
+ {label : "省妇幼番禺分院一次性物品采购计划", dataIndex : '', fontSize : 15, position : ["0.2cm","28%","99%",5]},
+ //{label : "入库类型:购入入库", dataIndex : '', fontSize : 9, position : ["0.5cm","2%","90%",5]},
+ //{label : "供应商:", dataIndex : 'supplierName', fontSize : 9, position : ["1cm","2%","90%",5]},
+ {label : "操作日期:", dataIndex : 'godownEntryTime', fontSize : 9, position : ["1cm","2%","90%",5]},
+ {label : "单号:", dataIndex : 'serialNumber', fontSize : 9, position : ["1cm","75%","90%",5]},
+ {label : "小计: ", dataIndex : 'totalPrice', fontSize : 9, position : ["7.5cm","2%","90%",4]},
+ {label : "制单日期:", dataIndex : 'printTime', fontSize : 9, position : ["8cm","2%","90%",4]},
+ {label : "制单人:", dataIndex : 'printUser', fontSize : 9, position : ["8cm","25%","90%",4]},
+ {label : "验收:", dataIndex : '', fontSize : 9, position : ["8cm","38%","90%",4]},
+ {label : "采购:", dataIndex : '', fontSize : 9, position : ["8cm","51%","90%",4]},
+ {label : "复核人:", dataIndex : 'printUser', fontSize : 9, position : ["8cm","64%","90%",4]},
+ {label : "总合计: ", dataIndex : 'totalPrice', fontSize : 9, position : ["8cm","77%","99%",4]}
+ ],
+ currentPageNumber : {label : "第#页", fontSize : 9, position : ["1cm","40%","90%",5]},
+ totalPageAmount : {label : "共&页", fontSize : 9, position : ["1cm","45%","90%",5]},
+ goodsTable :{
+ rowHeight : 22,
+ fontSize:10,
+ position : ["1.5cm","0.2cm","100%","5.5cm"],
+ headRepeat : true,
+ columns : [
+ {header : "编码", dataIndex : 'code', width : '35', align : 'center'},
+ {header : "名称", dataIndex : 'name', width : '140', align : 'center'},
+ {header : "规格", dataIndex : 'specification', width : '100', align : 'center'},
+ {header : "单位", dataIndex : 'unit', width : '30', align : 'center'},
+ {header : "数量", dataIndex : 'amount', width : '30', align : 'center'},
+ {header : "进价", dataIndex : 'price', width : '40', align : 'right'},
+ {header : "进价金额", dataIndex : 'totalPrice', width : '50', align : 'right'},
+ //{header : "批号", dataIndex : 'batchNumber', width : '60', align : 'right'},
+ {header : "产地", dataIndex : 'producingArea', width : '50', align : 'right'},
+ {header : "供应商", dataIndex : 'supplierName', width : '150', align : 'center'},
+ {header : "注册证号", dataIndex : 'certification', width : '140', align : 'left'}
+ ]
+ }
+}
+
+// 加大标签配置,100x100mm
+var exLargeLabelConfig = {
+ headerContent : [
+ // 器械包名称,水平居中
+ {label : "", dataIndex : 'name', position : ["1mm","0mm","RightMargin:0mm","BottomMargin:0mm"], type: 'html', beforeStr: "", afterStr: "
"},
+ {label : "装配员:", dataIndex : 'operator', fontSize : 10, bold: 1, position : ["6mm","5mm","50mm","10px"]},
+ {label : "审核员:", dataIndex : 'reviewer', fontSize : 10, bold: 1, position : ["6mm","55mm","50mm","10px"]},
+ {label : "灭菌日期:", dataIndex : 'sterilizationDate', fontSize : 10, bold: 1, position : ["10mm","5mm","50mm","10px"]},
+ {label : "失效日期:", dataIndex : 'validDate', fontSize : 10, bold: 1, position : ["10mm","55mm","50mm","10px"]},
+
+ {label : "", dataIndex : 'materials', position : ["14mm","0mm","RightMargin:0mm","BottomMargin:20mm"], type: 'html', beforeStr: "", afterStr: "
"},
+
+ {label : "灭菌程序:", dataIndex : 'sterilingType', position : ["78mm","0mm","RightMargin:50mm","BottomMargin:0mm"], type: 'html', beforeStr: "", afterStr: "
"},
+
+ {label : "", dataIndex : 'name', position : ["87mm","0mm","RightMargin:50mm","BottomMargin:0mm"], type: 'html', beforeStr: "", afterStr: "
"},
+ {label : "", dataIndex : 'name', position : ["87mm","50mm","RightMargin:0mm","BottomMargin:0mm"], type: 'html', beforeStr: "", afterStr: "
"}
+
+ ],
+ barcodes : [
+ {codeType : "128Auto", dataIndex : 'barcode', position : ["77mm","55mm","40mm","8mm"],
+ styles : [{itemNameID: 0, styleName: 'ShowBarText', styleValue: true},
+ {itemNameID: 0, styleName: 'FontSize', styleValue: 6},
+ {itemNameID: 0, styleName: 'NotOnlyHighPrecision', styleValue: true}
+ ]
+ },
+ {codeType : "128Auto", dataIndex : 'barcode', position : ["91mm","5mm","40mm","8mm"],
+ styles : [{itemNameID: 0, styleName: 'ShowBarText', styleValue: true},
+ {itemNameID: 0, styleName: 'FontSize', styleValue: 6},
+ {itemNameID: 0, styleName: 'NotOnlyHighPrecision', styleValue: true}
+ ]
+ },
+ {codeType : "128Auto", dataIndex : 'barcode', position : ["91mm","55mm","40mm","8mm"],
+ styles : [{itemNameID: 0, styleName: 'ShowBarText', styleValue: true},
+ {itemNameID: 0, styleName: 'FontSize', styleValue: 6},
+ {itemNameID: 0, styleName: 'NotOnlyHighPrecision', styleValue: true}
+ ]
+ }
+ ]
+}
+
+function printPackage_60x80_temp(barcode,name,material,operator,reviewer,sterilizationDate,validDate,hospitalName,sterilizer,frequency,markTousse,sterilingType) {
+ LODOP = getLodop(document.getElementById('LODOP'), document
+ .getElementById('LODOP_EM'));
+ var borderSize = 0;
+ if(markTousse){
+ borderSize = 1;
+ }
+ var tableHtml ="";
+ tableHtml += "";
+ //包名字太长字体缩小
+ if(name.length > 10){
+ tableHtml += ""+name+"";
+ }else{
+ tableHtml += " | "+name+"";
+ }
+// tableHtml += " ";
+ tableHtml += " | ";
+ tableHtml += "
";
+
+ tableHtml += "";
+ tableHtml += "灭菌: | ";
+ tableHtml += ""+sterilizationDate+" | ";
+ tableHtml += "装配员: | ";
+ tableHtml += ""+operator+" | ";
+ tableHtml += "
";
+
+ tableHtml += "";
+ tableHtml += "失效: | ";
+ tableHtml += ""+validDate+" | ";
+ tableHtml += "审核员: | ";
+ tableHtml += ""+reviewer+" | ";
+ tableHtml += "
";
+ if(material != ""){
+ tableHtml += "";
+ tableHtml += " | ";
+ tableHtml += "
";
+ }
+
+ tableHtml += "";
+ tableHtml += "";
+ tableHtml += " ";
+ tableHtml += ""+barcode;
+ tableHtml += " | ";
+ tableHtml += "
";
+
+ tableHtml += "";
+ tableHtml += "";
+ tableHtml += name + "";
+ tableHtml += " ";
+ tableHtml += ""+barcode;
+ tableHtml += " | ";
+ tableHtml += "
";
+
+ tableHtml += "
";
+ LODOP.ADD_PRINT_HTM(0,0,"100%","100%",""+tableHtml+"");
+ LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","Full-Page");
+
+};
+//中标签配置,打两个条码,没有清单
+var middleLableConfig = {
+ customPrint:printMiddleLable_gyey,
+ table : {
+ rules : 'rows',
+ style : 'width: 50mm; height: 30mm',
+ cellspacing : '0',
+ cellpadding : '0',
+ position : [0,"0mm","100%","100%"],
+ printMode : {mode : 'PRINT_PAGE_PERCENT', value : 'Full-Page'},
+ beforeStr: "", afterStr: "",
+ rows : [
+ // 每个表格行的定义
+ {height : "40px", tds : [
+ { label : "", dataIndex : 'name', colspan: 4, styles : [{minLen:0, maxLen:10, style: "font-size:15px;text-align:center"},{minLen :10, maxLen:100 ,style : "font-size:13px;text-align:center"}]}
+ ]
+ },
+ {height : "45px", tds : [
+ { label : "灭菌:", dataIndex : '', style : "font-size:12px; text-align:center;"},
+ { label : "", dataIndex : 'sterilizationDate', style : "font-size:12px; text-align:center;"},
+ { label : "装配员:", dataIndex : '', style : "font-size:12px; text-align:center;"},
+ { label : "", dataIndex : 'operator', style : "font-size:12px; text-align:center;"}
+ ]
+ },
+ {height : "45px", tds : [
+ { label : "失效:", dataIndex : '', style : "font-size:12px; text-align:center"},
+ { label : "", dataIndex : 'validDate', style : "font-size:12px; text-align:center"},
+ { label : "审核员:", dataIndex : '', style : "font-size:12px; text-align:center"},
+ { label : "", dataIndex : 'reviewer', style : "font-size:12px; text-align:center"}
+ ]
+ },
+ {height : "20px", tds : [
+ { label : "", dataIndex : 'barcode', colspan: 4, style : "font-size:10px;text-align:center;"}
+ ]
+ },
+ {height : "10px", tds : [
+ { label : "", dataIndex : 'name', colspan: 4, style : "font-size:10px;text-align:center;border-bottom:0"}
+ ]
+ },
+ {height : "10px", tds : [
+ { label : "", dataIndex : 'barcode', colspan: 4, style : "font-size:10px;text-align:center;border:0"}
+ ]
+ }
+ ]
+ }
+}
+//中标签2配置,打印一个条码和清单
+var middleLable2Config = {
+ customPrint:printMiddleLable2_gyey,
+ table : {
+ rules : 'rows',
+ style : 'width: 50mm; height: 30mm',
+ cellspacing : '0',
+ cellpadding : '0',
+ position : [0,"0mm","100%","100%"],
+ printMode : {mode : 'PRINT_PAGE_PERCENT', value : 'Full-Page'},
+ beforeStr: "", afterStr: "",
+ rows : [
+ // 每个表格行的定义
+ {height : "40px", tds : [
+ { label : "", dataIndex : 'name', colspan: 4, styles : [{minLen:0, maxLen:10, style: "font-size:15px;text-align:center"},{minLen :10, maxLen:100 ,style : "font-size:13px;text-align:center"}]}
+ ]
+ },
+ {height : "45px", tds : [
+ { label : "灭菌:", dataIndex : '', style : "font-size:12px; text-align:center;"},
+ { label : "", dataIndex : 'sterilizationDate', style : "font-size:12px; text-align:center;"},
+ { label : "装配员:", dataIndex : '', style : "font-size:12px; text-align:center;"},
+ { label : "", dataIndex : 'operator', style : "font-size:12px; text-align:center;"}
+ ]
+ },
+ {height : "45px", tds : [
+ { label : "失效:", dataIndex : '', style : "font-size:12px; text-align:center"},
+ { label : "", dataIndex : 'validDate', style : "font-size:12px; text-align:center"},
+ { label : "审核员:", dataIndex : '', style : "font-size:12px; text-align:center"},
+ { label : "", dataIndex : 'reviewer', style : "font-size:12px; text-align:center"}
+ ]
+ },
+ {height : "20px", tds : [
+ { label : "", dataIndex : 'barcode', colspan: 4, style : "font-size:10px;text-align:center;"}
+ ]
+ },
+ {height : "10px", tds : [
+ { label : "", dataIndex : 'name', colspan: 4, style : "font-size:10px;text-align:center;border-bottom:0"}
+ ]
+ },
+ {height : "10px", tds : [
+ { label : "", dataIndex : 'barcode', colspan: 4, style : "font-size:10px;text-align:center;border:0"}
+ ]
+ }
+ ]
+ }
+}
+
+/**
+ * 获取中标签中材料的字体大小。需要根据记录数计算大小,同时要考虑材料的名称,如果当前字体下,名称太长导致换行,则认为行数增加
+ * @param materials 所有需要打印的材料
+ * @param cols 材料的列数 如:名称 数量 名称 数量,这种情况下,cols为2,指一行的记录数
+ */
+function getMaterialsFontSize_middleLable(materials,cols){
+ /**
+ * 计算材料名称列的行数(包括名称和规格)
+ */
+ var nameRows = function(material){
+ var temp = material.name;
+ // 不打印材料
+ if (material.specification != null && material.specification != ""){
+ temp += "[" + material.specification + "]";
+ }
+
+ var nameMaxLenthPerLine = 8;
+ return Math.ceil(temp.length / nameMaxLenthPerLine) ; // 向上取整
+ }
+
+ var materialsAmount = materials.length;
+ var fontSize = 10;
+ var rows = Math.ceil(materialsAmount / cols) ; // 向上取整
+ var addTotalRow = 0;
+ for(var row = 0; row < rows;++row){
+ var addRow = 0;
+ var index = cols * row;
+ while(index < cols*(row + 1)){
+ if(index < materialsAmount){
+ var addRow2 = nameRows(materials[index]);
+ addRow = (addRow > addRow2)?addRow:addRow2;
+ }
+ ++index;
+ }
+ addRow = addRow < 1?1:addRow; //至少有一行
+ addTotalRow += (addRow - 1);
+ }
+ rows += addTotalRow;
+ if ( rows > 15){
+ fontSize = 5;
+ }else if(rows > 13){
+ fontSize = 6;
+ }
+ else if (rows > 12){
+ fontSize = 7;
+ }
+ else if (rows > 10){
+ fontSize = 8;
+ }else if (rows > 8){
+ fontSize = 9;
+ }else if (rows > 6){
+ fontSize = 10;
+ }else if (rows >= 4){
+ fontSize = 12;
+ }else{
+ fontSize = 13;
+ }
+ return fontSize;
+}
+//构造表格
+function getMaterialsTabHtml_middleLable(tousse){
+ //绘制材料明细表格
+ var markTousse = tousse['markTousse'];
+ var materials = tousse.materials;
+ // 打印材料明细
+ var materialsTab = "";
+ var borderSize = 0;
+
+ if(markTousse){
+ //borderSize = 1;
+ }
+
+ var materialsAmount = materials.length;
+ if(materials != null && materialsAmount > 0){
+ var materialStr = "";
+ var fontSize = getMaterialsFontSize_middleLable(materials,2);
+// alert(fontSize)
+ /*materialStr += "名称 | ";
+ materialStr += "数量 | ";
+ materialStr += "名称 | ";
+ materialStr += "数量 | ";
+ materialStr += "#;";*/
+ for (var i=0;i" + temp + "";
+ materialStr += "" + material.count + " | ";
+ }
+ if (materialsAmount % 2 != 0) {
+ for (var i = 0; i < (2 - materialsAmount % 2); i++) {
+ materialStr += (" | ");
+ }
+ }
+
+ if (materialStr.length > 0) {
+ materialsTab += "";
+ var materialArray = materialStr.split("#;");
+ for (var i=0; i"
+ + materialArray[i] + "";
+ }
+ materialsTab += "
";
+ }
+
+ }
+ //alert(materialsTab)
+ return materialsTab;
+}
+//打两个条码,没有清单
+function printMiddleLable_gyey(obj){
+ doGetLodop();
+
+ // 划线
+ if(obj.markTousse){
+ LODOP.ADD_PRINT_LINE('20mm','0mm','20mm','60mm',0,1);
+ LODOP.ADD_PRINT_LINE('30mm','0mm','30mm','60mm',0,1);
+ }
+ // 设置默认字体
+ setDefaultFontNameSizeBold('宋体',15,1);
+ // 默认条码属性
+ LODOP.SET_PRINT_STYLE('ShowBarText', true);
+ LODOP.SET_PRINT_STYLE('FontSize', 6);
+ LODOP.SET_PRINT_STYLE('NotOnlyHighPrecision', true);
+
+ var fontSize = getFontSizeByStr(obj.name,[
+ {maxLen:5,fontSize:25},
+ {maxLen:7,fontSize:19},
+ {maxLen:9,fontSize:15},
+ {maxLen:11,fontSize:13},
+ {maxLen:13,fontSize:11},
+ {maxLen:17,fontSize:9},
+ {maxLen:200,fontSize:5}
+ ]);
+ LODOP.ADD_PRINT_TEXT("2mm","0mm","RightMargin:0mm","6mm", obj.name);
+ setFontSizeBold(fontSize,1);// 设置字体
+ setAlignment('center');// 对齐
+
+// // 打印表格
+// var tableStr = getMaterialsTabHtml_middleLable(obj);
+// addPrintTable(tableStr,"12mm","1mm","RightMargin:1mm","29mm");
+// setAlignment('center');// 居中对齐
+
+ LODOP.ADD_PRINT_TEXT("21mm","1mm","34mm","5mm", "灭菌:"+obj.sterilizationDate);
+ setFontSizeBold(11,0);// 设置字体
+ LODOP.ADD_PRINT_TEXT("21mm","33mm","30mm","5mm", "装配员:"+obj.operator);
+ setFontSizeBold(11,0);// 设置字体
+ LODOP.ADD_PRINT_TEXT("26mm","1mm","34mm","5mm", "失效:"+obj.validDate);
+ setFontSizeBold(11,0);// 设置字体
+ LODOP.ADD_PRINT_TEXT("26mm","33mm","30mm","5mm", "审核员:"+obj.reviewer);
+ setFontSizeBold(11,0);// 设置字体
+
+ LODOP.ADD_PRINT_BARCODE("41mm","10mm","40mm","11mm","128Auto", obj.barcode);// 条码1
+ setAlignment('center');// 对齐
+
+ var fontSize = getFontSizeByStr(obj.name,[
+ {maxLen:10,fontSize:10},
+ {maxLen:20,fontSize:8},
+ {maxLen:1000,fontSize:6}
+ ]);
+ LODOP.ADD_PRINT_TEXT("53mm","0mm","RightMargin:0mm","3mm", obj.name);
+ setFontSizeBold(fontSize,1);// 设置字体
+ setAlignment('center');// 对齐
+
+ LODOP.ADD_PRINT_BARCODE("67mm","10mm","40mm","11mm","128Auto", obj.barcode);// 条码2
+ setAlignment('center');// 对齐
+}
+//打印一个条码和清单
+function printMiddleLable2_gyey(obj){
+ doGetLodop();
+
+ // 划线
+ if(obj.markTousse){
+ LODOP.ADD_PRINT_LINE('50mm','0mm','50mm','60mm',0,1);
+ LODOP.ADD_PRINT_LINE('60mm','0mm','60mm','60mm',0,1);
+ }
+ // 设置默认字体
+ setDefaultFontNameSizeBold('宋体',15,1);
+ // 默认条码属性
+ LODOP.SET_PRINT_STYLE('ShowBarText', true);
+ LODOP.SET_PRINT_STYLE('FontSize', 6);
+ LODOP.SET_PRINT_STYLE('NotOnlyHighPrecision', true);
+
+ var fontSize = getFontSizeByStr(obj.name,[
+ {maxLen:5,fontSize:25},
+ {maxLen:7,fontSize:19},
+ {maxLen:9,fontSize:15},
+ {maxLen:11,fontSize:13},
+ {maxLen:13,fontSize:11},
+ {maxLen:17,fontSize:9},
+ {maxLen:200,fontSize:5}
+ ]);
+ LODOP.ADD_PRINT_TEXT("2mm","0mm","RightMargin:0mm","6mm", obj.name);
+ setFontSizeBold(fontSize,1);// 设置字体
+ setAlignment('center');// 对齐
+
+ // 打印表格
+ var tableStr = getMaterialsTabHtml_middleLable(obj);
+ addPrintTable(tableStr,"12mm","1mm","RightMargin:1mm","38mm");
+ setAlignment('center');// 居中对齐
+
+ LODOP.ADD_PRINT_TEXT("51mm","1mm","34mm","5mm", "灭菌:"+obj.sterilizationDate);
+ setFontSizeBold(11,0);// 设置字体
+ LODOP.ADD_PRINT_TEXT("51mm","33mm","30mm","5mm", "装配员:"+obj.operator);
+ setFontSizeBold(11,0);// 设置字体
+ LODOP.ADD_PRINT_TEXT("56mm","1mm","34mm","5mm", "失效:"+obj.validDate);
+ setFontSizeBold(11,0);// 设置字体
+ LODOP.ADD_PRINT_TEXT("56mm","33mm","30mm","5mm", "审核员:"+obj.reviewer);
+ setFontSizeBold(11,0);// 设置字体
+
+ fontSize = getFontSizeByStr(obj.name,[
+ {maxLen:10,fontSize:10},
+ {maxLen:20,fontSize:8},
+ {maxLen:1000,fontSize:6}
+ ]);
+ LODOP.ADD_PRINT_TEXT("76mm","0mm","RightMargin:0mm","3mm", obj.name);
+ setFontSizeBold(fontSize,1);// 设置字体
+ setAlignment('center');// 对齐
+
+ LODOP.ADD_PRINT_BARCODE("64mm","10mm","40mm","11mm","128Auto", obj.barcode);// 条码2
+ setAlignment('center');// 对齐
+}
+
+var foreignTousseMiddleLableConfig = {
+ customPrint:printForeignTousseMiddleLable_gyey
+}
+
+//function printForeignTousseMiddleLable_gyey(printSummaryObj){
+// var name = printSummaryObj.name ;
+// var barcode = printSummaryObj.barcode;
+// var material = printSummaryObj.material;
+// var operator = printSummaryObj.operator;
+// var reviewer = printSummaryObj.reviewer;
+// var sterilizationDate = printSummaryObj.sterilizationDate;
+// var validDate = printSummaryObj.validDate;
+// var foreignPackageObjectArray = printSummaryObj.foreignPackageObjectArray;
+// var sterilizer = printSummaryObj.sterilizer;
+// var frequency = printSummaryObj.frequency;
+// var hospitalName = printSummaryObj.hospitalName;
+// var total = printSummaryObj.total;
+// var labelType = printSummaryObj.labelType;
+// var patient = printSummaryObj.patient;
+// LODOP = getLodop(document.getElementById('LODOP'), document
+// .getElementById('LODOP_EM'));
+// var tableHtml ="";
+// tableHtml += "";
+// tableHtml += ""+name+"";
+//// tableHtml += " ";
+// tableHtml += " | ";
+// tableHtml += "
";
+//
+// tableHtml += "";
+// tableHtml += "灭菌: | ";
+// tableHtml += ""+sterilizationDate+" | ";
+// tableHtml += "装配员: | ";
+// tableHtml += ""+operator+" | ";
+// tableHtml += "
";
+//
+// tableHtml += "";
+// tableHtml += "失效: | ";
+// tableHtml += ""+validDate+" | ";
+// tableHtml += "审核员: | ";
+// tableHtml += ""+reviewer+" | ";
+// tableHtml += "
";
+//
+// tableHtml += "";
+// tableHtml += ""+total+" | ";
+// tableHtml += "
";
+//
+// tableHtml += "";
+// tableHtml += "病人: | ";
+// tableHtml += ""+patient+" | ";
+// tableHtml += "
";
+//// tableHtml += "";
+//// tableHtml += "病人: | ";
+//// tableHtml += ""+foreignPackageObjectArray[2]+" | ";
+//// tableHtml += "住院号: | ";
+//// tableHtml += ""+foreignPackageObjectArray[0]+" | ";
+//// tableHtml += "
";
+//
+// if(sterilizer == null || sterilizer.length == 0){
+// tableHtml += "";
+// tableHtml += ""+hospitalName+" | ";
+// tableHtml += "
";
+// }else{
+// var str = "【"+sterilizer + "】第" + frequency +"炉";
+// tableHtml += "";
+// tableHtml += ""+str+" | ";
+// tableHtml += "
";
+// }
+// tableHtml += "";
+// tableHtml += "";
+// tableHtml += " ";
+// tableHtml += ""+barcode;
+// tableHtml += " |
";
+//
+// tableHtml += "";
+// tableHtml += "";
+// tableHtml += " ";
+// tableHtml += ""+barcode;
+// tableHtml += " |
";
+//
+// tableHtml += "
";
+//
+// LODOP.ADD_PRINT_HTM(0,0,"100%","100%",""+tableHtml+"");
+// LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","Full-Page");
+//}
+
+function printForeignTousseMiddleLable_gyey(obj){
+ doGetLodop();
+
+ // 划线
+ if(obj.markTousse){
+ LODOP.ADD_PRINT_LINE('14mm','0mm','14mm','60mm',0,1);
+ LODOP.ADD_PRINT_LINE('40mm','0mm','40mm','60mm',0,1);
+ }
+ // 设置默认字体
+ setDefaultFontNameSizeBold('宋体',15,1);
+ // 默认条码属性
+ LODOP.SET_PRINT_STYLE('ShowBarText', true);
+ LODOP.SET_PRINT_STYLE('FontSize', 6);
+ LODOP.SET_PRINT_STYLE('NotOnlyHighPrecision', true);
+
+ var fontSize = getFontSizeByStr(obj.name,[
+ {maxLen:10,fontSize:14},
+ {maxLen:15,fontSize:12},
+ {maxLen:20,fontSize:10},
+ {maxLen:30,fontSize:9},
+ {maxLen:40,fontSize:7},
+ {maxLen:1000,fontSize:5}
+ ]);
+ LODOP.ADD_PRINT_TEXT("2mm","0mm","RightMargin:0mm","12mm", obj.name);
+ setFontSizeBold(fontSize,1);// 设置字体
+ setAlignment('center');// 对齐
+
+ LODOP.ADD_PRINT_TEXT("15mm","1mm","34mm","7mm", "灭菌:"+obj.sterilizationDate);
+ setFontSizeBold(11,0);// 设置字体
+ LODOP.ADD_PRINT_TEXT("15mm","33mm","30mm","7mm", "装配员:"+obj.operator);
+ setFontSizeBold(11,0);// 设置字体
+ LODOP.ADD_PRINT_TEXT("20mm","1mm","34mm","7mm", "失效:"+obj.validDate);
+ setFontSizeBold(11,0);// 设置字体
+ LODOP.ADD_PRINT_TEXT("20mm","33mm","30mm","7mm", "审核员:"+obj.reviewer);
+ setFontSizeBold(11,0);// 设置字体
+
+ LODOP.ADD_PRINT_TEXT("25mm","1mm","34mm","7mm", "病人:"+obj.patient);
+ setFontSizeBold(11,0);// 设置字体
+
+ LODOP.ADD_PRINT_TEXT("30mm","0mm","60mm","7mm", obj.total);
+ setFontSizeBold(11,0);// 设置字体
+ setAlignment('center');// 对齐
+
+ var sterilizer = obj.sterilizer;
+ if(sterilizer == null || sterilizer.length == 0){
+ sterilizer = obj.hospitalName;
+ }else{
+ sterilizer = "【"+sterilizer + "】第" + obj.frequency +"炉";
+ }
+ LODOP.ADD_PRINT_TEXT("35mm","0mm","60mm","7mm", sterilizer);// 炉次
+ setFontSizeBold(11,0);// 设置字体
+ setAlignment('center');// 对齐
+
+ LODOP.ADD_PRINT_BARCODE("41mm","10mm","40mm","18mm","128Auto", obj.barcode);// 条码1
+ setAlignment('center');// 对齐
+
+ var fontSize = getFontSizeByStr(obj.name,[
+ {maxLen:10,fontSize:10},
+ {maxLen:20,fontSize:8},
+ {maxLen:1000,fontSize:6}
+ ]);
+ LODOP.ADD_PRINT_TEXT("64mm","0mm","RightMargin:0mm","3mm", obj.name);
+ setFontSizeBold(fontSize,1);// 设置字体
+ setAlignment('center');// 对齐
+
+ LODOP.ADD_PRINT_BARCODE("69mm","10mm","40mm","10mm","128Auto", obj.barcode);// 条码2
+ setAlignment('center');// 对齐
+}
+//小标签配置,50x30mm
+var smallLabelConfig = {
+ // 可带表格线的table定义
+
+ table : {
+ rules : 'rows',
+ style : 'width: 50mm; height: 30mm',
+ cellspacing : '0',
+ cellpadding : '0',
+ position : [0,"0mm","100%","100%"],
+ printMode : {mode : 'PRINT_PAGE_PERCENT', value : 'Full-Page'},
+ beforeStr: "", afterStr: "",
+ rows : [
+ // 每个表格行的定义
+ {height : "", tds : [
+ { label : "", dataIndex : 'name', colspan: 4, styles : [{minLen:0, maxLen:10, style: "font-size:14px;font-weight:bold;text-align:center"},{minLen :10, maxLen:100 ,style : "font-size:10px;text-align:center"}]}
+ ]
+ },
+ {height : "", tds : [
+ { label : "灭菌:", dataIndex : '', style : "font-size:12px; text-align:center;width:10mm"},
+ { label : "", dataIndex : 'sterilizationDate', style : "font-size:12px; text-align:left;width:20mm"},
+ { label : "装配:", dataIndex : '', style : "font-size:12px; text-align:center;width:10mm"},
+ { label : "", dataIndex : 'operator', style : "font-size:12px; text-align:left;width:16mm"}
+ ]
+ },
+ {height : "", tds : [
+ { label : "失效:", dataIndex : '', style : "font-size:12px; text-align:center"},
+ { label : "", dataIndex : 'validDate', style : "font-size:12px; text-align:left"},
+ { label : "审核:", dataIndex : '', style : "font-size:12px; text-align:center"},
+ { label : "", dataIndex : 'reviewer', style : "font-size:12px; text-align:left"}
+ ]
+ },
+ {height : "", tds : [
+ { label : "", dataIndex : 'barcode', colspan: 4, style : "font-size:10px;text-align:center"}
+ ]
+ }
+ ]
+ }
+}
+
+var foreignProxyDisinfectionLabelConfig = {
+ customPrint:printForeignProxyDisinfectionLabel_dgsdhyy,
+ // 可带表格线的table定义
+ table : {
+ rules : 'rows',
+ style : 'width: 60mm; height: 40mm',
+ cellspacing : '0',
+ cellpadding : '0',
+ position : [0,"0mm","100%","100%"],
+ printMode : {mode : 'PRINT_PAGE_PERCENT', value : 'Full-Page'},
+ beforeStr: "", afterStr: "",
+ rows : [
+ // 每个表格行的定义
+ {height : "", tds : [
+ { label : "", dataIndex : 'name', colspan: 4, styles : [{minLen:0, maxLen:14, style: "font-size:12px;font-weight:bold;text-align:center"},{minLen :14, maxLen:100 ,style : "font-size:10px;text-align:center"}]}
+ ]
+ },
+ {height : "", tds : [
+ { label : "", dataIndex : 'depart', colspan: 4, style : "font-size:12px;text-align:center;height:5mm"}
+ ]
+ },
+ {height : "", tds : [
+ { label : "灭菌1:", dataIndex : 'sterilizationDate', colspan: 2, style : "font-size:11px; text-align:left;height:5mm;width:29mm"},
+ { label : "灭菌程序:", dataIndex : 'sterilingType', colspan: 2, style : "font-size:12px;text-align:left;height:5mm"}
+ ]
+ },
+ {height : "", tds : [
+ { label : "失效:", dataIndex : 'validDate', colspan: 2, length: 10, style : "font-size:11px; text-align:left;width:29mm"},
+ { label : "审核:", dataIndex : 'applicant', colspan: 2, style : "font-size:12px;text-align:left;height:5mm"}
+ ]
+ },
+ {height : "", tds : [
+ { label : "", dataIndex : 'barcode', colspan: 4, style : "font-size:10px;text-align:center;vertical-align:top"}
+ ]
+ }
+ ]
+ }
+}
+function printForeignProxyDisinfectionLabel_dgsdhyy(obj){
+ doGetLodop();
+
+ // 划线
+ if(obj.markTousse){
+ LODOP.ADD_PRINT_LINE('9mm','0mm','9mm','50mm',0,1);
+ LODOP.ADD_PRINT_LINE('18mm','0mm','18mm','50mm',0,1);
+ }
+ // 设置默认字体
+ setDefaultFontNameSizeBold('宋体',12,1);
+ // 默认条码属性
+ LODOP.SET_PRINT_STYLE('ShowBarText', true);
+ LODOP.SET_PRINT_STYLE('FontSize', 6);
+ LODOP.SET_PRINT_STYLE('NotOnlyHighPrecision', true);
+ // 包名
+ var fontSize = getFontSizeByStr(obj.name,[
+ {maxLen:10,fontSize:10},
+ {maxLen:20,fontSize:6},
+ {maxLen:1000,fontSize:4}
+ ]);
+ LODOP.ADD_PRINT_TEXT("1mm","0mm","RightMargin:0mm","5mm", obj.name);
+ setFontSizeBold(fontSize,1);// 设置字体
+ setAlignment('center');// 对齐
+ // 科室
+ fontSize = getFontSizeByStr(obj.depart,[
+ {maxLen:10,fontSize:10},
+ {maxLen:20,fontSize:6},
+ {maxLen:1000,fontSize:4}
+ ]);
+ LODOP.ADD_PRINT_TEXT("5mm","0mm","RightMargin:0mm","9mm", obj.depart);
+ setFontSizeBold(fontSize,1);// 设置字体
+ setAlignment('center');// 对齐
+
+ LODOP.ADD_PRINT_TEXT("10mm","1mm","30mm","5mm", "灭菌:"+obj.sterilizationDate);
+ setFontSizeBold(8,0);// 设置字体
+ LODOP.ADD_PRINT_TEXT("10mm","25mm","34mm","5mm", "灭菌程序:"+obj.sterilingType);
+ setFontSizeBold(8,0);// 设置字体
+ LODOP.ADD_PRINT_TEXT("15mm","1mm","30mm","5mm", "失效:"+obj.validDate);
+ setFontSizeBold(8,0);// 设置字体
+ LODOP.ADD_PRINT_TEXT("15mm","25mm","34mm","5mm", "审核:"+obj.applicant);
+ setFontSizeBold(8,0);// 设置字体
+
+ LODOP.ADD_PRINT_BARCODE("19mm","10mm","30mm","10mm","128Auto", obj.barcode);// 条码1
+}
+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 : 'header', fontSize : 17, position : ["30","8%","99%",22]},
+
+ {label : "姓名:", dataIndex : 'patient', fontSize : 11, position : ["90","4%","90%",5]},
+ {label : "住院号:", dataIndex : 'hospitalNumber', fontSize : 11, position : ["90","80mm","90%",5]},
+
+ {label : "单号:", dataIndex : 'serialNum', fontSize : 11, position : ["120","4%","90%",10]},
+ {label : "申请科室:", dataIndex : 'depart', fontSize : 11, position : ["120","80mm","90%",5]},
+ {label : "结算科室:", dataIndex : 'settleAccountsDepart', fontSize : 11, position : ["120","130mm","90%",10]},
+
+ {label : "申请人:", dataIndex : 'applicant', fontSize : 11, position : ["150","4%","90%",10]},
+ {label : "打印时间:", dataIndex : 'printTime', fontSize : 11, position : ["150","80mm","90%",10]},
+
+ {label : "备注:", dataIndex : 'remark', fontSize : 11, position : ["180","4%","90%",5]},
+
+
+ {label : "手术名称:", dataIndex : 'surgery', fontSize : 11, position : ["250","4%","90%",10]},
+ {label : "手术医生:", dataIndex : 'doctor', fontSize : 11, position : ["290","4%","90%",10]},
+ {label : "手术时间:", dataIndex : 'operationTime', fontSize : 11, position : ["330","4%","90%",10]},
+
+ {label : "手术器械清单:", dataIndex : '', fontSize : 11, position : ["370","4%","90%",10]},
+
+
+ {label : "公司名称:", dataIndex : 'supplierName', fontSize : 11, position : ["680","4%","90%",5]},
+ {label : "联系方式:", dataIndex : '', fontSize : 11, position : ["720","4%","90%",5]},
+ {label : "送包日期及时间:", dataIndex : '', 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]}
+
+ ],
+ goodsTable :{
+ rowHeight : 25,
+ position : ["400","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}
+ ]
+ }
+ ]
+}
+
+var printConfig = {
+ //发货计划单
+ invoicePlan : invoicePlanPrintConfig,
+ batchPrintInvoices:batchPrintInvoicesConfig,
+ // 批量打印发货单(器械包),如果没有配置,则跟batchPrintInvoices一样
+ //batchPrintInvoice_Tousse:batchPrintInvoicesConfig,
+ // 批量打印发货单(一次性物品),如果没有配置,则跟batchPrintInvoices一样
+ batchPrintInvoice_disposable:batchPrintInvoicesConfig_disposable,
+ // 批量打印发货单(消毒物品),如果没有配置,则跟batchPrintInvoices一样
+ //batchPrintInvoice_disinfect:batchPrintInvoicesConfig,
+ batchPrintMaterialInvoices:batchPrintMaterialInvoicesConfig,
+ // 发货单(通用发货单)
+ invoiceCombo : invoiceComboPrintConfig,
+ // 发货单(一次性物品)
+ invoiceDiposableGoods : invoiceComboPrintConfig,
+ // 发货单(器械包或者回收申请单)
+ invoiceTousse : invoiceComboPrintConfig,
+ // 发货单(消毒物品)
+ invoiceDisinfectGoods : invoiceComboPrintConfig,
+ // 申请单
+ application : applicationPrintConfig,
+ // 消毒物品申请单
+ disinfectGoodsApplication : applicationPrintConfig,
+ // 借物单
+ borrow : borrowPrintConfig,
+ //材料入库单
+ materialEntry : materialEntryConfig,
+ godownEntry: godownEntryConfig,// 一次性物品入库单
+ godownOutEntry: godownOutEntryConfig,//一次性物品退库单
+ //一次性物品盘盈盘亏单
+ godownStockTake:godownStockTakeConfig,
+ //一次性物品调拨单
+ appropriation : appropriationConfig,
+
+ purchasePlan : purchasePlanConfig,
+
+ // 小标签:50x30规格
+ smallLabel : smallLabelConfig,
+ // 中标签:80x60规格
+ middleLable : middleLableConfig,
+ middleLable2 : middleLable2Config,
+ foreignTousseMiddleLable:foreignTousseMiddleLableConfig,// 外来器械中标签
+ // 大标签:100x80规格
+ largeLabel : exLargeLabelConfig,
+ // 加大标签:100x100规格
+ exLargeLabel : exLargeLabelConfig,
+ // 外部代理灭菌标签
+ foreignProxyDisinfectionLabel : foreignProxyDisinfectionLabelConfig,
+ //外来器械申请单
+ foreignTousseAppliation : foreignTousseAppliationPrintConfig,
+ // 入库单列表
+ godownEntryList : godownEntryListPrintConfig,
+ //盘盈盘亏列表
+ godownStockTakeList : godownStockTakeListConfig,
+ //退库单列表
+ godownEntryOutList : godownEntryOutListConfig,
+ //调拨单
+ appropriationList : appropriationListConfig,
+ //调拨入库单
+ appropriationInList : appropriationInListConfig,
+ //调拨出库单
+ appropriationOutList : appropriationOutListConfig,
+ //借还记录
+ borrowRecord:borrowRecordConfig
+};
Index: ssts-web/src/main/resources/config/sfypyfy/mybatis/SyncOrgUnitAndUserMapper.xml
===================================================================
diff -u
--- ssts-web/src/main/resources/config/sfypyfy/mybatis/SyncOrgUnitAndUserMapper.xml (revision 0)
+++ ssts-web/src/main/resources/config/sfypyfy/mybatis/SyncOrgUnitAndUserMapper.xml (revision 17570)
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: ssts-web/src/main/webapp/disinfectsystem/config/sfypyfy/config.js
===================================================================
diff -u
--- ssts-web/src/main/webapp/disinfectsystem/config/sfypyfy/config.js (revision 0)
+++ ssts-web/src/main/webapp/disinfectsystem/config/sfypyfy/config.js (revision 17570)
@@ -0,0 +1,57 @@
+var sstsConfig = {
+ // 禁用标识牌功能
+ disableIdCard : false,
+ // 审核器械包必须入篮筐(一级供应室)
+ mustScanBasketForTousseReview : true,
+ // 审核器械包必须入篮筐(二级供应室)
+ mustScanBasketForTousseReviewOf2ndSupplyRoom : false,
+ // 申请表单的类型:1 : 通用申请单(组合申请单),2:分开的申请单
+ applicationFormType : 1,
+ hidePackageSpec : true,
+ // 申请界面是否显示器械包或消毒物品的的单位
+ showTousseUnitColumn : false,
+ // 条码类型:1:一维码, 2:二维码
+ barcodeType : 1,
+ // 申请器械包时是否自动归还待归还物品
+ autoReturnTousse : false,
+ // 是否隐藏进入审核列表按钮
+ hideEnterReviewListButton : false,
+ // 是否自动补全用户名
+ autoFillUserName:false,
+ // 自动补全用户名的长度
+ autoFillUserNameLength:6,
+ // 是否支持部分终止申请单中的物品
+ enableTerminatePartOfApplication : true,
+ //限制入库单填写的一次性物品为能申领的物品
+ restrictGodownEntryDiposableGoods : false,
+ //提交申请单前显示申请的物品清单
+ showAppliedGoodsBeforeSubmit : true,
+ hideApplyDepartColumn : false, // 隐藏申请科室
+ hideSettleDepartColumn : true, // 隐藏结算科室
+ // 使用记录审核方式, 1: 审核和转换按钮分开; 2:审核和转换按钮合并为1个
+ useRecordAuditMode : 1,
+ //是否启用本地文件访问
+ enableLocalFileSystemObject : false,
+ //发货单是否合并打印,如果为true,则把一次性物品、消毒物品、器械包打印到一张单,false或者不配置,都是分三张单打印
+ mergePrintInvoiceGoods:false,
+ //回收一键入筐
+ recycleAllTousseIntoBasket : true,
+ //是否开启:把"已审核"的记录返回成"未审核"的按钮
+ enableBecomeNotAuditedButton : true,
+ //打印发货单的版本,如果为2,则表示批量打印使用分组打印方式,并有下拉菜单,目前除配置为2以外的其他值都使用以前的单科室的多单打印
+ printInvoiceVersion:2,
+ //回收人默认用登录用户
+ recyclingUserDefault:false,
+ //批量打印发货单,打印消毒物品和器械包是否分开为两个按钮,如果为true,表示分开为两个按钮,如果为false或者没有配置,都是合并为一个按钮
+ splitTousseAndDisinfectInvoiceBtn:true,
+ //公司名称 "dingxiang"显示主页显示丁香的logo,不配置或者配为"forgon",显示孚峻的logo
+ companyName : "dingxiang",
+ // 自定义装配后是否保留装配数量,不再使用 2017-3-14
+ directPackingRetainPackAmount : true,
+//自定义装配后是否保留灭菌日期,不再使用 2017-3-14
+ directPackingRetainDisinfectionDate : true,
+//自定义装配界面,装配数量的处理方式,0或者未定义:清空,1:表示保留当前值,2表示设置回默认值。其他值跟1一样,保留当前值
+ packAmountProcessTypeInDirectPackingView:1,
+ // 自定义装配界面,灭菌日期的处理方式,,0或者未定义:清空,1:表示保留当前值,2表示设置回默认值。其他值跟1一样,保留当前值
+ disinfectionDateProcessTypeInDirectPackingView:1
+}
\ No newline at end of file
Index: ssts-web/src/main/resources/config/sfypyfy/mybatis/FindPatientInfoByTreatmentNumMapper.xml
===================================================================
diff -u
--- ssts-web/src/main/resources/config/sfypyfy/mybatis/FindPatientInfoByTreatmentNumMapper.xml (revision 0)
+++ ssts-web/src/main/resources/config/sfypyfy/mybatis/FindPatientInfoByTreatmentNumMapper.xml (revision 17570)
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: ssts-web/src/main/resources/config/sfypyfy/dataSyncConfig.json
===================================================================
diff -u
--- ssts-web/src/main/resources/config/sfypyfy/dataSyncConfig.json (revision 0)
+++ ssts-web/src/main/resources/config/sfypyfy/dataSyncConfig.json (revision 17570)
@@ -0,0 +1,15 @@
+{
+ "同步组织机构":{
+ "默认父节点的编码" : "0",
+ "更新交集数据" : true,
+ "移除差集数据" : false
+ },
+ "同步用户":{
+ "默认父节点的编码" : "0",
+ "更新交集数据" : true,
+ "移除差集数据" : false,
+ "默认角色ID":[
+ "ROLE_sqry_0"
+ ]
+ }
+}
\ No newline at end of file