泛微OA 限制结束日期必须大于或者等于开始日期
<script> var ksrqFileid = WfForm.convertFieldNameToId("ksrq", "detail_1");//开始日期 var jsrqFileid = WfForm.convertFieldNameToId("jsrq", "detail_1");//结束日期 WfForm.bindFieldAction("onclick",ksrqFileid+","+jsrqFileid , function(fieldid,rowIndex){ ksrq=$("#"+ksrqFileid+"_"+rowIndex).val(); jsrq=$("#"+jsrqFileid+"_"+rowIndex).val(); //开始日期之后与结束日期之前 if(fieldid.indexOf(ksrqFileid)>-1){ WfForm.controlDateRange(jsrqFileid +"_"+rowIndex, '', jsrq); } else if(fieldid.indexOf(jsrqFileid)>-1){ WfForm.controlDateRange(jsrqFileid +"_"+rowIndex, ksrq, ''); } }) </script>