Index: ssts-web/src/main/webapp/disinfectsystem/useRecord/useRecordForm.js =================================================================== diff -u -r31229 -r31292 --- ssts-web/src/main/webapp/disinfectsystem/useRecord/useRecordForm.js (.../useRecordForm.js) (revision 31229) +++ ssts-web/src/main/webapp/disinfectsystem/useRecord/useRecordForm.js (.../useRecordForm.js) (revision 31292) @@ -2691,7 +2691,10 @@ autoExpandColumn : 'delAction', frame : false, viewConfig: { - forceFit:true + forceFit:true, + getRowClass : function(record,rowIndex,rowParams,store){ + return 'my_row_color'; + } }, bodyStyle : 'border:1px solid #afd7af', selModel :sm, @@ -2901,13 +2904,41 @@ var tousseType = record.data['tousseType']; var tousseDefinitionName = record.data['tousseDefinitionName']; var barcode = v ? v : ""; + var content = "" if(tousseType != '一次性物品'){ var isComboTousse = (tousseType == '聚合包'); //点击条码链接显示器械包实例的追溯信息 - return "" + barcode + ""; + content = "" + barcode + ""; }else{ - return barcode; + content = barcode; } + if(tousseType == '外来器械包'){ + var hospitalNumber = record.get('hospitalNumber') || ''; + var clinicNumber = record.get('clinicNumber') || ''; + var patient = record.get('patient') || ''; + var hospitalNum = top.Ext.getCmp('hospitalNum').getValue() || ''; + var treatmentNum = top.Ext.getCmp('treatmentNum').getValue() || ''; + var patientName = top.Ext.getCmp('patientName').getValue() || ''; + var isShowColor = false; + if(hospitalNum !== '' && hospitalNumber !== '' && hospitalNum !== hospitalNumber){ + isShowColor = true; + }else if(treatmentNum !== '' && clinicNumber !== '' && treatmentNum !== clinicNumber){ + isShowColor = true; + }else if(patientName !== '' && patient !== '' && patientName !== patient){ + isShowColor = true; + } + if(isShowColor){ + if(tousseType != '一次性物品'){ + var isComboTousse = (tousseType == '聚合包'); + content = "" + barcode + ""; + } + return '