Index: ssts-web/src/main/webapp/disinfectsystem/assestManagement/godownEntry/godownOutView.js =================================================================== diff -u -r12758 -r12797 --- ssts-web/src/main/webapp/disinfectsystem/assestManagement/godownEntry/godownOutView.js (.../godownOutView.js) (revision 12758) +++ ssts-web/src/main/webapp/disinfectsystem/assestManagement/godownEntry/godownOutView.js (.../godownOutView.js) (revision 12797) @@ -1,7 +1,8 @@ var entityName = "退库单管理"; var grid; var g_localID = 1;// 为了区分每一个item,增加的ID。 -var entryid = ''; +var commonEntry = new commonEntry(); + //单价数据源 var priceStore = null; var PriceRecord = null; @@ -76,7 +77,7 @@ ]), listeners : { load : function(store,records) { - if(records.length > 0 && (entryid == null || entryid == '')){ + if(records.length > 0 && (!commonEntry.isOpen())){ var combo = top.Ext.getCmp("wareHouse1"); // 触发选中事件 combo.fireEvent('select', combo,records[0],0); @@ -358,6 +359,7 @@ setWareHouseInfo(record.data.id,record.data.name); top.Ext.getCmp('wareHouse1').setValue(record.data.id); top.Ext.getCmp('name1').focus(); + top.Ext.getCmp('name1').enable(); }, specialkey : function(field, ee) { if (ee.getKey() == Ext.EventObject.ENTER) { @@ -489,6 +491,7 @@ hideTrigger : true, typeAhead : false, allowBlank : true, + disabled : true, width : 180, listeners : { select : function(combo, record, index) { @@ -499,9 +502,9 @@ // 清空批次和价格 clearBatchNumberAndPrice(); - + var wareHouseid = top.Ext.getCmp('warehouseID').getValue(); // DiposableGoodsTableManager.getBatchNumbersByDiposableGoodsId(record.data.id,"inStock",function(batchNumbers){ - DiposableGoodsTableManager.getBatchsByDiposableGoodsId(record.data.id,false,function(batchesStr){ + DiposableGoodsTableManager.getBatchsByDiposableGoodsId(record.data.id,wareHouseid,false,function(batchesStr){ var batches = JSON.parse(batchesStr); // alert(batchesStr) for(var i = 0;i