Index: ssts-web/src/main/webapp/js/common.js =================================================================== diff -u -r31728 -r31928 --- ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 31728) +++ ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 31928) @@ -3455,6 +3455,10 @@ var result = JSON.parse(jsonStr); if (result.success) { var tousses = result.tousseDefinitions; + var currentDateTime = result.currentDateTime || ''; + if(currentDateTime !== ''){ + currentDateTime = currentDateTime.split(' ')[0]; + } if (tousses != null && tousses.length > 0) { top.Ext.Msg.show({ title: '输入打印份数', @@ -3471,6 +3475,7 @@ for (var j = 0; j < Number(txt); j++) { for (var i = 0; i < tousses.length; i++) { var toussedef = tousses[i]; + toussedef.currentDateTime = currentDateTime; ++curNumber; Ext.MessageBox.updateProgress((curNumber) / count, '第' + (curNumber) + '个,共' + count + '个'); printTousseDefinitionMaterialsInTousseView(toussedef, 1); Index: ssts-web/src/main/webapp/disinfectsystem/print/print.js =================================================================== diff -u -r31885 -r31928 --- ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 31885) +++ ssts-web/src/main/webapp/disinfectsystem/print/print.js (.../print.js) (revision 31928) @@ -3135,16 +3135,23 @@ } var tableHtml = ret.tableHtml + "
器械总数量:"+ret.amount+"件"; - tableHtml += " | "; + if(tousseDefinitionObj.currentDateTime && tousseDefinitionObj.currentDateTime !== ''){ + tableHtml += "器械总数量: "+ret.amount+"件"; + tableHtml += " | "; + tableHtml += ""; + tableHtml += " | 打印日期: "+tousseDefinitionObj.currentDateTime; + tableHtml += " | "; + }else { + tableHtml += "器械总数量: "+ret.amount+"件"; + tableHtml += " | "; + } tableHtml += "|||||||||||||
器械总数量:"+amount+"件"; + tableHtml += " | 器械总数量:"+amount+"件"; tableHtml += " | "; tableHtml += "||||||
器械总数量:"+ret.amount+"件"; + tableHtml += " | 器械总数量:"+ret.amount+"件";
+ if(tousseDefinitionObj.currentDateTime && tousseDefinitionObj.currentDateTime !== ''){
+ tableHtml += " 打印日期:"+tousseDefinitionObj.currentDateTime+""; + } tableHtml += " | ";
tableHtml += "