Index: ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js =================================================================== diff -u -r32403 -r32419 --- ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 32403) +++ ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 32419) @@ -5186,6 +5186,18 @@ if(sstsConfig.enablePackingMaterialsCheckFunction){ getPackingMaterialsForCheckFun(record); } + if(sstsConfig.printBOMwhenPrintLabel){ + var printBOMwhenPrintLabel = '否'; + if(record.childNodes.length > 0){ + printBOMwhenPrintLabel = record.childNodes[0].raw.printBOMwhenPrintLabel || '否'; + }else { + printBOMwhenPrintLabel = record.raw.printBOMwhenPrintLabel || '否'; + } + var packButton = Ext4.getCmp('save_print'); + if(printBOMwhenPrintLabel == '是'){ + packButton.setText('装配打印标签和材料清单'); + } + } }, 200); }, load: { @@ -5397,6 +5409,18 @@ getPackingMaterialsForCheckFun(record); } } + if(sstsConfig.printBOMwhenPrintLabel){ + var printBOMwhenPrintLabel = '否'; + if(record.childNodes.length > 0){ + printBOMwhenPrintLabel = record.childNodes[0].raw.printBOMwhenPrintLabel || '否'; + }else { + printBOMwhenPrintLabel = record.raw.printBOMwhenPrintLabel || '否'; + } + var packButton = Ext4.getCmp('save_print'); + if(printBOMwhenPrintLabel == '是'){ + packButton.setText('装配打印标签和材料清单'); + } + } }, 200); }, load: {