|
@@ -55,11 +55,21 @@
|
|
|
top.layer.msg("请选择委托方联系人!", {icon: 5});
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
var startDate = new Date($("#startDate").val());
|
|
|
var endingDate = new Date($("#endingDate").val());
|
|
|
|
|
|
var projectStartDate = new Date('${projectStartDate}');
|
|
|
var projectEndDate = new Date('${projectEndDate}');
|
|
|
+ if(null == startDate||undefined==startDate ||"Invalid Date"==startDate){
|
|
|
+ parent.layer.msg("工作开始日期不能为空!", {icon: 5});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if(null==endingDate||undefined==endingDate||"Invalid Date" == endingDate){
|
|
|
+ parent.layer.msg("工作结束日期不能为空!", {icon: 5});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
|
|
|
if(startDate.getTime() > endingDate.getTime()){
|
|
|
parent.layer.msg("工作开始日期不得大于工作结束日期!", {icon: 5});
|
|
@@ -106,7 +116,7 @@
|
|
|
return false;
|
|
|
}
|
|
|
//500万及500万以上为A及,500万以下为B及
|
|
|
- if(submitMoney==1 ){
|
|
|
+ /*if(submitMoney==1 ){
|
|
|
if (submitScale>=500){
|
|
|
parent.layer.msg("送审规模大于500万元,项目等级请选择A级!", {icon: 5});
|
|
|
return false;
|
|
@@ -123,7 +133,7 @@
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
|
|
|
var attachmentProjectSort=$("#attachmentProjectSort").val();
|
|
@@ -512,7 +522,7 @@
|
|
|
$("#installUnitFees").val(pp);
|
|
|
}
|
|
|
|
|
|
- function setLinkMan(newClientId) {
|
|
|
+ /*function setLinkMan(newClientId) {
|
|
|
$.ajax({
|
|
|
url:"${ctx}/ruralProject/ruralCostProjectRecords/getLinkManByClientId",
|
|
|
data:{"clientId":newClientId},
|
|
@@ -551,7 +561,7 @@
|
|
|
$("#linkmanButton").addClass("forbidden");
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
+ }*/
|
|
|
function setValuee(obj){
|
|
|
var successRows = 0;
|
|
|
ss = $("#workClientLinkmanList tr").length;
|
|
@@ -895,7 +905,7 @@
|
|
|
<div class="form-group layui-row first">
|
|
|
<div class="form-group layui-row">
|
|
|
<div class="form-group-label"><h2>项目合同信息</h2></div>
|
|
|
- <div class="layui-item layui-col-sm6 lw7">
|
|
|
+ <div class="layui-item layui-col-sm6 lw7" style="display: none">
|
|
|
<label class="layui-form-label">合同情况:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input type="radio" title="有合同" lay-filter="ext" name="ext" checked id="ext" value="0">
|
|
@@ -1058,9 +1068,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
|
- <label class="layui-form-label"><span class="require-item">*</span>项目责任人:</label>
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>审核人</label>
|
|
|
<div class="layui-input-block with-icon">
|
|
|
- <sys:treeselect id="master" name="projectLeaders" value="${ruralProjectRecords.leaderIds}" labelName="leaderNameStr" labelValue="${ruralProjectRecords.leaderNameStr}"
|
|
|
+ <sys:treeselect id="master" name="projectLeaders" value="${ruralProjectRecords.leaderIds}" labelName="reviewerPerson" labelValue="${ruralProjectRecords.reviewerPerson}"
|
|
|
cssStyle="background-color: #fff" title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control judgment layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1102,11 +1112,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="layui-item layui-col-sm6 lw7">
|
|
|
+ <div class="layui-item layui-col-sm6 lw7" style="display: none">
|
|
|
<label class="layui-form-label"><span class="require-item">*</span>项目等级:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<c:forEach items="${fns:getMainDictListOnProjectAdvent('attachment_project_grade')}" var="v">
|
|
|
- <input type="radio" name="submitMoney" lay-filter="submitMoney" id="submitMoney" value="${v.value}" title="${v.label}" <c:if test="${ruralProjectRecords.submitMoney==v.value}">checked</c:if>>
|
|
|
+ <input type="radio" name="submitMoney" lay-filter="submitMoney" id="submitMoney" value="${v.value}" <c:if test="${v.value==1}">checked</c:if> title="${v.label}" <%--<c:if test="${ruralProjectRecords.submitMoney==v.value}">checked</c:if>--%>>
|
|
|
</c:forEach>
|
|
|
<%-- <p style="color: red;font-size: 12px;">200万以上部队或政府项目及500万以上其它项目为A级,其余为B级</p>--%>
|
|
|
<p style="color: red;font-size: 12px;">500万及500万以上为A级,500万以下为B级</p>
|
|
@@ -1114,7 +1124,7 @@
|
|
|
</div>
|
|
|
|
|
|
<c:if test="${ruralProjectRecords.createReportFlag}">
|
|
|
- <div class="layui-item layui-col-sm6 lw7">
|
|
|
+ <div class="layui-item layui-col-sm6 lw7" style="display: none">
|
|
|
<label class="layui-form-label double-line"><span class="require-item">*</span>是否生成报告号:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<div style="margin-right: 30px;">
|
|
@@ -1294,11 +1304,14 @@
|
|
|
<div>
|
|
|
<div class="form-group-label"><h2><span class="require-item">*</span>委托方联系人信息</h2></div>
|
|
|
<div id="linkmanDiv" class="layui-item nav-btns" style="float: left;width: 155px">
|
|
|
- <sys:gridselect1 id="linkman" url="${ctx}/workclientinfo/workClientInfo/linkmanList"
|
|
|
+ <a class="nav-btn nav-btn-add"
|
|
|
+ onclick="workClientLinkmanTplInfo('#workClientLinkmanList', workClientLinkmanRowIdx, workClientLinkmanTpl);workClientLinkmanRowIdx = workClientLinkmanRowIdx + 1;"
|
|
|
+ title="新增委托方联系人"><i class="fa fa-plus"></i> 新增委托方联系人</a>
|
|
|
+ <%--<sys:gridselect1 id="linkman" url="${ctx}/workclientinfo/workClientInfo/linkmanList"
|
|
|
name="linkman.id" title="选择客户"
|
|
|
value="${ruralProjectRecords.workContractInfo.workClinetInfoIds}"
|
|
|
cssClass="form-control judgment" fieldLabels="联系人" fieldKeys="name"
|
|
|
- searchLabel="联系人" searchKey="name"></sys:gridselect1>
|
|
|
+ searchLabel="联系人" searchKey="name"></sys:gridselect1>--%>
|
|
|
</div>
|
|
|
<%-- <div id="addUserButton" class="layui-item nav-btns" style="float: left;">--%>
|
|
|
<%-- <a id="aButton" href="javascript:void(0)"--%>
|
|
@@ -1329,17 +1342,17 @@
|
|
|
<input id="workClientLinkmanList{{idx}}_delFlag" name="workClientLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input <input style="background-color: #FFFFFF;" readonly="true" id="workClientLinkmanList{{idx}}_clientName" name="workClientLinkmanList[{{idx}}].clientId.name" type="text" value="{{row.clientId.name}}" class="form-control "/>
|
|
|
+ <input <input style="background-color: #FFFFFF;" id="workClientLinkmanList{{idx}}_clientName" name="workClientLinkmanList[{{idx}}].clientId.name" type="text" value="{{row.clientId.name}}" class="form-control "/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input <input style="background-color: #FFFFFF;" readonly="true" id="workClientLinkmanList{{idx}}_name" name="workClientLinkmanList[{{idx}}].name" type="text" value="{{row.name}}" class="form-control judgment"/>
|
|
|
+ <input <input style="background-color: #FFFFFF;" id="workClientLinkmanList{{idx}}_name" name="workClientLinkmanList[{{idx}}].name" type="text" value="{{row.name}}" class="form-control judgment"/>
|
|
|
</td>
|
|
|
|
|
|
<td>
|
|
|
- <input <input style="background-color: #FFFFFF;" readonly="true" id="workClientLinkmanList{{idx}}_linkPhone" name="workClientLinkmanList[{{idx}}].linkPhone" type="text" value="{{row.linkPhone}}" class="form-control isTel"/>
|
|
|
+ <input <input style="background-color: #FFFFFF;" id="workClientLinkmanList{{idx}}_linkPhone" name="workClientLinkmanList[{{idx}}].linkPhone" type="text" value="{{row.linkPhone}}" class="form-control isTel"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input <input style="background-color: #FFFFFF;" readonly="true" id="workClientLinkmanList{{idx}}_linkMobile" name="workClientLinkmanList[{{idx}}].linkMobile" type="text" value="{{row.linkMobile}}" class="form-control isPhone"/>
|
|
|
+ <input <input style="background-color: #FFFFFF;" id="workClientLinkmanList{{idx}}_linkMobile" name="workClientLinkmanList[{{idx}}].linkMobile" type="text" value="{{row.linkMobile}}" class="form-control isPhone"/>
|
|
|
</td>
|
|
|
<td class="text-center op-td" >
|
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delEntrustRow(this, '#workClientLinkmanList{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}
|
|
@@ -1349,6 +1362,10 @@
|
|
|
<script type="text/javascript">
|
|
|
var workClientLinkmanRowIdx = 0,
|
|
|
workClientLinkmanTpl = $("#workClientLinkmanTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
|
|
|
+ function workClientLinkmanTplInfo(id,workClientLinkmanRowIdx,workClientLinkmanTpl){
|
|
|
+ addRow(id, workClientLinkmanRowIdx, workClientLinkmanTpl, "");
|
|
|
+ }
|
|
|
+
|
|
|
$(document).ready(function () {
|
|
|
var data = ${fns:toJson(workClientInfo.workClientLinkmanList)};
|
|
|
if(data!=null && data.length() > 0){
|
|
@@ -1365,8 +1382,11 @@
|
|
|
<div class="form-group layui-row">
|
|
|
<div class="form-group-label"><h2>施工方信息</h2></div>
|
|
|
<div class="layui-item nav-btns" style="float: left;width: 155px">
|
|
|
- <sys:gridselectConstruction url="${ctx}/workclientinfo/workClientInfo/clientInfolist" id="constructionOrgList" title="选择施工单位"
|
|
|
- cssClass="form-control required" fieldLabels="${fns:urlEncode('客户编号')}" fieldKeys="name" searchLabel="${fns:urlEncode('客户名称')}" searchKey="name"></sys:gridselectConstruction>
|
|
|
+ <a class="nav-btn nav-btn-add"
|
|
|
+ onclick="workClientLinkmanTplInfo('#workConstructionLinkmanList', workConstructionLinkmanRowIdx, workConstructionLinkmanTpl);workConstructionLinkmanRowIdx = workConstructionLinkmanRowIdx + 1;"
|
|
|
+ title="新增施工方联系人"><i class="fa fa-plus"></i> 新增施工方联系人</a>
|
|
|
+ <%--<sys:gridselectConstruction url="${ctx}/workclientinfo/workClientInfo/clientInfolist" id="constructionOrgList" title="选择施工单位"
|
|
|
+ cssClass="form-control required" fieldLabels="${fns:urlEncode('客户编号')}" fieldKeys="name" searchLabel="${fns:urlEncode('客户名称')}" searchKey="name"></sys:gridselectConstruction>--%>
|
|
|
</div>
|
|
|
|
|
|
<div class="layui-item layui-col-xs12 form-table-container">
|
|
@@ -1392,17 +1412,17 @@
|
|
|
<input id="workConstructionLinkmanList{{idx}}_delFlag" name="workConstructionLinkmanList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input <input style="background-color: #FFFFFF;" readonly="true" id="workConstructionLinkmanList{{idx}}_clientName" name="workConstructionLinkmanList[{{idx}}].clientId.name" type="text" value="{{row.clientId.name}}" class="form-control "/>
|
|
|
+ <input <input style="background-color: #FFFFFF;" id="workConstructionLinkmanList{{idx}}_clientName" name="workConstructionLinkmanList[{{idx}}].clientId.name" type="text" value="{{row.clientId.name}}" class="form-control "/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input <input style="background-color: #FFFFFF;" readonly="true" id="workConstructionLinkmanList{{idx}}_name" name="workConstructionLinkmanList[{{idx}}].name" type="text" value="{{row.name}}" class="form-control required"/>
|
|
|
+ <input <input style="background-color: #FFFFFF;" id="workConstructionLinkmanList{{idx}}_name" name="workConstructionLinkmanList[{{idx}}].name" type="text" value="{{row.name}}" class="form-control required"/>
|
|
|
</td>
|
|
|
|
|
|
<td>
|
|
|
- <input <input style="background-color: #FFFFFF;" readonly="true" id="workConstructionLinkmanList{{idx}}_linkPhone" name="workConstructionLinkmanList[{{idx}}].linkPhone" type="text" value="{{row.linkPhone}}" class="form-control isTel"/>
|
|
|
+ <input <input style="background-color: #FFFFFF;" id="workConstructionLinkmanList{{idx}}_linkPhone" name="workConstructionLinkmanList[{{idx}}].linkPhone" type="text" value="{{row.linkPhone}}" class="form-control isTel"/>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input <input style="background-color: #FFFFFF;" readonly="true" id="workConstructionLinkmanList{{idx}}_linkMobile" name="workConstructionLinkmanList[{{idx}}].linkMobile" type="text" value="{{row.linkMobile}}" class="form-control isPhone"/>
|
|
|
+ <input <input style="background-color: #FFFFFF;" id="workConstructionLinkmanList{{idx}}_linkMobile" name="workConstructionLinkmanList[{{idx}}].linkMobile" type="text" value="{{row.linkMobile}}" class="form-control isPhone"/>
|
|
|
</td>
|
|
|
<td class="text-center" width="10">
|
|
|
{{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workConstructionLinkmanList{{idx}}')" title="删除"><i class="fa fa-trash"></i> 删除</span>{{/delBtn}}
|
|
@@ -1412,6 +1432,9 @@
|
|
|
<script>
|
|
|
var workClientLinkmanRowIdx = 0, workClientLinkmanTpl = $("#workClientLinkmanTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
|
|
|
var workConstructionLinkmanRowIdx = 0, workConstructionLinkmanTpl = $("#workConstructionLinkmanTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
|
|
|
+ function workConstructionLinkmanTplInfo(id,workConstructionLinkmanRowIdx,workConstructionLinkmanTpl){
|
|
|
+ addRow(id, workConstructionLinkmanRowIdx, workConstructionLinkmanTpl, "");
|
|
|
+ }
|
|
|
$(document).ready(function() {
|
|
|
var data = ${fns:toJson(ruralProjectRecords.workClientLinkmanList)};
|
|
|
if (data!=null) {
|