Index: ssts-web/src/main/webapp/disinfectsystem/common/cssdUtils.js =================================================================== diff -u -r17278 -r17479 --- ssts-web/src/main/webapp/disinfectsystem/common/cssdUtils.js (.../cssdUtils.js) (revision 17278) +++ ssts-web/src/main/webapp/disinfectsystem/common/cssdUtils.js (.../cssdUtils.js) (revision 17479) @@ -86,7 +86,28 @@ names.sterilizationUserToPrint = sterilizationUserToPrint; return names; } - +// 设置材料 +function setMaterialsForPrint(tousseObj,barcode){ + var jsonObj = ""; + DWREngine.setAsync(false); + PackingTableManager.getMaterialByBarcode(barcode,function(result){ + jsonObj = Ext.decode(result); + }); + DWREngine.setAsync(true); + + var materials = []; + for(var i = 0; i < jsonObj.result.length;++i){ + if(jsonObj.result[i].typeName != "一次性物品"){ + materials.push(jsonObj.result[i]); + }else{ + if(sstsConfig && sstsConfig.tousseLabelPrintDisposableGoods != false){ + materials.push(jsonObj.result[i]); + } + } + } + tousseObj.materials = materials; + +} function printLabel(tousseObj){ var barcodes = tousseObj.barcodes;