Index: ssts-web/src/main/webapp/disinfectsystem/packing/reviewView.js
===================================================================
diff -u -r17351 -r17512
--- ssts-web/src/main/webapp/disinfectsystem/packing/reviewView.js (.../reviewView.js) (revision 17351)
+++ ssts-web/src/main/webapp/disinfectsystem/packing/reviewView.js (.../reviewView.js) (revision 17512)
@@ -234,6 +234,10 @@
function showTousseInfoDiv(v,p,record,rowIndex, columnIndex, store) {
var result = v;
var id = record.data.id;
+ var haveUnSupplementMaterials = record.data.haveUnSupplementMaterials;
+ if(haveUnSupplementMaterials == true){
+ result = "◆ " + result;
+ }
return "" + result + "";;
}
@@ -1033,7 +1037,8 @@
{name : 'packageType'},
{name : 'scanned'},
{name : 'isTimeout'},
- {name : 'isUrgentTousse'}
+ {name : 'isUrgentTousse'},
+ {name : 'haveUnSupplementMaterials'}
];
@@ -1152,11 +1157,34 @@
var title2 = ("
装配人 | 装配时间 | 灭菌程序 | 有效期至 |
");
tableContent = ("器械包名称 | 包装类型 | 是否加急 | 灭菌开始时间 | ");
tableContent += "
" +content1+ title2 + content2 +"
";
+
+ if(record.get("haveUnSupplementMaterials") == true){
+ DWREngine.setAsync(false);
+ PackingTableManager.loadUnSupplementMaterialsByTousseInstance(record.get("id"),function(dataArray){
+ if(dataArray != ""){
+ var invoiceItems = JSON.parse(dataArray);
+ var content = "";
+ if (invoiceItems != null) {
+ for ( var i = 0; i < invoiceItems.length; i++) {
+ content += "|  "
+ + invoiceItems[i].materialName
+ + " | "
+ + invoiceItems[i].amount
+ + " | "
+ + invoiceItems[i].type
+ + " |
";
+ }
+ }
+ tableContent += ("材料名称 | 数量 | 类型 | ");
+ tableContent += "
" + content + "
";
+ }
+ });
+ DWREngine.setAsync(true);
+ }
record.set("htmlContent",tableContent);
}
var rowEl = Ext4.fly(e.getTarget());// 把target转换成Ext.Element对象
- rowEl.set({
- 'data-qtip' : tableContent,'data-qwidth':450,'data-qtitle':' 器械包信息:'},false);
+ rowEl.set({'data-qtip' : tableContent,'data-qwidth':450,'data-qtitle':' 器械包信息:'},false);
}
});