Просмотр исходного кода

资料库调用(审核页面以及上报附件调用)

[user3] 4 лет назад
Родитель
Сommit
98c9185589
17 измененных файлов с 156 добавлено и 42 удалено
  1. 19 0
      src/main/java/com/jeeplus/modules/projectAccessory/entity/ProjectTemplateInfo.java
  2. 23 0
      src/main/java/com/jeeplus/modules/projectAccessory/service/ProjectTemplateService.java
  3. 3 0
      src/main/java/com/jeeplus/modules/ruralprojectrecords/service/RuralProjectRecordsService.java
  4. 1 1
      src/main/webapp/webpage/modules/iframeView/opinion.jsp
  5. 4 1
      src/main/webapp/webpage/modules/oa/oaNotifyAudit.jsp
  6. 4 1
      src/main/webapp/webpage/modules/oa/oaNotifyView.jsp
  7. 21 0
      src/main/webapp/webpage/modules/ruralprojectrecords/cost/newReportedForm.jsp
  8. 21 0
      src/main/webapp/webpage/modules/ruralprojectrecords/cost/reportedModify.jsp
  9. 18 3
      src/main/webapp/webpage/modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/new/projectRecordsMessageAudit.jsp
  10. 21 0
      src/main/webapp/webpage/modules/ruralprojectrecords/ruralporjectmessage/reportedAudit.jsp
  11. 3 0
      src/main/webapp/webpage/modules/workclientinfo/workClientInfoFormDetail.jsp
  12. 3 0
      src/main/webapp/webpage/modules/workcontractinfo/workContractAudit.jsp
  13. 3 0
      src/main/webapp/webpage/modules/workcontractinfo/workContractInfoLookForm.jsp
  14. 3 0
      src/main/webapp/webpage/modules/workcontractrecord/workContractRecordAudit.jsp
  15. 3 36
      src/main/webapp/webpage/modules/workreimbursement/workReimbursementAudit.jsp
  16. 3 0
      src/main/webapp/webpage/modules/workreimbursement/workReimbursementCWAudit.jsp
  17. 3 0
      src/main/webapp/webpage/modules/workreimbursement/workReimbursementFormDetail.jsp

+ 19 - 0
src/main/java/com/jeeplus/modules/projectAccessory/entity/ProjectTemplateInfo.java

@@ -38,6 +38,9 @@ public class ProjectTemplateInfo extends TreeEntity<ProjectTemplateInfo>{
 
 	private Integer fileFlag;   //判断是否有文件(1:有文件信息,0:无文件)
 
+	private String collectFlag;	//判断是否收藏
+	private String fileSize;	//f附件大小
+
 
 	public ProjectTemplateInfo() {
 		super();
@@ -207,4 +210,20 @@ public class ProjectTemplateInfo extends TreeEntity<ProjectTemplateInfo>{
 	public void setFileFlag(Integer fileFlag) {
 		this.fileFlag = fileFlag;
 	}
+
+	public String getCollectFlag() {
+		return collectFlag;
+	}
+
+	public void setCollectFlag(String collectFlag) {
+		this.collectFlag = collectFlag;
+	}
+
+	public String getFileSize() {
+		return fileSize;
+	}
+
+	public void setFileSize(String fileSize) {
+		this.fileSize = fileSize;
+	}
 }

+ 23 - 0
src/main/java/com/jeeplus/modules/projectAccessory/service/ProjectTemplateService.java

@@ -4,10 +4,13 @@
 package com.jeeplus.modules.projectAccessory.service;
 
 import com.google.common.collect.Lists;
+import com.jeeplus.common.config.Global;
 import com.jeeplus.common.persistence.Page;
 import com.jeeplus.common.service.TreeService;
 import com.jeeplus.common.utils.StringUtils;
+import com.jeeplus.modules.projectAccessory.dao.ProjectAccessoryDao;
 import com.jeeplus.modules.projectAccessory.dao.ProjectTemplateDao;
+import com.jeeplus.modules.projectAccessory.entity.CollectAccessoryInfo;
 import com.jeeplus.modules.projectAccessory.entity.ProjectAccessoryRelationInfo;
 import com.jeeplus.modules.projectAccessory.entity.ProjectTemplateInfo;
 import com.jeeplus.modules.ruralprojectrecords.entity.RuralProjectRecords;
@@ -42,6 +45,8 @@ public class ProjectTemplateService extends TreeService<ProjectTemplateDao, Proj
     private RuralProjectRecordsService projectRecordsService;
     @Autowired
     private ProjectAccessoryRelationService projectAccessoryRelationService;
+    @Autowired
+    private ProjectAccessoryDao projectAccessoryDao;
 
 	public ProjectTemplateInfo get(String id) {
 		return super.get(id);
@@ -298,6 +303,24 @@ public class ProjectTemplateService extends TreeService<ProjectTemplateDao, Proj
             attchment.setProjectId(projectTemplateInfo.getId());
             attchment.setAttachmentId(info.getId());
             List<WorkClientAttachment> attachments = workattachmentService.getList(attchment);
+            CollectAccessoryInfo cAInfo = new CollectAccessoryInfo();
+            cAInfo.setOfficeId(UserUtils.getUser().getOffice().getId());
+            cAInfo.setCompanyId(UserUtils.getUser().getCompany().getId());
+            cAInfo.setCreateBy(UserUtils.getUser());
+            //遍历附件信息,判定改附件信息是否被收藏
+            for (WorkClientAttachment info1: attachments) {
+                //url截取
+                String aliyunUrl = Global.getAliDownloadUrl();
+                if(info1.getUrl().indexOf(aliyunUrl)!=-1){
+                    cAInfo.setUrl(info1.getUrl().replace(aliyunUrl,""));
+                }
+                CollectAccessoryInfo collectAccessoryInfo = projectAccessoryDao.getCollectAccessoryInfo1(cAInfo);
+                if(null != collectAccessoryInfo){
+                    info1.setCollectFlag("1");
+                }else{
+                    info1.setCollectFlag("0");
+                }
+            }
             //数据处理(如果为阿里云文件服务器,则对查看的路径进行处理)
             workattachmentService.clientAttachmentManageOnUrl(attachments);
             info.setWorkAttachments(attachments);

+ 3 - 0
src/main/java/com/jeeplus/modules/ruralprojectrecords/service/RuralProjectRecordsService.java

@@ -2073,6 +2073,9 @@ public class RuralProjectRecordsService extends CrudService<RuralProjectRecordsD
 				attach.setAttachName(attachment.getAttachmentName());
 				attach.setUrl(attachment.getUrl());
 				attach.setAttachTypes(attachment.getType());
+				attach.setCollectFlag(attachment.getCollectFlag());
+				attach.setCreateBy(UserUtils.getUser());
+				attach.setFileSize(attachment.getFileSize());
 				//添加临时查看url(阿里云)
 				attach.setTemporaryUrl(attachment.getTemporaryUrl());
 				list.add(attach);

+ 1 - 1
src/main/webapp/webpage/modules/iframeView/opinion.jsp

@@ -16,7 +16,7 @@
             <div class="form-group layui-row">
                 <div class="layui-item layui-col-sm8 lw6 with-textarea">
                     <div class="layui-input-block" style="margin-left:10px;position: relative">
-                        <textarea placeholder="请输入意见:" path="" id="opinion" class="form-control" rows="4" style="width: 100%;height: 80%;border: 1px solid #f1f1f1;padding: 5px;" maxlength="250"></textarea>
+                        <textarea placeholder="请输入意见:" path="" id="opinion" class="form-control" rows="4" style="width: 100%;height: 80%;border: 1px solid #f1f1f1;padding: 5px;" maxlength="245"></textarea>
                         <a id="clearOpinon" class="layui-btn" style="position: absolute;bottom: 10px;right: 20px;">清空</a>
                         <input type="file" name="upload_files" style="display: none;">
                     </div>

+ 4 - 1
src/main/webapp/webpage/modules/oa/oaNotifyAudit.jsp

@@ -345,7 +345,7 @@
                                 <th>文件预览</th>
                                 <th>上传人</th>
                                 <th>上传时间</th>
-                                <th width="100px">操作</th>
+                                <th width="150px">操作</th>
                             </tr>
                             </thead>
                             <tbody id="file_attachment">
@@ -426,6 +426,9 @@
                                                     <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>&nbsp;下载</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" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+                                            </c:if>
                                         </div>
                                     </td>
                                 </tr>

+ 4 - 1
src/main/webapp/webpage/modules/oa/oaNotifyView.jsp

@@ -280,7 +280,7 @@
                             <th>文件预览</th>
                             <th>上传人</th>
                             <th>上传时间</th>
-                            <th width="100px">操作</th>
+                            <th width="150px">操作</th>
                         </tr>
                         </thead>
                         <tbody id="file_attachment">
@@ -360,6 +360,9 @@
                                                 <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>&nbsp;下载</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" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+                                        </c:if>
                                     </div>
                                 </td>
                             </tr>

+ 21 - 0
src/main/webapp/webpage/modules/ruralprojectrecords/cost/newReportedForm.jsp

@@ -944,6 +944,20 @@
             obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
             obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
         }
+        function insertTitleCollection(tValue){
+            var files = tValue;
+            for(var i = 0;i<files.length;i++) {
+                var file = files[i];
+                var attachmentId = "";
+                var attachmentFlag = "95";
+                console.log(file);
+                var timestamp = new Date().getTime();
+                /*将这段字符串存到数据库即可*/
+                var divId = "_attachment";
+                $("#addFile" + divId).show();
+                multipartUploadWithStsCollection('', file, attachmentId, attachmentFlag, '', divId, 0);
+            }
+        }
     </script>
 </head>
 <body>
@@ -1370,6 +1384,10 @@
                     <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>&nbsp;添加附件</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>
@@ -1461,6 +1479,9 @@
                                             <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>&nbsp;删除</a>
                                             </c:if>
+                                            <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" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+                                            </c:if>
                                         </div>
                                     </td>
                                 </tr>

+ 21 - 0
src/main/webapp/webpage/modules/ruralprojectrecords/cost/reportedModify.jsp

@@ -894,6 +894,20 @@
             obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
             obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
         }
+        function insertTitleCollection(tValue){
+            var files = tValue;
+            for(var i = 0;i<files.length;i++) {
+                var file = files[i];
+                var attachmentId = "";
+                var attachmentFlag = "95";
+                console.log(file);
+                var timestamp = new Date().getTime();
+                /*将这段字符串存到数据库即可*/
+                var divId = "_attachment";
+                $("#addFile" + divId).show();
+                multipartUploadWithStsCollection('', file, attachmentId, attachmentFlag, '', divId, 0);
+            }
+        }
     </script>
 </head>
 <body>
@@ -1326,6 +1340,10 @@
                     <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>&nbsp;添加附件</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>
@@ -1417,6 +1435,9 @@
                                             <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>&nbsp;删除</a>
                                             </c:if>
+                                            <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" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+                                            </c:if>
                                         </div>
                                     </td>
                                 </tr>

+ 18 - 3
src/main/webapp/webpage/modules/ruralprojectrecords/ruralporjectmessage/projectcontentinfo/new/projectRecordsMessageAudit.jsp

@@ -502,7 +502,7 @@
 								<tr>
 									<th width="30%">文件类型</th>
 									<th width="">文件名</th>
-									<th width="100px">操作</th>
+									<th width="150px">操作</th>
 								</tr>
 								</thead>
 								<tbody id="file_attachment">
@@ -601,6 +601,9 @@
 																<a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${fileAttachment.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i>&nbsp;下载</a>
 															</c:otherwise>
 														</c:choose>
+														<c:if test="${fileAttachment.collectFlag != 1}">
+															<a href="javascript:void(0)" onclick="collectingAccessory(this,'${ctx}/projectAccessory/projectAccessory/saveCollectAccessory','${fileAttachment.url}','${fileAttachment.createBy.id}','${fileAttachment.fileSize}')" class="op-btn op-btn-delete" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+														</c:if>
 													</c:otherwise>
 												</c:choose>
 											</div>
@@ -630,7 +633,7 @@
 								<tr>
 									<th width="30%">文件类型</th>
 									<th width="">文件名</th>
-									<th width="100px">操作</th>
+									<th width="150px">操作</th>
 								</tr>
 								</thead>
 								<tbody id="file_gistdata">
@@ -729,6 +732,9 @@
 																<a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${fileGistdata.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i>&nbsp;下载</a>
 															</c:otherwise>
 														</c:choose>
+														<c:if test="${fileGistdata.collectFlag != 1}">
+															<a href="javascript:void(0)" onclick="collectingAccessory(this,'${ctx}/projectAccessory/projectAccessory/saveCollectAccessory','${fileGistdata.url}','${fileGistdata.createBy.id}','${fileGistdata.fileSize}')" class="op-btn op-btn-delete" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+														</c:if>
 													</c:otherwise>
 												</c:choose>
 											</div>
@@ -760,7 +766,7 @@
 								<tr>
 									<th width="30%">文件类型</th>
 									<th width="">文件名</th>
-									<th width="100px">操作</th>
+									<th width="150px">操作</th>
 								</tr>
 								</thead>
 								<tbody id="file_other">
@@ -859,6 +865,9 @@
 																<a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${fileOther.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i>&nbsp;下载</a>
 															</c:otherwise>
 														</c:choose>
+														<c:if test="${fileOther.collectFlag != 1}">
+															<a href="javascript:void(0)" onclick="collectingAccessory(this,'${ctx}/projectAccessory/projectAccessory/saveCollectAccessory','${fileOther.url}','${fileOther.createBy.id}','${fileOther.fileSize}')" class="op-btn op-btn-delete" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+														</c:if>
 													</c:otherwise>
 												</c:choose>
 											</div>
@@ -1159,6 +1168,9 @@
 																		<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>&nbsp;下载</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" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+																</c:if>
 															</div>
 														</td>
 													</tr>
@@ -1502,6 +1514,9 @@
 										<td class="op-td">
 											<div class="op-btn-box" >
 												<a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent(encodeURIComponent('${workClientAttachment.url}'));" class="op-btn op-btn-download"><i class="fa fa-download"></i>&nbsp;下载</a>
+												<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" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+												</c:if>
 											</div>
 										</td>
 									</tr>

+ 21 - 0
src/main/webapp/webpage/modules/ruralprojectrecords/ruralporjectmessage/reportedAudit.jsp

@@ -900,6 +900,20 @@
             obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
             obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
         }
+        function insertTitleCollection(tValue){
+            var files = tValue;
+            for(var i = 0;i<files.length;i++) {
+                var file = files[i];
+                var attachmentId = "";
+                var attachmentFlag = "95";
+                console.log(file);
+                var timestamp = new Date().getTime();
+                /*将这段字符串存到数据库即可*/
+                var divId = "_attachment";
+                $("#addFile" + divId).show();
+                multipartUploadWithStsCollection('', file, attachmentId, attachmentFlag, '', divId, 0);
+            }
+        }
     </script>
 </head>
 <body>
@@ -1334,6 +1348,10 @@
                     <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>&nbsp;添加附件</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>
@@ -1425,6 +1443,9 @@
                                             <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>&nbsp;删除</a>
                                             </c:if>
+                                            <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" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+                                            </c:if>
                                         </div>
                                     </td>
                                 </tr>

+ 3 - 0
src/main/webapp/webpage/modules/workclientinfo/workClientInfoFormDetail.jsp

@@ -283,6 +283,9 @@
                                                 <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>&nbsp;下载</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" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+                                        </c:if>
                                     </td>
                                 </tr>
                             </c:forEach>

+ 3 - 0
src/main/webapp/webpage/modules/workcontractinfo/workContractAudit.jsp

@@ -249,6 +249,9 @@
                                                                     <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>&nbsp;下载</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" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+                                                            </c:if>
                                                         </td>
                                                     </tr>
                                                 </c:forEach>

+ 3 - 0
src/main/webapp/webpage/modules/workcontractinfo/workContractInfoLookForm.jsp

@@ -480,6 +480,9 @@
 														</c:choose>
                                                     </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" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+												</c:if>
 											</div>
 										</td>
 									</tr>

+ 3 - 0
src/main/webapp/webpage/modules/workcontractrecord/workContractRecordAudit.jsp

@@ -351,6 +351,9 @@
 											<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>&nbsp;下载</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" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+									</c:if>
 								</td>
 							</tr>
 						</c:forEach>

+ 3 - 36
src/main/webapp/webpage/modules/workreimbursement/workReimbursementAudit.jsp

@@ -465,9 +465,9 @@
 												<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>&nbsp;下载</a>
 											</c:otherwise>
 										</c:choose>
-										<%--<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')" class="op-btn op-btn-delete" ><i class="fa fa-trash"></i>&nbsp;删除</a>
-										</c:if>--%>
+										<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" ><i class="fa fa-trash"></i>&nbsp;收藏</a>
+										</c:if>
 									</div>
 								</td>
 							</tr>
@@ -476,39 +476,6 @@
 				</table>
 			</div>
 		</div>
-<%--		<div class="form-group layui-row">--%>
-<%--			<div class="form-group-label"><h2>审批意见</h2></div>--%>
-<%--			<div class="layui-item layui-col-sm8 lw6 with-textarea">--%>
-<%--				<div class="layui-input-block" style="margin-left:10px;position: relative">--%>
-<%--					<form:textarea placeholder="请输入意见:" path="act.comment" id="opinion" class="form-control" rows="4" cssStyle="height: 200px;" maxlength="127" />--%>
-<%--					<a id="clearOpinon" class="layui-btn" style="position: absolute;bottom: 10px;right: 20px;">清空</a>--%>
-<%--					<input type="file" name="upload_files" style="display: none;">--%>
-<%--				</div>--%>
-<%--			</div>--%>
-<%--			<div class="layui-item layui-col-sm4 lw6 with-textarea">--%>
-<%--				<div class="layui-input-block" style="margin-left:10px;">--%>
-<%--					<div style="padding: 5px 0px;"><input type="checkbox" lay-filter="raopinion" name="sh" value="同意" title="同意" style="cursor:pointer" class="apen"/></div>--%>
-<%--					<div style="padding: 5px 0px;"><input type="checkbox" lay-filter="raopinion" name="sh" value="不同意" title="不同意" style="cursor:pointer" class="apen"/></div>--%>
-<%--					<div style="padding: 5px 0px;"><input type="checkbox" lay-filter="raopinion" name="sh" value="请领导审核" title="请领导审核" style="cursor:pointer" class="apen"/></div>--%>
-<%--					<div style="padding: 5px 0px;">--%>
-<%--						<form:select path="act.comment" id="auditOpinion" lay-filter="opinion" lay-verify="opinion" class="form-control simple-select">--%>
-<%--							<form:option value=""/>--%>
-<%--							<form:options items="${fns:getMainDictListOnProjectAdvent('audit_opinion_template')}" itemLabel="label" itemValue="label" htmlEscape="false"/>--%>
-<%--						</form:select>--%>
-<%--					</div>--%>
-<%--				</div>--%>
-<%--			</div>--%>
-<%--		</div>--%>
-<%--		<div class="form-group layui-row">--%>
-<%--			<div class="form-group-label"><h2>审批意见</h2></div>--%>
-<%--			<div class="layui-item layui-col-xs12 with-textarea" >--%>
-<%--					<label class="layui-form-label">审批意见:</label>--%>
-<%--					<div class="layui-input-block">--%>
-<%--						<form:textarea path="act.comment" class="form-control" rows="4" maxlength="127" />--%>
-<%--						<input type="file" name="upload_files" style="display: none;">--%>
-<%--					</div>--%>
-<%--			</div>--%>
-<%--		</div>--%>
 		<div class="form-group layui-row page-end"></div>
 	</form:form>
 		<div class="form-group-label">

+ 3 - 0
src/main/webapp/webpage/modules/workreimbursement/workReimbursementCWAudit.jsp

@@ -784,6 +784,9 @@
                                             <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>&nbsp;下载</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" ><i class="fa fa-trash"></i>&nbsp;收藏</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')" class="op-btn op-btn-delete" ><i class="fa fa-trash"></i>&nbsp;删除</a>
                                     </c:if>--%>

+ 3 - 0
src/main/webapp/webpage/modules/workreimbursement/workReimbursementFormDetail.jsp

@@ -520,6 +520,9 @@
                                         <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>&nbsp;下载</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" ><i class="fa fa-trash"></i>&nbsp;收藏</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')" class="op-btn op-btn-delete" ><i class="fa fa-trash"></i>&nbsp;删除</a>
                                 </c:if>--%>