|
|
|
@ -277,15 +277,20 @@ export class EntryPlanLookComponent implements OnInit {
|
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
if(element.auditStatus == 4){ |
|
|
|
|
/* if(element.auditStatus == 4){ |
|
|
|
|
this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config); |
|
|
|
|
}else{ |
|
|
|
|
} */ |
|
|
|
|
if(element.planType == 1){//如果提交审核的是二维预案
|
|
|
|
|
this.http.put(`/api/PlanComponents2D/${element.id}/Commit`,"").subscribe(data=>{ |
|
|
|
|
this.getAllPlanComponents() |
|
|
|
|
},err => { |
|
|
|
|
this.snackBar.open(err,'确定',config); |
|
|
|
|
}) |
|
|
|
|
if(element.auditStatus ==8){ |
|
|
|
|
this.http.put(`/api/PlanComponents2D/${element.id}/Commit`,"").subscribe(data=>{ |
|
|
|
|
this.getAllPlanComponents() |
|
|
|
|
},err => { |
|
|
|
|
this.snackBar.open(err,'确定',config); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
this.snackBar.open('审核退回的预案需要修改后方可再次提交审核!','确定',config); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.http.put(`/api/PlanComponents/${element.id}/Commit`,"").subscribe(data=>{ |
|
|
|
|
this.getAllPlanComponents() |
|
|
|
@ -293,7 +298,7 @@ export class EntryPlanLookComponent implements OnInit {
|
|
|
|
|
this.snackBar.open(err,'确定',config); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
//撤销审核
|
|
|
|
|