|
@@ -371,44 +371,55 @@
|
|
|
|
|
|
|
|
|
function complain(d){//操作中显示的内容
|
|
|
- if(1 == d.operationSign) {
|
|
|
+ if(d.pid=="0") {
|
|
|
+ if(1 == d.operationSign) {
|
|
|
return [
|
|
|
'<a href="javascript:void(0)" onclick="openDialogWork1(\'领取报告号\', \'${ctx}/projectreportnum/projectReportNum/skipMethod?reportType=${reportType}&projectId='+d.id+'\',\'60%\',\'95%\',false,\'inputForm\')" style=\"color: white;background: darkseagreen\" class="op-btn op-btn-add" ><i class="fa fa-plus"></i> 领取报告号</a>',
|
|
|
].join('');
|
|
|
- } else if (d.pid!="0"){
|
|
|
-
|
|
|
-
|
|
|
- if(d.status == 1){
|
|
|
- return [
|
|
|
- '<a href="javascript:void(0)" onclick="openDialogres(\'修改报告\', \'${ctx}/projectcontentinfo/projectcontentinfo/form?view=report&condition=completion&flag=edit&dictType=${dictType}&id='+d.contentPId+'&parentIds=${parentIds}&projectReportData.id='+d.reportId+'\',\'95%\',\'95%\')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 修改</a>',
|
|
|
- '<a href="${ctx}/projectcontentinfo/projectcontentinfo/delete?infoId='+d.reportId+'&condition=completion&id='+d.contentPId+'&type=8" onclick="return confirmxRefresh(\'确认要删除该工作内容报告吗?\', this.href)" class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>',
|
|
|
- ].join('');
|
|
|
- }else if(d.status == 2){
|
|
|
- return [
|
|
|
- '<a href="${ctx}/projectcontentinfo/projectcontentinfo/cancelInvalidate?infoId='+d.reportId+'&id='+d.contentPId+'&type=8" onclick="return confirmxRefresh(\'确认要撤回该工作内容报告吗?\', this.href)" class="op-btn op-btn-cancel"><i class="glyphicon glyphicon-share-alt"></i> 撤回</a>',
|
|
|
- ].join('');
|
|
|
- }else if(d.status == 3){
|
|
|
- return [
|
|
|
- '<a href="javascript:void(0)" onclick="openDialogreAudit(\'修改报告\', \'${ctx}/projectcontentinfo/projectcontentinfo/form?view=report&condition=completion&flag=edit&dictType=${dictType}&id='+d.contentPId+'&parentIds=${parentIds}&projectReportData.id='+d.reportId+'&projectId='+d.projectId+ '\',\'95%\',\'95%\')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 修改</a>',
|
|
|
- '<a href="${ctx}/projectcontentinfo/projectcontentinfo/delete?infoId='+d.reportId+'&condition=accocompletionrding&id='+d.contentPId+'&type=8" onclick="return confirmxRefresh(\'确认要删除该工作内容报告吗?\', this.href)" class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>',
|
|
|
- ].join('');
|
|
|
- }else if(d.status == 4){
|
|
|
- return [
|
|
|
- '<a href="javascript:void(0)" onclick="openDialogreAudit(\'修改报告\', \'${ctx}/projectcontentinfo/projectcontentinfo/form?view=reportModify&flag=edit&condition=completion&dictType=${dictType}&id='+d.contentPId+'&parentIds=${parentIds}&projectReportData.id='+d.reportId+'&projectId='+d.projectId+ '\',\'95%\',\'95%\')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 修改</a>',
|
|
|
- '<a href="${ctx}/projectcontentinfo/projectcontentinfo/delete?infoId='+d.reportId+'&condition=completion&id='+d.contentPId+'&type=8" onclick="return confirmxRefresh(\'确认要删除该工作内容报告吗?\', this.href)" class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>',
|
|
|
- ].join('');
|
|
|
- }else if(d.status == 5){
|
|
|
+ }else{
|
|
|
return [
|
|
|
- /*'<a href="javascript:void(0)" onclick="openDialogres(\'报告作废\', \'${ctx}/projectcontentinfo/projectcontentinfo/form?view=reportInvalid&dictType=${dictType}&id='+d.contentPId+'&parentIds=${parentIds}&projectReportData.id='+d.reportId+'\',\'95%\',\'95%\')" class="op-btn op-btn-invalid" ><i class="fa fa-trash-o"></i> 作废</a>',*/
|
|
|
+ '',
|
|
|
].join('');
|
|
|
- }else if(d.status == null || d.status == '' || d.status == 10){
|
|
|
+ }
|
|
|
+ } else if (d.pid!="0"){
|
|
|
+ if(1 == d.operationSign) {
|
|
|
+
|
|
|
+ if(d.status == 1){
|
|
|
+ return [
|
|
|
+ '<a href="javascript:void(0)" onclick="openDialogres(\'修改报告\', \'${ctx}/projectcontentinfo/projectcontentinfo/form?view=report&condition=completion&flag=edit&dictType=${dictType}&id='+d.contentPId+'&parentIds=${parentIds}&projectReportData.id='+d.reportId+'\',\'95%\',\'95%\')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 修改</a>',
|
|
|
+ '<a href="${ctx}/projectcontentinfo/projectcontentinfo/delete?infoId='+d.reportId+'&condition=completion&id='+d.contentPId+'&type=8" onclick="return confirmxRefresh(\'确认要删除该工作内容报告吗?\', this.href)" class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>',
|
|
|
+ ].join('');
|
|
|
+ }else if(d.status == 2){
|
|
|
+ return [
|
|
|
+ '<a href="${ctx}/projectcontentinfo/projectcontentinfo/cancelInvalidate?infoId='+d.reportId+'&id='+d.contentPId+'&type=8" onclick="return confirmxRefresh(\'确认要撤回该工作内容报告吗?\', this.href)" class="op-btn op-btn-cancel"><i class="glyphicon glyphicon-share-alt"></i> 撤回</a>',
|
|
|
+ ].join('');
|
|
|
+ }else if(d.status == 3){
|
|
|
+ return [
|
|
|
+ '<a href="javascript:void(0)" onclick="openDialogreAudit(\'修改报告\', \'${ctx}/projectcontentinfo/projectcontentinfo/form?view=report&condition=completion&flag=edit&dictType=${dictType}&id='+d.contentPId+'&parentIds=${parentIds}&projectReportData.id='+d.reportId+'&projectId='+d.projectId+ '\',\'95%\',\'95%\')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 修改</a>',
|
|
|
+ '<a href="${ctx}/projectcontentinfo/projectcontentinfo/delete?infoId='+d.reportId+'&condition=accocompletionrding&id='+d.contentPId+'&type=8" onclick="return confirmxRefresh(\'确认要删除该工作内容报告吗?\', this.href)" class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>',
|
|
|
+ ].join('');
|
|
|
+ }else if(d.status == 4){
|
|
|
+ return [
|
|
|
+ '<a href="javascript:void(0)" onclick="openDialogreAudit(\'修改报告\', \'${ctx}/projectcontentinfo/projectcontentinfo/form?view=reportModify&flag=edit&condition=completion&dictType=${dictType}&id='+d.contentPId+'&parentIds=${parentIds}&projectReportData.id='+d.reportId+'&projectId='+d.projectId+ '\',\'95%\',\'95%\')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 修改</a>',
|
|
|
+ '<a href="${ctx}/projectcontentinfo/projectcontentinfo/delete?infoId='+d.reportId+'&condition=completion&id='+d.contentPId+'&type=8" onclick="return confirmxRefresh(\'确认要删除该工作内容报告吗?\', this.href)" class="op-btn op-btn-delete"><i class="fa fa-trash"></i> 删除</a>',
|
|
|
+ ].join('');
|
|
|
+ }else if(d.status == 5){
|
|
|
+ return [
|
|
|
+ /*'<a href="javascript:void(0)" onclick="openDialogres(\'报告作废\', \'${ctx}/projectcontentinfo/projectcontentinfo/form?view=reportInvalid&dictType=${dictType}&id='+d.contentPId+'&parentIds=${parentIds}&projectReportData.id='+d.reportId+'\',\'95%\',\'95%\')" class="op-btn op-btn-invalid" ><i class="fa fa-trash-o"></i> 作废</a>',*/
|
|
|
+ ].join('');
|
|
|
+ }else if(d.status == null || d.status == '' || d.status == 10){
|
|
|
+ return [
|
|
|
+ '<a href="javascript:void(0)" onclick="openDialogres(\'复核\', \'${ctx}/project/projectCompletionReview/reviewForm?condition=completion&view=report&dictType='+d.dictType+'&project.id='+d.pid+'&id='+d.contentPId+'&parentIds='+d.parentIds+'&infoId='+d.id+'&projectId='+d.projectId+ '\',\'95%\',\'95%\')" class="op-btn op-btn-edit" ><i class="fa fa-plus"></i> 复核</a>',
|
|
|
+ ].join('');
|
|
|
+ }else{
|
|
|
+ return[''].join('');
|
|
|
+ }
|
|
|
+ }else{
|
|
|
return [
|
|
|
- '<a href="javascript:void(0)" onclick="openDialogres(\'复核\', \'${ctx}/project/projectCompletionReview/reviewForm?condition=completion&view=report&dictType='+d.dictType+'&project.id='+d.pid+'&id='+d.contentPId+'&parentIds='+d.parentIds+'&infoId='+d.id+'&projectId='+d.projectId+ '\',\'95%\',\'95%\')" class="op-btn op-btn-edit" ><i class="fa fa-plus"></i> 复核</a>',
|
|
|
+ '',
|
|
|
].join('');
|
|
|
- }else{
|
|
|
- return[''].join('');
|
|
|
}
|
|
|
- }else{
|
|
|
+ }else{
|
|
|
return[''].join('');
|
|
|
}
|
|
|
}
|