Index: ssts-web/src/main/webapp/disinfectsystem/common/cssdUtils.js =================================================================== diff -u -r19578 -r19982 --- ssts-web/src/main/webapp/disinfectsystem/common/cssdUtils.js (.../cssdUtils.js) (revision 19578) +++ ssts-web/src/main/webapp/disinfectsystem/common/cssdUtils.js (.../cssdUtils.js) (revision 19982) @@ -98,7 +98,9 @@ jsonObj = Ext.decode(result); }); DWREngine.setAsync(true); - + setMaterialsByMaterialObjForPrint(tousseObj,jsonObj); +} +function setMaterialsByMaterialObjForPrint(tousseObj,jsonObj){ var materials = []; for(var i = 0; i < jsonObj.result.length;++i){ if(jsonObj.result[i].typeName != "一次性物品"){ @@ -110,7 +112,8 @@ } } tousseObj.materials = materials; - + tousseObj.materialAmount = jsonObj.materialAmount; + tousseObj.totalAmount = jsonObj.totalAmount; } // 设置灭菌程序简称 function setSterilisationAbbreviationForPrint(tousseObj,barcode){ @@ -275,6 +278,7 @@ jsonObj = Ext.decode(result); }); DWREngine.setAsync(true); + setMaterialsByMaterialObjForPrint(tousseObj,jsonObj); var pageType = jsonObj.barcodePaperType; if(isUndefinedOrNullOrEmpty(pageType)){ pageType = tousseObj.pageType;