Index: ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsTemplateApplicationView.js =================================================================== diff -u -r12925 -r12934 --- ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsTemplateApplicationView.js (.../goodsTemplateApplicationView.js) (revision 12925) +++ ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsTemplateApplicationView.js (.../goodsTemplateApplicationView.js) (revision 12934) @@ -11,7 +11,14 @@ if (sstsConfig.invoicePlanPrintButtonName != undefined){ invoicePlanPrintButtonName = sstsConfig.invoicePlanPrintButtonName; } - +function reloadGoodsComboStore(){ + var deptName = top.Ext4.getCmp("handleDepart").getValue(); + var deptCoding = getHandleDepartCoding(handleDepartStore,deptName); + top.Ext4.getCmp("handleDepartCoding").setValue(deptCoding); + + comboGoodsStore.proxy.extraParams.cssdOrgUnitCode = deptCoding; + comboGoodsStore.reload(); +} // 更新消毒物品的父节点信息,即文件夹节点保存的信息 function updateDisinfectParentNode(node){ var nullAmount = 0; @@ -1916,12 +1923,7 @@ flex : 1, listeners:{ select:function(combo, record, index){ - var deptName = top.Ext4.getCmp("handleDepart").getValue(); - var deptCoding = getHandleDepartCoding(handleDepartStore,deptName); - top.Ext4.getCmp("handleDepartCoding").setValue(deptCoding); - - comboGoodsStore.proxy.extraParams.cssdOrgUnitCode = deptCoding; - comboGoodsStore.reload(); + reloadGoodsComboStore(); }, focus : function(thiz){ thiz.selectText(); @@ -2007,6 +2009,9 @@ typeAhead : false, allowBlank : true, listeners : { + focus : function( thiz, The, eOpts ){ + reloadGoodsComboStore(); + }, select : function(combo, records, index) { var record = records; if (records.length > 0){