Index: ssts-web/src/main/webapp/systemmanage/operationNameView.js =================================================================== diff -u -r15387 -r15410 --- ssts-web/src/main/webapp/systemmanage/operationNameView.js (.../operationNameView.js) (revision 15387) +++ ssts-web/src/main/webapp/systemmanage/operationNameView.js (.../operationNameView.js) (revision 15410) @@ -62,11 +62,12 @@ } } -function deleteGoodsItem(rowIndex){ - if(rowIndex != null){ - var record = useTousseStore.getAt(rowIndex); - if(record){ +function deleteGoodsItem(tousseDefinitionId){ + for(var i = 0;i < useTousseStore.getCount();i++){ + var record = useTousseStore.getAt(i); + if(record.data.tousseDefinitionId == tousseDefinitionId){ useTousseStore.remove(record); + break; } } } @@ -112,15 +113,13 @@ menuDisabled: true, dataIndex:'button', renderer: function(v,p,record,rowIndex){ - return ""; + return ""; } }]); - var searchUrl = WWWROOT + '/disinfectSystem/baseData/tousseDefinitionAction!searchComboTousseData.do'; - tousseAndDiposableGoodsStore = new Ext.data.Store({ proxy : new Ext.data.HttpProxy({ - url : searchUrl, + url : WWWROOT + '/disinfectSystem/baseData/tousseDefinitionAction!searchTousseAndDressing.do', method : 'POST' }), reader : new Ext.data.JsonReader({ @@ -157,12 +156,12 @@ listeners : { select : function(combo, record, index) { top.Ext.getCmp('goodsSearch').setValue(record.data.name); - }, + }/*, specialkey : function(field, e) { if (e.getKey() == Ext.EventObject.ENTER) { top.Ext.getCmp('amount').focus(); } - } + }*/ } },{ text : '数量'