Index: ssts-web/src/main/webapp/disinfectsystem/config/gdszyy/print/printConfig.js
===================================================================
diff -u -r28951 -r29113
--- ssts-web/src/main/webapp/disinfectsystem/config/gdszyy/print/printConfig.js (.../printConfig.js) (revision 28951)
+++ ssts-web/src/main/webapp/disinfectsystem/config/gdszyy/print/printConfig.js (.../printConfig.js) (revision 29113)
@@ -1168,6 +1168,58 @@
LODOP.ADD_PRINT_HTM(0,0,"95%","100%","
"+tableHtml+"");
}
+
+/**
+ * 器械包管理界面的包定义材料清单
+ */
+var printDisposableGoodsInvoicePlanSummary_gdszyy = {
+ customPrint:printDisposableGoodsInvoicePlanSummary
+}
+function printDisposableGoodsInvoicePlanSummary(obj){
+ doGetLodop();
+ var tableStyle = "font-family: verdana, arial, sans-serif;font-size: 14px;color: #333333;border-width: 1px;border-color: #666666;border-collapse: collapse;margin-bottom:4mm;width: 22.1cm;";
+ var tableThStyle = "border-width: 1px;padding: 5px;border-style: solid;border-color: #666666;font-size: 14px;"
+ var tableTdStyle = "border-width: 1px;padding: 5px;border-style: solid;border-color: #666666;background-color: #ffffff;font-size: 14px;";
+ var tableNameStyle = "font-size: 16px;border-width: 1px;padding: 5px;border-style: solid;border-color: #666666;background-color: #ffffff;";
+ var html = '';
+ var data = obj.data;
+ for(var i=0;i";
+ table += '';
+ table += ''+item.name+' |
';
+ table += '';
+ table += '科室/名称 | ';
+ for(var j=0;j'+item.content.header[j]+'';
+ }
+ table += '
';
+ table += '';
+ table += '';
+ for(var j=0;j';
+ table += ''+item.content.body[j].depart+' | ';
+ for(var z=0;z'+item.content.body[j].count[z]+'';
+ }
+ table += '';
+ }
+ table += '';
+ table += '汇总 | ';
+ for(var j=0;j'+item.content.totalCount[j]+'';
+ }
+ table += '
';
+ table += '';
+ table += '';
+ html += table;
+ }
+ html += '
';
+ LODOP.ADD_PRINT_HTM(0,0,"95%","100%",""+html+"");
+ LODOP.SET_PRINT_PAGESIZE(3,'24.1cm','2cm','');
+ LODOP.SET_SHOW_MODE("HIDE_PAPER_BOARD",1);
+ LODOP.PREVIEW();
+}
var printConfig = {
//发货计划单
invoicePlan : invoicePlanPrintConfig,
@@ -1227,5 +1279,9 @@
//调拨出库单
appropriationOutList : appropriationOutListConfig,
//打印器械包明细单
- tousseDefinitionMaterials:tousseDefinitionMaterialsConfig_qifuyy
+ tousseDefinitionMaterials:tousseDefinitionMaterialsConfig_qifuyy,
+ //打印一次性物品汇总单
+ printDisposableGoodsInvoicePlanSummary:printDisposableGoodsInvoicePlanSummary_gdszyy,
+ //定制打印一次性物品汇总单的物资编码(必填)
+ //inventorySerialNumber:['31010100013','31010100014','31010100015','31010100018','31011200007']
};
\ No newline at end of file
Index: ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsApplicationView.js
===================================================================
diff -u -r29028 -r29113
--- ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsApplicationView.js (.../goodsApplicationView.js) (revision 29028)
+++ ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsApplicationView.js (.../goodsApplicationView.js) (revision 29113)
@@ -2791,7 +2791,58 @@
});
}
}
- }]
+ },{
+ text: '打印一次性物品汇总单',hidden: !sstsConfig.printDisposableGoodsInvoicePlanSummary, handler: function () {
+ top.Ext.MessageBox.confirm("请确认", "要打印打印一次性物品汇总单吗?",
+ function (btn) {
+ if (btn == 'yes') {
+ var inventorySerialNumber = printConfig.inventorySerialNumber || [];
+ if(inventorySerialNumber.length == 0){
+ showResult('请先在printConfig.js里面配置物资编码');
+ return;
+ }
+
+ Ext.Ajax.request({
+ url : WWWROOT + '/disinfectSystem/recyclingApplicationAction!printDisposableGoodsInvoicePlanSummary.do',
+ params : {
+ inventorySerialNumber:inventorySerialNumber.join(';')
+ },
+ success : function(response, options) {
+ var obj = Ext.decode(response.responseText);
+ if(obj.success){
+ if(printConfig.printDisposableGoodsInvoicePlanSummary){
+ if(obj.data.length == 0){
+ showResult('没有可打印的一次性物品');
+ return;
+ }
+ if(printConfig.printDisposableGoodsInvoicePlanSummary.customPrint){
+ printConfig.printDisposableGoodsInvoicePlanSummary.customPrint(obj);
+ grid.dwrReload();
+ }else {
+ showResult('未找到【一次性物品汇总单】的打印配置');
+ return
+ }
+ }else {
+ showResult('未找到【一次性物品汇总单】的打印配置');
+ return
+ }
+ }else{
+ showResult(obj.message);
+ }
+ },
+ failure : function(response, options) {
+ var result = Ext.decode(response.responseText);
+ if(result && result.message){
+ showResult(result.message);
+ }else{
+ showResult('打印失败');
+ }
+ }
+ });
+ }
+ });
+ }
+ }]
})
}, {
text: '设为已打印',