Explorar el Código

项目登记,无合同问题

[user3] hace 4 años
padre
commit
6ddf92bd99

+ 5 - 3
src/main/webapp/webpage/modules/ruralprojectrecords/cost/ruralCostProjectRecordsForm.jsp

@@ -131,8 +131,10 @@
             });
 
             //自动选择合同状态
-            if ($("#projectName").val() != null) {
+            if ($("#projectName").val() != "") {
                 if ($("#contractName").val() == "") {
+                    $("#ext1").iCheck("check");
+                }else{
                     $("#ext").iCheck("check");
                 }
             }
@@ -664,9 +666,9 @@
                     <div class="layui-item layui-col-sm6 lw7">
                         <label class="layui-form-label">合同情况:</label>
                         <div class="layui-input-block">
-                            <input type="radio" class="i-checks" name="ext" checked id="ext" value="0">
+                            <input type="radio" class="i-checks" name="ext" <c:if test="${ruralProjectRecords.id==null }">checked</c:if> id="ext" value="0">
                             <label for="ext">有合同</label>
-                            <input type="radio" class="i-checks" name="ext" id="ext1" value="1">
+                            <input type="radio" class="i-checks" name="ext" <c:if test="${ruralProjectRecords.id!=null and ruralProjectRecords.workContractInfo==null }">checked</c:if> id="ext1" value="1">
                             <label for="ext1">无合同</label>
                         </div>
                     </div>

+ 3 - 1
src/main/webapp/webpage/modules/ruralprojectrecords/ruralProjectRecordsForm.jsp

@@ -149,8 +149,10 @@
             });
 
             //自动选择合同状态
-            if ($("#projectName").val() != null) {
+            if ($("#projectName").val() != "") {
                 if ($("#contractName").val() == "") {
+                    $("#ext1").iCheck("check");
+                }else{
                     $("#ext").iCheck("check");
                 }
             }