|
@@ -7,6 +7,11 @@
|
|
|
<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" />
|
|
|
+ </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 type="text/javascript" src="${ctxStatic}/layui/layuidown.js"></script>
|
|
|
+ <link rel='stylesheet' type="text/css" href="${ctxStatic}/layui/layuidown.css"/>
|
|
|
+ <script src="${ctxStatic}/common/html/js/script.js"></script>
|
|
|
<%@include file="/webpage/include/treetable.jsp" %>
|
|
|
|
|
|
<style>
|
|
@@ -56,6 +61,18 @@
|
|
|
$("#inputForm").attr("action","${ctx}/ruralProject/RuralProjectRecordsOwnCaseBase/storeCaseBaseRecord");
|
|
|
}else{
|
|
|
if(boolFlag){
|
|
|
+ var areaType = $("#areaType").val()
|
|
|
+ if (areaType !=3){
|
|
|
+ top.layer.msg("项目所在地只能选择市级地区,请重新选择!", {icon: 0});
|
|
|
+ $("#onsubmit").val(true);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ var engineeringType = $("#engineeringType").val()
|
|
|
+ if (!engineeringType){
|
|
|
+ top.layer.msg("工程类型不可为空,请选择工程类型!", {icon: 0});
|
|
|
+ $("#onsubmit").val(true);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
var caseBase = $("#file_caseBase tr").length;
|
|
|
for(var i=0; i<caseBase; i++) {
|
|
|
var numberStr = $("#file_caseBase tr").eq(i).find("td:first").html();
|
|
@@ -74,7 +91,13 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- $("#inputForm").attr("action","${ctx}/ruralProject/RuralProjectRecordsOwnCaseBase/saveCaseBaseRecord");
|
|
|
+ var flag=judgment();
|
|
|
+ if (flag){
|
|
|
+ $("#inputForm").attr("action","${ctx}/ruralProject/RuralProjectRecordsOwnCaseBase/saveCaseBaseRecord");
|
|
|
+ }else if (!flag){
|
|
|
+ $("#onsubmit").val(true);
|
|
|
+ return flag;
|
|
|
+ }
|
|
|
}
|
|
|
$("#inputForm").submit();
|
|
|
return true;
|
|
@@ -111,6 +134,87 @@
|
|
|
tips: 3
|
|
|
});
|
|
|
})
|
|
|
+
|
|
|
+
|
|
|
+ var value = '${projectCaseBaseAudit.projectDomain}';
|
|
|
+ if (value === '1') {
|
|
|
+ document.getElementById('engineeringTypeBlock').style.display = '';
|
|
|
+ } else {
|
|
|
+ document.getElementById('engineeringTypeBlock').style.display = 'none';
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ layui.use(['form', 'layer'], function () {
|
|
|
+ var form = layui.form;
|
|
|
+
|
|
|
+ form.on('select', function(data){
|
|
|
+ var value = data.value;
|
|
|
+ if (value === '1') {
|
|
|
+ document.getElementById('engineeringTypeBlock').style.display = '';
|
|
|
+ } else {
|
|
|
+ document.getElementById('engineeringTypeBlock').style.display = 'none';
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ type : "POST",
|
|
|
+ url : "${ctx}/ruralProject/RuralProjectRecordsOwnCaseBase/engineeringTreeMenu",
|
|
|
+ //请求成功
|
|
|
+ success : function(result) {
|
|
|
+ var s='{"title": "menu item 4","id": "4"}'
|
|
|
+ var str=jQuery.parseJSON(result);
|
|
|
+ //工程类型树形菜单
|
|
|
+ layui.dropdown.render({
|
|
|
+ elem: '#demo100'
|
|
|
+ ,style: 'width: 450px;'
|
|
|
+ ,data:str
|
|
|
+ ,click: function(item){
|
|
|
+ $("#demo100").find("span").html(item.title)
|
|
|
+ $("#demo100").find("#engineeringType").val(item.id)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ laydate.render({
|
|
|
+ elem: '#startDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
+ event: 'focus', //响应事件。如果没有传入event,则按照默认的click
|
|
|
+ type : 'date'
|
|
|
+ , trigger: 'click'
|
|
|
+ });
|
|
|
+ laydate.render({
|
|
|
+ elem: '#endDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
+ event: 'focus', //响应事件。如果没有传入event,则按照默认的click
|
|
|
+ type : 'date'
|
|
|
+ , trigger: 'click'
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
+ $('#areaId').on("change", function () {
|
|
|
+ var areaId = $("#areaId").val();
|
|
|
+ $("#province").val('');
|
|
|
+ $("#city").val('');
|
|
|
+ $("#county").val('');
|
|
|
+ $.ajax({
|
|
|
+ type : "POST",
|
|
|
+ url : "${ctx}/sys/area/getParent",
|
|
|
+ data : {'areaId':areaId},
|
|
|
+ //请求成功
|
|
|
+ success : function(result) {
|
|
|
+ var pro = result.province;
|
|
|
+ var city = result.city;
|
|
|
+ if(pro != '') {
|
|
|
+ $("#province").val(pro);
|
|
|
+ }
|
|
|
+ if(city != '') {
|
|
|
+ $("#city").val(city);
|
|
|
+ }
|
|
|
+ $("#areaShow").html(pro+"-"+city);
|
|
|
+ },
|
|
|
+
|
|
|
+ });
|
|
|
+ })
|
|
|
});
|
|
|
function insertTitle(tValue){
|
|
|
var list = "${projectReportRecord.workAttachments}";
|
|
@@ -180,72 +284,58 @@
|
|
|
<form:hidden path="id"/>
|
|
|
<form:hidden path="projectId"/>
|
|
|
<input type="hidden" id="onsubmit" value="true">
|
|
|
+ <input type="hidden" id="areaType" value="${projectCaseBaseAudit.area.type}">
|
|
|
<div class="form-group layui-row first lw12">
|
|
|
<div class="form-group-label"><h2>基本信息</h2></div>
|
|
|
|
|
|
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label"><span class="require-item">*</span>报告号:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input id="reportNumber" name="report.number" htmlEscape="false" readonly="true" class="form-control layui-input required" value="${projectReportRecord.report.number}"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label"><span class="require-item">*</span>报告日期:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input id="reportDate" name="report.reportDate" htmlEscape="false" readonly="true" class="form-control layui-input required" value="<fmt:formatDate value="${projectReportRecord.report.reportDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label">合同编号:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input id="contractNum" name="contractNum" htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectReportRecord.report.project.workContractInfo.contractNum}"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label">合同名称:</label>
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>项目名称:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <input id="contractName" name="contractName" htmlEscape="false" readonly="true" class="form-control layui-input" value="${projectReportRecord.report.project.workContractInfo.name}"/>
|
|
|
+ <input id="projectName" name="projectName" htmlEscape="false" readonly="true" class="form-control layui-input required" value="${projectReportRecord.report.project.projectName}"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label">委托方:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input id="clientName" name="clientName" htmlEscape="false" readonly="true" class="form-control layui-input" value="${workClientInfoName}"/>
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>项目所在地:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <sys:treeselectProjectCityArea id="area" name="area.id" value="${projectCaseBaseAudit.area.id}" labelName="area.name" labelValue="${projectCaseBaseAudit.area.name}"
|
|
|
+ cssStyle="background-color: #fff" title="区域" url="/sys/area/treeDataCity" cssClass="form-control judgment layui-input" allowClear="true" notAllowSelectParent="false"/>
|
|
|
+ <span id="areaShow" style="color: red"><c:if test="${projectCaseBaseAudit.area.id!=null}">${projectCaseBaseAudit.province}-${projectCaseBaseAudit.city}</c:if></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label">项目编号:</label>
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
+ <label class="layui-form-label double-line"><span class="require-item">*</span>工程建设开始日期:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <input id="projectNum" name="projectNum" htmlEscape="false" readonly="true" class="form-control layui-input required" value="${projectReportRecord.report.project.projectId}"/>
|
|
|
+ <input class="laydate-icondate judgment form-control layui-input layer-date laydate-icon" style="background-color: #fff" readonly="readonly" id="startDate" name="startDate" placeholder="请选择开始日期" value="<fmt:formatDate value="${projectCaseBaseAudit.startDate}" pattern="yyyy-MM-dd"/>">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label"><span class="require-item">*</span>项目名称:</label>
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
+ <label class="layui-form-label double-line"><span class="require-item">*</span>工程建设结束日期:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <input id="projectName" name="projectName" htmlEscape="false" readonly="true" class="form-control layui-input required" value="${projectReportRecord.report.project.projectName}"/>
|
|
|
+ <input class="laydate-icondate judgment form-control layui-input layer-date laydate-icon" style="background-color: #fff" readonly="readonly" id="endDate" name="endDate" placeholder="请选择结束日期" value="<fmt:formatDate value="${projectCaseBaseAudit.endDate}" pattern="yyyy-MM-dd"/>">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label"><span class="require-item">*</span>归档申请人:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input id="cBName" name="createBy.name" htmlEscape="false" readonly="true" class="form-control layui-input required" value="${projectReportRecord.createBy.name}"/>
|
|
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>工程领域:</label>
|
|
|
+ <div class="layui-input-block readOnlyFFF">
|
|
|
+ <form:select placeholder="请选择" path="projectDomain" class="form-control judgment editable-select layui-input" id="projectProperties" value="${projectCaseBaseAudit.projectDomain}">
|
|
|
+ <form:option value=""/>
|
|
|
+ <form:options items="${fns:getMainDictList('project_domain')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
+ </form:select>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label">归档时间:</label>
|
|
|
- <div class="layui-input-block">
|
|
|
- <input id="recordDate" name="recordDate" htmlEscape="false" readonly="true" class="laydate-icondate form-control layer-date required layui-input laydate-icon"
|
|
|
- value="<fmt:formatDate value="${projectReportRecord.createDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm12 with-textarea">
|
|
|
- <label class="layui-form-label">说明:</label>
|
|
|
+ <div class="layui-item layui-col-sm6 lw7" id="engineeringTypeBlock" style="${showEngineeringType ? '' : 'display:none;'}">
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>工程类型:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:textarea placeholder="请输入说明:" path="remarks" htmlEscape="false" rows="4" maxlength="255" class="form-control "/>
|
|
|
+ <button type="button" class="layui-btn layui-btn-primary" style="width: 100%;text-align: left" id="demo100">
|
|
|
+ <span>${engineeringInfo.engineeringName}</span>
|
|
|
+ <input type="hidden" name="engineeringType" id="engineeringType" class="judgment" value="${engineeringInfo.id}"/>
|
|
|
+ <i class="layui-icon layui-icon-down layui-font-12" style="float: right"></i>
|
|
|
+ </button>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -285,6 +375,7 @@
|
|
|
<th width="20%">文件类型</th>
|
|
|
<th width="160px">上传时间</th>
|
|
|
<th width="120px">文件大小(M)</th>
|
|
|
+ <th width="100px">同步状态</th>
|
|
|
<th width="100px">操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
@@ -309,6 +400,7 @@
|
|
|
<td></td>
|
|
|
<td></td>
|
|
|
<td></td>
|
|
|
+ <td></td>
|
|
|
<td class="op-td">
|
|
|
<div class="op-btn-box" >
|
|
|
<a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${filecaseBase.id}&projectId=${project.id}&uploadMode=${projectReportRecord.uploadMode}','70%','80%',false,'inputForm','upTable_caseBase')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
@@ -393,6 +485,9 @@
|
|
|
<td class="op-td" style="text-align:center;">
|
|
|
${workClientAttachment.fileSize}
|
|
|
</td>
|
|
|
+ <td class="op-td" style="text-align:center; color:${workClientAttachment.syncDifySync == '1' ? 'green' : 'orange'};">
|
|
|
+ ${workClientAttachment.syncDifySync == '1' ? '已同步' : '未同步'}
|
|
|
+ </td>
|
|
|
<td class="op-td">
|
|
|
<div class="op-btn-box" >
|
|
|
<%--附件下载删除--%>
|
|
@@ -440,599 +535,21 @@
|
|
|
<td style="text-align:center;">
|
|
|
|
|
|
</td>
|
|
|
- <td class="op-td">
|
|
|
- <div class="op-btn-box" >
|
|
|
- <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId={{row.id}}&projectId=${project.id}','70%','80%',false,'inputForm','upTable_caseBase')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>//-->
|
|
|
- </script>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- <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>
|
|
|
- <span id="_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="upTable" class="table table-bordered table-condensed tree_table">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th width="20%">文件要求</th>
|
|
|
- <th width="35%">文件描述/文件</th>
|
|
|
- <th width="20%">文件类型</th>
|
|
|
- <th width="160px">上传时间</th>
|
|
|
- <th width="120px">文件大小(M)</th>
|
|
|
- <th width="100px">操作</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="file_attachment">
|
|
|
- <c:forEach items="${projectReportRecord.fileAttachmentList}" var = "fileAttachment" varStatus="status">
|
|
|
- <tr id="file_attachment_${fileAttachment.id}_tr" onclick="listTr(this)">
|
|
|
- <td style="display:none">${fileAttachment.id}</td>
|
|
|
- <td style="display:none">${fileAttachment.mustFlag}</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>
|
|
|
-<%-- <div><span class="file_nei">内容:</span><div class="file_neirong">${fileAttachment.attachName}</div></div>--%>
|
|
|
- <div style="white-space:normal; word-break:break-all;overflow:hidden;"><span style="font-weight: bold">文件格式及大小:</span>${fileAttachment.attachLength}M;</div><div style="white-space:normal; word-break:break-all;overflow:hidden;"> ${fileAttachment.attachTypes}</div>
|
|
|
- </td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td class="op-td">
|
|
|
- <div class="op-btn-box" >
|
|
|
-<%--
|
|
|
- <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileAttachment.id}&projectId=${project.id}&uploadMode=${projectReportRecord.uploadMode}','70%','80%',false,'inputForm','upTable')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
|
---%>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td style="display:none">${fileAttachment.fileFlag}</td>
|
|
|
- </tr>
|
|
|
- <c:forEach items="${fileAttachment.workAttachments}" var = "workClientAttachment" varStatus="status">
|
|
|
- <tr class="file_attachment_${fileAttachment.id}_tr">
|
|
|
- <td></td>
|
|
|
- <c:choose>
|
|
|
- <c:when test="${projectReportRecord.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(fileOther.attachName,'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}"></td>
|
|
|
- </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="${fn:containsIgnoreCase(fileOther.attachName,'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>
|
|
|
- <td class="op-td" style="white-space:normal; word-break:break-all;overflow:hidden;" onclick="readOpenInfo('${workClientAttachment.description}')">${workClientAttachment.description}</td>
|
|
|
-
|
|
|
-
|
|
|
- <td class="op-td" style="text-align:center;">
|
|
|
- <fmt:formatDate value="${workClientAttachment.createDate}" type="date"/>
|
|
|
- </td>
|
|
|
- <td class="op-td" style="text-align:center;">
|
|
|
- ${workClientAttachment.fileSize}
|
|
|
- </td>
|
|
|
- <td class="op-td">
|
|
|
- <div class="op-btn-box" >
|
|
|
- <%--附件下载删除--%>
|
|
|
- <c:choose>
|
|
|
- <c:when test="${projectReportRecord.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>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </c:forEach>
|
|
|
- </c:forEach>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <script type="text/template" id="fileAttachmentTpl">//<!--
|
|
|
- <tr id="budgetList{{idx}}">
|
|
|
- <td class="hide">
|
|
|
- <input id="fileAttachment{{idx}}_id" type="hidden" value="{{row.id}}" class="clientId"/>
|
|
|
- </td>
|
|
|
- <td class="hide">
|
|
|
- 0
|
|
|
- </td>
|
|
|
- <td style="text-align:center;">
|
|
|
- {{row.attachName}}
|
|
|
- </td>
|
|
|
<td style="text-align:center;">
|
|
|
- {{row.attachLength}}
|
|
|
- </td>
|
|
|
- <td style="text-align:center;">
|
|
|
- {{row.attachTypes}}
|
|
|
- </td>
|
|
|
- <td style="text-align:center;">
|
|
|
-
|
|
|
+ '未同步'
|
|
|
</td>
|
|
|
<td class="op-td">
|
|
|
<div class="op-btn-box" >
|
|
|
-<%--
|
|
|
- <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId={{row.id}}&projectId=${project.id}','70%','80%',false,'inputForm','upTable')" 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={{row.id}}&projectId=${project.id}','70%','80%',false,'inputForm','upTable_caseBase')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>//-->
|
|
|
</script>
|
|
|
|
|
|
- <div class="form-group layui-row">
|
|
|
- <div class="form-group-label"><h2>依据性文件</h2></div>
|
|
|
- <div id="addFile_gistdata" style="display: none" class="upload-progress">
|
|
|
- <span id="fileName_gistdata" ></span>
|
|
|
- <span id="_gistdata" ></span>
|
|
|
- <b><span id="baifenbi_gistdata" ></span></b>
|
|
|
- <div class="progress">
|
|
|
- <div id="jindutiao_gistdata" class="progress-bar" style="width: 0%" aria-valuenow="0">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <input id="gistdata_file" type="file" name="gistdata_file" multiple="multiple" style="display: none;" onChange="if(this.value)gistdataInsertTitle(this.value);"/>
|
|
|
- <span id="gistdata_title"></span>
|
|
|
- <div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
|
- <table id="gistdata_upTable" class="table table-bordered table-condensed tree_table">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <%-- <th>序号</th>--%>
|
|
|
- <th width="20%">文件要求</th>
|
|
|
- <th width="35%">文件描述/文件</th>
|
|
|
- <th width="20%">文件类型</th>
|
|
|
- <th width="160px">上传时间</th>
|
|
|
- <th width="120px">文件大小(M)</th>
|
|
|
- <th width="100px">操作</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="file_gistdata">
|
|
|
- <c:forEach items="${projectReportRecord.fileGistdataList}" var = "fileGistdata" varStatus="status">
|
|
|
- <tr id="file_gistdata_${fileGistdata.id}_tr" onclick="listTr(this)">
|
|
|
- <%-- <td>${status.index + 1}</td>--%>
|
|
|
- <td style="display:none">${fileGistdata.id}</td>
|
|
|
- <td style="display:none">${fileGistdata.mustFlag}</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>
|
|
|
-<%-- <div><span class="file_nei">内容:</span><div class="file_neirong">${fileGistdata.attachName}</div></div>--%>
|
|
|
- <div style="white-space:normal; word-break:break-all;overflow:hidden;"><span style="font-weight: bold">文件格式及大小:</span>${fileGistdata.attachLength}M;</div><div style="white-space:normal; word-break:break-all;overflow:hidden;"> ${fileGistdata.attachTypes}</div>
|
|
|
- </td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td class="op-td">
|
|
|
- <div class="op-btn-box" >
|
|
|
-<%--
|
|
|
- <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileGistdata.id}&projectId=${project.id}&uploadMode=${projectReportRecord.uploadMode}','70%','80%',false,'inputForm','gistdata_upTable')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
|
---%>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td style="display:none">${fileGistdata.fileFlag}</td>
|
|
|
-
|
|
|
- </tr>
|
|
|
- <c:forEach items="${fileGistdata.workAttachments}" var = "workClientAttachment" varStatus="status">
|
|
|
- <tr class="file_gistdata_${fileGistdata.id}_tr">
|
|
|
- <td></td>
|
|
|
- <c:choose>
|
|
|
- <c:when test="${projectReportRecord.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(fileOther.attachName,'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}"></td>
|
|
|
- </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="${fn:containsIgnoreCase(fileOther.attachName,'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>
|
|
|
- <td class="op-td" style="white-space:normal; word-break:break-all;overflow:hidden;" onclick="readOpenInfo('${workClientAttachment.description}')">${workClientAttachment.description}</td>
|
|
|
-
|
|
|
-
|
|
|
- <td class="op-td" style="text-align:center;">
|
|
|
- <fmt:formatDate value="${workClientAttachment.createDate}" type="date"/>
|
|
|
- </td>
|
|
|
- <td class="op-td" style="text-align:center;">
|
|
|
- ${workClientAttachment.fileSize}
|
|
|
- </td>
|
|
|
- <td class="op-td">
|
|
|
- <div class="op-btn-box" >
|
|
|
- <%--附件下载删除--%>
|
|
|
- <c:choose>
|
|
|
- <c:when test="${projectReportRecord.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>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </c:forEach>
|
|
|
- </c:forEach>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <script type="text/template" id="gistdataTpl">//<!--
|
|
|
- <tr id="budgetList{{idx}}">
|
|
|
- <td class="hide">
|
|
|
- <input id="gistdataTpl{{idx}}_id" type="hidden" value="{{row.id}}" class="clientId"/>
|
|
|
- </td>
|
|
|
- <td class="hide">
|
|
|
- 0
|
|
|
- </td>
|
|
|
- <td style="text-align:center;">
|
|
|
- {{row.attachName}}
|
|
|
- </td>
|
|
|
- <td style="text-align:center;">
|
|
|
- {{row.attachLength}}
|
|
|
- </td>
|
|
|
- <td style="text-align:center;">
|
|
|
- {{row.attachTypes}}
|
|
|
- </td>
|
|
|
- <td style="text-align:center;">
|
|
|
-
|
|
|
- </td>
|
|
|
- <td class="op-td">
|
|
|
- <div class="op-btn-box" >
|
|
|
-<%--
|
|
|
- <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId={{row.id}}&projectId=${project.id}','70%','80%',false,'inputForm','gistdata_upTable')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
|
---%>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>//-->
|
|
|
- </script>
|
|
|
-
|
|
|
- <div class="form-group layui-row">
|
|
|
- <div class="form-group-label"><h2>其他文件</h2></div>
|
|
|
- <div id="addFile_other" style="display: none" class="upload-progress">
|
|
|
- <span id="fileName_other" ></span>
|
|
|
- <span id="_other" ></span>
|
|
|
- <b><span id="baifenbi_other" ></span></b>
|
|
|
- <div class="progress">
|
|
|
- <div id="jindutiao_other" class="progress-bar" style="width: 0%" aria-valuenow="0">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <input id="other_file" type="file" name="other_file" multiple="multiple" style="display: none;" onChange="if(this.value)otherInsertTitle(this.value);"/>
|
|
|
- <span id="other_title"></span>
|
|
|
- <div class="layui-item layui-col-xs12" style="padding:0 16px;">
|
|
|
- <table id="upTable_other" class="table table-bordered table-condensed tree_table">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <%-- <th>序号</th>--%>
|
|
|
- <th width="20%">文件要求</th>
|
|
|
- <th width="35%">文件描述/文件</th>
|
|
|
- <th width="20%">文件类型</th>
|
|
|
- <th width="160px">上传时间</th>
|
|
|
- <th width="120px">文件大小(M)</th>
|
|
|
- <th width="100px">操作</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="file_other">
|
|
|
- <c:forEach items="${projectReportRecord.fileOtherList}" var = "fileOther" varStatus="status">
|
|
|
- <tr id="file_other_${fileOther.id}_tr" onclick="listTr(this)">
|
|
|
- <%-- <td>${status.index + 1}</td>--%>
|
|
|
- <td style="display:none">${fileOther.id}</td>
|
|
|
- <td style="display:none">${fileOther.mustFlag}</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>
|
|
|
-<%-- <div><span class="file_nei">内容:</span><div class="file_neirong">${fileOther.attachName}</div></div>--%>
|
|
|
- <div style="white-space:normal; word-break:break-all;overflow:hidden;"><span style="font-weight: bold">文件格式及大小:</span>${fileOther.attachLength}M;</div><div style="white-space:normal; word-break:break-all;overflow:hidden;"> ${fileOther.attachTypes}</div>
|
|
|
- </td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></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=${project.id}&uploadMode=${projectReportRecord.uploadMode}','70%','80%',false,'inputForm','upTable_other')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
|
---%>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td style="display:none">${fileOther.fileFlag}</td>
|
|
|
-
|
|
|
- </tr>
|
|
|
- <c:forEach items="${fileOther.workAttachments}" var = "workClientAttachment" varStatus="status">
|
|
|
- <tr class="addFile_other_${fileOther.id}_tr">
|
|
|
- <td></td>
|
|
|
- <c:choose>
|
|
|
- <c:when test="${projectReportRecord.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(fileOther.attachName,'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}"></td>
|
|
|
- </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="${fn:containsIgnoreCase(fileOther.attachName,'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>
|
|
|
- <td class="op-td" style="white-space:normal; word-break:break-all;overflow:hidden;" onclick="readOpenInfo('${workClientAttachment.description}')">${workClientAttachment.description}</td>
|
|
|
-
|
|
|
-
|
|
|
- <td class="op-td" style="text-align:center;">
|
|
|
- <fmt:formatDate value="${workClientAttachment.createDate}" type="date"/>
|
|
|
- </td>
|
|
|
- <td class="op-td" style="text-align:center;">
|
|
|
- ${workClientAttachment.fileSize}
|
|
|
- </td>
|
|
|
- <td class="op-td">
|
|
|
- <div class="op-btn-box" >
|
|
|
- <%--附件下载删除--%>
|
|
|
- <c:choose>
|
|
|
- <c:when test="${projectReportRecord.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>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </c:forEach>
|
|
|
- </c:forEach>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <script type="text/template" id="otherTpl">//<!--
|
|
|
- <tr id="budgetList{{idx}}">
|
|
|
- <td class="hide">
|
|
|
- <input id="otherTpl{{idx}}_id" type="hidden" value="{{row.id}}" class="clientId"/>
|
|
|
- </td>
|
|
|
- <td class="hide">
|
|
|
- 0
|
|
|
- </td>
|
|
|
- <td style="text-align:center;">
|
|
|
- {{row.attachName}}
|
|
|
- </td>
|
|
|
- <td style="text-align:center;">
|
|
|
- {{row.attachLength}}
|
|
|
- </td>
|
|
|
- <td style="text-align:center;">
|
|
|
- {{row.attachTypes}}
|
|
|
- </td>
|
|
|
- <td style="text-align:center;">
|
|
|
-
|
|
|
- </td>
|
|
|
- <td class="op-td">
|
|
|
- <div class="op-btn-box" >
|
|
|
-<%--
|
|
|
- <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId={{row.id}}&projectId=${project.id}','70%','80%',false,'inputForm','upTable_other')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
|
---%>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>//-->
|
|
|
- </script>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
<div class="form-group layui-row page-end"></div>
|
|
|
</form:form>
|
|
|
</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 openBill2(title,url,width,height,target,formId,tableId){
|
|
|
var rows = $(this).parent().prevAll().length + 1;
|