浏览代码

加强校验

yuanzhi_kuang 1 周之前
父节点
当前提交
793e3d9abd
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 						});