|
@@ -0,0 +1,611 @@
|
|
|
|
+<%@ page contentType="text/html;charset=UTF-8" %>
|
|
|
|
+<%@ include file="/webpage/include/taglib.jsp"%>
|
|
|
|
+<html>
|
|
|
|
+<head>
|
|
|
|
+ <title>合同归档管理</title>
|
|
|
|
+ <meta name="decorator" content="default"/>
|
|
|
|
+ <script type="text/javascript" src="${ctxStatic}/layui/layui.js"></script>
|
|
|
|
+ <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" %>
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+
|
|
|
|
+ layui.use(['tree', 'util'], function() {
|
|
|
|
+ var reportId = "${ruralProjectRecords.pmdrReportId}"
|
|
|
|
+ console.log('reportId', reportId)
|
|
|
|
+ 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() {
|
|
|
|
+ $("#upTable").treeTable({expandLevel : 5},{ expandable: true });
|
|
|
|
+ $("#gistdata_upTable").treeTable({expandLevel : 5},{ expandable: true });
|
|
|
|
+ $("#upTable_other").treeTable({expandLevel : 5},{ expandable: true });
|
|
|
|
+ validateForm = $("#inputForm").validate({
|
|
|
|
+ submitHandler: function(form){
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function(error, element) {
|
|
|
|
+ $("#messageBox").text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ $(".tabMove").mouseover(function(){
|
|
|
|
+ //tips层-下
|
|
|
|
+ var td=$(this)
|
|
|
|
+ var tdval=$(this).find("input").val();
|
|
|
|
+ layer.tips(tdval, td, {
|
|
|
|
+ tips: 3
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ $(".list-tabs li").click(function(){
|
|
|
|
+ $(".list-tabs li").each(function(){
|
|
|
|
+ $(this).removeAttr("class","active");
|
|
|
|
+ var id='#'+$(this).find("span").html();
|
|
|
|
+ $(id).attr("class","hide");
|
|
|
|
+ })
|
|
|
|
+ $(this).attr("class","active");
|
|
|
|
+ var id='#'+$(this).find("span").html();
|
|
|
|
+ $(id).removeAttr("class","hide");
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ });
|
|
|
|
+ </script>
|
|
|
|
+</head>
|
|
|
|
+<body>
|
|
|
|
+<div class="single-form view-form">
|
|
|
|
+ <div class="tapfixed">
|
|
|
|
+ <div class="list-form-tab contentShadow shadowLTR" id="tabDiv">
|
|
|
|
+ <ul class="list-tabs" >
|
|
|
|
+ <li><a href="${ctx}/ruralProject/ruralProjectView/view?id=${ruralProjectRecords.id}">项目详情</a></li>
|
|
|
|
+ <li><a href="${ctx}/ruralProject/ruralProjectView/list?parentProId=${ruralProjectRecords.id}&projectType=${ruralProjectRecords.projectType}">子项目列表</a></li>
|
|
|
|
+ <li><a href="${ctx}/ruralProject/ruralProjectView/workContractView?id=${ruralProjectRecords.workContractInfo.id}&projectId=${ruralProjectRecords.id}">客户合同详情</a></li>
|
|
|
|
+ <li><a href="${ctx}/ruralProject/ruralProjectView/planView?id=${ruralProjectRecords.id}">项目计划信息</a></li>
|
|
|
|
+ <li><a href="${ctx}/ruralProject/ruralProjectView/modify?projectId=${ruralProjectRecords.id}">质量复核信息</a></li>
|
|
|
|
+ <c:if test="${ruralProjectRecords.submitMoney eq '2'}">
|
|
|
|
+ <li><a href="${ctx}/ruralProject/ruralProjectView/reportIssue?projectId=${ruralProjectRecords.id}">报告签发信息</a></li>
|
|
|
|
+ </c:if>
|
|
|
|
+ <li><a href="${ctx}/ruralProject/ruralProjectView/getAccessoryView?id=${ruralProjectRecords.id}">档案信息</a></li>
|
|
|
|
+ <li><a href="${ctx}/ruralProject/ruralProjectView/formRecordModify?id=${ruralProjectRecords.id}">线上归档信息</a></li>
|
|
|
|
+ <li><a href="${ctx}/ruralProject/ruralProjectView/paperView?projectId=${ruralProjectRecords.id}&submitMoney=${ruralProjectRecords.submitMoney}">纸质归档信息</a></li>
|
|
|
|
+ <li><a href="${ctx}/ruralProject/ruralProjectView/getReportedView?projectId=${ruralProjectRecords.id}&id=${reportedId}">上报信息</a></li>
|
|
|
|
+ <li class="active"><a href="${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescription2?reportId=${ruralProjectRecords.prdId}">资料缺失说明</a></li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="container view-form" style="margin-top: 50px;">
|
|
|
|
+ <form:form id="inputForm" modelAttribute="ruralProjectRecords" method="post"
|
|
|
|
+ class="form-horizontal layui-form">
|
|
|
|
+ <form:hidden path="id"/>
|
|
|
|
+<%-- <form:hidden path="numberCount"/>--%>
|
|
|
|
+<%-- <form:hidden id="reportId" path="report.id"/>--%>
|
|
|
|
+<%-- <form:hidden path="report.name"/>--%>
|
|
|
|
+<%-- <form:hidden path="report.project.id"/>--%>
|
|
|
|
+ <form:hidden path="view"/>
|
|
|
|
+
|
|
|
|
+ <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="${ruralProjectRecords.hiatus=='0'}">checked</c:if>>
|
|
|
|
+ <input type="radio" title="永久" disabled lay-filter="ext" name="hiatus" id="hiatus2" value="1" <c:if test="${ruralProjectRecords.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" path="remarks" htmlEscape="false" rows="8"
|
|
|
|
+ maxlength="255" class="form-control required"/>
|
|
|
|
+ </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 class="layui-item nav-btns">
|
|
|
|
+ <a id="attachment_btn" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>
|
|
|
|
+ <%--<sys:collectSelect id="linkman" url="${ctx}/workclientinfo/workClientInfo/linkmanList"
|
|
|
|
+ name="linkman.id" title="选择资料库"
|
|
|
|
+ cssClass="form-control judgment" fieldLabels="资料库" fieldKeys="name"
|
|
|
|
+ searchLabel="资料库" searchKey="fileName"></sys:collectSelect>--%>
|
|
|
|
+ </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="${ruralProjectRecords.workAttachments}" var="workClientAttachment"
|
|
|
|
+ varStatus="status">
|
|
|
|
+ <tr>
|
|
|
|
+
|
|
|
|
+ <%-- <td>${status.index + 1}</td>--%>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${ruralProjectRecords.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="${ruralProjectRecords.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="${ruralProjectRecords.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')"
|
|
|
|
+ class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>
|
|
|
|
+ </c:if>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </form:form>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+<script>
|
|
|
|
+ function f1(row) {
|
|
|
|
+ // window.parent.document.getElementById('opinion').value = row;
|
|
|
|
+ $("#opinion").val(row)
|
|
|
|
+ }
|
|
|
|
+ function openDialogre(title,url,width,height,target,buttons) {
|
|
|
|
+ if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) {//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width = 'auto';
|
|
|
|
+ height = 'auto';
|
|
|
|
+ } else {//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+ }
|
|
|
|
+ var split = buttons.split(",");
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
|
+ skin: 'three-btns',
|
|
|
|
+ content: url,
|
|
|
|
+ btn: split,
|
|
|
|
+ btn1: function(index, layero){
|
|
|
|
+ top.layer.close(index)
|
|
|
|
+ document.getElementById('iframe').contentWindow.location.reload();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ function openBill3(title,url,width,height,target,formId,tableId){
|
|
|
|
+ var rows = $(this).parent().prevAll().length + 1;
|
|
|
|
+ var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
|
|
+ var urls = url+"&index="+frameIndex;
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ skin:"two-btns",
|
|
|
|
+ maxmin: false, //开启最大化最小化按钮
|
|
|
|
+ content: urls ,
|
|
|
|
+ btn: ['确定','关闭'],
|
|
|
|
+ yes: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ inputForm.attr("action","${ctx}/projectAccessory/projectAccessory/saveWorkAttachment");//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ var $document = iframeWin.contentWindow.document;
|
|
|
|
+
|
|
|
|
+ formSubmit3($document,formId,index,tableId);
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ function formSubmit3($document,inputForm,index,tableId){
|
|
|
|
+
|
|
|
|
+ var validateForm = $($document.getElementById(inputForm)).validate({
|
|
|
|
+ submitHandler: function(form){
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function(error, element) {
|
|
|
|
+ $($document.getElementById("#messageBox")).text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ if(validateForm.form()){
|
|
|
|
+ $($document.getElementById(inputForm)).ajaxSubmit({
|
|
|
|
+ success:function(data) {
|
|
|
|
+ var d = data;
|
|
|
|
+ //输出提示信息
|
|
|
|
+ if(d.str.length>0){
|
|
|
|
+ parent.layer.msg(d.str,{icon:1});
|
|
|
|
+ }
|
|
|
|
+ //$("#"+tableId).load(location.href + " #"+tableId);
|
|
|
|
+ //关闭当前页
|
|
|
|
+ top.layer.close(index)
|
|
|
|
+ location.reload();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function formAttachment(title,url,width,height,target,formId){
|
|
|
|
+ var rows = $(this).parent().prevAll().length + 1;
|
|
|
|
+ var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
|
|
+ var urls = url;
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ skin:"two-btns",
|
|
|
|
+ maxmin: false, //开启最大化最小化按钮
|
|
|
|
+ content: urls ,
|
|
|
|
+ btn: ['确定','关闭'],
|
|
|
|
+ yes: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ inputForm.attr("action","${ctx}/projectAccessory/projectAccessory/saveWorkAttachment");//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ var $document = iframeWin.contentWindow.document;
|
|
|
|
+ var iframeWin = layero.find('iframe')[0].contentWindow; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var item = iframeWin.getSelectedItem();
|
|
|
|
+ setValuee(item);
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ function setValuee(obj){
|
|
|
|
+ for(var i=0;i<obj.length;i++){
|
|
|
|
+ var idArr = $("#file_attachment tr:visible .clientId");
|
|
|
|
+ if(obj[i].id!=''&&!hasInArr(obj[i].id,idArr)){
|
|
|
|
+ addRowBaseData("#workBaseDataList",workBaseDataRowIdx,workBaseDataTpl,obj[i]);
|
|
|
|
+ $("#workBaseDataList"+workBaseDataRowIdx+"_nature").html("引用");
|
|
|
|
+ workBaseDataRowIdx=workBaseDataRowIdx+1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
|
|
+<script>
|
|
|
|
+ layui.use(['form', 'layer'], function () {
|
|
|
|
+ var form = layui.form;
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ function openBill2(title,url,width,height,target,formId){
|
|
|
|
+ var rows = $(this).parent().prevAll().length + 1;
|
|
|
|
+ var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
|
|
+ var urls = url+"&index="+frameIndex;
|
|
|
|
+ if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width='auto';
|
|
|
|
+ height='auto';
|
|
|
|
+ }else{//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ skin:"two-btns",
|
|
|
|
+ maxmin: false, //开启最大化最小化按钮
|
|
|
|
+ content: urls ,
|
|
|
|
+ btn: ['确定','关闭'],
|
|
|
|
+ yes: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
|
|
+ }
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ inputForm.attr("action","${ctx}/projectAccessory/projectAccessory/saveWorkAttachment");//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ var $document = iframeWin.contentWindow.document;
|
|
|
|
+
|
|
|
|
+ formSubmit2($document,formId,index);
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ cancel: function(index){
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ function formSubmit2($document,inputForm,index){
|
|
|
|
+
|
|
|
|
+ var validateForm = $($document.getElementById(inputForm)).validate({
|
|
|
|
+ submitHandler: function(form){
|
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
|
+ form.submit();
|
|
|
|
+ },
|
|
|
|
+ errorContainer: "#messageBox",
|
|
|
|
+ errorPlacement: function(error, element) {
|
|
|
|
+ $($document.getElementById("#messageBox")).text("输入有误,请先更正。");
|
|
|
|
+ if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
|
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
|
+ } else {
|
|
|
|
+ error.insertAfter(element);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ if(validateForm.form()){
|
|
|
|
+ $($document.getElementById(inputForm)).ajaxSubmit({
|
|
|
|
+ success:function(data) {
|
|
|
|
+ var d = data;
|
|
|
|
+ //调用layui.use中的renderTable()方法刷新列表
|
|
|
|
+ renderTable()
|
|
|
|
+ //输出提示信息
|
|
|
|
+ if(d.str.length>0){
|
|
|
|
+ parent.layer.msg(d.str,{icon:1});
|
|
|
|
+ }
|
|
|
|
+ //关闭当前页
|
|
|
|
+ top.layer.close(index)
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
|
|
+</body>
|
|
|
|
+</html>
|