diff --git a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts index 6b72b2c..d9c11b7 100644 --- a/src/app/plan-audit/wait-examineer/wait-examineer.component.ts +++ b/src/app/plan-audit/wait-examineer/wait-examineer.component.ts @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2020-12-25 16:13:50 * @LastEditors: sueRimn - * @LastEditTime: 2021-03-02 10:29:47 + * @LastEditTime: 2021-03-02 15:12:43 */ import { Component, Inject, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; @@ -328,6 +328,7 @@ export class WaitExamineerComponent implements OnInit { //同意操作 agree(){ var agreeList=[] + var companyAgreeList=[] const config = new MatSnackBarConfig(); config.verticalPosition = 'top'; config.duration = 3000 @@ -367,18 +368,34 @@ export class WaitExamineerComponent implements OnInit { } //批量审核 else{ - for(var i=0;i{ + this.snackBar.open('操作成功!','确定',config); + this.getAlltabledate() + }) + }else{ //批量审核预案 + for(var i=0;i{ + this.snackBar.open('操作成功!','确定',config); + this.getAlltabledate() + }) } - this.http.put(`/api/PlanAudits/Batch`,agreeList).subscribe(data=>{ - this.snackBar.open('操作成功!','确定',config); - this.getAlltabledate() - }) + } this.shenheTable=[] } @@ -388,6 +405,7 @@ export class WaitExamineerComponent implements OnInit { config.verticalPosition = 'top'; config.duration = 3000 var refuseList=[] + var companyrefuseList=[] if(this.shenheTable.length==0){ this.snackBar.open('请选择要审核的预案!','确定',config); } @@ -424,18 +442,34 @@ export class WaitExamineerComponent implements OnInit { } //批量审核 else{ - for(var i=0;i{ + this.snackBar.open('操作成功!','确定',config); + this.getAlltabledate() + }) + }else{ + for(var i=0;i{ + this.snackBar.open('操作成功!','确定',config); + this.getAlltabledate() + }) } - this.http.put(`/api/PlanAudits/Batch`,refuseList).subscribe(data=>{ - this.snackBar.open('操作成功!','确定',config); - this.getAlltabledate() - }) + } this.shenheTable=[]