|
@@ -545,318 +545,62 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
- 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/ruralCostProjectMessageNew/form?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/ruralCostProjectMessageNew/form?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/ruralCostProjectMessage/revoke?id=" + d.id + "&processInstanceId=" + d.procId + "\" 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.projectReportStatus == 3){
|
|
|
|
- //撤回操作
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整报告质量复核信息', '${ctx}/ruralProject/ruralCostProjectMessageNew/modify?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/ruralCostProjectMessageNew/modify?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/ruralCostProjectMessage/modify?projectId=" + d.id + "&view=report','"+d.id+"','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改质量复核4</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 == 5){
|
|
|
|
- if(undefined != d.qualitySignatureFlag && null != d.qualitySignatureFlag && "" != d.qualitySignatureFlag){
|
|
|
|
- if(undefined != d.qualitySignatureContractId && null != d.qualitySignatureContractId && "" != d.qualitySignatureContractId){
|
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/signatureCallBack/downLoadJudgementReportAttach?contractId="+ d.qualitySignatureContractId +"\" class=\"layui-btn layui-btn-xs layui-bg-orange\" style='height:32px;margin-top: 5px;margin-bottom: 5px;'>审定单签章下载</a>"
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
|
|
- //报告签发操作
|
|
|
|
- if(d.projectReportStatus == 5 && d.emergencyProject != 1){
|
|
|
|
|
|
+ function openDialogreMaterialStorage(title,url,width,height,target,buttons) {
|
|
|
|
|
|
- if(d.projectReportStatusTwo == 0){
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('报告签发', '${ctx}/ruralProject/ruralProjectMessageNewTwo/form?projectId=" + d.id +"&view=costLiu','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;' > 报告签发</a>";
|
|
|
|
- }
|
|
|
|
- if(d.projectReportStatusTwo == 1){
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改报告签发', '${ctx}/ruralProject/ruralProjectMessageNewTwo/form?projectId=" + d.id +"&view=costLiu','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?projectId=" + d.id + "&view=costLiu\" 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?id=" + d.id + "&processInstanceId=" + d.prdtProcessinstanceId + "&view=costLiu\" 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 == 3){
|
|
|
|
- //撤回操作
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整报告签发', '${ctx}/ruralProject/ruralProjectMessageNewTwo/form?projectId=" + d.id + "&view=costLiu','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?projectId=" + d.id + "&view=costLiu\" 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?projectId=" + d.id + "&view=costLiuReport ','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?projectId=" + d.id + "&view=costLiu\" 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){
|
|
|
|
- if(8 != d.attachmentProjectSort){
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改报告质量复核信息', '${ctx}/ruralProject/ruralCostProjectMessageNew/form?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?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){
|
|
|
|
- if(8 != d.attachmentProjectSort){
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改报告质量复核信息', '${ctx}/ruralProject/ruralCostProjectMessageNew/form?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?id=" + d.prrId +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg- layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;' > 线上重新归档</a>";
|
|
|
|
- }
|
|
|
|
- if(d.projectReportRecordStatus == 2){
|
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/cancelInvalidate?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){
|
|
|
|
- if(8 != d.attachmentProjectSort){
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改报告质量复核信息', '${ctx}/ruralProject/ruralCostProjectMessageNew/form?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?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?id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 线上重新归档1</a>";--%>
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessageNewTwo/formRecordUrgentModify?id=" + d.prrId + "&view=urgent','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/formRecordUrgentModify?id=" + d.prrId + "&view=urgent ','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\" > 线上重新归档2</a>";--%>
|
|
|
|
- }else{
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralCostProjectMessage/formRecordModify?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?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?id=" + d.prrId +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg- layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;' > 线上重新归档</a>";
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- if(d.projectReportRecordStatus == 2){
|
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/cancelInvalidate?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?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?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?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?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?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.defectRecordStatus==2){
|
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/cancelDescription?id=" + d.pmdrId + "&processInstanceId=" + d.pmdrProcessInstanceId + "\" 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?id=" + d.pmdrId + "&reportId=" + 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}/projectReportDefectRecord/projectReportDefectRecord/delete?id=" + d.pmdrId + "&status="+d.defectRecordStatus+"\" 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?id=" + d.pmdrId+ "&reportId=" + d.id+"&view=modify','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?id=" + d.pmdrId + "&status="+d.defectRecordStatus+"\" 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?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.defectRecordStatus==2){
|
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/cancelDescription?id=" + d.pmdrId + "&processInstanceId=" + d.pmdrProcessInstanceId + "\" 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?id=" + d.pmdrId + "&reportId=" + 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}/projectReportDefectRecord/projectReportDefectRecord/delete?id=" + d.pmdrId + "&status="+d.defectRecordStatus+"\" 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?id=" + d.pmdrId+ "&reportId=" + d.id+"&view=modify','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?id=" + d.pmdrId + "&status="+d.defectRecordStatus+"\" 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 (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) {//如果是移动端,就使用自适应大小弹窗
|
|
|
|
+ width = 'auto';
|
|
|
|
+ height = 'auto';
|
|
|
|
+ } else {//如果是PC端,根据用户设置的width和height显示。
|
|
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ var split = buttons.split(",");
|
|
|
|
+ top.layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ area: [width, height],
|
|
|
|
+ title: title,
|
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
|
+ skin: 'three-btns',
|
|
|
|
+ content: url,
|
|
|
|
+ btn: split,
|
|
|
|
+ btn1: function(index, layero){
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
}
|
|
}
|
|
- }
|
|
|
|
- /*上报相关按钮*/
|
|
|
|
- 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/ruralCostProjectMessageNew/updateReported?id=" + d.id + " ','95%', '95%','','上报,暂存,关闭')\" 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/ruralCostProjectMessage/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/ruralCostProjectMessageNew/updateReported?id=" + 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.reportedState == 2){
|
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/cancelInvalidateByReported?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/ruralCostProjectMessageNew/updateReported?id=" + 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.reportedState == 4){
|
|
|
|
- //驳回操作
|
|
|
|
- // if(d.newReportedNotifyFlag == 1){
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralCostProjectMessageNew/reportedModify?id=" + 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=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralCostProjectMessage/reportedModify?id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改上报</a>";--%>
|
|
|
|
- <%--}--%>
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ if(iframeWin.contentWindow.doSubmit(1) ){
|
|
|
|
+ // top.layer.close(index);//关闭对话框。
|
|
|
|
+ setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
}
|
|
}
|
|
- }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/ruralCostProjectMessageNew/updateReported?id=" + d.id + " ','95%', '95%','','上报,暂存,关闭')\" 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/ruralCostProjectMessage/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/ruralCostProjectMessageNew/updateReported?id=" + 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.reportedState == 2){
|
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralCostProjectMessage/cancelInvalidateByReported?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/ruralCostProjectMessageNew/updateReported?id=" + 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.reportedState == 4){
|
|
|
|
- //驳回操作
|
|
|
|
- // if(d.newReportedNotifyFlag == 1){
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralCostProjectMessageNew/reportedModify?id=" + 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=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralCostProjectMessage/reportedModify?id=" + d.id + " ','95%', '95%','','上报,关闭')\" style='background-color: #1E9FFF' class=\"layui-btn layui-btn-xs layui-bg-green\" > 修改上报</a>";--%>
|
|
|
|
-
|
|
|
|
- <%--}--%>
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ btn2:function(index,layero){
|
|
|
|
+ if(split.length==2){return}
|
|
|
|
+ var body = top.layer.getChildFrame('body', index);
|
|
|
|
+ var iframeWin = layero.find('iframe')[0]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
|
|
|
+ var inputForm = body.find('#inputForm');
|
|
|
|
+ var top_iframe;
|
|
|
|
+ if(target){
|
|
|
|
+ top_iframe = target;//如果指定了iframe,则在改frame中跳转
|
|
|
|
+ }else{
|
|
|
|
+ top_iframe = top.getActiveTab().attr("name");//获取当前active的tab的iframe
|
|
}
|
|
}
|
|
- }
|
|
|
|
- /*纸质归档*/
|
|
|
|
- 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?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.paperFilingStatus == 2){
|
|
|
|
- xml+="<a href=\"${ctx}/paperFiling/paperFiling/cancelInvalidate?id=" + d.ppfId + "&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?id=" + d.ppfId + "&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 == 4){
|
|
|
|
- //驳回操作
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/paperFiling/paperFiling/modify?id=" + d.ppfId + "&projectId=" + d.id + "&processInstanceId=" + d.ppfProcessInstanceId + " ','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-green\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;' > 纸质重新归档</a>";
|
|
|
|
- }
|
|
|
|
|
|
+ inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
|
|
+ if(iframeWin.contentWindow.doSubmit(2) ){
|
|
|
|
+ // top.layer.close(index);//关闭对话框。
|
|
|
|
+ setTimeout(function(){top.layer.close(index)}, 100);//延时0.1秒,对应360 7.1版本bug
|
|
|
|
+ }else {
|
|
|
|
+ return false;
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ btn3: function (index) {
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
- if('1' == d.flagAdmin && d.projectReportStatus == 5)
|
|
|
|
- {
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改项目报告', '${ctx}/ruralProject/ruralCostProjectMessage/adminModifyForm?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/ruralCostProjectMessage/getReportModifyList?projectId=" + d.id + "','95%', '95%')\" class=\"layui-btn layui-btn-xs\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;' > 历史报告</a>";
|
|
|
|
- }
|
|
|
|
- if('1' == d.flagArchive && d.projectReportRecordStatus == 5)
|
|
|
|
- {
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改归档案卷号', '${ctx}/ruralProject/ruralCostProjectMessage/adminRecordModifyForm?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/ruralCostProjectMessage/adminEditForm?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?id=" + d.ppfId + "&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.projectReportStatus == 5){
|
|
|
|
- if (d.projectReportStatusTwo != 5 && d.projectReportStatusTwo != 2){
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改报告信息', '${ctx}/ruralProject/ruralCostProjectMessageNew/reviewForm?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>";
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- //项目升级按钮
|
|
|
|
- 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>";
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- </shiro:hasPermission>
|
|
|
|
- <shiro:hasPermission name="ruralProject:ruralCostProjectMessage:reportedProvincialStanding">
|
|
|
|
- if(d.reportedState == 5 || d.reportedState == 7){
|
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogreReportSwitch('上报管理', '${ctx}/ruralProject/ruralCostProjectMessageNew/submitReportedProvincialStanding?id=" + d.id + " ','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:RuralProjectRecordsCaseBase:canceCaseBase">
|
|
|
|
- if(d.reportedState == 5 && d.projectReportRecordStatus == 5){
|
|
|
|
- if(d.caseType == 1){
|
|
|
|
- xml+="<a href=\"javascript:void(0)\" onclick=\"deleteFun('${ctx}/ruralProject/RuralProjectRecordsCaseBase/canceCaseBase?projectId=" + d.id + "')\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;' > 撤销该案例项目</a>";
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- </shiro:hasPermission>
|
|
|
|
- xml+="</div>";
|
|
|
|
- return[xml].join('');
|
|
|
|
|
|
+ });
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style>
|
|
<style>
|
|
@@ -1020,6 +764,16 @@
|
|
</form:select>
|
|
</form:select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <div class="layui-item query athird ">
|
|
|
|
+ <label class="layui-form-label">案例文件审核:</label>
|
|
|
|
+ <div class="layui-input-block readOnlyFFF">
|
|
|
|
+ <form:select path="caseBaseStatus" class="form-control simple-select">
|
|
|
|
+ <form:option value="" label=""/>
|
|
|
|
+ <form:options items="${fns:getDictList('signature_status')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<div style="clear:both;"></div>
|
|
<div style="clear:both;"></div>
|
|
</div>
|
|
</div>
|
|
</form:form>
|
|
</form:form>
|
|
@@ -1034,11 +788,6 @@
|
|
<%-- <button class="layui-btn layui-btn-sm layui-bg-blue" id="btn-fold">全部折叠</button>--%>
|
|
<%-- <button class="layui-btn layui-btn-sm layui-bg-blue" id="btn-fold">全部折叠</button>--%>
|
|
<button class="layui-btn layui-btn-sm" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"> 刷新</button>
|
|
<button class="layui-btn layui-btn-sm" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"> 刷新</button>
|
|
</div>
|
|
</div>
|
|
- <shiro:hasPermission name="ruralProject:ruralCostProjectMessage:reportSwitch">
|
|
|
|
- <div style="float: right;margin-right: 30px;">
|
|
|
|
- <input type="checkbox" id="reportSwitch" <c:if test="${reportSwitch}">checked</c:if> lay-filter="reportSwitch" lay-skin="switch" lay-text="开启|关闭">
|
|
|
|
- </div>
|
|
|
|
- </shiro:hasPermission>
|
|
|
|
<div style="clear: both;"></div>
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
</div>
|
|
<table class="oa-table layui-table" id="contentTable1" lay-filter="test"></table>
|
|
<table class="oa-table layui-table" id="contentTable1" lay-filter="test"></table>
|
|
@@ -1051,9 +800,6 @@
|
|
</div>
|
|
</div>
|
|
<div id="changewidth"></div>
|
|
<div id="changewidth"></div>
|
|
</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>
|
|
<script>
|
|
layui.use(function() {
|
|
layui.use(function() {
|
|
//得到各种内置组件
|
|
//得到各种内置组件
|
|
@@ -1063,34 +809,6 @@
|
|
table.on('tool(test)', function (obj) { //注:tool 是工具条事件名,test 是 table 原始容器的属性 lay-filter="对应的值"
|
|
table.on('tool(test)', function (obj) { //注:tool 是工具条事件名,test 是 table 原始容器的属性 lay-filter="对应的值"
|
|
var data = obj.data //获得当前行数据
|
|
var data = obj.data //获得当前行数据
|
|
, layEvent = obj.event; //获得 lay-event 对应的值
|
|
, 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%);' //设置额外样式
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
|
|
});
|
|
});
|
|
})
|
|
})
|
|
@@ -1232,6 +950,15 @@
|
|
}
|
|
}
|
|
return xml;
|
|
return xml;
|
|
}}
|
|
}}
|
|
|
|
+ ,{align:'center', title: '案例文件审核', width:150,templet:function(d){
|
|
|
|
+ var st = getAuditState(d.caseAuditStatus);
|
|
|
|
+ if(st.action)
|
|
|
|
+ var xml = "<span onclick=\"openDialogView('流程追踪', '${ctx}/ruralProject/ruralCostProjectMessage/getReportedProcess?processInstanceId=" + d.caseAuditProcessId + "','95%','95%')\" class=\"new-status-label status-label-" + st.label + "\" >" + st.status+ "</span>";
|
|
|
|
+ else
|
|
|
|
+ var xml = "<span style=\"cursor:default;\" class=\"new-status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
|
|
+ return xml;
|
|
|
|
+ }}
|
|
|
|
+
|
|
<%--,{align:'center', title: '纸质', width:90,templet:function(d){--%>
|
|
<%--,{align:'center', title: '纸质', width:90,templet:function(d){--%>
|
|
<%-- var st = getRuralProjectArchiveState(d.paperFilingStatus);--%>
|
|
<%-- var st = getRuralProjectArchiveState(d.paperFilingStatus);--%>
|
|
<%-- if(st.action)--%>
|
|
<%-- if(st.action)--%>
|
|
@@ -1240,7 +967,23 @@
|
|
<%-- var xml = "<span style=\"cursor:default;\" class=\"new-status-label status-label-" + st.label + "\" >" + st.status + "</span>";--%>
|
|
<%-- var xml = "<span style=\"cursor:default;\" class=\"new-status-label status-label-" + st.label + "\" >" + st.status + "</span>";--%>
|
|
<%-- return xml;--%>
|
|
<%-- return xml;--%>
|
|
<%-- }}--%>
|
|
<%-- }}--%>
|
|
- ,{align:'center',title:"操作",width:150,templet:'#barDemo'}
|
|
|
|
|
|
+ ,{align:'center',title:"操作",width:260,templet:function(d){
|
|
|
|
+ var xml = "";
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <shiro:hasPermission name="project:projectMaterialStorage:add">
|
|
|
|
+ xml+="<a href=\"javascript:void(0)\" onclick=\"openDialogreMaterialStorage('添加项目材料信息', '${ctx}/project/projectMaterialStorage/form?id=" + d.id +"&storageFlag=caseBase"+"','95%', '95%','','提交,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;' > 材料库处理</a>";
|
|
|
|
+ </shiro:hasPermission>
|
|
|
|
+ //案例项目移除按钮
|
|
|
|
+ <shiro:hasPermission name="ruralProject:RuralProjectRecordsCaseBase:canceCaseBase">
|
|
|
|
+ if(d.reportedState == 5 && d.projectReportRecordStatus == 5){
|
|
|
|
+ if(d.caseType == 1){
|
|
|
|
+ xml+="<a href=\"javascript:void(0)\" onclick=\"deleteFun('${ctx}/ruralProject/RuralProjectRecordsCaseBase/canceCaseBase?projectId=" + d.id + "')\" class=\"layui-btn layui-btn-xs layui-bg-red\" style='height: 32px;margin-top: 5px;margin-bottom: 5px;' > 撤销该案例项目</a>";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ </shiro:hasPermission>
|
|
|
|
+ return xml;
|
|
|
|
+ }}
|
|
|
|
|
|
|
|
|
|
]]
|
|
]]
|
|
@@ -1297,6 +1040,9 @@
|
|
,"caseType":"${projectRecords.caseType}"
|
|
,"caseType":"${projectRecords.caseType}"
|
|
,"caseCreateBy":"${projectRecords.caseCreateBy}"
|
|
,"caseCreateBy":"${projectRecords.caseCreateBy}"
|
|
,"caseStatus":"${projectRecords.caseStatus}"
|
|
,"caseStatus":"${projectRecords.caseStatus}"
|
|
|
|
+ ,"caseAuditId":"${projectRecords.caseAuditId}"
|
|
|
|
+ ,"caseAuditStatus":"${projectRecords.caseAuditStatus}"
|
|
|
|
+ ,"caseAuditProcessId":"${projectRecords.caseAuditProcessId}"
|
|
,"falg":
|
|
,"falg":
|
|
<c:choose>
|
|
<c:choose>
|
|
<c:when test="${fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id}">
|
|
<c:when test="${fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id}">
|