Index: ssts-web/src/main/webapp/disinfectsystem/goodsBindingConfig/goodsBindHandler.js =================================================================== diff -u -r21483 -r21519 --- ssts-web/src/main/webapp/disinfectsystem/goodsBindingConfig/goodsBindHandler.js (.../goodsBindHandler.js) (revision 21483) +++ ssts-web/src/main/webapp/disinfectsystem/goodsBindingConfig/goodsBindHandler.js (.../goodsBindHandler.js) (revision 21519) @@ -64,31 +64,32 @@ goodType: curSelectedGoods.type }; } - - Ext.Ajax.request({ - url: WWWROOT + '/disinfectSystem/baseData/tousseDefinitionAction!getBindGoods.do', - params: params, - timeout: 600000, - method: 'POST', - success: function (response, options) { - try { - var result = Ext.decode(response.responseText); - if (!isUndefinedOrNullOrEmpty(result)) { - if (result.success) { - var records = result.data; - if (records.length > 0) { - me.addBindGood(records); - } - } else { - //绑定失败,不提示 - } + if (params.bindCount && params.goodId) { + Ext.Ajax.request({ + url: WWWROOT + '/disinfectSystem/baseData/tousseDefinitionAction!getBindGoods.do', + params: params, + timeout: 600000, + method: 'POST', + success: function (response, options) { + try { + var result = Ext.decode(response.responseText); + if (!isUndefinedOrNullOrEmpty(result)) { + if (result.success) { + var records = result.data; + if (records.length > 0) { + me.addBindGood(records); + } + } else { + //绑定失败,不提示 + } + } + } catch (e) { + alert("Exception : " + e); } - } catch (e) { - alert("Exception : " + e); + }, + failure: function (response, options) { + showResult(response.responseText); } - }, - failure: function (response, options) { - showResult(response.responseText); - } - }); + }); + } }