diff --git a/WebContent/Tenwa/Comm/Document/LBDocumentListInfo.jsp b/WebContent/Tenwa/Comm/Document/LBDocumentListInfo.jsp index 80212a04c..62c67e95d 100644 --- a/WebContent/Tenwa/Comm/Document/LBDocumentListInfo.jsp +++ b/WebContent/Tenwa/Comm/Document/LBDocumentListInfo.jsp @@ -22,6 +22,10 @@ isProduct = "N"; } String type=CurPage.getParameter("type"); + //获取当前操作节点的开始时间 + String taskNo = CurPage.getParameter("TaskNo"); + String beginTime = Sqlca.getString("SELECT begintime FROM flow_task WHERE serialno='"+taskNo+"'"); + if(type==null)type=""; if("MortgageFileMailFlow".equals(sObjectType)){ type = "MortgageFileMailFlow"; @@ -101,6 +105,7 @@ function afterSearch(){ var rightType="<%=RightType%>"; var userName="<%=userName%>"; var sObjectType="<%=sObjectType%>";//该流程类型 + var beginTime = "<%=beginTime%>"; for(var i=0;i  '; - if(rightType!='ReadOnly'&&isHistory!="true"&&sObjectType==obj[file]['objecttype']&&userName==obj[file]['inputuser']){ + /* if(rightType!='ReadOnly'&&isHistory!="true"&&sObjectType==obj[file]['objecttype']&&userName==obj[file]['inputuser']){ //html+=' '; + } */ + var date1 = new Date(obj[file]['inputtime'].replace(" "," ")); + var date2 = new Date(beginTime); + //经销商可以删除附件 + if(rightType!='ReadOnly'&&isHistory!="true" && (sObjectType=="DistributorApprovalFlow" || sObjectType=="DistributorChangeFlow") && userName==obj[file]['inputuser'] && date1.getTime() > date2.getTime()){ + html+=' '; } if(obj[file]['image']=="true"){ html+=' ';