Index: ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationLookView.js =================================================================== diff -u -r37475 -r37476 --- ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationLookView.js (.../storageLocationLookView.js) (revision 37475) +++ ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationLookView.js (.../storageLocationLookView.js) (revision 37476) @@ -1084,8 +1084,10 @@ var records = grid.getSelectionModel().getSelections(); var checkedType = Ext.getCmp('queryType').getValue(); if (checkedType == '取出') { - var barcode = records[0].data.barcode; - putInOrTakeOutTousse(barcode, checkedType, 1); + if(records.length > 0){ + var barcode = records[0].data.barcode; + putInOrTakeOutTousse(barcode, checkedType, 1); + } } } },