|
@@ -7,6 +7,7 @@
|
|
<script type="text/javascript" src="${ctxStatic}/layui/layui.js"></script>
|
|
<script type="text/javascript" src="${ctxStatic}/layui/layui.js"></script>
|
|
<link rel='stylesheet' type="text/css" href="${ctxStatic}/layui/css/layui.css"/>
|
|
<link rel='stylesheet' type="text/css" href="${ctxStatic}/layui/css/layui.css"/>
|
|
<link href="${ctxStatic}/layer-v2.3/layui/tableTree/treetable.css" rel="stylesheet" />
|
|
<link href="${ctxStatic}/layer-v2.3/layui/tableTree/treetable.css" rel="stylesheet" />
|
|
|
|
+ <script src="${ctxStatic}/common/html/js/script.js"></script>
|
|
<%@include file="/webpage/include/treetable.jsp" %>
|
|
<%@include file="/webpage/include/treetable.jsp" %>
|
|
|
|
|
|
<style>
|
|
<style>
|
|
@@ -34,125 +35,131 @@
|
|
function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
if(validateForm.form()){
|
|
if(validateForm.form()){
|
|
var projectId = '${projectRecords.id}';
|
|
var projectId = '${projectRecords.id}';
|
|
- var leng = $("#file_attachment tr").length;
|
|
|
|
- var leng1 = $("#reportedConsultantList tr").length;
|
|
|
|
var boolFlag = true;
|
|
var boolFlag = true;
|
|
- var startDate = new Date($("#startDate").val());
|
|
|
|
- var endingDate = new Date($("#endingDate").val());
|
|
|
|
- var bzshbUserId = $("#bzshbUserId").val();
|
|
|
|
- if(bzshbUserId == undefined || bzshbUserId ==null || bzshbUserId ==''){
|
|
|
|
- parent.layer.msg("请选择审核人员!", {icon: 5});
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- if(startDate.getTime() > endingDate.getTime()){
|
|
|
|
- parent.layer.msg("工作开始日期不得大于工作结束日期!", {icon: 5});
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- for(var i=0; i<leng; i++) {
|
|
|
|
- var numberStr = $("#file_attachment tr").eq(i).find("td:first").find(".faid").html();
|
|
|
|
- var second = $("#file_attachment tr").eq(i).find("td:eq(1)").html();
|
|
|
|
- var fileFlag = $("#file_attachment tr").eq(i).find("td:last").html();
|
|
|
|
- if(second == 1){
|
|
|
|
- if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
|
|
- if (fileFlag==1){
|
|
|
|
|
|
+ if(boolFlag){
|
|
|
|
+ if(obj == 1){
|
|
|
|
+ var leng = $("#file_attachment tr").length;
|
|
|
|
+ var leng1 = $("#reportedConsultantList tr").length;
|
|
|
|
+ var startDate = new Date($("#startDate").val());
|
|
|
|
+ var endingDate = new Date($("#endingDate").val());
|
|
|
|
+ var bzshbUserId = $("#bzshbUserId").val();
|
|
|
|
+ if(bzshbUserId == undefined || bzshbUserId ==null || bzshbUserId ==''){
|
|
|
|
+ parent.layer.msg("请选择审核人员!", {icon: 5});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if(startDate.getTime() > endingDate.getTime()){
|
|
|
|
+ parent.layer.msg("工作开始日期不得大于工作结束日期!", {icon: 5});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ for(var i=0; i<leng; i++) {
|
|
|
|
+ var numberStr = $("#file_attachment tr").eq(i).find("td:first").find(".faid").html();
|
|
|
|
+ var second = $("#file_attachment tr").eq(i).find("td:eq(1)").html();
|
|
|
|
+ var fileFlag = $("#file_attachment tr").eq(i).find("td:last").html();
|
|
|
|
+ if(second == 1){
|
|
|
|
+ if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
|
|
+ if (fileFlag==1){
|
|
|
|
|
|
- }else{
|
|
|
|
- top.layer.msg("请上传成果文件!", {icon: 0});
|
|
|
|
- return false;
|
|
|
|
|
|
+ }else{
|
|
|
|
+ top.layer.msg("请上传成果文件!", {icon: 0});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ <%--$.ajax({--%>
|
|
|
|
+ <%-- type: 'post',--%>
|
|
|
|
+ <%-- url:'${ctx}/projectAccessoryRelation/projectAccessoryRelation/getAttachmentCount',--%>
|
|
|
|
+ <%-- data: {"attachmentId":numberStr,"projectId":projectId},--%>
|
|
|
|
+ <%-- dataType: "json",--%>
|
|
|
|
+ <%-- async: false--%>
|
|
|
|
+ <%--}).success(function (result) {--%>
|
|
|
|
+ <%-- if(result == 0){--%>
|
|
|
|
+ <%-- boolFlag = false;--%>
|
|
|
|
+ <%-- top.layer.msg("请上传成果文件!", {icon: 0});--%>
|
|
|
|
+ <%-- return false;--%>
|
|
|
|
+ <%-- }--%>
|
|
|
|
+ <%--}).error(function () {--%>
|
|
|
|
+ <%-- top.layer.msg("文件载入失败!");--%>
|
|
|
|
+ <%--});--%>
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- <%--$.ajax({--%>
|
|
|
|
- <%-- type: 'post',--%>
|
|
|
|
- <%-- url:'${ctx}/projectAccessoryRelation/projectAccessoryRelation/getAttachmentCount',--%>
|
|
|
|
- <%-- data: {"attachmentId":numberStr,"projectId":projectId},--%>
|
|
|
|
- <%-- dataType: "json",--%>
|
|
|
|
- <%-- async: false--%>
|
|
|
|
- <%--}).success(function (result) {--%>
|
|
|
|
- <%-- if(result == 0){--%>
|
|
|
|
- <%-- boolFlag = false;--%>
|
|
|
|
- <%-- top.layer.msg("请上传成果文件!", {icon: 0});--%>
|
|
|
|
- <%-- return false;--%>
|
|
|
|
- <%-- }--%>
|
|
|
|
- <%--}).error(function () {--%>
|
|
|
|
- <%-- top.layer.msg("文件载入失败!");--%>
|
|
|
|
- <%--});--%>
|
|
|
|
}
|
|
}
|
|
- }
|
|
|
|
- }
|
|
|
|
- if (leng1==0){
|
|
|
|
- top.layer.msg("请添加咨询员信息!", {icon: 0});
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- if(boolFlag){
|
|
|
|
- var gistdata = $("#file_gistdata tr").length;
|
|
|
|
- for(var i=0; i<gistdata; i++) {
|
|
|
|
- var numberStr = $("#file_gistdata tr").eq(i).find("td:first").find(".fgid").html();
|
|
|
|
- var second = $("#file_gistdata tr").eq(i).find("td:eq(1)").html();
|
|
|
|
- var fileFlag = $("#file_gistdata tr").eq(i).find("td:last").html();
|
|
|
|
|
|
+ if (leng1==0){
|
|
|
|
+ top.layer.msg("请添加咨询员信息!", {icon: 0});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if(boolFlag){
|
|
|
|
+ var gistdata = $("#file_gistdata tr").length;
|
|
|
|
+ for(var i=0; i<gistdata; i++) {
|
|
|
|
+ var numberStr = $("#file_gistdata tr").eq(i).find("td:first").find(".fgid").html();
|
|
|
|
+ var second = $("#file_gistdata tr").eq(i).find("td:eq(1)").html();
|
|
|
|
+ var fileFlag = $("#file_gistdata tr").eq(i).find("td:last").html();
|
|
|
|
|
|
- if(second == 1){
|
|
|
|
- if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
|
|
- if (fileFlag==1){
|
|
|
|
|
|
+ if(second == 1){
|
|
|
|
+ if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
|
|
+ if (fileFlag==1){
|
|
|
|
|
|
- }else{
|
|
|
|
- top.layer.msg("请上传依据性文件!", {icon: 0});
|
|
|
|
- return false;
|
|
|
|
|
|
+ }else{
|
|
|
|
+ top.layer.msg("请上传依据性文件!", {icon: 0});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ <%--$.ajax({--%>
|
|
|
|
+ <%-- type: 'post',--%>
|
|
|
|
+ <%-- url:'${ctx}/projectAccessoryRelation/projectAccessoryRelation/getAttachmentCount',--%>
|
|
|
|
+ <%-- data: {"attachmentId":numberStr,"projectId":projectId},--%>
|
|
|
|
+ <%-- dataType: "json",--%>
|
|
|
|
+ <%-- async: false--%>
|
|
|
|
+ <%--}).success(function (result) {--%>
|
|
|
|
+ <%-- if(result == 0){--%>
|
|
|
|
+ <%-- boolFlag = false;--%>
|
|
|
|
+ <%-- top.layer.msg("请上传依据性文件!", {icon: 0});--%>
|
|
|
|
+ <%-- return false;--%>
|
|
|
|
+ <%-- }--%>
|
|
|
|
+ <%--}).error(function () {--%>
|
|
|
|
+ <%-- top.layer.msg("文件载入失败!");--%>
|
|
|
|
+ <%--});--%>
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- <%--$.ajax({--%>
|
|
|
|
- <%-- type: 'post',--%>
|
|
|
|
- <%-- url:'${ctx}/projectAccessoryRelation/projectAccessoryRelation/getAttachmentCount',--%>
|
|
|
|
- <%-- data: {"attachmentId":numberStr,"projectId":projectId},--%>
|
|
|
|
- <%-- dataType: "json",--%>
|
|
|
|
- <%-- async: false--%>
|
|
|
|
- <%--}).success(function (result) {--%>
|
|
|
|
- <%-- if(result == 0){--%>
|
|
|
|
- <%-- boolFlag = false;--%>
|
|
|
|
- <%-- top.layer.msg("请上传依据性文件!", {icon: 0});--%>
|
|
|
|
- <%-- return false;--%>
|
|
|
|
- <%-- }--%>
|
|
|
|
- <%--}).error(function () {--%>
|
|
|
|
- <%-- top.layer.msg("文件载入失败!");--%>
|
|
|
|
- <%--});--%>
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
- }
|
|
|
|
- if(boolFlag){
|
|
|
|
- var other = $("#file_other tr").length;
|
|
|
|
- for(var i=0; i<other; i++) {
|
|
|
|
- var numberStr = $("#file_other tr").eq(i).find("td:first").find(".foid").html();
|
|
|
|
- var second = $("#file_other tr").eq(i).find("td:eq(1)").html();
|
|
|
|
- var fileFlag = $("#file_other tr").eq(i).find("td:last").html();
|
|
|
|
|
|
+ if(boolFlag){
|
|
|
|
+ var other = $("#file_other tr").length;
|
|
|
|
+ for(var i=0; i<other; i++) {
|
|
|
|
+ var numberStr = $("#file_other tr").eq(i).find("td:first").find(".foid").html();
|
|
|
|
+ var second = $("#file_other tr").eq(i).find("td:eq(1)").html();
|
|
|
|
+ var fileFlag = $("#file_other tr").eq(i).find("td:last").html();
|
|
|
|
|
|
- if(second == 1){
|
|
|
|
- if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
|
|
- if (fileFlag==1){
|
|
|
|
|
|
+ if(second == 1){
|
|
|
|
+ if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
|
|
+ if (fileFlag==1){
|
|
|
|
|
|
- }else{
|
|
|
|
- top.layer.msg("请上传其它文件!", {icon: 0});
|
|
|
|
- return false;
|
|
|
|
|
|
+ }else{
|
|
|
|
+ top.layer.msg("请上传其它文件!", {icon: 0});
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ <%--$.ajax({--%>
|
|
|
|
+ <%-- type: 'post',--%>
|
|
|
|
+ <%-- url:'${ctx}/projectAccessoryRelation/projectAccessoryRelation/getAttachmentCount',--%>
|
|
|
|
+ <%-- data: {"attachmentId":numberStr,"projectId":projectId},--%>
|
|
|
|
+ <%-- dataType: "json",--%>
|
|
|
|
+ <%-- async: false--%>
|
|
|
|
+ <%--}).success(function (result) {--%>
|
|
|
|
+ <%-- if(result == 0){--%>
|
|
|
|
+ <%-- boolFlag = false;--%>
|
|
|
|
+ <%-- top.layer.msg("请上传其他文件!", {icon: 0});--%>
|
|
|
|
+ <%-- return false;--%>
|
|
|
|
+ <%-- }--%>
|
|
|
|
+ <%--}).error(function () {--%>
|
|
|
|
+ <%-- top.layer.msg("文件载入失败!");--%>
|
|
|
|
+ <%--});--%>
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- <%--$.ajax({--%>
|
|
|
|
- <%-- type: 'post',--%>
|
|
|
|
- <%-- url:'${ctx}/projectAccessoryRelation/projectAccessoryRelation/getAttachmentCount',--%>
|
|
|
|
- <%-- data: {"attachmentId":numberStr,"projectId":projectId},--%>
|
|
|
|
- <%-- dataType: "json",--%>
|
|
|
|
- <%-- async: false--%>
|
|
|
|
- <%--}).success(function (result) {--%>
|
|
|
|
- <%-- if(result == 0){--%>
|
|
|
|
- <%-- boolFlag = false;--%>
|
|
|
|
- <%-- top.layer.msg("请上传其他文件!", {icon: 0});--%>
|
|
|
|
- <%-- return false;--%>
|
|
|
|
- <%-- }--%>
|
|
|
|
- <%--}).error(function () {--%>
|
|
|
|
- <%-- top.layer.msg("文件载入失败!");--%>
|
|
|
|
- <%--});--%>
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
- }
|
|
|
|
- if(boolFlag){
|
|
|
|
- if(obj == 1){
|
|
|
|
- $("#inputForm").attr("action","${ctx}/ruralProject/ruralCostProjectMessageNew/saveReport");
|
|
|
|
|
|
+ var flags=judgment();
|
|
|
|
+ if (flags){
|
|
|
|
+ $("#inputForm").attr("action","${ctx}/ruralProject/ruralCostProjectMessageNew/saveReport");
|
|
|
|
+ }else{
|
|
|
|
+ return flags;
|
|
|
|
+ }
|
|
|
|
+ <%--$("#inputForm").attr("action","${ctx}/ruralProject/ruralCostProjectMessageNew/saveReport");--%>
|
|
}else{
|
|
}else{
|
|
//$("#inputForm").attr("action","${ctx}/projectcontentinfo/projectcontentinfo/save?view=report");
|
|
//$("#inputForm").attr("action","${ctx}/projectcontentinfo/projectcontentinfo/save?view=report");
|
|
$("#inputForm").attr("action","${ctx}/ruralProject/ruralCostProjectMessageNew/holdSaveReport");
|
|
$("#inputForm").attr("action","${ctx}/ruralProject/ruralCostProjectMessageNew/holdSaveReport");
|
|
@@ -854,19 +861,19 @@
|
|
<div class="layui-item layui-col-sm6">
|
|
<div class="layui-item layui-col-sm6">
|
|
<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">
|
|
<div class="layui-input-block with-icon">
|
|
- <form:input placeholder="请输入送审价" id="reviewFee" path="projectReportData.reviewFee" htmlEscape="false" class="form-control required layui-input number" onchange="getFee()" onblur="getAttachment()"/>
|
|
|
|
|
|
+ <form:input placeholder="请输入送审价" id="reviewFee" path="projectReportData.reviewFee" htmlEscape="false" class="form-control judgment layui-input number" onchange="getFee()" onblur="getAttachment()"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6">
|
|
<div class="layui-item layui-col-sm6">
|
|
<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">
|
|
<div class="layui-input-block with-icon">
|
|
- <form:input placeholder="请输入审定价" id="approvalFee" path="projectReportData.approvalFee" htmlEscape="false" class="form-control required layui-input number" onchange="getApprovalFee()"/>
|
|
|
|
|
|
+ <form:input placeholder="请输入审定价" id="approvalFee" path="projectReportData.approvalFee" htmlEscape="false" class="form-control judgment layui-input number" onchange="getApprovalFee()"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6">
|
|
<div class="layui-item layui-col-sm6">
|
|
- <label class="layui-form-label"><span class="require-item">*</span>合同价(元):</label>
|
|
|
|
|
|
+ <label class="layui-form-label">合同价(元):</label>
|
|
<div class="layui-input-block with-icon">
|
|
<div class="layui-input-block with-icon">
|
|
- <form:input placeholder="请输入合同价" id="contractFee" path="projectReportData.contractFee" htmlEscape="false" class="form-control required layui-input number"/>
|
|
|
|
|
|
+ <form:input placeholder="请输入合同价" id="contractFee" path="projectReportData.contractFee" htmlEscape="false" class="form-control layui-input number"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<%--<c:choose>
|
|
<%--<c:choose>
|
|
@@ -900,7 +907,7 @@
|
|
<div class="layui-item layui-col-sm6 lw7">
|
|
<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">
|
|
<div class="layui-input-block">
|
|
- <select class="form-control required layui-input" id="bzshbUserId" name="projectReportData.bzshbUserId">
|
|
|
|
|
|
+ <select class="form-control judgment layui-input" id="bzshbUserId" name="projectReportData.bzshbUserId">
|
|
<option value=""/>
|
|
<option value=""/>
|
|
<c:forEach items="${projectRecords.bzshbUserList}" var="user" varStatus="status">
|
|
<c:forEach items="${projectRecords.bzshbUserList}" var="user" varStatus="status">
|
|
<option value="${user.id}" <c:if test="${projectcontentinfo.projectReportData.bzshbUserId eq user.id }">selected</c:if>>${user.name}</option>
|
|
<option value="${user.id}" <c:if test="${projectcontentinfo.projectReportData.bzshbUserId eq user.id }">selected</c:if>>${user.name}</option>
|
|
@@ -1212,7 +1219,7 @@
|
|
|
|
|
|
</tr>
|
|
</tr>
|
|
<c:forEach items="${fileAttachment.workAttachments}" var = "workClientAttachment" varStatus="status">
|
|
<c:forEach items="${fileAttachment.workAttachments}" var = "workClientAttachment" varStatus="status">
|
|
- <tr class="file_attachment_tr">
|
|
|
|
|
|
+ <tr class="file_attachment_${fileAttachment.id}_tr_fu">
|
|
<td></td>
|
|
<td></td>
|
|
<c:choose>
|
|
<c:choose>
|
|
<c:when test="${projectcontentinfo.uploadMode == 2}">
|
|
<c:when test="${projectcontentinfo.uploadMode == 2}">
|
|
@@ -1354,7 +1361,7 @@
|
|
|
|
|
|
</tr>
|
|
</tr>
|
|
<c:forEach items="${fileGistdata.workAttachments}" var = "workClientAttachment" varStatus="status">
|
|
<c:forEach items="${fileGistdata.workAttachments}" var = "workClientAttachment" varStatus="status">
|
|
- <tr class="file_gistdata_tr">
|
|
|
|
|
|
+ <tr class="file_gistdata_${fileGistdata.id}_tr">
|
|
<td></td>
|
|
<td></td>
|
|
<c:choose>
|
|
<c:choose>
|
|
<c:when test="${projectcontentinfo.uploadMode == 2}">
|
|
<c:when test="${projectcontentinfo.uploadMode == 2}">
|
|
@@ -1495,7 +1502,7 @@
|
|
<td style="display:none">${fileOther.fileFlag}</td>
|
|
<td style="display:none">${fileOther.fileFlag}</td>
|
|
</tr>
|
|
</tr>
|
|
<c:forEach items="${fileOther.workAttachments}" var = "workClientAttachment" varStatus="status">
|
|
<c:forEach items="${fileOther.workAttachments}" var = "workClientAttachment" varStatus="status">
|
|
- <tr class="file_other_tr">
|
|
|
|
|
|
+ <tr class="file_other_${fileOther.id}_tr">
|
|
<td></td>
|
|
<td></td>
|
|
<c:choose>
|
|
<c:choose>
|
|
<c:when test="${projectcontentinfo.uploadMode == 2}">
|
|
<c:when test="${projectcontentinfo.uploadMode == 2}">
|