|
@@ -28,7 +28,7 @@
|
|
if(validateForm.form()){
|
|
if(validateForm.form()){
|
|
var projectId = '${projectcontentinfo.project.id}';
|
|
var projectId = '${projectcontentinfo.project.id}';
|
|
var leng1 = $("#reportedConsultantList tr").length;
|
|
var leng1 = $("#reportedConsultantList tr").length;
|
|
- var leng = $(".file_attachment_tr").length;
|
|
|
|
|
|
+ var leng = $("#file_attachment tr").length;
|
|
var boolFlag = true;
|
|
var boolFlag = true;
|
|
var startDate = new Date($("#startDate").val());
|
|
var startDate = new Date($("#startDate").val());
|
|
var endingDate = new Date($("#endingDate").val());
|
|
var endingDate = new Date($("#endingDate").val());
|
|
@@ -42,77 +42,101 @@
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
for(var i=0; i<leng; i++) {
|
|
for(var i=0; i<leng; i++) {
|
|
- var numberStr = $(".file_attachment_tr").eq(i).find("td:first").html();
|
|
|
|
- var second = $(".file_attachment_tr").eq(i).find("td:eq(1)").html();
|
|
|
|
- var name = $(".file_attachment_tr").eq(i).find("td:eq(2)").html();
|
|
|
|
|
|
+ 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 name = $("#file_attachment tr").eq(i).find("td:eq(2)").html();
|
|
|
|
+ var fileFlag = $("#file_attachment tr").eq(i).find("td:last").html();
|
|
|
|
+
|
|
if(second == 1){
|
|
if(second == 1){
|
|
if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
- $.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 (fileFlag==1){
|
|
|
|
+
|
|
|
|
+ }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("文件载入失败!");--%>
|
|
|
|
+ <%--});--%>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(boolFlag){
|
|
if(boolFlag){
|
|
- var gistdata = $(".file_gistdata_tr").length;
|
|
|
|
|
|
+ var gistdata = $("#file_gistdata tr").length;
|
|
for(var i=0; i<gistdata; i++) {
|
|
for(var i=0; i<gistdata; i++) {
|
|
- var numberStr = $(".file_gistdata_tr").eq(i).find("td:first").html();
|
|
|
|
- var second = $(".file_gistdata_tr").eq(i).find("td:eq(1)").html();
|
|
|
|
|
|
+ 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(second == 1){
|
|
if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
- $.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 (fileFlag==1){
|
|
|
|
+
|
|
|
|
+ }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("文件载入失败!");--%>
|
|
|
|
+ <%--});--%>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(boolFlag){
|
|
if(boolFlag){
|
|
- var other = $(".file_other_tr").length;
|
|
|
|
|
|
+ var other = $("#file_other tr").length;
|
|
for(var i=0; i<other; i++) {
|
|
for(var i=0; i<other; i++) {
|
|
- var numberStr = $(".file_other_tr").eq(i).find("td:first").html();
|
|
|
|
- var second = $(".file_other_tr").eq(i).find("td:eq(1)").html();
|
|
|
|
|
|
+ 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(second == 1){
|
|
if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
- $.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 (fileFlag==1){
|
|
|
|
+
|
|
|
|
+ }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("文件载入失败!");--%>
|
|
|
|
+ <%--});--%>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -437,7 +461,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6 lw8">
|
|
<div class="layui-item layui-col-sm6 lw8">
|
|
- <label class="layui-form-label">项目负责人:</label>
|
|
|
|
|
|
+ <label class="layui-form-label">项目责任人:</label>
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
<input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectRecords.leaderNameStr}"/>
|
|
<input htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectRecords.leaderNameStr}"/>
|
|
</div>
|
|
</div>
|
|
@@ -820,15 +844,24 @@
|
|
<tbody id="file_attachment">
|
|
<tbody id="file_attachment">
|
|
<c:forEach items="${projectcontentinfo.fileAttachmentList}" var = "fileAttachment" varStatus="status">
|
|
<c:forEach items="${projectcontentinfo.fileAttachmentList}" var = "fileAttachment" varStatus="status">
|
|
<tr id="file_attachment_${fileAttachment.id}_tr" onclick="listTr(this)">
|
|
<tr id="file_attachment_${fileAttachment.id}_tr" onclick="listTr(this)">
|
|
- <td style="display:none">${fileAttachment.id}</td>
|
|
|
|
|
|
+ <td style="display:none"><span class="faid">${fileAttachment.id}</span></td>
|
|
<td style="display:none">${fileAttachment.mustFlag}</td>
|
|
<td style="display:none">${fileAttachment.mustFlag}</td>
|
|
- <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span>${fileAttachment.attachName}<input type="hidden" value="${fileAttachment.attachName}"/></td>
|
|
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fileAttachment.mustFlag == 1}">
|
|
|
|
+ <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span><span style="color: red">* </span>${fileAttachment.attachName}<input type="hidden" value="${fileAttachment.attachName}"/></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span>${fileAttachment.attachName}<input type="hidden" value="${fileAttachment.attachName}"/></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+<%-- <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span><span style="color: red">* </span>${fileAttachment.attachName}<input type="hidden" value="${fileAttachment.attachName}"/></td>--%>
|
|
<td>${fileAttachment.attachLength}M;${fileAttachment.attachTypes}</td>
|
|
<td>${fileAttachment.attachLength}M;${fileAttachment.attachTypes}</td>
|
|
<td class="op-td">
|
|
<td class="op-td">
|
|
<div class="op-btn-box" >
|
|
<div class="op-btn-box" >
|
|
<a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileAttachment.id}&projectId=${projectcontentinfo.project.id}&uploadMode=${projectcontentinfo.uploadMode}','70%','80%',false,'inputForm','upTable',this)" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
<a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileAttachment.id}&projectId=${projectcontentinfo.project.id}&uploadMode=${projectcontentinfo.uploadMode}','70%','80%',false,'inputForm','upTable',this)" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
|
|
+ <td style="display:none">${fileAttachment.fileFlag}</td>
|
|
</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_tr">
|
|
@@ -895,7 +928,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|
|
- <div class="form-group-label"><h2>依据性资料</h2></div>
|
|
|
|
|
|
+ <div class="form-group-label"><h2>依据性文件</h2></div>
|
|
<div id="addFile_gistdata" style="display: none" class="upload-progress">
|
|
<div id="addFile_gistdata" style="display: none" class="upload-progress">
|
|
<span id="fileName_gistdata" ></span>
|
|
<span id="fileName_gistdata" ></span>
|
|
<b><span id="baifenbi_gistdata" ></span></b>
|
|
<b><span id="baifenbi_gistdata" ></span></b>
|
|
@@ -920,15 +953,25 @@
|
|
<tbody id="file_gistdata">
|
|
<tbody id="file_gistdata">
|
|
<c:forEach items="${projectcontentinfo.fileGistdataList}" var = "fileGistdata" varStatus="status">
|
|
<c:forEach items="${projectcontentinfo.fileGistdataList}" var = "fileGistdata" varStatus="status">
|
|
<tr id="file_gistdata_${fileGistdata.id}_tr" onclick="listTr(this)">
|
|
<tr id="file_gistdata_${fileGistdata.id}_tr" onclick="listTr(this)">
|
|
- <td style="display:none">${fileGistdata.id}</td>
|
|
|
|
|
|
+ <td style="display:none"><span class="fgid">${fileGistdata.id}</span></td>
|
|
<td style="display:none">${fileGistdata.mustFlag}</td>
|
|
<td style="display:none">${fileGistdata.mustFlag}</td>
|
|
- <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span>${fileGistdata.attachName}<input type="hidden" value="${fileGistdata.attachName}"/></td>
|
|
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fileGistdata.mustFlag == 1}">
|
|
|
|
+ <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span><span style="color: red">* </span>${fileGistdata.attachName}<input type="hidden" value="${fileGistdata.attachName}"/></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span>${fileGistdata.attachName}<input type="hidden" value="${fileGistdata.attachName}"/></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+<%-- <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span>${fileGistdata.attachName}<input type="hidden" value="${fileGistdata.attachName}"/></td>--%>
|
|
<td>${fileGistdata.attachLength}M;${fileGistdata.attachTypes}</td>
|
|
<td>${fileGistdata.attachLength}M;${fileGistdata.attachTypes}</td>
|
|
<td class="op-td">
|
|
<td class="op-td">
|
|
<div class="op-btn-box" >
|
|
<div class="op-btn-box" >
|
|
<a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileGistdata.id}&projectId=${projectcontentinfo.project.id}&uploadMode=${projectcontentinfo.uploadMode}','70%','80%',false,'inputForm','gistdata_upTable',this)" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
<a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileGistdata.id}&projectId=${projectcontentinfo.project.id}&uploadMode=${projectcontentinfo.uploadMode}','70%','80%',false,'inputForm','gistdata_upTable',this)" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
|
|
+ <td style="display:none">${fileGistdata.fileFlag}</td>
|
|
|
|
+
|
|
</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_tr">
|
|
@@ -1020,15 +1063,25 @@
|
|
<tbody id="file_other">
|
|
<tbody id="file_other">
|
|
<c:forEach items="${projectcontentinfo.fileOtherList}" var = "fileOther" varStatus="status">
|
|
<c:forEach items="${projectcontentinfo.fileOtherList}" var = "fileOther" varStatus="status">
|
|
<tr id="file_other_${fileOther.id}_tr" onclick="listTr(this)">
|
|
<tr id="file_other_${fileOther.id}_tr" onclick="listTr(this)">
|
|
- <td style="display:none">${fileOther.id}</td>
|
|
|
|
|
|
+ <td style="display:none"><span class="foid">${fileOther.id}</span></td>
|
|
<td style="display:none">${fileOther.mustFlag}</td>
|
|
<td style="display:none">${fileOther.mustFlag}</td>
|
|
- <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span>${fileOther.attachName}<input type="hidden" value="${fileOther.attachName}"/></td>
|
|
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fileOther.mustFlag == 1}">
|
|
|
|
+ <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span><span style="color: red">* </span>${fileOther.attachName}<input type="hidden" value="${fileOther .attachName}"/></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span>${fileOther.attachName}<input type="hidden" value="${fileOther.attachName}"/></td>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+<%-- <td class="tabMove" style="text-align: left;"><span class='default_open' style="padding-right: 15px; "></span>${fileOther.attachName}<input type="hidden" value="${fileOther.attachName}"/></td>--%>
|
|
<td>${fileOther.attachLength}M;${fileOther.attachTypes}</td>
|
|
<td>${fileOther.attachLength}M;${fileOther.attachTypes}</td>
|
|
<td class="op-td">
|
|
<td class="op-td">
|
|
- <div class="op-btn-box" >
|
|
|
|
- <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileOther.id}&projectId=${projectcontentinfo.project.id}&uploadMode=${projectcontentinfo.uploadMode}','70%','80%',false,'inputForm','upTable_other',this)" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
|
|
- </div>
|
|
|
|
- </td>
|
|
|
|
|
|
+ <div class="op-btn-box" >
|
|
|
|
+ <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileOther.id}&projectId=${projectcontentinfo.project.id}&uploadMode=${projectcontentinfo.uploadMode}','70%','80%',false,'inputForm','upTable_other',this)" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
|
|
+ </div>
|
|
|
|
+ </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_tr">
|