Browse Source

询价信息查询查看梯度价格bug

zhuth 7 years ago
parent
commit
d206ae7487
1 changed files with 7 additions and 2 deletions
  1. 7 2
      frontend/saas-web/app/view/purchase/b2b/quotationList/DataList.js

+ 7 - 2
frontend/saas-web/app/view/purchase/b2b/quotationList/DataList.js

@@ -95,6 +95,12 @@ Ext.define('saas.view.purchase.b2b.quotationList.DataList', {
                         bind: {
                             store: '{record.qutations}'
                         },
+                        listeners: {
+                            itemmouseenter: function (view, record, item, index, e, eOpts) {
+                                var grid = view.up('grid');
+                                grid.focusRecord = record;
+                            }
+                        },
                         columns: [{
                             text: '供应商名称',
                             dataIndex: 'vendName',
@@ -144,8 +150,7 @@ Ext.define('saas.view.purchase.b2b.quotationList.DataList', {
                                         listeners: {								          
                                             beforeshow: function updateTipBody(tip) {
                                                 var dg = Ext.getCmp('grid-'+id);
-                                                var rowindex = tip.triggerElement.parentNode.rowIndex;
-                                                var rec = Ext.getCmp(grid.id).getStore().getAt(rowindex);
+                                                var rec = grid.focusRecord;
                                                 dg.store.loadData(rec.get('replies'));
                                                 dg.show();
                                             }