Index: ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsApplicationView.js =================================================================== diff -u -r21380 -r21392 --- ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsApplicationView.js (.../goodsApplicationView.js) (revision 21380) +++ ssts-web/src/main/webapp/disinfectsystem/recyclingApplication/goodsApplicationView.js (.../goodsApplicationView.js) (revision 21392) @@ -2490,7 +2490,9 @@ Ext4.tip.QuickTipManager.init(); Ext4.apply(Ext4.tip.QuickTipManager.getQuickTip(), { - dismissDelay: 0, + maxWidth: 1200, + minWidth: 100, + dismissDelay: 0, showDelay: 0 }); top.Ext4.tip.QuickTipManager.init(); @@ -2866,26 +2868,68 @@ var index = grid.getView().findRowIndex(e.getTarget());// 根据mouse所在的target可以取到列的位置 if (index !== false) {// 当取到了正确的列时,(因为如果传入的target列没有取到的时候会返回false) var record = this.getStore().getAt(index); + //1、借物单特有的 var BorrowName = ''; var BorrowAmount = ''; - var isDiposableApplicationForm = (record.data['type']==diposableGoodsApplicationForm); + //2、外来器械包申请单特有的 + var ForeignName = ''; + var ForeignContent = ''; + //3、装配数量和灭菌数量 + var PackAndSterileName = ''; + var PackAndSterileContent = ''; + + var isForeignTousseApplicationForm = record.data['type'] == '外来器械包申请单'; //是否外来器械包申请单 + var isDiposableApplicationForm = (record.data['type']==diposableGoodsApplicationForm); //是否外来器械包申请单 tableContent = record.data['htmlContent'];// if(!tableContent){ var content = ""; DWREngine.setAsync(false); InvoicePlanTableManager.findApplicationItemVOListByInvoicePlanId(record.data['id'],function(voItems){ for(var i=0;i"; } - var recyclingAmount = voItems[i].recyclingAmount; + if(isForeignTousseApplicationForm){ + ForeignName = + "

供应商

" + + "

医生名称

" + + "

拆包数量

"; + ForeignContent = + "" + voItems[i].supplierName+"" + + "" + voItems[i].doctor+"" + + "" + voItems[i].splitAmount+""; + } + + if (!isDiposableApplicationForm) { + PackAndSterileName = + "

装配数量

" + + "

灭菌数量

"; + PackAndSterileContent = + "" + packedAmount+"" + + "" + sterilizationAmount+""; + } content += "" : ">"; - content +=" " + tousseName +"" + voItems[i].amountDisplay+"" + recyclingAmount+"" + voItems[i].invoiceAmount+"" + BorrowAmount; - // content +=" " + tousseName +"" + voItems[i].amount+"" + recyclingAmount+"" + voItems[i].invoiceAmount+""+BorrowAmount; + content += + ForeignContent + + " " + tousseName +"" + + "" + voItems[i].amountDisplay+"" + + "" + recyclingAmount+"" + + PackAndSterileContent + + "" + invoiceAmount+"" + + BorrowAmount; + + + //一次性物品加编号 if(isDiposableApplicationForm){ var code = voItems[i].externalCode; @@ -2908,15 +2952,23 @@ } }); DWREngine.setAsync(true); - tableContent = (""+BorrowName); + tableContent = ("

物品名称

申请数量

回收数量

已发货数量

" + + "" + + ForeignName + + "" + + "" + + "" + + PackAndSterileName + + "" + + BorrowName); if(isDiposableApplicationForm){ tableContent += ""; } tableContent += "" + content + "

物品名称

申请数量

回收数量

发货数量

编码


"; record.set("htmlContent",tableContent); } e.getTarget().setAttribute('data-qtip', tableContent); - e.getTarget().setAttribute('data-qwidth', 450); +// e.getTarget().setAttribute('data-qwidth', 1000); e.getTarget().setAttribute('data-qtitle', ' 申请物品列表:'); } });