|
@@ -5,6 +5,10 @@
|
|
|
<head>
|
|
|
<title>项目列表</title>
|
|
|
<meta name="decorator" content="default"/>
|
|
|
+ <%--<script src="${ctxStatic}/layer-v2.3/layui/layui.all.js" charset="utf-8"></script>--%>
|
|
|
+ <script type="text/javascript" src="${ctxStatic}/layui/layuidown.js"></script>
|
|
|
+ <link rel='stylesheet' type="text/css" href="${ctxStatic}/layui/layuidown.css"/>
|
|
|
+ <script src="layer.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
$(document).ready(function() {
|
|
|
|
|
@@ -581,6 +585,313 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ function show(d) {
|
|
|
+ ////对操作进行初始化
|
|
|
+ var xml = '<div class=\"layui-btn-group\">';
|
|
|
+ if(d.falg=="1"){
|
|
|
+ if(d.projectReportStatus == 0){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('新增报告质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 新增质量复核</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportStatus == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改质量复核</a>";
|
|
|
+ <%--xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/deleteReport?projectId=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目报告吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 删除报告</a>";--%>
|
|
|
+ }
|
|
|
+ if(d.projectReportStatus == 2){
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/revoke?companyType=${companyType}&id=" + d.id + "&processInstanceId=" + d.procId + "\" onclick=\"return confirmx('确认要撤回该项目报告审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-btn-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 撤回质量复核</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportStatus == 3){
|
|
|
+ //撤回操作
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/modify?companyType=${companyType}&projectId=" + d.id + " ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改质量复核</a>";
|
|
|
+ <%--xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/deleteReport?projectId=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目报告质量复核吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 删除报告</a>";--%>
|
|
|
+ }
|
|
|
+ if(d.projectReportStatus == 4){
|
|
|
+ //驳回操作
|
|
|
+ // if(d.newReportNotifyFlag == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogreReport('调整质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/modify?companyType=${companyType}&projectId=" + d.id + "&view=report','"+d.id+"','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改质量复核</a>";
|
|
|
+ <%--}else{--%>
|
|
|
+ <%-- xml+="<a href=\"#\" onclick=\"openDialogreReport('调整质量复核', '${ctx}/ruralProject/ruralProjectMessage/modify?projectId=" + d.id + "&view=report','"+d.id+"','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改质量复核</a>";--%>
|
|
|
+ <%--}--%>
|
|
|
+
|
|
|
+ <%--xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/deleteReport?projectId=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目报告质量复核吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 删除报告</a>";--%>
|
|
|
+ }
|
|
|
+ //案例项目申请按钮
|
|
|
+ if(d.reportedState == 5 && d.projectReportRecordStatus == 5){
|
|
|
+ if (d.caseType != 1 && d.caseStatus !=2 && d.caseStatus !=5 && d.caseStatus != 4 ){
|
|
|
+ xml+="<a href=\"javascript:void(0)\" onclick=\"openDialogreCaseBase('${ctx}/ruralProject/ruralCostProjectMessage/caseBase?companyType=${companyType}&projectId=" + d.id + " ')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 申请案例项目</a>";
|
|
|
+ }
|
|
|
+ if(d.caseType != 1 && d.caseStatus ==2){
|
|
|
+ xml+="<a href=\"javascript:void(0)\" onclick=\"deleteFun('${ctx}/ruralProject/ruralCostProjectMessage/cancelInvalidateCaseBase?companyType=${companyType}&projectId=" + d.id + "')\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 撤销案例项目申请</a>";
|
|
|
+ }
|
|
|
+ if(d.caseType != 1){
|
|
|
+ if(d.caseStatus == 4){
|
|
|
+ xml+="<a href=\"javascript:void(0)\" onclick=\"openDialogreNew('重新申请案例项目','${ctx}/workprojectnotify/workProjectNotify/form?companyType=${companyType}¬ifyId=" + d.id + "&type=152&remarks=重新申请','95%', '95%','','重新申请,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 重新申请案例项目</a>";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //报告签发操作
|
|
|
+ if(d.projectReportStatus == 5 && d.emergencyProject != 1){
|
|
|
+
|
|
|
+ if(d.projectReportStatusTwo == 0){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('报告签发', '${ctx}/ruralProject/ruralProjectMessageNewTwo/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 报告签发</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportStatusTwo == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改报告签发', '${ctx}/ruralProject/ruralProjectMessageNewTwo/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改签发</a>";
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessageNewTwo/deleteReport?companyType=${companyType}&projectId=" + d.id + "\" onclick=\"return confirmx('确认要删除该报告签发吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 删除签发</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportStatusTwo == 2){
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessageNewTwo/revoke?companyType=${companyType}&id=" + d.id + "&processInstanceId=" + d.prdtProcessinstanceId + "\" onclick=\"return confirmx('确认要撤回该报告签发审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-btn-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 撤回签发</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportStatusTwo == 3){
|
|
|
+ //撤回操作
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整报告签发', '${ctx}/ruralProject/ruralProjectMessageNewTwo/form?companyType=${companyType}&projectId=" + d.id + " ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改签发</a>";
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessageNewTwo/deleteReport?companyType=${companyType}&projectId=" + d.id + "\" onclick=\"return confirmx('确认要删除该报告签发吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 删除签发</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportStatusTwo == 4){
|
|
|
+ //驳回操作
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整报告签发', '${ctx}/ruralProject/ruralProjectMessageNewTwo/form?companyType=${companyType}&projectId=" + d.id + "&view=report ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改签发</a>";
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessageNewTwo/deleteReport?companyType=${companyType}&projectId=" + d.id + "\" onclick=\"return confirmx('确认要删除该报告签发吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 删除签发</a>";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //线上归档操作
|
|
|
+ if(d.projectReportStatusTwo == 0){
|
|
|
+ if(d.projectReportStatus == 5){
|
|
|
+ if(d.emergencyProject == 1){
|
|
|
+ /*xml+="<a href=\"#\" style='background-color: #FFB800' onclick=\"openDialogre('下载模板', '${ctx}/ruralProject/ruralCostProjectMessage/skipDownloadFtl?id=" + d.id +"','35%', '35%','','下载,关闭')\" class=\"op-btn\" > 下载模板</a>";*/
|
|
|
+ if(d.projectReportRecordStatus == 0 || d.projectReportRecordStatus == 6){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改质量复核</a>";
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('新增归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecord?companyType=${companyType}&reportId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 线上归档</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportRecordStatus == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改质量复核</a>";
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordModify?companyType=${companyType}&id=" + d.prrId +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 线上重新归档</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportRecordStatus == 2){
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/cancelInvalidate?companyType=${companyType}&id=" + d.prrId + "&processInstanceId=" + d.prrProcessInstanceId + "\" onclick=\"return confirmx('确认要撤回该线上报告归档审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 撤回线上归档</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportRecordStatus == 3){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改质量复核</a>";
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('撤回调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordModify?companyType=${companyType}&id=" + d.prrId + " ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 线上重新归档</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportRecordStatus == 4){
|
|
|
+ //驳回操作
|
|
|
+ if(d.newRecordTwoNotifyFlag == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordUrgentModify?companyType=${companyType}&id=" + d.prrId + "&view=Reurgent','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 线上重新归档</a>";
|
|
|
+ <%--xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordModify?id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档1</a>";--%>
|
|
|
+ }else if(d.newRecordNotifyFlag == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNew/formRecordUrgentModify?companyType=${companyType}&id=" + d.prrId + "&view=Reurgent ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 线上重新归档</a>";
|
|
|
+ <%--xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNew/formRecordModify?id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档</a>";--%>
|
|
|
+ }else{
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessage/formRecordModify?companyType=${companyType}&id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 线上重新归档</a>";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(d.projectReportStatusTwo == 5){
|
|
|
+ /*xml+="<a href=\"#\" style='background-color: #FFB800' onclick=\"openDialogre('下载模板', '${ctx}/ruralProject/ruralCostProjectMessage/skipDownloadFtl?id=" + d.id +"','35%', '35%','','下载,关闭')\" class=\"op-btn\" > 下载模板</a>";*/
|
|
|
+ if(d.projectReportRecordStatus == 0 || d.projectReportRecordStatus == 6){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('新增归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecord?companyType=${companyType}&reportId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 线上归档</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportRecordStatus == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordModify?companyType=${companyType}&id=" + d.prrId +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 线上重新归档</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportRecordStatus == 2){
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/cancelInvalidate?companyType=${companyType}&id=" + d.prrId + "&processInstanceId=" + d.prrProcessInstanceId + "\" onclick=\"return confirmx('确认要撤回该线上报告归档审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 撤回线上归档</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportRecordStatus == 3){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('撤回调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordModify?companyType=${companyType}&id=" + d.prrId + " ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 线上重新归档</a>";
|
|
|
+ }
|
|
|
+ if(d.projectReportRecordStatus == 4){
|
|
|
+ //驳回操作
|
|
|
+ if(d.newRecordTwoNotifyFlag == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordModify?companyType=${companyType}&id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 线上重新归档</a>";
|
|
|
+ }else if(d.newRecordNotifyFlag == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNew/formRecordModify?companyType=${companyType}&id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 线上重新归档</a>";
|
|
|
+ }else{
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessage/formRecordModify?companyType=${companyType}&id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 线上重新归档</a>";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //归档资料缺失说明
|
|
|
+ if(d.projectReportStatusTwo == 0){
|
|
|
+ if(d.projectReportStatus == 5){
|
|
|
+ if(d.emergencyProject == 1){
|
|
|
+ if(d.projectReportRecordStatus != 1 && d.projectReportRecordStatus != 2 && d.projectReportRecordStatus != 5){
|
|
|
+ if (d.defectRecordStatus==0) {
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('新增缺失说明信息', '${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescription?companyType=${companyType}&reportId=" + d.id +"&view=zixun','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 资料缺失说明</a>";
|
|
|
+ }
|
|
|
+ if (d.defectRecordStatus==2){
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/cancelDescription?companyType=${companyType}&id=" + d.pmdrId + "&processInstanceId=" + d.pmdrProcessInstanceId + "&view=zixun\" onclick=\"return confirmx('确认要撤回该报告线上归档审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 撤回说明</a>";
|
|
|
+ }
|
|
|
+ if (d.defectRecordStatus==3){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('撤回修改资料缺失信息', '${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescriptionModify?companyType=${companyType}&id=" + d.pmdrId + "&reportId=" + d.id+"&view=zixun ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改资料说明</a>";
|
|
|
+ xml += "<a href=\"${ctx}/projectReportDefectRecord/projectReportDefectRecord/delete?companyType=${companyType}&id=" + d.pmdrId + "&status="+d.defectRecordStatus+"&view=zixun\" onclick=\"return confirmx('确认要作废资料缺失说明信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 说明作废</a>";
|
|
|
+
|
|
|
+ }
|
|
|
+ if(d.defectRecordStatus == 4){
|
|
|
+ //驳回操作
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('撤回修改资料缺失信息', '${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescriptionModify?companyType=${companyType}&id=" + d.pmdrId+ "&reportId=" + d.id+"&view=zixunModify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改资料说明</a>";
|
|
|
+ xml += "<a href=\"${ctx}/projectReportDefectRecord/projectReportDefectRecord/delete?companyType=${companyType}&id=" + d.pmdrId + "&status="+d.defectRecordStatus+"&view=zixun\" onclick=\"return confirmx('确认要作废资料缺失说明信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 说明作废</a>";
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(d.projectReportStatusTwo == 5){
|
|
|
+ if(d.projectReportRecordStatus != 1 && d.projectReportRecordStatus != 2 && d.projectReportRecordStatus != 5){
|
|
|
+ if (d.defectRecordStatus==0) {
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('新增缺失说明信息', '${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescription?companyType=${companyType}&reportId=" + d.id +"&view=zixun','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 资料缺失说明</a>";
|
|
|
+ }
|
|
|
+ if (d.defectRecordStatus==2){
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/cancelDescription?companyType=${companyType}&id=" + d.pmdrId + "&processInstanceId=" + d.pmdrProcessInstanceId + "&view=zixun\" onclick=\"return confirmx('确认要撤回该报告线上归档审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 撤回说明</a>";
|
|
|
+ }
|
|
|
+ if (d.defectRecordStatus==3){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('撤回修改资料缺失信息', '${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescriptionModify?companyType=${companyType}&id=" + d.pmdrId + "&reportId=" + d.id+"&view=zixun ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改资料说明</a>";
|
|
|
+ xml += "<a href=\"${ctx}/projectReportDefectRecord/projectReportDefectRecord/delete?companyType=${companyType}&id=" + d.pmdrId + "&status="+d.defectRecordStatus+"&view=zixun\" onclick=\"return confirmx('确认要作废资料缺失说明信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 说明作废</a>";
|
|
|
+ }
|
|
|
+ if(d.defectRecordStatus == 4){
|
|
|
+ //驳回操作
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('撤回修改资料缺失信息', '${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescriptionModify?companyType=${companyType}&id=" + d.pmdrId+ "&reportId=" + d.id+"&view=zixunModify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改资料说明</a>";
|
|
|
+ xml += "<a href=\"${ctx}/projectReportDefectRecord/projectReportDefectRecord/delete?companyType=${companyType}&id=" + d.pmdrId + "&status="+d.defectRecordStatus+"&view=zixun\" onclick=\"return confirmx('确认要作废资料缺失说明信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 说明作废</a>";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /*上报相关按钮*/
|
|
|
+ if(d.projectReportStatusTwo == 0){
|
|
|
+ if(d.projectReportStatus == 5){
|
|
|
+ if(d.emergencyProject == 1){
|
|
|
+ if(d.syncStatus == 0){
|
|
|
+ if(d.reportStatus == 0){
|
|
|
+ if(d.reportedState == 0 || d.reportedState == 6){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/updateReported?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,暂存,关闭')\" style='background-color: #5FB878' class=\"layui-btn layui-btn-xs layui-bg-blue\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 上报</a>";
|
|
|
+ /*xml+="<a href=\"#\" onclick=\"openDialogre('上报管理', '${ctx}/ruralProject/ruralProjectMessage/updateReportedByPerson?id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #5FB878' class=\"layui-btn layui-btn-xs layui-bg-blue\" > 个人上报</a>";*/
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(d.reportedState == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/updateReported?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,暂存,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改上报</a>";
|
|
|
+ }
|
|
|
+ if(d.reportedState == 2){
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/cancelInvalidateByReported?companyType=${companyType}&id=" + d.id + "&processInstanceId=" + d.reportedProcessInstanceId + "\" onclick=\"return confirmx('确认要撤回该上报审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 撤回上报</a>";
|
|
|
+ }
|
|
|
+ /*撤回修改*/
|
|
|
+ if(d.reportedState == 3){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/updateReported?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改上报</a>";
|
|
|
+ }
|
|
|
+ /*驳回修改*/
|
|
|
+ if(d.reportedState == 4){
|
|
|
+ //驳回操作
|
|
|
+ // if(d.newReportedNotifyFlag == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/reportedModify?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改上报</a>";
|
|
|
+ <%--}else{--%>
|
|
|
+ <%-- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessage/reportedModify?id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改上报</a>";--%>
|
|
|
+ <%--}--%>
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(d.projectReportStatusTwo == 5){
|
|
|
+ if(d.syncStatus == 0){
|
|
|
+ if(d.reportStatus == 0){
|
|
|
+ if(d.reportedState == 0 || d.reportedState == 6){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/updateReported?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,暂存,关闭')\" style='background-color: #5FB878' class=\"layui-btn layui-btn-xs layui-bg-blue\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 上报</a>";
|
|
|
+ /*xml+="<a href=\"#\" onclick=\"openDialogre('上报管理', '${ctx}/ruralProject/ruralProjectMessage/updateReportedByPerson?id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #5FB878' class=\"layui-btn layui-btn-xs layui-bg-blue\" > 个人上报</a>";*/
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(d.reportedState == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/updateReported?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,暂存,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改上报</a>";
|
|
|
+ }
|
|
|
+ if(d.reportedState == 2){
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/cancelInvalidateByReported?companyType=${companyType}&id=" + d.id + "&processInstanceId=" + d.reportedProcessInstanceId + "\" onclick=\"return confirmx('确认要撤回该上报审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 撤回上报</a>";
|
|
|
+ }
|
|
|
+ /*撤回修改*/
|
|
|
+ if(d.reportedState == 3){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/updateReported?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改上报</a>";
|
|
|
+ }
|
|
|
+ /*驳回修改*/
|
|
|
+ if(d.reportedState == 4){
|
|
|
+ //驳回操作
|
|
|
+ // if(d.newReportedNotifyFlag == 1){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/reportedModify?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改上报</a>";
|
|
|
+ <%--}else{--%>
|
|
|
+ <%-- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessage/reportedModify?id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改上报</a>";--%>
|
|
|
+ <%--}--%>
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /*纸质归档*/
|
|
|
+ if(d.projectReportStatusTwo == 5){
|
|
|
+ if(d.submitMoney == "2"){
|
|
|
+ /*xml+="<a href=\"#\" style='background-color: #FFB800' onclick=\"openDialogre('下载模板', '${ctx}/ruralProject/ruralCostProjectMessage/skipDownloadFtl?id=" + d.id +"','35%', '35%','','下载,关闭')\" class=\"op-btn\" > 下载模板</a>";*/
|
|
|
+ if(d.paperFilingStatus == 0){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('新增纸质归档信息', '${ctx}/paperFiling/paperFiling/form?companyType=${companyType}&projectId=" + d.id +"&view=filing','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 纸质归档</a>";
|
|
|
+ }
|
|
|
+ if(d.paperFilingStatus == 2){
|
|
|
+ xml+="<a href=\"${ctx}/paperFiling/paperFiling/cancelInvalidate?companyType=${companyType}&id=" + d.ppfId + "&view=filing&processInstanceId=" + d.ppfProcessInstanceId + "\" onclick=\"return confirmx('确认要撤回该纸质归档审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 撤回纸质归档</a>";
|
|
|
+ }
|
|
|
+ if(d.paperFilingStatus == 3){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('撤回调整归档信息', '${ctx}/paperFiling/paperFiling/form?companyType=${companyType}&id=" + d.ppfId + "&projectId=" + d.id +"&view=filing ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 纸质重新归档</a>";
|
|
|
+ }
|
|
|
+ if(d.paperFilingStatus == 4){
|
|
|
+ //驳回操作
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/paperFiling/paperFiling/modify?companyType=${companyType}&id=" + d.ppfId + "&projectId=" + d.id + "&processInstanceId=" + d.ppfProcessInstanceId + "&view=filing ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 纸质重新归档</a>";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if('1' == d.flagAdmin && d.projectReportStatus == 5)
|
|
|
+ {
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改项目报告', '${ctx}/ruralProject/ruralProjectMessage/adminModifyForm?companyType=${companyType}&projectId=" + d.id + "','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改报告</a>";
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogView('历史报告', '${ctx}/ruralProject/ruralProjectMessage/getReportModifyList?companyType=${companyType}&projectId=" + d.id + "','95%', '95%')\" class=\"layui-btn layui-btn-xs layui-bg-orange\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 历史报告</a>";
|
|
|
+ }
|
|
|
+ if('1' == d.flagArchive && d.projectReportRecordStatus == 5)
|
|
|
+ {
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改归档案卷号', '${ctx}/ruralProject/ruralProjectMessage/adminRecordModifyForm?companyType=${companyType}&id=" + d.prrId + "','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改归档</a>";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ <shiro:hasPermission name="ruralProject:ruralCostProjectMessage:adminEdit">
|
|
|
+ if ('0'!=d.projectReportStatus && '1'!=d.projectReportStatus){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改质量复核', '${ctx}/ruralProject/ruralProjectMessage/adminEditForm?companyType=${companyType}&projectId=" + d.id + "','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改质量复核</a>";
|
|
|
+ }
|
|
|
+ if(d.paperFilingStatus == 5){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改纸质归档案卷号', '${ctx}/paperFiling/paperFiling/adminPaperFiling?companyType=${companyType}&id=" + d.ppfId + "&projectId=" + d.id +"&view=filing ','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 修改纸质归档</a>";
|
|
|
+ }
|
|
|
+ //项目升级按钮
|
|
|
+ if (d.submitMoney==1){
|
|
|
+ if (d.projectReportRecordStatus==0 || d.projectReportRecordStatus==1 || d.projectReportRecordStatus==2 || d.projectReportRecordStatus==3 || d.projectReportRecordStatus==6){
|
|
|
+ xml+="<a href=\"#\" onclick=\"projectUpgrade('"+d.id+"','"+d.projectReportRecordStatus+"','"+d.filingProjectStatus+"','"+d.projectReportStatus+"','"+d.projectReportStatusTwo+"')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 项目升级</a>";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(d.projectReportStatus == 5){
|
|
|
+ if (d.projectReportStatusTwo != 5 && d.projectReportStatusTwo != 2){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改报告质量复核信息', '${ctx}/ruralProject/ruralProjectMessageNew/reviewForm?companyType=${companyType}&projectId=" + d.id +"&view=reloadReport&edit=reviewAgain','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 重新复核</a>";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ </shiro:hasPermission>
|
|
|
+
|
|
|
+ <shiro:hasPermission name="ruralProject:ruralCostProjectMessage:reportedProvincialStanding">
|
|
|
+ if(d.reportedState == 5 || d.reportedState == 7){
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralCostProjectMessageNew/submitReportedProvincialStanding?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;'> 提交省站</a>";
|
|
|
+ }
|
|
|
+ </shiro:hasPermission>
|
|
|
+
|
|
|
+
|
|
|
+ xml+="</div>";
|
|
|
+ return[xml].join('');
|
|
|
+ }
|
|
|
</script>
|
|
|
<style>
|
|
|
body{
|
|
@@ -761,7 +1072,7 @@
|
|
|
<%-- <button class="nav-btn nav-btn-refresh" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"><i class="glyphicon glyphicon-repeat"></i> 刷新</button>--%>
|
|
|
<div style="clear: both;"></div>
|
|
|
</div>
|
|
|
- <table class="oa-table layui-table" id="contentTable1"></table>
|
|
|
+ <table class="oa-table layui-table" id="contentTable1" lay-filter="test"></table>
|
|
|
|
|
|
<!-- 分页代码 -->
|
|
|
<table:page page="${page}"></table:page>
|
|
@@ -771,8 +1082,51 @@
|
|
|
</div>
|
|
|
<div id="changewidth"></div>
|
|
|
</div>
|
|
|
+<script type="text/html" id="barDemo">
|
|
|
+ <a class="layui-btn layui-btn-xs" lay-event="more" style="width: 75px">请选择<i class="layui-icon layui-icon-down"></i></a>
|
|
|
+</script>
|
|
|
+<script>
|
|
|
+ layui.use(function() {
|
|
|
+ //得到各种内置组件
|
|
|
+ var table = layui.table //表格
|
|
|
+ ,dropdown = layui.dropdown //下拉菜单
|
|
|
+
|
|
|
+ table.on('tool(test)', function (obj) { //注:tool 是工具条事件名,test 是 table 原始容器的属性 lay-filter="对应的值"
|
|
|
+ var data = obj.data //获得当前行数据
|
|
|
+ , layEvent = obj.event; //获得 lay-event 对应的值
|
|
|
+ if (layEvent === 'more' && (data.falg == 1 || ('0'!=data.projectReportStatus && '1'!=data.projectReportStatus) || data.paperFilingStatus == 5 || data.projectReportStatus == 5 || data.submitMoney==1 || data.reportedState == 5 || data.reportedState == 7) ){
|
|
|
+ //下拉菜单
|
|
|
+ dropdown.render({
|
|
|
+ elem: this //触发事件的 DOM 对象
|
|
|
+ , show: true //外部事件触发即显示
|
|
|
+ , data: [{
|
|
|
+ title: ''
|
|
|
+ , id: 'must' //此项为必填项
|
|
|
+ // , href: '#'
|
|
|
+ // , target: '_blank' 默认_self
|
|
|
+ , templet: show(data)
|
|
|
+
|
|
|
+ }]
|
|
|
+ , align: 'center' //右对齐弹出(v2.6.8 新增)
|
|
|
+ , style: 'box-shadow: 5px 5px 10px rgb(0 0 0 / 12%);' //设置额外样式
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ dropdown.render({
|
|
|
+ elem: this
|
|
|
+ ,show: true
|
|
|
+ ,data:[{
|
|
|
+ title: '当前已无可进行操作!'
|
|
|
+ ,id:'no'
|
|
|
+ }]
|
|
|
+ , align: 'center' //右对齐弹出(v2.6.8 新增)
|
|
|
+ , style: 'box-shadow: 5px 5px 10px rgb(0 0 0 / 12%);' //设置额外样式
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+ })
|
|
|
+</script>
|
|
|
|
|
|
-<script src="${ctxStatic}/layer-v2.3/layui/layui.all.js" charset="utf-8"></script>
|
|
|
<script>
|
|
|
|
|
|
layui.use('table', function(){
|
|
@@ -917,313 +1271,7 @@
|
|
|
<%-- var xml = "<span style=\"cursor:default;\" class=\"new-status-label status-label-" + st.label + "\" >" + st.status + "</span>";--%>
|
|
|
<%-- return xml;--%>
|
|
|
<%-- }}--%>
|
|
|
- ,{field:'op',align:'center',title:"操作",width:350,templet:function(d) {
|
|
|
-
|
|
|
- ////对操作进行初始化
|
|
|
- var xml = '<div class=\"layui-btn-group\">';
|
|
|
- if(d.falg=="1"){
|
|
|
- if(d.projectReportStatus == 0){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('新增报告质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" > 新增质量复核</a>";
|
|
|
- }
|
|
|
- if(d.projectReportStatus == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改质量复核</a>";
|
|
|
- <%--xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/deleteReport?projectId=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目报告吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 删除报告</a>";--%>
|
|
|
- }
|
|
|
- if(d.projectReportStatus == 2){
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/revoke?id=" + d.id + "&processInstanceId=" + d.procId + "\" onclick=\"return confirmx('确认要撤回该项目报告审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-btn-red\" > 撤回质量复核</a>";
|
|
|
- }
|
|
|
- if(d.projectReportStatus == 3){
|
|
|
- //撤回操作
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/modify?companyType=${companyType}&projectId=" + d.id + " ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改质量复核</a>";
|
|
|
- <%--xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/deleteReport?projectId=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目报告质量复核吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 删除报告</a>";--%>
|
|
|
- }
|
|
|
- if(d.projectReportStatus == 4){
|
|
|
- //驳回操作
|
|
|
- // if(d.newReportNotifyFlag == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReport('调整质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/modify?companyType=${companyType}&projectId=" + d.id + "&view=report','"+d.id+"','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改质量复核</a>";
|
|
|
- <%--}else{--%>
|
|
|
- <%-- xml+="<a href=\"#\" onclick=\"openDialogreReport('调整质量复核', '${ctx}/ruralProject/ruralProjectMessage/modify?projectId=" + d.id + "&view=report','"+d.id+"','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改质量复核</a>";--%>
|
|
|
- <%--}--%>
|
|
|
-
|
|
|
- <%--xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/deleteReport?projectId=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目报告质量复核吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 删除报告</a>";--%>
|
|
|
- }
|
|
|
- //案例项目申请按钮
|
|
|
- if(d.reportedState == 5 && d.projectReportRecordStatus == 5){
|
|
|
- if (d.caseType != 1 && d.caseStatus !=2 && d.caseStatus !=5 && d.caseStatus != 4 ){
|
|
|
- xml+="<a href=\"javascript:void(0)\" onclick=\"openDialogreCaseBase('${ctx}/ruralProject/ruralCostProjectMessage/caseBase?companyType=${companyType}&projectId=" + d.id + " ')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 申请案例项目</a>";
|
|
|
- }
|
|
|
- if(d.caseType != 1 && d.caseStatus ==2){
|
|
|
- xml+="<a href=\"javascript:void(0)\" onclick=\"deleteFun('${ctx}/ruralProject/ruralCostProjectMessage/cancelInvalidateCaseBase?companyType=${companyType}&projectId=" + d.id + "')\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 撤销案例项目申请</a>";
|
|
|
- }
|
|
|
- if(d.caseType != 1){
|
|
|
- if(d.caseStatus == 4){
|
|
|
- xml+="<a href=\"javascript:void(0)\" onclick=\"openDialogreNew('重新申请案例项目','${ctx}/workprojectnotify/workProjectNotify/form?companyType=${companyType}¬ifyId=" + d.id + "&type=152&remarks=重新申请','95%', '95%','','重新申请,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 重新申请案例项目</a>";
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- //报告签发操作
|
|
|
- if(d.projectReportStatus == 5 && d.emergencyProject != 1){
|
|
|
-
|
|
|
- if(d.projectReportStatusTwo == 0){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('报告签发', '${ctx}/ruralProject/ruralProjectMessageNewTwo/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" > 报告签发</a>";
|
|
|
- }
|
|
|
- if(d.projectReportStatusTwo == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改报告签发', '${ctx}/ruralProject/ruralProjectMessageNewTwo/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改签发</a>";
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessageNewTwo/deleteReport?companyType=${companyType}&projectId=" + d.id + "\" onclick=\"return confirmx('确认要删除该报告签发吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 删除签发</a>";
|
|
|
- }
|
|
|
- if(d.projectReportStatusTwo == 2){
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessageNewTwo/revoke?companyType=${companyType}&id=" + d.id + "&processInstanceId=" + d.prdtProcessinstanceId + "\" onclick=\"return confirmx('确认要撤回该报告签发审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-btn-red\" > 撤回签发</a>";
|
|
|
- }
|
|
|
- if(d.projectReportStatusTwo == 3){
|
|
|
- //撤回操作
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整报告签发', '${ctx}/ruralProject/ruralProjectMessageNewTwo/form?companyType=${companyType}&projectId=" + d.id + " ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改签发</a>";
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessageNewTwo/deleteReport?companyType=${companyType}&projectId=" + d.id + "\" onclick=\"return confirmx('确认要删除该报告签发吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 删除签发</a>";
|
|
|
- }
|
|
|
- if(d.projectReportStatusTwo == 4){
|
|
|
- //驳回操作
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整报告签发', '${ctx}/ruralProject/ruralProjectMessageNewTwo/form?companyType=${companyType}&projectId=" + d.id + "&view=report ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改签发</a>";
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessageNewTwo/deleteReport?companyType=${companyType}&projectId=" + d.id + "\" onclick=\"return confirmx('确认要删除该报告签发吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 删除签发</a>";
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //线上归档操作
|
|
|
- if(d.projectReportStatusTwo == 0){
|
|
|
- if(d.projectReportStatus == 5){
|
|
|
- if(d.emergencyProject == 1){
|
|
|
- /*xml+="<a href=\"#\" style='background-color: #FFB800' onclick=\"openDialogre('下载模板', '${ctx}/ruralProject/ruralCostProjectMessage/skipDownloadFtl?id=" + d.id +"','35%', '35%','','下载,关闭')\" class=\"op-btn\" > 下载模板</a>";*/
|
|
|
- if(d.projectReportRecordStatus == 0 || d.projectReportRecordStatus == 6){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改质量复核</a>";
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('新增归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecord?companyType=${companyType}&reportId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" > 线上归档</a>";
|
|
|
- }
|
|
|
- if(d.projectReportRecordStatus == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改质量复核</a>";
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordModify?companyType=${companyType}&id=" + d.prrId +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档</a>";
|
|
|
- }
|
|
|
- if(d.projectReportRecordStatus == 2){
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/cancelInvalidate?companyType=${companyType}&id=" + d.prrId + "&processInstanceId=" + d.prrProcessInstanceId + "\" onclick=\"return confirmx('确认要撤回该线上报告归档审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 撤回线上归档</a>";
|
|
|
- }
|
|
|
- if(d.projectReportRecordStatus == 3){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改质量复核', '${ctx}/ruralProject/ruralProjectMessageNew/form?companyType=${companyType}&projectId=" + d.id +"','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改质量复核</a>";
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('撤回调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordModify?companyType=${companyType}&id=" + d.prrId + " ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档</a>";
|
|
|
- }
|
|
|
- if(d.projectReportRecordStatus == 4){
|
|
|
- //驳回操作
|
|
|
- if(d.newRecordTwoNotifyFlag == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordUrgentModify?companyType=${companyType}&id=" + d.prrId + "&view=Reurgent','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档</a>";
|
|
|
- <%--xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordModify?id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档1</a>";--%>
|
|
|
- }else if(d.newRecordNotifyFlag == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNew/formRecordUrgentModify?companyType=${companyType}&id=" + d.prrId + "&view=Reurgent ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档</a>";
|
|
|
- <%--xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNew/formRecordModify?id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档</a>";--%>
|
|
|
- }else{
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessage/formRecordModify?companyType=${companyType}&id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档</a>";
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(d.projectReportStatusTwo == 5){
|
|
|
- /*xml+="<a href=\"#\" style='background-color: #FFB800' onclick=\"openDialogre('下载模板', '${ctx}/ruralProject/ruralCostProjectMessage/skipDownloadFtl?id=" + d.id +"','35%', '35%','','下载,关闭')\" class=\"op-btn\" > 下载模板</a>";*/
|
|
|
- if(d.projectReportRecordStatus == 0 || d.projectReportRecordStatus == 6){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('新增归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecord?companyType=${companyType}&reportId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" > 线上归档</a>";
|
|
|
- }
|
|
|
- if(d.projectReportRecordStatus == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordModify?companyType=${companyType}&id=" + d.prrId +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档</a>";
|
|
|
- }
|
|
|
- if(d.projectReportRecordStatus == 2){
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/cancelInvalidate?companyType=${companyType}&id=" + d.prrId + "&processInstanceId=" + d.prrProcessInstanceId + "\" onclick=\"return confirmx('确认要撤回该线上报告归档审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 撤回线上归档</a>";
|
|
|
- }
|
|
|
- if(d.projectReportRecordStatus == 3){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('撤回调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordModify?companyType=${companyType}&id=" + d.prrId + " ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档</a>";
|
|
|
- }
|
|
|
- if(d.projectReportRecordStatus == 4){
|
|
|
- //驳回操作
|
|
|
- if(d.newRecordTwoNotifyFlag == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordModify?companyType=${companyType}&id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档</a>";
|
|
|
- }else if(d.newRecordNotifyFlag == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNew/formRecordModify?companyType=${companyType}&id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档</a>";
|
|
|
- }else{
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessage/formRecordModify?companyType=${companyType}&id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档</a>";
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- //归档资料缺失说明
|
|
|
- if(d.projectReportStatusTwo == 0){
|
|
|
- if(d.projectReportStatus == 5){
|
|
|
- if(d.emergencyProject == 1){
|
|
|
- if(d.projectReportRecordStatus != 1 && d.projectReportRecordStatus != 2 && d.projectReportRecordStatus != 5){
|
|
|
- if (d.defectRecordStatus==0) {
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('新增缺失说明信息', '${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescription?companyType=${companyType}&reportId=" + d.id +"&view=zixun','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" > 资料缺失说明</a>";
|
|
|
- }
|
|
|
- if (d.defectRecordStatus==2){
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/cancelDescription?companyType=${companyType}&id=" + d.pmdrId + "&processInstanceId=" + d.pmdrProcessInstanceId + "&view=zixun\" onclick=\"return confirmx('确认要撤回该报告线上归档审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 撤回说明</a>";
|
|
|
- }
|
|
|
- if (d.defectRecordStatus==3){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('撤回修改资料缺失信息', '${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescriptionModify?companyType=${companyType}&id=" + d.pmdrId + "&reportId=" + d.id+"&view=zixun ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改资料说明</a>";
|
|
|
- xml += "<a href=\"${ctx}/projectReportDefectRecord/projectReportDefectRecord/delete?companyType=${companyType}&id=" + d.pmdrId + "&status="+d.defectRecordStatus+"&view=zixun\" onclick=\"return confirmx('确认要作废资料缺失说明信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 说明作废</a>";
|
|
|
-
|
|
|
- }
|
|
|
- if(d.defectRecordStatus == 4){
|
|
|
- //驳回操作
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('撤回修改资料缺失信息', '${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescriptionModify?companyType=${companyType}&id=" + d.pmdrId+ "&reportId=" + d.id+"&view=zixunModify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改资料说明</a>";
|
|
|
- xml += "<a href=\"${ctx}/projectReportDefectRecord/projectReportDefectRecord/delete?companyType=${companyType}&id=" + d.pmdrId + "&status="+d.defectRecordStatus+"&view=zixun\" onclick=\"return confirmx('确认要作废资料缺失说明信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 说明作废</a>";
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(d.projectReportStatusTwo == 5){
|
|
|
- if(d.projectReportRecordStatus != 1 && d.projectReportRecordStatus != 2 && d.projectReportRecordStatus != 5){
|
|
|
- if (d.defectRecordStatus==0) {
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('新增缺失说明信息', '${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescription?companyType=${companyType}&reportId=" + d.id +"&view=zixun','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" > 资料缺失说明</a>";
|
|
|
- }
|
|
|
- if (d.defectRecordStatus==2){
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/cancelDescription?companyType=${companyType}&id=" + d.pmdrId + "&processInstanceId=" + d.pmdrProcessInstanceId + "&view=zixun\" onclick=\"return confirmx('确认要撤回该报告线上归档审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 撤回说明</a>";
|
|
|
- }
|
|
|
- if (d.defectRecordStatus==3){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('撤回修改资料缺失信息', '${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescriptionModify?companyType=${companyType}&id=" + d.pmdrId + "&reportId=" + d.id+"&view=zixun ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改资料说明</a>";
|
|
|
- xml += "<a href=\"${ctx}/projectReportDefectRecord/projectReportDefectRecord/delete?companyType=${companyType}&id=" + d.pmdrId + "&status="+d.defectRecordStatus+"&view=zixun\" onclick=\"return confirmx('确认要作废资料缺失说明信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 说明作废</a>";
|
|
|
- }
|
|
|
- if(d.defectRecordStatus == 4){
|
|
|
- //驳回操作
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('撤回修改资料缺失信息', '${ctx}/projectReportDefectRecord/projectReportDefectRecord/formDescriptionModify?companyType=${companyType}&id=" + d.pmdrId+ "&reportId=" + d.id+"&view=zixunModify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改资料说明</a>";
|
|
|
- xml += "<a href=\"${ctx}/projectReportDefectRecord/projectReportDefectRecord/delete?companyType=${companyType}&id=" + d.pmdrId + "&status="+d.defectRecordStatus+"&view=zixun\" onclick=\"return confirmx('确认要作废资料缺失说明信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 说明作废</a>";
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- /*上报相关按钮*/
|
|
|
- if(d.projectReportStatusTwo == 0){
|
|
|
- if(d.projectReportStatus == 5){
|
|
|
- if(d.emergencyProject == 1){
|
|
|
- if(d.syncStatus == 0){
|
|
|
- if(d.reportStatus == 0){
|
|
|
- if(d.reportedState == 0 || d.reportedState == 6){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/updateReported?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,暂存,关闭')\" style='background-color: #5FB878' class=\"layui-btn layui-btn-xs layui-bg-blue\" > 上报</a>";
|
|
|
- /*xml+="<a href=\"#\" onclick=\"openDialogre('上报管理', '${ctx}/ruralProject/ruralProjectMessage/updateReportedByPerson?id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #5FB878' class=\"layui-btn layui-btn-xs layui-bg-blue\" > 个人上报</a>";*/
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(d.reportedState == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/updateReported?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,暂存,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改上报</a>";
|
|
|
- }
|
|
|
- if(d.reportedState == 2){
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/cancelInvalidateByReported?companyType=${companyType}&id=" + d.id + "&processInstanceId=" + d.reportedProcessInstanceId + "\" onclick=\"return confirmx('确认要撤回该上报审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 撤回上报</a>";
|
|
|
- }
|
|
|
- /*撤回修改*/
|
|
|
- if(d.reportedState == 3){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/updateReported?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改上报</a>";
|
|
|
- }
|
|
|
- /*驳回修改*/
|
|
|
- if(d.reportedState == 4){
|
|
|
- //驳回操作
|
|
|
- // if(d.newReportedNotifyFlag == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/reportedModify?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改上报</a>";
|
|
|
- <%--}else{--%>
|
|
|
- <%-- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessage/reportedModify?id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改上报</a>";--%>
|
|
|
- <%--}--%>
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(d.projectReportStatusTwo == 5){
|
|
|
- if(d.syncStatus == 0){
|
|
|
- if(d.reportStatus == 0){
|
|
|
- if(d.reportedState == 0 || d.reportedState == 6){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/updateReported?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,暂存,关闭')\" style='background-color: #5FB878' class=\"layui-btn layui-btn-xs layui-bg-blue\" > 上报</a>";
|
|
|
- /*xml+="<a href=\"#\" onclick=\"openDialogre('上报管理', '${ctx}/ruralProject/ruralProjectMessage/updateReportedByPerson?id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #5FB878' class=\"layui-btn layui-btn-xs layui-bg-blue\" > 个人上报</a>";*/
|
|
|
- }
|
|
|
- }else{
|
|
|
- if(d.reportedState == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/updateReported?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,暂存,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改上报</a>";
|
|
|
- }
|
|
|
- if(d.reportedState == 2){
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/cancelInvalidateByReported?companyType=${companyType}&id=" + d.id + "&processInstanceId=" + d.reportedProcessInstanceId + "\" onclick=\"return confirmx('确认要撤回该上报审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 撤回上报</a>";
|
|
|
- }
|
|
|
- /*撤回修改*/
|
|
|
- if(d.reportedState == 3){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/updateReported?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改上报</a>";
|
|
|
- }
|
|
|
- /*驳回修改*/
|
|
|
- if(d.reportedState == 4){
|
|
|
- //驳回操作
|
|
|
- // if(d.newReportedNotifyFlag == 1){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessageNew/reportedModify?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改上报</a>";
|
|
|
- <%--}else{--%>
|
|
|
- <%-- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralProjectMessage/reportedModify?id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改上报</a>";--%>
|
|
|
- <%--}--%>
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- /*纸质归档*/
|
|
|
- if(d.projectReportStatusTwo == 5){
|
|
|
- if(d.submitMoney == "2"){
|
|
|
- /*xml+="<a href=\"#\" style='background-color: #FFB800' onclick=\"openDialogre('下载模板', '${ctx}/ruralProject/ruralCostProjectMessage/skipDownloadFtl?id=" + d.id +"','35%', '35%','','下载,关闭')\" class=\"op-btn\" > 下载模板</a>";*/
|
|
|
- if(d.paperFilingStatus == 0){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('新增纸质归档信息', '${ctx}/paperFiling/paperFiling/form?companyType=${companyType}&projectId=" + d.id +"&view=filing','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" > 纸质归档</a>";
|
|
|
- }
|
|
|
- if(d.paperFilingStatus == 2){
|
|
|
- xml+="<a href=\"${ctx}/paperFiling/paperFiling/cancelInvalidate?companyType=${companyType}&id=" + d.ppfId + "&view=filing&processInstanceId=" + d.ppfProcessInstanceId + "\" onclick=\"return confirmx('确认要撤回该纸质归档审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\" > 撤回纸质归档</a>";
|
|
|
- }
|
|
|
- if(d.paperFilingStatus == 3){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('撤回调整归档信息', '${ctx}/paperFiling/paperFiling/form?companyType=${companyType}&id=" + d.ppfId + "&projectId=" + d.id +"&view=filing ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 纸质重新归档</a>";
|
|
|
- }
|
|
|
- if(d.paperFilingStatus == 4){
|
|
|
- //驳回操作
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/paperFiling/paperFiling/modify?companyType=${companyType}&id=" + d.ppfId + "&projectId=" + d.id + "&processInstanceId=" + d.ppfProcessInstanceId + "&view=filing ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 纸质重新归档</a>";
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- if('1' == d.flagAdmin && d.projectReportStatus == 5)
|
|
|
- {
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改项目报告', '${ctx}/ruralProject/ruralProjectMessage/adminModifyForm?companyType=${companyType}&projectId=" + d.id + "','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改报告</a>";
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogView('历史报告', '${ctx}/ruralProject/ruralProjectMessage/getReportModifyList?companyType=${companyType}&projectId=" + d.id + "','95%', '95%')\" class=\"layui-btn layui-btn-xs layui-bg-orange\" > 历史报告</a>";
|
|
|
- }
|
|
|
- if('1' == d.flagArchive && d.projectReportRecordStatus == 5)
|
|
|
- {
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改归档案卷号', '${ctx}/ruralProject/ruralProjectMessage/adminRecordModifyForm?companyType=${companyType}&id=" + d.prrId + "','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改归档</a>";
|
|
|
- }
|
|
|
- }
|
|
|
- <shiro:hasPermission name="ruralProject:ruralCostProjectMessage:adminEdit">
|
|
|
- if ('0'!=d.projectReportStatus && '1'!=d.projectReportStatus){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改质量复核', '${ctx}/ruralProject/ruralProjectMessage/adminEditForm?companyType=${companyType}&projectId=" + d.id + "','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改质量复核</a>";
|
|
|
- }
|
|
|
- if(d.paperFilingStatus == 5){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改纸质归档案卷号', '${ctx}/paperFiling/paperFiling/adminPaperFiling?companyType=${companyType}&id=" + d.ppfId + "&projectId=" + d.id +"&view=filing ','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改纸质归档</a>";
|
|
|
- }
|
|
|
- //项目升级按钮
|
|
|
- if (d.submitMoney==1){
|
|
|
- if (d.projectReportRecordStatus==0 || d.projectReportRecordStatus==1 || d.projectReportRecordStatus==2 || d.projectReportRecordStatus==3 || d.projectReportRecordStatus==6){
|
|
|
- xml+="<a href=\"#\" onclick=\"projectUpgrade('"+d.id+"','"+d.projectReportRecordStatus+"','"+d.filingProjectStatus+"','"+d.projectReportStatus+"','"+d.projectReportStatusTwo+"')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 项目升级</a>";
|
|
|
- }
|
|
|
- }
|
|
|
- if(d.projectReportStatus == 5){
|
|
|
- if (d.projectReportStatusTwo != 5 && d.projectReportStatusTwo != 2){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改报告质量复核信息', '${ctx}/ruralProject/ruralProjectMessageNew/reviewForm?companyType=${companyType}&projectId=" + d.id +"&view=reloadReport&edit=reviewAgain','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 重新复核</a>";
|
|
|
- }
|
|
|
- }
|
|
|
- </shiro:hasPermission>
|
|
|
-
|
|
|
- <shiro:hasPermission name="ruralProject:ruralCostProjectMessage:reportedProvincialStanding">
|
|
|
- if(d.reportedState == 5 || d.reportedState == 7){
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralCostProjectMessageNew/submitReportedProvincialStanding?companyType=${companyType}&id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 提交省站</a>";
|
|
|
- }
|
|
|
- </shiro:hasPermission>
|
|
|
-
|
|
|
-
|
|
|
- xml+="</div>";
|
|
|
- return[xml].join('');
|
|
|
- }}
|
|
|
+ ,{align:'center',title:"操作",width:150,templet:'#barDemo'}
|
|
|
|
|
|
]]
|
|
|
,data: [
|