|
@@ -376,91 +376,82 @@
|
|
return "<span title=\"" + d.createName + "\">" + d.createName + "</span>";
|
|
return "<span title=\"" + d.createName + "\">" + d.createName + "</span>";
|
|
}}
|
|
}}
|
|
,{field:'createDate',align:'center', title: '创建日期', width:100}
|
|
,{field:'createDate',align:'center', title: '创建日期', width:100}
|
|
- ,{align:'center', title: '报告签章状态', width:100,templet:function(d){
|
|
|
|
- var st = getSignatureState(d.reportStatus);
|
|
|
|
|
|
+ ,{align:'center', title: '审定单签章状态', width:100,templet:function(d){
|
|
|
|
+ var st = getSignatureState(d.approvalStatus);
|
|
if(st.action)
|
|
if(st.action)
|
|
- var xml ="<span onclick=\"openDialogView('流程追踪', '${ctx}/projectReport/projectReportSignature/getProcess?reportId=" + d.reportId + "','95%','95%')\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
|
|
|
|
+ var xml ="<span onclick=\"openDialogView('流程追踪', '${ctx}/projectReport/projectReportSignature/getApprovalProcess?approvalId=" + d.approvalId + "','95%','95%')\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
else
|
|
else
|
|
var xml = "<span style=\"cursor:default;\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
var xml = "<span style=\"cursor:default;\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
return xml;
|
|
return xml;
|
|
}}
|
|
}}
|
|
- ,{align:'center', title: '审定单签章状态', width:100,templet:function(d){
|
|
|
|
- var st = getSignatureState(d.approvalStatus);
|
|
|
|
|
|
+ ,{align:'center', title: '报告签章状态', width:100,templet:function(d){
|
|
|
|
+ var st = getSignatureState(d.reportStatus);
|
|
if(st.action)
|
|
if(st.action)
|
|
- var xml ="<span onclick=\"openDialogView('流程追踪', '${ctx}/projectReport/projectReportSignature/getApprovalProcess?approvalId=" + d.approvalId + "','95%','95%')\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
|
|
|
|
+ var xml ="<span onclick=\"openDialogView('流程追踪', '${ctx}/projectReport/projectReportSignature/getProcess?reportId=" + d.reportId + "','95%','95%')\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
else
|
|
else
|
|
var xml = "<span style=\"cursor:default;\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
var xml = "<span style=\"cursor:default;\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
return xml;
|
|
return xml;
|
|
}}
|
|
}}
|
|
|
|
+
|
|
,{field:'op',align:'center',title:"操作",minWidth:160,templet:function(d){
|
|
,{field:'op',align:'center',title:"操作",minWidth:160,templet:function(d){
|
|
////对操作进行初始化
|
|
////对操作进行初始化
|
|
var xml="<div class=\"layui-btn-group\">";
|
|
var xml="<div class=\"layui-btn-group\">";
|
|
- if(d.canedit1 != undefined && d.canedit1 =="1")
|
|
|
|
|
|
+ if(d.approvalCancancel1 != undefined && d.approvalCancancel1 =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改报告签章申请', '${ctx}/projectReport/projectReportSignature/reportForm?id=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改报告签章</a>";
|
|
|
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('审定单签章申请', '${ctx}/projectReport/projectReportSignature/approvalForm?id=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 审定单签章</a>";
|
|
}
|
|
}
|
|
|
|
|
|
- if(d.canedit2 != undefined && d.canedit2 =="1")
|
|
|
|
|
|
+ if(d.approvalCanedit2 != undefined && d.approvalCanedit2 =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整报告签章申请', '${ctx}/projectReport/projectReportSignature/modify?id=" + d.reportId + "','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改报告签章</a>";
|
|
|
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整审定单签章申请', '${ctx}/projectReport/projectReportSignature/modifyApproval?id=" + d.approvalId + "','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改审定单签章</a>";
|
|
}
|
|
}
|
|
- if(d.canrecall != undefined && d.canrecall =="1")
|
|
|
|
|
|
+ if(d.approvalCanrecall != undefined && d.approvalCanrecall =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整报告签章申请', '${ctx}/projectReport/projectReportSignature/reportForm?id=" + d.id + "','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改报告签章</a>";
|
|
|
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整审定单签章申请', '${ctx}/projectReport/projectReportSignature/approvalForm?id=" + d.id + "','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改审定单签章</a>";
|
|
}
|
|
}
|
|
- if(d.candel != undefined && d.candel =="1")
|
|
|
|
|
|
+ if(d.approvalCanedit1 != undefined && d.approvalCanedit1 =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"${ctx}/projectReport/projectReportSignature/delete?id=" + d.id + "\" onclick=\"return confirmx('确认要作废该签章申请信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除</a>";
|
|
|
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改审定单签章申请', '${ctx}/projectReport/projectReportSignature/approvalForm?id=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改审定单签章</a>";
|
|
}
|
|
}
|
|
- if(d.reportDelete != undefined && d.reportDelete =="1")
|
|
|
|
|
|
+ if(d.approvalCancancel != undefined && d.approvalCancancel =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"${ctx}/projectReport/projectReportSignature/deleteReport?id=" + d.reportId + "\" onclick=\"return confirmx('确认要作废该报告签章申请信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除报告签章</a>";
|
|
|
|
|
|
+ xml+="<a href=\"${ctx}/projectReport/projectReportSignature/revokeApproval?id=" + d.approvalId + "&processInstanceId=" + d.approvalProcInsId + "&status="+d.approvalStatus+"\" onclick=\"return confirmx('确认要撤回该审定单签章申请审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-blue\" > 撤回审定单签章</a>";
|
|
}
|
|
}
|
|
if(d.approvalDelete != undefined && d.approvalDelete =="1")
|
|
if(d.approvalDelete != undefined && d.approvalDelete =="1")
|
|
{
|
|
{
|
|
xml+="<a href=\"${ctx}/projectReport/projectReportSignature/deleteApproval?id=" + d.approvalId + "\" onclick=\"return confirmx('确认要作废该审定单签章申请信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除审定单签章</a>";
|
|
xml+="<a href=\"${ctx}/projectReport/projectReportSignature/deleteApproval?id=" + d.approvalId + "\" onclick=\"return confirmx('确认要作废该审定单签章申请信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除审定单签章</a>";
|
|
}
|
|
}
|
|
- if(d.cancancel != undefined && d.cancancel =="1")
|
|
|
|
- {
|
|
|
|
- xml+="<a href=\"${ctx}/projectReport/projectReportSignature/revoke?id=" + d.reportId + "&processInstanceId=" + d.reportProcInsId + "&status="+d.reportStatus+"\" onclick=\"return confirmx('确认要撤回该报告签章申请审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 撤回报告签章</a>";
|
|
|
|
- }
|
|
|
|
if(d.approvalCancancel2 != undefined && d.approvalCancancel2 =="1")
|
|
if(d.approvalCancancel2 != undefined && d.approvalCancancel2 =="1")
|
|
{
|
|
{
|
|
xml+="<a href=\"#\" onclick=\"openDialogre('报告签章申请', '${ctx}/projectReport/projectReportSignature/reportForm?id=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 报告签章</a>";
|
|
xml+="<a href=\"#\" onclick=\"openDialogre('报告签章申请', '${ctx}/projectReport/projectReportSignature/reportForm?id=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 报告签章</a>";
|
|
}
|
|
}
|
|
-
|
|
|
|
- if(d.approvalCanedit1 != undefined && d.approvalCanedit1 =="1")
|
|
|
|
|
|
+ if(d.canedit1 != undefined && d.canedit1 =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改审定单签章申请', '${ctx}/projectReport/projectReportSignature/approvalForm?id=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改审定单签章</a>";
|
|
|
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改报告签章申请', '${ctx}/projectReport/projectReportSignature/reportForm?id=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改报告签章</a>";
|
|
}
|
|
}
|
|
- if(d.approvalCancancel1 != undefined && d.approvalCancancel1 =="1")
|
|
|
|
|
|
+
|
|
|
|
+ if(d.canedit2 != undefined && d.canedit2 =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('审定单签章申请', '${ctx}/projectReport/projectReportSignature/approvalForm?id=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 审定单签章</a>";
|
|
|
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整报告签章申请', '${ctx}/projectReport/projectReportSignature/modify?id=" + d.reportId + "','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改报告签章</a>";
|
|
}
|
|
}
|
|
-
|
|
|
|
- if(d.approvalCanedit2 != undefined && d.approvalCanedit2 =="1")
|
|
|
|
|
|
+ if(d.canrecall != undefined && d.canrecall =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整审定单签章申请', '${ctx}/projectReport/projectReportSignature/modifyApproval?id=" + d.approvalId + "','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改审定单签章</a>";
|
|
|
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整报告签章申请', '${ctx}/projectReport/projectReportSignature/reportForm?id=" + d.id + "','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改报告签章</a>";
|
|
}
|
|
}
|
|
- if(d.approvalCanrecall != undefined && d.approvalCanrecall =="1")
|
|
|
|
|
|
+ if(d.candel != undefined && d.candel =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整审定单签章申请', '${ctx}/projectReport/projectReportSignature/approvalForm?id=" + d.id + "','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改审定单签章</a>";
|
|
|
|
|
|
+ xml+="<a href=\"${ctx}/projectReport/projectReportSignature/delete?id=" + d.id + "\" onclick=\"return confirmx('确认要作废该签章申请信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除</a>";
|
|
}
|
|
}
|
|
- if(d.approvalCancancel != undefined && d.approvalCancancel =="1")
|
|
|
|
|
|
+ if(d.reportDelete != undefined && d.reportDelete =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"${ctx}/projectReport/projectReportSignature/revokeApproval?id=" + d.approvalId + "&processInstanceId=" + d.approvalProcInsId + "&status="+d.approvalStatus+"\" onclick=\"return confirmx('确认要撤回该审定单签章申请审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 撤回审定单签章</a>";
|
|
|
|
|
|
+ xml+="<a href=\"${ctx}/projectReport/projectReportSignature/deleteReport?id=" + d.reportId + "\" onclick=\"return confirmx('确认要作废该报告签章申请信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除报告签章</a>";
|
|
}
|
|
}
|
|
- if(d.reportStatus == 5){
|
|
|
|
- //上传审定单进行签章
|
|
|
|
|
|
|
|
- if(d.reportSignatureUrlFlag == 1){
|
|
|
|
- xml+="<a href=\""+ d.reportSignatureUrl +"\" class=\"layui-btn layui-btn-xs layui-bg-orange\" >报告签章文件下载</a>"
|
|
|
|
- }else{
|
|
|
|
- if(d.reportSignatureContractId){
|
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/signatureCallBack/downLoadAttach?contractId="+ d.reportSignatureContractId +"\" class=\"layui-btn layui-btn-xs layui-bg-orange\" >报告签章文件下载</a>"
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ if(d.cancancel != undefined && d.cancancel =="1")
|
|
|
|
+ {
|
|
|
|
+ xml+="<a href=\"${ctx}/projectReport/projectReportSignature/revoke?id=" + d.reportId + "&processInstanceId=" + d.reportProcInsId + "&status="+d.reportStatus+"\" onclick=\"return confirmx('确认要撤回该报告签章申请审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-blue\" > 撤回报告签章</a>";
|
|
}
|
|
}
|
|
|
|
+
|
|
if(d.approvalStatus == 5){
|
|
if(d.approvalStatus == 5){
|
|
//上传审定单进行签章
|
|
//上传审定单进行签章
|
|
|
|
|
|
@@ -472,6 +463,18 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if(d.reportStatus == 5){
|
|
|
|
+ //上传审定单进行签章
|
|
|
|
+
|
|
|
|
+ if(d.reportSignatureUrlFlag == 1){
|
|
|
|
+ xml+="<a href=\""+ d.reportSignatureUrl +"\" class=\"layui-btn layui-btn-xs layui-bg-orange\" >报告签章文件下载</a>"
|
|
|
|
+ }else{
|
|
|
|
+ if(d.reportSignatureContractId){
|
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/signatureCallBack/downLoadAttach?contractId="+ d.reportSignatureContractId +"\" class=\"layui-btn layui-btn-xs layui-bg-orange\" >报告签章文件下载</a>"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
/*if(d.deleteAdmin != undefined && d.deleteAdmin =="1")
|
|
/*if(d.deleteAdmin != undefined && d.deleteAdmin =="1")
|
|
{
|
|
{
|
|
@@ -527,8 +530,8 @@
|
|
,"createName":"<c:out value="${projectReportSignature.createBy.name}" escapeXml="false"/>"
|
|
,"createName":"<c:out value="${projectReportSignature.createBy.name}" escapeXml="false"/>"
|
|
<c:choose><c:when test="${flag == '1' or fns:getUser().id == projectReportSignature.createBy.id}">
|
|
<c:choose><c:when test="${flag == '1' or fns:getUser().id == projectReportSignature.createBy.id}">
|
|
<shiro:hasPermission name="projectReport:projectReportSignature:del">,"candel": <c:choose><c:when test="${ projectReportSignature.reportStatus == null && projectReportSignature.approvalStatus == null && fns:getUser().id == projectReportSignature.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|
|
<shiro:hasPermission name="projectReport:projectReportSignature:del">,"candel": <c:choose><c:when test="${ projectReportSignature.reportStatus == null && projectReportSignature.approvalStatus == null && fns:getUser().id == projectReportSignature.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|
|
- <shiro:hasPermission name="projectReport:projectReportSignature:del">,"reportDelete": <c:choose><c:when test="${(projectReportSignature.reportStatus == 3 || projectReportSignature.reportStatus == 1 || projectReportSignature.reportStatus == null) && fns:getUser().id == projectReportSignature.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|
|
|
|
- <shiro:hasPermission name="projectReport:projectReportSignature:del">,"approvalDelete": <c:choose><c:when test="${(projectReportSignature.approvalStatus == 3 || projectReportSignature.approvalStatus == 1 || projectReportSignature.approvalStatus == null) && fns:getUser().id == projectReportSignature.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|
|
|
|
|
|
+ <shiro:hasPermission name="projectReport:projectReportSignature:del">,"reportDelete": <c:choose><c:when test="${(projectReportSignature.reportStatus == 3 || projectReportSignature.reportStatus == 1 ) && fns:getUser().id == projectReportSignature.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|
|
|
|
+ <shiro:hasPermission name="projectReport:projectReportSignature:del">,"approvalDelete": <c:choose><c:when test="${(projectReportSignature.approvalStatus == 3 || projectReportSignature.approvalStatus == 1 ) && fns:getUser().id == projectReportSignature.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|
|
<shiro:hasPermission name="projectReport:projectReportSignature:edit">,"canedit1": <c:choose><c:when test="${projectReportSignature.reportStatus == 1 && fns:getUser().id == projectReportSignature.createBy.id }">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
<shiro:hasPermission name="projectReport:projectReportSignature:edit">,"canedit1": <c:choose><c:when test="${projectReportSignature.reportStatus == 1 && fns:getUser().id == projectReportSignature.createBy.id }">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
,"approvalCanedit1":<c:choose><c:when test="${projectReportSignature.approvalStatus == 1 && fns:getUser().id == projectReportSignature.createBy.id }">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
,"approvalCanedit1":<c:choose><c:when test="${projectReportSignature.approvalStatus == 1 && fns:getUser().id == projectReportSignature.createBy.id }">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
,"canedit2":<c:choose><c:when test="${projectReportSignature.reportStatus == 4 && fns:getUser().id == projectReportSignature.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
,"canedit2":<c:choose><c:when test="${projectReportSignature.reportStatus == 4 && fns:getUser().id == projectReportSignature.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|