Index: ssts-web/src/main/webapp/disinfectsystem/config/zjjsrmyy/print/printConfig.js =================================================================== diff -u -r29093 -r29186 --- ssts-web/src/main/webapp/disinfectsystem/config/zjjsrmyy/print/printConfig.js (.../printConfig.js) (revision 29093) +++ ssts-web/src/main/webapp/disinfectsystem/config/zjjsrmyy/print/printConfig.js (.../printConfig.js) (revision 29186) @@ -1139,6 +1139,7 @@ function customPrintinvoicePlanPrintConfig(obj){ var rows = obj.pages[0].rows; + var totalAmount = obj.pages[0].totalAmount; var newDate = new Date(); var year = newDate.getFullYear(); var mouth = (newDate.getMonth()+1>9)?(newDate.getMonth()+1):'0'+(newDate.getMonth()+1); @@ -1196,20 +1197,30 @@ } } var value = ''; + var k = 0; for(var i=0;i"; if(value !== rows[i].applicationDepart){ for(var j=0;j"+(k+1)+""; tableHtml += ""+rows[i].applicationDepart+""; + k++; } } } tableHtml += ""+rows[i].goodsName+""+rows[i].price+""+rows[i].goodsAmount+""; tableHtml += ""; value = rows[i].applicationDepart; } + tableHtml += ""; + tableHtml += ""+(k+1)+""; + tableHtml += "合计"; + tableHtml += "湿化瓶"+(totalAmount[0] || 0)+""; + tableHtml += ""; + tableHtml += ""; + tableHtml += "压脉带"+(totalAmount[1] || 0)+""; + tableHtml += ""; tableHtml += ""; tableHtml += ""; tableHtml += "
制单时间:"+today+"
";