Jelajahi Sumber

【bug】【BL_2018100024】盘点单回车查询事件

zhuth 7 tahun lalu
induk
melakukan
44c7777656
1 mengubah file dengan 1 tambahan dan 13 penghapusan
  1. 1 13
      frontend/saas-web/app/view/stock/inventory/EditDataList.js

+ 1 - 13
frontend/saas-web/app/view/stock/inventory/EditDataList.js

@@ -214,18 +214,6 @@ Ext.define('saas.view.stock.inventory.EditDataList', {
         }  
     }],
 
-    listeners:{
-        boxready: function(grid, width, height, eOpts) {
-            var store = grid.getStore(),
-            gridBodyBox = grid.body.dom.getBoundingClientRect(),
-            gridBodyBoxHeight = gridBodyBox.height;
-
-            var pageSize = Math.floor(gridBodyBoxHeight / 33);
-
-            store.setPageSize(pageSize);
-        }
-    },
-
     initComponent: function() {
         var me = this;
         if(me.columns){
@@ -304,7 +292,7 @@ Ext.define('saas.view.stock.inventory.EditDataList', {
                     keydown: {
                         fn: function(th, e, eOpts) {
                             if(e.keyCode == 13) {
-                                grid.store.load();
+                                grid.onbuild();
                             }
                         }
                     }