|
@@ -0,0 +1,772 @@
|
|
|
|
+<%@ 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}/helloweba_editable-select/jquery.editable-select.min.js"></script>
|
|
|
|
+ <script type="text/javascript" src="${ctxStatic}/iCheck/icheck.min.js"></script>
|
|
|
|
+ <script type="text/javascript" src="${ctxStatic}/layui/layuidown.js"></script>
|
|
|
|
+ <script src="${ctxStatic}/common/html/js/script.js"></script>
|
|
|
|
+ <link rel='stylesheet' type="text/css" href="${ctxStatic}/layui/layuidown.css"/>
|
|
|
|
+ <link rel='stylesheet' type="text/css" href="${ctxStatic}/helloweba_editable-select/jquery.editable-select.min.css"/>
|
|
|
|
+ <style>
|
|
|
|
+
|
|
|
|
+ #contractTypeDoc-error{
|
|
|
|
+ top:80px;
|
|
|
|
+ left:0;
|
|
|
|
+ }
|
|
|
|
+ /*超过5个汉字,调整label的长度,以下是配套的*/
|
|
|
|
+ .layui-item .layui-form-label{
|
|
|
|
+ width:90px;
|
|
|
|
+ }
|
|
|
|
+ #projectReportSignatureRelationList td{
|
|
|
|
+ padding-left: 0px;
|
|
|
|
+ padding-right: 0px;
|
|
|
|
+ }
|
|
|
|
+ </style>
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ var validateForm;
|
|
|
|
+ var isMasterClient = true;//是否是委托方
|
|
|
|
+ var clientCount = 0;
|
|
|
|
+ function doSubmit(i){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ $(document).ready(function() {
|
|
|
|
+ layui.use(['form', 'layer'], function () {
|
|
|
|
+ var form = layui.form;
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ $("#attachment_btn").click(function () {
|
|
|
|
+ $("#attachment_file").click();
|
|
|
|
+ });
|
|
|
|
+ var radioVal ;
|
|
|
|
+ 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);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+ function addRow1(list, idx, tpl, row){
|
|
|
|
+ var idx1 = $("#projectReportSignatureRelationList tr").length;
|
|
|
|
+ if(idx1>0){
|
|
|
|
+ var count=0;
|
|
|
|
+ for (var i=1;i<=idx1;i++) {
|
|
|
|
+ var delFlag = $("#projectReportSignatureRelationList").find("tr").eq(i-1).find("input").eq(1).val();
|
|
|
|
+ if (delFlag == "1") {
|
|
|
|
+ count = i;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (idx1>count){
|
|
|
|
+ var id=$("#projectReportSignatureRelationList").find("tr").eq(count).find("input").eq(5).val();
|
|
|
|
+ if (id!=undefined && id != ''){
|
|
|
|
+ if (row== undefined){
|
|
|
|
+ row={"isProject": "1","isProjectFalg": "1"};
|
|
|
|
+ layui.form.render();
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ parent.layer.msg("请选择项目报告信息",{icon:6});
|
|
|
|
+ layui.form.render();
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(list == '#projectReportSignatureRelationList'){
|
|
|
|
+ bornTemplete1(list, idx, tpl, row, idx1);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ function bornTemplete1(list, idx, tpl, row, idx1){
|
|
|
|
+ $(list).append(Mustache.render(tpl, {
|
|
|
|
+ idx: idx, delBtn: true, row: row,
|
|
|
|
+ order:idx1 + 1
|
|
|
|
+ }));
|
|
|
|
+ $(list+idx).find("select").each(function(){
|
|
|
|
+ $(this).val($(this).attr("data-value"));
|
|
|
|
+ });
|
|
|
|
+ $(list+idx).find("input[type='checkbox'], input[type='radio']").each(function(){
|
|
|
|
+ var ss = $(this).attr("data-value").split(',');
|
|
|
|
+ for (var i=0; i<ss.length; i++){
|
|
|
|
+ if($(this).val() == ss[i]){
|
|
|
|
+ $(this).attr("checked","checked");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function delRow1(obj, prefix) {
|
|
|
|
+ var id = $(prefix + "_signatureId");
|
|
|
|
+ var delFlag = $(prefix + "_delFlag");
|
|
|
|
+ if (id.val() == "") {
|
|
|
|
+ $(obj).parent().parent().remove();
|
|
|
|
+ } else if (delFlag.val() == "0") {
|
|
|
|
+ delFlag.val("1");
|
|
|
|
+ $(obj).html("÷").attr("title", "撤回删除");
|
|
|
|
+ $(obj).parent().parent().addClass("error");
|
|
|
|
+ $(obj).parent().parent().addClass("hide");
|
|
|
|
+ } else if (delFlag.val() == "1") {
|
|
|
|
+ delFlag.val("0");
|
|
|
|
+ $(obj).html("×").attr("title", "删除");
|
|
|
|
+ $(obj).parent().parent().removeClass("error");
|
|
|
|
+ }
|
|
|
|
+ var length=$("#projectReportSignatureRelationList tr").length;
|
|
|
|
+ var count=length;
|
|
|
|
+ for (var i=1;i<=length;i++) {
|
|
|
|
+ var delFlag = $("#projectReportSignatureRelationList").find("tr").eq(i-1).find("input").eq(1).val();
|
|
|
|
+ if (delFlag == "1") {
|
|
|
|
+ count =count-1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(count==1){
|
|
|
|
+ layui.form.render();
|
|
|
|
+ }else if (count>1){
|
|
|
|
+ layui.form.render();
|
|
|
|
+ }else if(count == 0){
|
|
|
|
+ $("#projectFlag").val("");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function newSetPNumber(obj,ids,details){
|
|
|
|
+ var idx=ids.split("_")[0]
|
|
|
|
+ var idArray= new Array(); //定义一数组
|
|
|
|
+ idArray=obj.split(","); //字符分割
|
|
|
|
+
|
|
|
|
+ for (var k=0;k<idArray.length ;k++ )
|
|
|
|
+ {
|
|
|
|
+ $.ajax({
|
|
|
|
+ async:false,
|
|
|
|
+ type:'post',
|
|
|
|
+ url:'${ctx}/projectReport/projectReportSignature/getPNumber',
|
|
|
|
+ data:{
|
|
|
|
+ "obj":idArray[k]
|
|
|
|
+ },
|
|
|
|
+ success:function(data){
|
|
|
|
+ if(k>=1){
|
|
|
|
+ var row = projectReportSignatureRelationListRowIdx;
|
|
|
|
+ addRow1('#projectReportSignatureRelationList', projectReportSignatureRelationListRowIdx, projectReportSignatureRelationListTpl, data[k])
|
|
|
|
+ projectReportSignatureRelationListRowIdx = projectReportSignatureRelationListRowIdx + 1;
|
|
|
|
+ var d = JSON.parse(data);
|
|
|
|
+ var workContractName="#projectReportSignatureRelationList"+row+"_workContractName";
|
|
|
|
+ var projectNum="#projectReportSignatureRelationList"+row+"_projectNum";
|
|
|
|
+ var clientName="#projectReportSignatureRelationList"+row+"_clientName";
|
|
|
|
+ var reportDataNum="#projectReportSignatureRelationList"+row+"_reportDataNum";
|
|
|
|
+ var projectName="#projectReportSignatureRelationList"+row+"_projectIdName";
|
|
|
|
+ var id="#projectReportSignatureRelationList"+row+"_projectIdId";
|
|
|
|
+ $(id).val(d.id);
|
|
|
|
+ $(projectName).val(d.projectName);
|
|
|
|
+ $(workContractName).val(d.workContractName);
|
|
|
|
+ $(projectNum).val(d.projectNum);
|
|
|
|
+ $(clientName).val(d.clientName);
|
|
|
|
+ $(reportDataNum).val(d.reportDataNum);
|
|
|
|
+ var areaId = $("#areaId").val();
|
|
|
|
+ if(undefined ==areaId || null == areaId || '' == areaId){
|
|
|
|
+ $("#areaId").val(d.areaId);
|
|
|
|
+ $("#areaName").val(d.areaName);
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ var d = JSON.parse(data);
|
|
|
|
+ var workContractName="#"+idx+"_workContractName";
|
|
|
|
+ var projectNum="#"+idx+"_projectNum";
|
|
|
|
+ var clientName="#"+idx+"_clientName";
|
|
|
|
+ var reportDataNum="#"+idx+"_reportDataNum";
|
|
|
|
+ $(workContractName).val(d.workContractName);
|
|
|
|
+ $(projectNum).val(d.projectNum);
|
|
|
|
+ $(clientName).val(d.clientName);
|
|
|
|
+ $(reportDataNum).val(d.reportDataNum);
|
|
|
|
+ var areaId = $("#areaId").val();
|
|
|
|
+ if(undefined ==areaId || null == areaId || '' == areaId){
|
|
|
|
+ $("#areaId").val(d.areaId);
|
|
|
|
+ $("#areaName").val(d.areaName);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ var length=$("#projectReportSignatureRelationList tr").length;
|
|
|
|
+ var count=length;
|
|
|
|
+ for (var i=1;i<=length;i++) {
|
|
|
|
+ var delFlag = $("#projectReportSignatureRelationList").find("tr").eq(i-1).find("input").eq(1).val();
|
|
|
|
+ if (delFlag == "1") {
|
|
|
|
+ count =count-1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(count==1){
|
|
|
|
+ layui.form.render();
|
|
|
|
+ }else if (count>1){
|
|
|
|
+ layui.form.render();
|
|
|
|
+ }else if(count == 0){
|
|
|
|
+ $("#projectFlag").val("");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ </script>
|
|
|
|
+</head>
|
|
|
|
+<body>
|
|
|
|
+<div class="single-form">
|
|
|
|
+ <sys:message content="${message}"/>
|
|
|
|
+ <form:form id="inputForm" modelAttribute="projectReportSignature" action="${ctx}/projectReport/projectReportSignature/view" method="post" class="form-horizontal layui-form ">
|
|
|
|
+ <form:hidden path="id"/>
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label"><h2>签章项目信息</h2></div>
|
|
|
|
+ <div id="divv">
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7" id="d1">
|
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>选择项目:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <%-- <sys:gridselectSignatureProject url="${ctx}/projectReport/projectReportSignature/getProjectReportList" type="" isTotal="" id="projectId" name="reportSignatureRelation.projectId" value="${projectReportSignature.reportSignatureRelation.projectId}" title="选择所属项目" labelName="reportSignatureRelation.projectName"--%>
|
|
|
|
+ <%-- cssStyle="background-color: #fff" labelValue="${projectReportSignature.reportSignatureRelation.projectName}" cssClass="form-control required layui-input" fieldLabels="项目名称" fieldKeys="projectName" searchLabel="项目名称" searchKey="projectName"></sys:gridselectSignatureProject>--%>
|
|
|
|
+ <input htmlEscape="false" readonly="true" id="projectName" class="form-control layui-input" value="${projectReportSignature.reportSignatureRelation.projectName}"/>
|
|
|
|
+ <input htmlEscape="false" readonly="true" type="hidden" id="projectId" class="form-control layui-input" value="${projectReportSignature.reportSignatureRelation.projectId}"/>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">报告号:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" id="reportDataNum" class="form-control layui-input" value="${projectReportSignature.reportSignatureRelation.reportDataNum}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">合同名称:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" id="workContractName" class="form-control layui-input" value="${projectReportSignature.reportSignatureRelation.workContractName}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">项目编号:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" id="projectNum" class="form-control layui-input" value="${projectReportSignature.reportSignatureRelation.projectNum}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">委托方:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input htmlEscape="false" readonly="true" id="clientName" name="reportSignatureRelation.clientName" class="form-control layui-input" value="${projectReportSignature.reportSignatureRelation.clientName}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <%-- <div class="layui-table-body layui-item layui-col-xs12 form-table-container" style="padding:0px">--%>
|
|
|
|
+ <%-- <table id="contentTables" class="table table-bordered table-condensed can-edit no-bottom-margin details">--%>
|
|
|
|
+ <%-- <thead>--%>
|
|
|
|
+ <%-- <tr>--%>
|
|
|
|
+ <%-- <th width="200px"><font color="red">*</font>项目名称</th>--%>
|
|
|
|
+ <%-- <th width="200px">报告号</th>--%>
|
|
|
|
+ <%-- <th width="200px">合同名称</th>--%>
|
|
|
|
+ <%-- <th width="200px">项目编号</th>--%>
|
|
|
|
+ <%-- <th width="200px">委托方</th>--%>
|
|
|
|
+ <%-- </tr>--%>
|
|
|
|
+ <%-- </thead>--%>
|
|
|
|
+ <%-- <tbody id="projectReportSignatureRelationList">--%>
|
|
|
|
+ <%-- </tbody>--%>
|
|
|
|
+ <%-- </table>--%>
|
|
|
|
+ <%-- <script type="text/template" id="projectReportSignatureRelationListTpl">//<!----%>
|
|
|
|
+ <%-- <tr id="projectReportSignatureRelationList{{idx}}">--%>
|
|
|
|
+ <%-- <td class="hide">--%>
|
|
|
|
+ <%-- <input id="projectReportSignatureRelationList{{idx}}_signatureId" name="projectReportSignatureRelationList[{{idx}}].signatureId" type="hidden" value="{{row.signatureId}}"/>--%>
|
|
|
|
+ <%-- <input id="projectReportSignatureRelationList{{idx}}_delFlag" name="projectReportSignatureRelationList[{{idx}}].delFlag" type="hidden" value="0"/>--%>
|
|
|
|
+ <%-- <input id="projectReportSignatureRelationList{{idx}}_contractId" name="projectReportSignatureRelationList[{{idx}}].contractId" type="hidden" value="{{row.contractId}}"/>--%>
|
|
|
|
+ <%-- </td>--%>
|
|
|
|
+ <%-- <td>--%>
|
|
|
|
+ <%-- <input id="projectReportSignatureRelationList{{idx}}_projectName" type="text" value="{{row.projectName}}" readonly="readonly" class="form-control"/>--%>
|
|
|
|
+ <%-- </td>--%>
|
|
|
|
+ <%-- <td>--%>
|
|
|
|
+ <%-- <input id="projectReportSignatureRelationList{{idx}}_reportDataNum" type="text" value="{{row.reportDataNum}}" readonly="readonly" class="form-control"/>--%>
|
|
|
|
+ <%-- </td>--%>
|
|
|
|
+ <%-- <td>--%>
|
|
|
|
+ <%-- <input id="projectReportSignatureRelationList{{idx}}_workContractName" type="text" value="{{row.workContractName}}" readonly="readonly" class="form-control"/>--%>
|
|
|
|
+ <%-- </td>--%>
|
|
|
|
+ <%-- <td style="text-align:center;">--%>
|
|
|
|
+ <%-- <input id="projectReportSignatureRelationList{{idx}}_projectNum" type="text" value="{{row.projectNum}}" readonly="readonly" class="form-control"/>--%>
|
|
|
|
+ <%-- </td>--%>
|
|
|
|
+ <%-- <td>--%>
|
|
|
|
+ <%-- <input id="projectReportSignatureRelationList{{idx}}_clientName" type="text" value="{{row.clientName}}" readonly="readonly" class="form-control"/>--%>
|
|
|
|
+ <%-- </td>、--%>
|
|
|
|
+ <%-- </tr>//-->--%>
|
|
|
|
+ <%-- </script>--%>
|
|
|
|
+ <%-- <script type="text/javascript">--%>
|
|
|
|
+ <%-- var projectReportSignatureRelationListRowIdx = 0, projectReportSignatureRelationListTpl = $("#projectReportSignatureRelationListTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");--%>
|
|
|
|
+ <%-- /*if($("#id").val()){--%>
|
|
|
|
+ <%-- projectReportSignatureRelationListRowIdx = ${fn:length(projectReportSignature.projectReportSignatureRelationList)};--%>
|
|
|
|
+ <%-- }*/--%>
|
|
|
|
+ <%-- $(document).ready(function() {--%>
|
|
|
|
+ <%-- var data = ${fns:toJson(projectReportSignature.projectReportSignatureRelationList)};--%>
|
|
|
|
+ <%-- console.log(data)--%>
|
|
|
|
+ <%-- for (var i=0; i<data.length; i++){--%>
|
|
|
|
+ <%-- addRow1('#projectReportSignatureRelationList', projectReportSignatureRelationListRowIdx, projectReportSignatureRelationListTpl, data[i])--%>
|
|
|
|
+ <%-- projectReportSignatureRelationListRowIdx = projectReportSignatureRelationListRowIdx + 1;--%>
|
|
|
|
+ <%-- }--%>
|
|
|
|
+ <%-- });--%>
|
|
|
|
+ <%-- </script>--%>
|
|
|
|
+ <%-- </div>--%>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <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 readOnlyFFF">
|
|
|
|
+<%-- <form:select placeholder="请选择" path="signatureType" class="form-control judgment editable-select layui-input" id="signatureType" disabled="true" readonly="true" value="${projectReportSignature.signatureType}">--%>
|
|
|
|
+<%-- <form:option value=""/>--%>
|
|
|
|
+<%-- <form:options items="${fns:getMainDictList('signature_type_project_report_work')}" itemLabel="label" itemValue="value" htmlEscape="false"/>--%>
|
|
|
|
+<%-- </form:select>--%>
|
|
|
|
+ <form:input path="label" id="label" maxlength="255" readonly="true" htmlEscape="false" placeholder="请输入签章类型" class="form-control layui-input required"/>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <%-- <div class="layui-item layui-col-sm6 lw7">--%>
|
|
|
|
+ <%-- <label class="layui-form-label">签章编号:</label>--%>
|
|
|
|
+ <%-- <div class="layui-input-block">--%>
|
|
|
|
+ <%-- <div class="input-group">--%>
|
|
|
|
+ <%-- <form:input path="number" htmlEscape="false" readonly="true" class="form-control layui-input"/>--%>
|
|
|
|
+ <%-- </div>--%>
|
|
|
|
+ <%-- </div>--%>
|
|
|
|
+ <%-- </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 readOnlyFFF">
|
|
|
|
+<%-- <select class="form-control judgment layui-input" disabled="disabled" id="dutyPerson" name="dutyPerson">--%>
|
|
|
|
+<%-- <option value=""/>--%>
|
|
|
|
+<%-- <c:forEach items="${dutyPersonList}" var="user">--%>
|
|
|
|
+<%-- <option value="${user.id}" <c:if test="${projectReportSignature.dutyPerson eq user.id }">selected</c:if>>${user.name}</option>--%>
|
|
|
|
+<%-- </c:forEach>--%>
|
|
|
|
+<%-- </select>--%>
|
|
|
|
+ <form:input path="dutyPersonName" id="dutyPersonName" maxlength="255" readonly="true" htmlEscape="false" placeholder="请输入签章责任人" class="form-control layui-input required"/>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">签章描述:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:input path="signatureName" id="signatureName" maxlength="255" readonly="true" htmlEscape="false" placeholder="请输入签章描述" class="form-control layui-input required"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">创建人:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:input path="createBy.name" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
|
+ <form:hidden path="createBy.id" htmlEscape="false" readonly="true" class="form-control layui-input"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">所属部门:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:input path="office.name" htmlEscape="false" id="officeName" class="form-control layui-input" readonly="true"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-item layui-col-sm6 lw7">
|
|
|
|
+ <label class="layui-form-label">创建日期:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input id="createDate" name="createDate" htmlEscape="false" value="<fmt:formatDate value="${projectReportSignature.createDate}" pattern="yyyy-MM-dd"/>" readonly="readonly" class="form-control judgment layui-input"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="layui-item layui-col-sm12 lw7 with-textarea">
|
|
|
|
+ <label class="layui-form-label ">备注:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <form:textarea placeholder="请输入备注" path="remarks" readonly="true" htmlEscape="false" rows="4" maxlength="255" class="form-control "/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <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="upTable" 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="${projectReportSignature.workAttachments}" var="workClientAttachment"
|
|
|
|
+ varStatus="status">
|
|
|
|
+ <tr>
|
|
|
|
+ <%-- <td>${status.index + 1}</td>--%>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${projectReportSignature.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="${projectReportSignature.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="${projectReportSignature.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 layui-btn-warm" > 收藏</a>
|
|
|
|
+ </c:if>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <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="upTable" 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="${projectReportSignature.signatureWorkAttachments}" var="signatureWorkAttachment"
|
|
|
|
+ varStatus="status">
|
|
|
|
+ <tr>
|
|
|
|
+ <%-- <td>${status.index + 1}</td>--%>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${projectReportSignature.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${signatureWorkAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${signatureWorkAttachment.temporaryUrl}','90%','90%')" alt="${signatureWorkAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${signatureWorkAttachment.temporaryUrl}',1)">${signatureWorkAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${signatureWorkAttachment.temporaryUrl}',3)">${signatureWorkAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${signatureWorkAttachment.temporaryUrl}',2)">${signatureWorkAttachment.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(signatureWorkAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${signatureWorkAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${signatureWorkAttachment.url}','90%','90%')" alt="${signatureWorkAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)"
|
|
|
|
+ onclick="openPreview('${signatureWorkAttachment.url}',1)">${signatureWorkAttachment.attachmentName}</a>
|
|
|
|
+ </td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${projectReportSignature.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${signatureWorkAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${signatureWorkAttachment.temporaryUrl}','90%','90%')" alt="${signatureWorkAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${signatureWorkAttachment.temporaryUrl}',1)">${signatureWorkAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${signatureWorkAttachment.temporaryUrl}',3)">${signatureWorkAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${signatureWorkAttachment.temporaryUrl}',2)">${signatureWorkAttachment.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(signatureWorkAttachment.attachmentName,'jpg')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'png')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'gif')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'bmp')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'jpeg')}">
|
|
|
|
+ <td><img src="${signatureWorkAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${signatureWorkAttachment.url}','90%','90%')" alt="${signatureWorkAttachment.attachmentName}">
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <td><a href="javascript:void(0)" onclick="openPreview('${signatureWorkAttachment.url}',1)">${signatureWorkAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'rar')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'zip')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'jar')
|
|
|
|
+ or fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'7z')}">
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${signatureWorkAttachment.url}',3)">${signatureWorkAttachment.attachmentName}</a></td>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="openPreview('${signatureWorkAttachment.url}',2)">${signatureWorkAttachment.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>${signatureWorkAttachment.createBy.name}</td>
|
|
|
|
+ <td><fmt:formatDate value="${signatureWorkAttachment.createDate}" type="both"/></td>
|
|
|
|
+ <td class="op-td">
|
|
|
|
+ <div class="op-btn-box">
|
|
|
|
+
|
|
|
|
+ <%--附件下载删除--%>
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${projectReportSignature.uploadMode == 2}">
|
|
|
|
+ <c:choose>
|
|
|
|
+ <c:when test="${fn:containsIgnoreCase(signatureWorkAttachment.attachmentName,'pdf')}">
|
|
|
|
+ <a href="${signatureWorkAttachment.temporaryUrl}" target="_blank" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:when>
|
|
|
|
+ <c:otherwise>
|
|
|
|
+ <a href="${signatureWorkAttachment.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('${signatureWorkAttachment.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+ </c:otherwise>
|
|
|
|
+ </c:choose>
|
|
|
|
+ <c:if test="${signatureWorkAttachment.collectFlag != 1}">
|
|
|
|
+ <a href="javascript:void(0)" onclick="collectingAccessory(this,'${ctx}/projectAccessory/projectAccessory/saveCollectAccessory','${signatureWorkAttachment.url}','${signatureWorkAttachment.createBy.id}','${signatureWorkAttachment.fileSize}')" class="op-btn layui-btn-warm" > 收藏</a>
|
|
|
|
+ </c:if>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group layui-row">
|
|
|
|
+ <div class="form-group-label"><h2>${projectNotifyType}审批流程</h2></div>
|
|
|
|
+ <div class="layui-item layui-col-xs12 form-table-container" >
|
|
|
|
+ <act:flowChart procInsId="${projectReportSignature.act.procInsId}"/>
|
|
|
|
+ <act:histoicFlow procInsId="${projectReportSignature.act.procInsId}"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group layui-row page-end"></div>
|
|
|
|
+ </form:form>
|
|
|
|
+
|
|
|
|
+</div>
|
|
|
|
+</body>
|
|
|
|
+</html>
|