Index: ssts-web/src/main/webapp/disinfectsystem/materialmanager/materialOutView.js =================================================================== diff -u -r19571 -r24008 --- ssts-web/src/main/webapp/disinfectsystem/materialmanager/materialOutView.js (.../materialOutView.js) (revision 19571) +++ ssts-web/src/main/webapp/disinfectsystem/materialmanager/materialOutView.js (.../materialOutView.js) (revision 24008) @@ -497,12 +497,17 @@ top.Ext.getCmp('supplierId').setValue(record.data.id); combo.setValue(record.data.name); var materialId = top.Ext.getCmp('materialId').getValue(); - // 清空价格 - clearPrice(); - // 填充价格 - MaterialEntryTableManager.getPriceAmountInfo(record.data.id,materialId,top.Ext.getCmp('wareHouseId').getValue(),function(priceAmounts){ - setPrices(priceAmounts,true); - }); + var warehouseId = top.Ext.getCmp('wareHouseId').getValue(); + if(warehouseId){ + // 清空价格 + clearPrice(); + // 填充价格 + MaterialEntryTableManager.getPriceAmountInfo(record.data.id,materialId,warehouseId,function(priceAmounts){ + setPrices(priceAmounts,true); + }); + }else{ + showResult("请先选择要退库的仓库"); + } }, specialkey : function(field, e) { if (e.getKey() == Ext.EventObject.ENTER) {