|
@@ -8,6 +8,9 @@
|
|
|
<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 rel='stylesheet' type="text/css" href="${ctxStatic}/common/css/style.css"/>
|
|
|
+ <script src="${ctxStatic}/layer-v2.3/layui/layui.all.js" charset="utf-8"></script>
|
|
|
+ <script src="${ctxStatic}/layer-v2.3/layui/tableTree/treetable.js" charset="utf-8"></script>
|
|
|
+ <script type="text/javascript" src="${ctxStatic}/layui/layuidown.js"></script>
|
|
|
<%@include file="/webpage/include/treetable.jsp" %>
|
|
|
<style>
|
|
|
td input{
|
|
@@ -65,7 +68,50 @@
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
+ layui.use(['tree', 'util'], function () {
|
|
|
+ var reportId = "${materialDefectRecords.pmdrReportId}"
|
|
|
+ var defectRecordStatus = "${projectRecords.defectRecordStatus}"
|
|
|
+ if(defectRecordStatus != '0'){
|
|
|
+ let re = [];
|
|
|
+ $.ajax({
|
|
|
+ //几个参数需要注意一下
|
|
|
+ type: "post",//方法类型
|
|
|
+ dataType: "json",//预期服务器返回的数据类型
|
|
|
+ url: '${ctx}/projectReportDefectRecord/projectReportDefectRecord/getZuzhi2',
|
|
|
+ data: {"reportId": reportId},
|
|
|
+ success: function (result) {
|
|
|
+ console.log('result', result)
|
|
|
+ re=result;
|
|
|
+ // var tree = layui.tree;
|
|
|
+ // var util = layui.util
|
|
|
+ var tree = layui.tree
|
|
|
+ , layer = layui.layer
|
|
|
+ , util = layui.util
|
|
|
+ , data = re
|
|
|
+ // , data = [{
|
|
|
+ // id: 1,
|
|
|
+ // title: '成果文件'
|
|
|
+ // , children: re}]
|
|
|
+ console.log('tree', tree)
|
|
|
+ tree.render({
|
|
|
+ elem: '#test2'
|
|
|
+ ,data: data
|
|
|
+ ,showCheckbox: false //是否显示复选框
|
|
|
+ ,id: 'demoId1'
|
|
|
+ ,isJump: false //是否允许点击节点时弹出新窗口跳转
|
|
|
+ });
|
|
|
+ },
|
|
|
+ error : function(e) {
|
|
|
+ alert("发生未知错误!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
$(document).ready(function() {
|
|
|
+ var materialDefectRecordsRemarks = '${materialDefectRecords.remarks}'
|
|
|
+ if(materialDefectRecordsRemarks){
|
|
|
+ $("#materialDefectRecordsRemarks").val(materialDefectRecordsRemarks)
|
|
|
+ }
|
|
|
$("#upTable").treeTable({expandLevel : 5},{ expandable: true });
|
|
|
$("#gistdata_upTable").treeTable({expandLevel : 5},{ expandable: true });
|
|
|
$("#upTable_other").treeTable({expandLevel : 5},{ expandable: true });
|
|
@@ -146,7 +192,7 @@
|
|
|
$(".overallProcessDiv").show();
|
|
|
}else {
|
|
|
}
|
|
|
- var contents=${ruralProjectRecordsReported.contentsIncludeList}
|
|
|
+ var contents='${ruralProjectRecordsReported.contentsIncludeList}'
|
|
|
for(var i=0;i<contents.length;i++){
|
|
|
var con=contents[i];
|
|
|
$(".contents_"+con+"").prop("checked",true)
|
|
@@ -188,12 +234,21 @@
|
|
|
<li><a>质量复核信息</a><span class="hide">qualityView</span></li>
|
|
|
<li><a>报告签发信息</a><span class="hide">issueView</span></li>
|
|
|
<li><a>档案信息</a><span class="hide">AccessoryView</span></li>
|
|
|
+ <c:if test="${projectRecords.defectRecordStatus != '0'}">
|
|
|
+ <li><a>资料缺失说明</a><span class="hide">descriptionView</span></li>
|
|
|
+ </c:if>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="margin-top: 50px">
|
|
|
<div class="form-group layui-row first" id="projectInfo">
|
|
|
+ <div class="form-group-label">
|
|
|
+ <c:if test="${not empty reportedId}">
|
|
|
+ <div style="float: right"> <a href="javascript:void(0)" style='background-color: #FFB800' onclick="openDialogView('上报信息', '${ctx}/ruralProject/ruralProjectView/getReportedView?projectId=${projectRecords.id}&id=${reportedId}','85%', '85%','','关闭')" class="layui-btn layui-btn-sm" >上报信息</a></div>
|
|
|
+ </c:if>
|
|
|
+ <h2>基本信息</h2>
|
|
|
+ </div>
|
|
|
<%-- <div class="form-group-label"><h2>项目基本信息</h2></div>--%>
|
|
|
<div class="layui-item layui-col-sm6 lw6">
|
|
|
<label class="layui-form-label">项目名称:</label>
|
|
@@ -1842,6 +1897,253 @@
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="form-group layui-row first hide" id="descriptionView">
|
|
|
+ <div class="form-group layui-row first lw12">
|
|
|
+ <div class="form-group-label"><h2>资料缺失说明</h2></div>
|
|
|
+
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>短期/永久:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input type="radio" title="短期" disabled lay-filter="ext" name="hiatus" id="hiatus1" value="0" <c:if test="${materialDefectRecords.hiatus=='0'}">checked</c:if>>
|
|
|
+ <input type="radio" title="永久" disabled lay-filter="ext" name="hiatus" id="hiatus2" value="1" <c:if test="${materialDefectRecords.hiatus=='1'}">checked</c:if>>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm12 with-textarea">
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>资料缺失说明:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+
|
|
|
+ <form:textarea placeholder="请输入资料缺失说明:" readonly="true" id="materialDefectRecordsRemarks" path="remarks" htmlEscape="false" rows="8"
|
|
|
+ maxlength="255" class="form-control required" value="${materialDefectRecords.remarks}"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <%-- <div class="layui-item layui-col-sm12 with-textarea">--%>
|
|
|
+ <%-- <div id="test2" class="demo-tree-more"></div>--%>
|
|
|
+ <%-- </div>--%>
|
|
|
+ </div>
|
|
|
+ <div class="form-group layui-row first lw12">
|
|
|
+ <div class="form-group-label"><h2>资料缺失文件类型</h2></div>
|
|
|
+ <div class="layui-item layui-col-sm12 with-textarea">
|
|
|
+ <div id="test2" class="demo-tree-more"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <input id="zuZhiList" name="zuZhiList" htmlEscape="false" readonly="true" style="display: none"/>
|
|
|
+ <div class="form-group layui-row">
|
|
|
+ <div class="form-group-label"><h2>说明扫描件</h2></div>
|
|
|
+ <div id="addFile_attachment" style="display: none" class="upload-progress">
|
|
|
+ <span id="fileName_attachment"></span>
|
|
|
+ <b><span id="baifenbi_attachment"></span></b>
|
|
|
+ <div class="progress">
|
|
|
+ <div id="jindutiao_attachment" class="progress-bar" style="width: 0%" aria-valuenow="0">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <input id="attachment_file" type="file" name="attachment_file" multiple="multiple"
|
|
|
+ style="display: none;" onChange="if(this.value)insertTitle(this.value);"/>
|
|
|
+ <span id="attachment_title"></span>
|
|
|
+ <div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
|
+ <table id="listAttachment" class="table table-bordered table-condensed details">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <%-- <th>序号</th>--%>
|
|
|
+ <th>文件预览</th>
|
|
|
+ <th>上传人</th>
|
|
|
+ <th>上传时间</th>
|
|
|
+ <th width="200px">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="file_attachment">
|
|
|
+ <c:forEach items="${materialDefectRecord.workAttachments}" var="workClientAttachment"
|
|
|
+ varStatus="status">
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <%-- <td>${status.index + 1}</td>--%>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${materialDefectRecords.uploadMode == 2}">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
+ <td><img src="${workClientAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.temporaryUrl}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)"
|
|
|
+ onclick="openPreview('${workClientAttachment.temporaryUrl}',1)">${workClientAttachment.attachmentName}</a>
|
|
|
+ </td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)"
|
|
|
+ onclick="openPreview('${workClientAttachment.temporaryUrl}',3)">${workClientAttachment.attachmentName}</a>
|
|
|
+ </td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)"
|
|
|
+ onclick="openPreview('${workClientAttachment.temporaryUrl}',2)">${workClientAttachment.attachmentName}</a>
|
|
|
+ </td>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)"
|
|
|
+ onclick="openPreview('${workClientAttachment.url}',1)">${workClientAttachment.attachmentName}</a>
|
|
|
+ </td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${materialDefectRecords.uploadMode == 2}">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
+ <td><img src="${workClientAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.temporaryUrl}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
+ <td><a class="attention-info"
|
|
|
+ href="javascript:void(0)"
|
|
|
+ onclick="openPreview('${workClientAttachment.temporaryUrl}',1)">${workClientAttachment.attachmentName}</a>
|
|
|
+ </td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
+ <td><a class="attention-info"
|
|
|
+ href="javascript:void(0)"
|
|
|
+ onclick="openPreview('${workClientAttachment.temporaryUrl}',3)">${workClientAttachment.attachmentName}</a>
|
|
|
+ </td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <td><a class="attention-info"
|
|
|
+ href="javascript:void(0)"
|
|
|
+ onclick="openPreview('${workClientAttachment.temporaryUrl}',2)">${workClientAttachment.attachmentName}</a>
|
|
|
+ </td>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
+ <td><a href="javascript:void(0)"
|
|
|
+ onclick="openPreview('${workClientAttachment.url}',1)">${workClientAttachment.attachmentName}</a>
|
|
|
+ </td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'rar')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'zip')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jar')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'7z')}">
|
|
|
+ <td><a class="attention-info"
|
|
|
+ href="javascript:void(0)"
|
|
|
+ onclick="openPreview('${workClientAttachment.url}',3)">${workClientAttachment.attachmentName}</a>
|
|
|
+ </td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <td><a class="attention-info"
|
|
|
+ href="javascript:void(0)"
|
|
|
+ onclick="openPreview('${workClientAttachment.url}',2)">${workClientAttachment.attachmentName}</a>
|
|
|
+ </td>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+
|
|
|
+ <td>${workClientAttachment.createBy.name}</td>
|
|
|
+ <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
|
|
|
+ <td class="op-td">
|
|
|
+ <div class="op-btn-box">
|
|
|
+ <%--附件下载删除--%>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${materialDefectRecords.uploadMode == 2}">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
+ <a href="${workClientAttachment.temporaryUrl}" target="_blank"
|
|
|
+ class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <a href="${workClientAttachment.temporaryUrl}"
|
|
|
+ class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${workClientAttachment.url}');"
|
|
|
+ class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ <c:if test="${workClientAttachment.collectFlag != 1}">
|
|
|
+ <a href="javascript:void(0)"
|
|
|
+ onclick="collectingAccessory(this,'${ctx}/projectAccessory/projectAccessory/saveCollectAccessory','${workClientAttachment.url}','${workClientAttachment.createBy.id}','${workClientAttachment.fileSize}')"
|
|
|
+ class="op-btn op-btn-delete" style="background-color: #FFB800"><i
|
|
|
+ class="layui-icon layui-icon-rate"></i> 收藏</a>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${workClientAttachment.createBy.id eq fns:getUser().id}">
|
|
|
+ <a href="javascript:void(0)"
|
|
|
+ onclick="deleteFileFromAliyun(this,'${ctx}/sys/workattachment/deleteFileFromAliyun?url=${workClientAttachment.url}&id=${workClientAttachment.id}&type=2','addFile_attachment','_attachment')"
|
|
|
+ </c:if>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group layui-row page-end"></div>
|
|
@@ -1855,8 +2157,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-<script src="${ctxStatic}/layer-v2.3/layui/layui.all.js" charset="utf-8"></script>
|
|
|
-<script src="${ctxStatic}/layer-v2.3/layui/tableTree/treetable.js" charset="utf-8"></script>
|
|
|
<script>
|
|
|
function f1(row) {
|
|
|
// window.parent.document.getElementById('opinion').value = row;
|
|
@@ -2200,6 +2500,38 @@
|
|
|
content: value
|
|
|
});
|
|
|
}
|
|
|
+ //打开对话框(查看)
|
|
|
+ function openDialogListView(title,url,width,height){
|
|
|
+
|
|
|
+
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
+ width='auto';
|
|
|
+ height='auto';
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
+
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ async: false,
|
|
|
+ url: url,
|
|
|
+ dataType: "json",
|
|
|
+ success: function (data) {
|
|
|
+ if(data.success){
|
|
|
+ top.layer.open({
|
|
|
+ type: 2,
|
|
|
+ skin: 'one-btn',
|
|
|
+ area: [width, height],
|
|
|
+ title: title,
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
+ content: url ,
|
|
|
+ btn: ['关闭'],
|
|
|
+ cancel: function(index){
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|