Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedView.js =================================================================== diff -u -r22403 -r22464 --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedView.js (.../invoicePlanExtractedView.js) (revision 22403) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedView.js (.../invoicePlanExtractedView.js) (revision 22464) @@ -261,7 +261,26 @@ return applyDateDataArray; } Ext.onReady(function() { - Ext.QuickTips.init(); +// Ext.QuickTips.init(); +// Ext.apply(Ext.QuickTips.getQuickTip(), { +// showDelay: 0, +// trackMouse: false, +// hideDelay: true, +// closable: false, +// autoHide: false, +// draggable: true, +// anchorToTarget:true, +// dismissDelay: 0 +// }); + + Ext4.tip.QuickTipManager.init(); + Ext4.apply(Ext4.tip.QuickTipManager.getQuickTip(), { + maxWidth: 1200, + minWidth: 100, + dismissDelay: 0, + showDelay: 0 + }); +// top.Ext4.tip.QuickTipManager.init(); if(!isUndefinedOrNullOrEmpty(param_openMode)){ openMode = param_openMode; } @@ -307,6 +326,7 @@ {name : 'departCode'} ,{name : 'depart'} ,{name : 'remark'} + ,{name : 'applicationGoodsVos'} ,{name : 'urgency'} ] }) @@ -521,7 +541,44 @@ } }); + grid.on('mouseover', function(e) {// 添加mouseover事件 + var index = grid.getView().findRowIndex(e.getTarget());// 根据mouse所在的target可以取到列的位置 + if (index !== false) {// 当取到了正确的列时,(因为如果传入的target列没有取到的时候会返回false) + var record = this.getStore().getAt(index); + var tableContent = record.data['htmlContent']; + if(!tableContent){ + var content = ""; + var voItems = record.data['applicationGoodsVos']; + for(var i=0;i" : ">"; + content += ">"; + content += + " " + showTousseName +"" + + "" + count+"" + + "" + urgentAmount+""; + content +=""; + } + + tableContent = ("" + + "" + + "" + + "" + + ""); + tableContent += "" + content + "

申请的物品

待发

加急


"; + record.set("htmlContent",tableContent); + } +// alert(tableContent) + e.getTarget().setAttribute('data-qtip', tableContent); +// e.getTarget().setAttribute('data-qwidth', 1000); + e.getTarget().setAttribute('data-qtitle', ' 申请物品列表:'); + } + }); + var viewport = new Ext.Viewport({ layout:'border', items:[{ Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedView.jsp =================================================================== diff -u -r21956 -r22464 --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedView.jsp (.../invoicePlanExtractedView.jsp) (revision 21956) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedView.jsp (.../invoicePlanExtractedView.jsp) (revision 22464) @@ -5,6 +5,7 @@ <%@ page contentType="text/html; charset=UTF-8"%> <%@ include file="/common/taglibs.jsp"%> <%@ include file="/common/includeExtJsAndCss.jsp"%> +<%@ include file="/common/includeExtJs4_2.jsp"%>