Commit 2731dd53 by liuyang

2024-10-22

1.文档管理添加附件变更记录
parent 5941e5a3
...@@ -311,6 +311,10 @@ public class ServiceHGWD001 extends ServiceEPBase { ...@@ -311,6 +311,10 @@ public class ServiceHGWD001 extends ServiceEPBase {
hgwd099.setStatus(HgWdConstant.FileStatus.S_0); hgwd099.setStatus(HgWdConstant.FileStatus.S_0);
hgwd099.setOperStatus(HgWdConstant.OperStatus.S_1); hgwd099.setOperStatus(HgWdConstant.OperStatus.S_1);
DaoUtils.insert(HGWD099.UPDATE, hgwd099); DaoUtils.insert(HGWD099.UPDATE, hgwd099);
if (Objects.nonNull(resultRow.get("changeContent")) || resultRow.get("changeContent").toString().trim().length()>0){
HGWDTools.HgWd006.add(hgwd099, hgwd001, resultRow.get("changeContent").toString());
}
} }
//获取文件下的权限人员 //获取文件下的权限人员
List<HGWD003> listByFile = HGWDTools.HgWd003.listByFile(hgwd001.getFileId()); List<HGWD003> listByFile = HGWDTools.HgWd003.listByFile(hgwd001.getFileId());
......
...@@ -491,6 +491,8 @@ $(function () { ...@@ -491,6 +491,8 @@ $(function () {
+ 'href="' + downloadHref(item.docId) + '">下载</a>'; + 'href="' + downloadHref(item.docId) + '">下载</a>';
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" ' template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="changeFile(\'' + item.docId + '\',\''+item.bizId+'\')" target="_blank">变更</a>'; + 'onclick="changeFile(\'' + item.docId + '\',\''+item.bizId+'\')" target="_blank">变更</a>';
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="changeFileRecords(\'' + item.id + '\',\'' + item.docId + '\',\''+item.docName+'\')" target="_blank">变更记录</a>';
return template; return template;
} }
}, { }, {
...@@ -750,7 +752,7 @@ function uploadFile() { ...@@ -750,7 +752,7 @@ function uploadFile() {
*/ */
function changeFile(docId,bizId) { function changeFile(docId,bizId) {
JSColorbox.open({ JSColorbox.open({
href: "HGWD099A?methodName=initLoad&inqu_status-0-bizType=WD" + href: "HGWD099B?methodName=initLoad&inqu_status-0-bizType=WD" +
"&inqu_status-0-bizId="+bizId+"" + "&inqu_status-0-bizId="+bizId+"" +
"&inqu_status-0-ndocId="+docId+"" + "&inqu_status-0-ndocId="+docId+"" +
"&inqu_status-0-operType=update" + "&inqu_status-0-operType=update" +
...@@ -762,6 +764,25 @@ function changeFile(docId,bizId) { ...@@ -762,6 +764,25 @@ function changeFile(docId,bizId) {
}); });
} }
function changeFileRecords(parentId,docId,docName) {
let projCode = IPLATUI.EFTree.categoryTree.selectTreeNode.projCode;
let fileId = IPLATUI.EFTree.categoryTree.selectTreeNode.fileId
let fileName = IPLATUI.EFTree.categoryTree.selectTreeNode.fileName;
JSColorbox.open({
href: "HGWD006?methodName=initLoad" +
"&inqu_status-0-parentId="+parentId+"" +
"&inqu_status-0-projCode="+projCode+"" +
"&inqu_status-0-fileId="+fileId+"" +
"&inqu_status-0-fileName="+fileName+"" +
"&inqu_status-0-docId="+docId+"" +
"&inqu_status-0-docName="+docName+"" +
"&efParentFormEname=HGWD001",
title: "<div style='text-align: center;'>变更记录</div>",
width: "80%",
height: "80%"
});
}
/** /**
* 附件上传回调 * 附件上传回调
* *
...@@ -776,6 +797,7 @@ function uploadFileCallback(data) { ...@@ -776,6 +797,7 @@ function uploadFileCallback(data) {
inEiInfo.set("result-0-bizType", data.bizType); inEiInfo.set("result-0-bizType", data.bizType);
inEiInfo.set("result-0-ndocId", data.ndocId); inEiInfo.set("result-0-ndocId", data.ndocId);
inEiInfo.set("inqu_status-0-fileId", data.bizId); inEiInfo.set("inqu_status-0-fileId", data.bizId);
inEiInfo.set("result-0-changeContent", data.changeContent);
let serviceName = data.operType == "add" ? "HGWD099" : "HGWD001"; let serviceName = data.operType == "add" ? "HGWD099" : "HGWD001";
let methodName = data.operType == "add" ? "insert" : "updateFile"; let methodName = data.operType == "add" ? "insert" : "updateFile";
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
serviceName="HGWD099" queryMethod="query" deleteMethod="delete"> serviceName="HGWD099" queryMethod="query" deleteMethod="delete">
<EF:EFColumn ename="id" cname="ID" hidden="true"/> <EF:EFColumn ename="id" cname="ID" hidden="true"/>
<EF:EFColumn ename="docId" cname="文件ID" enable="false" width="180" hidden="true"/> <EF:EFColumn ename="docId" cname="文件ID" enable="false" width="180" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" enable="false" width="100" align="center" sort="false"/> <EF:EFColumn ename="operator" cname="操作" enable="false" width="120" align="center" sort="false"/>
<EF:EFColumn ename="docName" cname="附件名称" enable="false" width="180"/> <EF:EFColumn ename="docName" cname="附件名称" enable="false" width="180"/>
<EF:EFColumn ename="docType" cname="附件类型" enable="false" width="110" align="center"/> <EF:EFColumn ename="docType" cname="附件类型" enable="false" width="110" align="center"/>
<EF:EFColumn ename="docVersion" cname="版本号" enable="false" width="90" align="center" sort="true"/> <EF:EFColumn ename="docVersion" cname="版本号" enable="false" width="90" align="center" sort="true"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment