|
@@ -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>
|