yuanzhi_kuang il y a 6 jours
Parent
commit
793e3d9abd
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      js/customer/compensation/web/js/timepieceSchemeBillEx.js

+ 1 - 1
js/customer/compensation/web/js/timepieceSchemeBillEx.js

@@ -94,7 +94,7 @@ shr.defineClass("shr.compensation.TimepieceSchemeBillEx", shr.compensation.Timep
 						}
 					}
 					// 确保checkField存在且rowData中有该字段  锁定的字段绿色
-					if (checkField && rowData[checkField] !== undefined && boolVal.indexOf(checkField)!== -1 ) {
+					if (checkField && rowData[checkField] !== undefined && boolVal && boolVal.indexOf(checkField)!== -1 ) {
 						$entry.jqGrid('setCell', rowId, checkField, rowData[checkField], {
 							'background-color': cellColor
 						});