Browse Source

项目登记(项目所在地判断)

[user3] 4 years ago
parent
commit
9c07426572

+ 8 - 4
src/main/webapp/webpage/modules/ruralprojectrecords/cost/ruralCostProjectRecordsAdminModify.jsp

@@ -31,7 +31,11 @@
             if(validateForm.form()){
                 var startDate = new Date($("#startDate").val());
                 var endingDate = new Date($("#endingDate").val());
-
+                var projectProperties=$("#projectProperties").val();
+                if(projectProperties==''){
+                    parent.layer.msg("投资性质未选择!", {icon: 5});
+                    return false;
+                }
                 if(startDate.getTime() > endingDate.getTime()){
                     parent.layer.msg("工作开始日期不得大于工作结束日期!", {icon: 5});
                     return false;
@@ -754,8 +758,8 @@
                     <label class="layui-form-label"><span class="require-item">*</span>项目所在地:</label>
                     <div class="layui-input-block  with-icon">
                         <sys:treeselectProject id="area" name="area.id" value="${projectRecords.area.id}" labelName="area.name" labelValue="${projectRecords.area.name}"
-                                               cssStyle="background-color:#fff" title="区域" url="/sys/area/treeData" cssClass="form-control layui-input judgment" allowClear="true" notAllowSelectParent="true"/>
-                        <span id="areaShow" style="color: #999"><c:if test="${projectRecords.area.id!=null}">${projectRecords.province}-${projectRecords.city}-${projectRecords.county}</c:if></span>
+                                               cssStyle="background-color:#fff" title="区域" url="/sys/area/treeData" cssClass="form-control layui-input required" allowClear="true" notAllowSelectParent="true"/>
+                        <span id="areaShow" style="color: red"><c:if test="${projectRecords.area.id!=null}">${projectRecords.province}-${projectRecords.city}-${projectRecords.county}</c:if></span>
 
                     </div>
                 </div>
@@ -822,7 +826,7 @@
                     <div class="layui-input-block">
                         <button type="button" class="layui-btn layui-btn-primary" style="width: 100%;text-align: left" id="demo100">
                             <span>${engineeringInfo.engineeringName}</span>
-                            <input type="hidden" name="engineeringType" id="engineeringType" class="judgment" value="${engineeringInfo.id}"/>
+                            <input type="hidden" name="engineeringType" id="engineeringType" class="required" value="${engineeringInfo.id}"/>
                             <i class="layui-icon layui-icon-down layui-font-12" style="float: right"></i>
                         </button>
                     </div>

+ 7 - 2
src/main/webapp/webpage/modules/ruralprojectrecords/cost/ruralCostProjectRecordsForm.jsp

@@ -66,6 +66,11 @@
                 if(i==2){
                     $("#inputForm").attr("action","${ctx}/ruralProject/ruralCostProjectRecords/tstore");
                 }else{
+                    var projectProperties=$("#projectProperties").val();
+                    if(projectProperties==''){
+                        parent.layer.msg("投资性质未选择!", {icon: 5});
+                        return false;
+                    }
                     var flag = $("#flagFile").val();
                     if(flag == 'false'){
                         top.layer.msg('附件信息未上传完成,请等待!', {icon: 0});
@@ -880,8 +885,8 @@
                     <label class="layui-form-label"><span class="require-item">*</span>项目所在地:</label>
                     <div class="layui-input-block  with-icon">
                         <sys:treeselectProject id="area" name="area.id" value="${ruralProjectRecords.area.id}" labelName="area.name" labelValue="${ruralProjectRecords.area.name}"
-                                       cssStyle="background-color: #fff" title="区域" url="/sys/area/treeData" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="false"/>
-                        <span id="areaShow" style="color: #999"><c:if test="${ruralProjectRecords.area.id!=null}">${ruralProjectRecords.province}-${ruralProjectRecords.city}-${ruralProjectRecords.county}</c:if></span>
+                                       cssStyle="background-color: #fff" title="区域" url="/sys/area/treeData" cssClass="form-control judgment layui-input" allowClear="true" notAllowSelectParent="false"/>
+                        <span id="areaShow" style="color: red"><c:if test="${ruralProjectRecords.area.id!=null}">${ruralProjectRecords.province}-${ruralProjectRecords.city}-${ruralProjectRecords.county}</c:if></span>
                     </div>
                 </div>
                 <div class="layui-item layui-col-sm6 lw7">

+ 7 - 3
src/main/webapp/webpage/modules/ruralprojectrecords/cost/ruralCostProjectRecordsModify.jsp

@@ -46,7 +46,11 @@
 		  if(validateForm.form()){
               var startDate = new Date($("#startDate").val());
               var endingDate = new Date($("#endingDate").val());
-
+              var projectProperties=$("#projectProperties").val();
+              if(projectProperties==''){
+                  parent.layer.msg("投资性质未选择!", {icon: 5});
+                  return false;
+              }
               if(startDate.getTime() > endingDate.getTime()){
                   parent.layer.msg("工作开始日期不得大于工作结束日期!", {icon: 5});
                   return false;
@@ -889,8 +893,8 @@
                     <label class="layui-form-label">项目所在地:</label>
                     <div class="layui-input-block  with-icon">
                         <sys:treeselectProject id="area" name="area.id" value="${projectRecords.area.id}" labelName="area.name" labelValue="${projectRecords.area.name}"
-                                               cssStyle="background-color:#fff" title="区域" url="/sys/area/treeData" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
-                        <span id="areaShow" style="color: #999"><c:if test="${projectRecords.area.id!=null}">${projectRecords.province}-${projectRecords.city}-${projectRecords.county}</c:if></span>
+                                               cssStyle="background-color:#fff" title="区域" url="/sys/area/treeData" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
+                        <span id="areaShow" style="color: red"><c:if test="${projectRecords.area.id!=null}">${projectRecords.province}-${projectRecords.city}-${projectRecords.county}</c:if></span>
 
                     </div>
                 </div>

+ 7 - 3
src/main/webapp/webpage/modules/ruralprojectrecords/ruralProjectRecordsAdminModify.jsp

@@ -31,7 +31,11 @@
 		  if(validateForm.form()){
               var startDate = new Date($("#startDate").val());
               var endingDate = new Date($("#endingDate").val());
-
+              var projectProperties=$("#projectProperties").val();
+              if(projectProperties==''){
+                  parent.layer.msg("投资性质未选择!", {icon: 5});
+                  return false;
+              }
               if(startDate.getTime() > endingDate.getTime()){
                   parent.layer.msg("工作开始日期不得大于工作结束日期!", {icon: 5});
                   return false;
@@ -744,8 +748,8 @@
                     <label class="layui-form-label">项目所在地:</label>
                     <div class="layui-input-block  with-icon">
                         <sys:treeselectProject id="area" name="area.id" value="${projectRecords.area.id}" labelName="area.name" labelValue="${projectRecords.area.name}"
-                                               cssStyle="background-color:#fff" title="区域" url="/sys/area/treeData" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
-                        <span id="areaShow" style="color: #999"><c:if test="${projectRecords.area.id!=null}">${projectRecords.province}-${projectRecords.city}-${projectRecords.county}</c:if></span>
+                                               cssStyle="background-color:#fff" title="区域" url="/sys/area/treeData" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
+                        <span id="areaShow" style="color: red"><c:if test="${projectRecords.area.id!=null}">${projectRecords.province}-${projectRecords.city}-${projectRecords.county}</c:if></span>
 
                     </div>
                 </div>

+ 6 - 2
src/main/webapp/webpage/modules/ruralprojectrecords/ruralProjectRecordsForm.jsp

@@ -54,7 +54,11 @@
 
                 var startDate = new Date($("#startDate").val());
                 var endingDate = new Date($("#endingDate").val());
-
+                var projectProperties=$("#projectProperties").val();
+                if(projectProperties==''){
+                    parent.layer.msg("投资性质未选择!", {icon: 5});
+                    return false;
+                }
                 if(startDate.getTime() > endingDate.getTime()){
                     parent.layer.msg("工作开始日期不得大于工作结束日期!", {icon: 5});
                     return false;
@@ -900,7 +904,7 @@
                     <div class="layui-input-block  with-icon">
                         <sys:treeselectProject id="area" name="area.id" value="${ruralProjectRecords.area.id}" labelName="area.name" labelValue="${ruralProjectRecords.area.name}"
                                                cssStyle="background-color:#fff" title="区域" url="/sys/area/treeData" cssClass="form-control layui-input judgment" allowClear="true" notAllowSelectParent="true"/>
-                        <span id="areaShow" style="color: #999"><c:if test="${ruralProjectRecords.area.id!=null}">${ruralProjectRecords.province}-${ruralProjectRecords.city}-${ruralProjectRecords.county}</c:if></span>
+                        <span id="areaShow" style="color: red"><c:if test="${ruralProjectRecords.area.id!=null}">${ruralProjectRecords.province}-${ruralProjectRecords.city}-${ruralProjectRecords.county}</c:if></span>
 
                     </div>
                 </div>

+ 7 - 2
src/main/webapp/webpage/modules/ruralprojectrecords/ruralProjectRecordsModify.jsp

@@ -57,6 +57,11 @@
                   top.layer.msg("请选择委托方联系人!", {icon: 5});
                   return;
               }
+              var projectProperties=$("#projectProperties").val();
+              if(projectProperties==''){
+                  parent.layer.msg("投资性质未选择!", {icon: 5});
+                  return false;
+              }
               var flag = $("#flagFile").val();
               if(flag == 'false'){
                   top.layer.msg('附件信息未上传完成,请等待!', {icon: 0});
@@ -880,8 +885,8 @@
                     <label class="layui-form-label">项目所在地:</label>
                     <div class="layui-input-block  with-icon">
                         <sys:treeselectProject id="area" name="area.id" value="${projectRecords.area.id}" labelName="area.name" labelValue="${projectRecords.area.name}"
-                                       cssStyle="background-color:#fff" title="区域" url="/sys/area/treeData" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
-                        <span id="areaShow" style="color: #999"><c:if test="${projectRecords.area.id!=null}">${projectRecords.province}-${projectRecords.city}-${projectRecords.county}</c:if></span>
+                                       cssStyle="background-color:#fff" title="区域" url="/sys/area/treeData" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
+                        <span id="areaShow" style="color: red"><c:if test="${projectRecords.area.id!=null}">${projectRecords.province}-${projectRecords.city}-${projectRecords.county}</c:if></span>
 
                     </div>
                 </div>