|
|
@ -334,10 +334,12 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
config.duration = 3000 |
|
|
|
config.duration = 3000 |
|
|
|
console.log(this.shenheTable) |
|
|
|
console.log(this.shenheTable) |
|
|
|
if(this.shenheTable.length==0){ |
|
|
|
if(this.shenheTable.length==0){ |
|
|
|
this.snackBar.open('请选择要审核的预案!','确定',config); |
|
|
|
this.snackBar.open('请勾选要审核的条目!','确定',config); |
|
|
|
} |
|
|
|
} |
|
|
|
//单个审核
|
|
|
|
//单个审核
|
|
|
|
else if(this.shenheTable.length == 1){ |
|
|
|
else if(this.shenheTable.length == 1){ |
|
|
|
|
|
|
|
let isTrue = window.confirm('确定同意选中条目的审核吗?') |
|
|
|
|
|
|
|
if(isTrue){ |
|
|
|
//重点单位审核
|
|
|
|
//重点单位审核
|
|
|
|
if(this.shenheTable[0].contentType == 11){ |
|
|
|
if(this.shenheTable[0].contentType == 11){ |
|
|
|
let body:any = { |
|
|
|
let body:any = { |
|
|
@ -351,6 +353,23 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
this.snackBar.open('操作成功!','确定',config); |
|
|
|
this.snackBar.open('操作成功!','确定',config); |
|
|
|
this.getAlltabledate() |
|
|
|
this.getAlltabledate() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
}else if(this.shenheTable[0].contentType == 12){ |
|
|
|
|
|
|
|
let body:any = { |
|
|
|
|
|
|
|
id:this.shenheTable[0].id, |
|
|
|
|
|
|
|
itemId:this.shenheTable[0].itemId, |
|
|
|
|
|
|
|
verifyState:4, |
|
|
|
|
|
|
|
contentType:12, |
|
|
|
|
|
|
|
title:this.shenheTable[0].title |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.http.put(`/api/ContentVerifies`,body).subscribe(data=>{ |
|
|
|
|
|
|
|
this.snackBar.open('操作成功!','确定',config); |
|
|
|
|
|
|
|
this.showtype = -1 |
|
|
|
|
|
|
|
this.getAlltabledate() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}else if(this.shenheTable[0].contentType == 13){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else if(this.shenheTable[0].contentType == 14){ |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
//预案审核
|
|
|
|
//预案审核
|
|
|
|
if(this.shenheTable[0].verifyState==0){ |
|
|
|
if(this.shenheTable[0].verifyState==0){ |
|
|
@ -366,8 +385,11 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
//批量审核
|
|
|
|
//批量审核
|
|
|
|
else{ |
|
|
|
else{ |
|
|
|
|
|
|
|
let isTrue = window.confirm('确定同意选中条目的审核吗?') |
|
|
|
|
|
|
|
if(isTrue){ |
|
|
|
if(this.shenheTable[0].contentType==11||this.shenheTable[0].contentType==12){ //批量审批水源和重点单位
|
|
|
|
if(this.shenheTable[0].contentType==11||this.shenheTable[0].contentType==12){ //批量审批水源和重点单位
|
|
|
|
for(var i=0;i<this.shenheTable.length;i++){ |
|
|
|
for(var i=0;i<this.shenheTable.length;i++){ |
|
|
|
var body={ |
|
|
|
var body={ |
|
|
@ -397,6 +419,8 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
this.shenheTable=[] |
|
|
|
this.shenheTable=[] |
|
|
|
} |
|
|
|
} |
|
|
|
//拒绝操作
|
|
|
|
//拒绝操作
|
|
|
@ -411,6 +435,8 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
} |
|
|
|
} |
|
|
|
//单个审核拒绝
|
|
|
|
//单个审核拒绝
|
|
|
|
else if(this.shenheTable.length==1){ |
|
|
|
else if(this.shenheTable.length==1){ |
|
|
|
|
|
|
|
let isTrue = window.confirm('确定拒绝选中条目的审核吗?') |
|
|
|
|
|
|
|
if(isTrue){ |
|
|
|
//重点单位审核拒绝
|
|
|
|
//重点单位审核拒绝
|
|
|
|
if(this.shenheTable[0].contentType == 11){ |
|
|
|
if(this.shenheTable[0].contentType == 11){ |
|
|
|
let body:any = { |
|
|
|
let body:any = { |
|
|
@ -424,6 +450,23 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
this.snackBar.open('操作成功!','确定',config); |
|
|
|
this.snackBar.open('操作成功!','确定',config); |
|
|
|
this.getAlltabledate() |
|
|
|
this.getAlltabledate() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
}else if(this.shenheTable[0].contentType == 12){ |
|
|
|
|
|
|
|
let body:any = { |
|
|
|
|
|
|
|
id:this.shenheTable[0].id, |
|
|
|
|
|
|
|
itemId:this.shenheTable[0].itemId, |
|
|
|
|
|
|
|
verifyState:5, |
|
|
|
|
|
|
|
contentType:12, |
|
|
|
|
|
|
|
title:this.shenheTable[0].title |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.http.put(`/api/ContentVerifies`,body).subscribe(data=>{ |
|
|
|
|
|
|
|
this.showtype = -1 |
|
|
|
|
|
|
|
this.snackBar.open('操作成功!','确定',config); |
|
|
|
|
|
|
|
this.getAlltabledate() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}else if(this.shenheTable[0].contentType == 13){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else if(this.shenheTable[0].contentType == 14){ |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
//预案审核拒绝
|
|
|
|
//预案审核拒绝
|
|
|
|
if(this.shenheTable[0].verifyState==0){ |
|
|
|
if(this.shenheTable[0].verifyState==0){ |
|
|
@ -438,10 +481,12 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//批量审核
|
|
|
|
//批量审核
|
|
|
|
else{ |
|
|
|
else{ |
|
|
|
|
|
|
|
let isTrue = window.confirm('确定拒绝选中条目的审核吗?') |
|
|
|
|
|
|
|
if(isTrue){ |
|
|
|
if(this.shenheTable[0].contentType==11||this.shenheTable[0].contentType==12){ //批量审批水源和重点单位
|
|
|
|
if(this.shenheTable[0].contentType==11||this.shenheTable[0].contentType==12){ //批量审批水源和重点单位
|
|
|
|
for(var i=0;i<this.shenheTable.length;i++){ |
|
|
|
for(var i=0;i<this.shenheTable.length;i++){ |
|
|
|
var body={ |
|
|
|
var body={ |
|
|
@ -469,7 +514,7 @@ export class WaitExamineerComponent implements OnInit { |
|
|
|
this.getAlltabledate() |
|
|
|
this.getAlltabledate() |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.shenheTable=[] |
|
|
|
this.shenheTable=[] |
|
|
|
|
|
|
|
|
|
|
|