|
|
|
@ -353,7 +353,6 @@ export class KeyUnitManagementComponent implements OnInit {
|
|
|
|
|
IntegrityScoreMax:this.integrityScoreMax/100||1 |
|
|
|
|
} |
|
|
|
|
this.http.get("/api/Companies",{params:paramsdata}).subscribe((data:any)=>{ |
|
|
|
|
console.log(data) |
|
|
|
|
this.length = data.totalCount |
|
|
|
|
this.allKeyUnitInfo = data |
|
|
|
|
// data.items.sort( (a,b) => {
|
|
|
|
@ -429,11 +428,33 @@ export class KeyUnitManagementComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
selectedunitArr:any =[] //选中单位的数组
|
|
|
|
|
//勾选框事件
|
|
|
|
|
verifyState //判断是否可以修改
|
|
|
|
|
checkChange(e,element){ |
|
|
|
|
console.log(element) |
|
|
|
|
if(element.contentVerify!=null){ |
|
|
|
|
this.verifyState=element.contentVerify.verifyState |
|
|
|
|
}else{ |
|
|
|
|
this.verifyState=null |
|
|
|
|
} |
|
|
|
|
element.checked = e.checked |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
checkClick(element){ |
|
|
|
|
if(element.contentVerify!=null){ |
|
|
|
|
if(element.contentVerify.verifyState==0||element.contentVerify.verifyState==3){ |
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('该单位正在审核不能选中','确定',config); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//编辑单位信息
|
|
|
|
|
editunit(){ |
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
let selectedunitArr = [] |
|
|
|
|
let selectedunitobj = [] |
|
|
|
|
this.allKeyUnitInfo.items.forEach(item => { |
|
|
|
@ -444,9 +465,6 @@ export class KeyUnitManagementComponent implements OnInit {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if(selectedunitArr.length == 0){ |
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('请先选择要修改的单位','确定',config); |
|
|
|
|
} |
|
|
|
|
if(selectedunitArr.length != 1 && selectedunitArr.length != 0){ |
|
|
|
@ -492,7 +510,13 @@ export class KeyUnitManagementComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
//删除单位信息
|
|
|
|
|
deleteunit(){ |
|
|
|
|
let selectedunitArr = [] |
|
|
|
|
if(this.verifyState==0||this.verifyState==3){ |
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('审核中,不能删除','确定',config); |
|
|
|
|
}else{ |
|
|
|
|
let selectedunitArr = [] |
|
|
|
|
this.allKeyUnitInfo.items.forEach(item => { |
|
|
|
|
if(item.checked){ |
|
|
|
|
selectedunitArr.push(item.id) |
|
|
|
@ -524,6 +548,8 @@ export class KeyUnitManagementComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -666,10 +692,20 @@ export class KeyUnitManagementComponent implements OnInit {
|
|
|
|
|
verifyState:-1, |
|
|
|
|
contentType:11 |
|
|
|
|
} |
|
|
|
|
this.http.put(`/api/ContentVerifies`,body).subscribe(data=>{ |
|
|
|
|
this.http.delete(`/api/ContentVerifies/${element.contentVerify.id}`).subscribe(data=>{ |
|
|
|
|
this.getAllKeyUnit() |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
//审核结果
|
|
|
|
|
auditResult(element){ |
|
|
|
|
// console.log(element)
|
|
|
|
|
const dialogRef = this.dialog.open(companyAuditResult, { |
|
|
|
|
width:"400px", |
|
|
|
|
//height:"300px",
|
|
|
|
|
data: {element:element} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -792,3 +828,33 @@ export class upname{
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//查看审核结果
|
|
|
|
|
@Component({ |
|
|
|
|
selector: 'resultmeet', |
|
|
|
|
templateUrl: './resultcompanyPlan.html', |
|
|
|
|
styleUrls: ['./key-unit-management.component.scss'] |
|
|
|
|
}) |
|
|
|
|
export class companyAuditResult{ |
|
|
|
|
constructor(private http: HttpClient,public dialogRef: MatDialogRef<companyAuditResult>,@Inject(MAT_DIALOG_DATA) public data,public snackBar: MatSnackBar) {} |
|
|
|
|
planName:any = this.data.element.name |
|
|
|
|
createTime='' |
|
|
|
|
organizationName=this.data.element.organizationName |
|
|
|
|
verifyTime='' |
|
|
|
|
remark='' |
|
|
|
|
verifyOrganizationName |
|
|
|
|
verifyState=100 |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
if(this.data.element.contentVerify!=null){ |
|
|
|
|
this.createTime=this.data.element.contentVerify.createTime |
|
|
|
|
//this.organizationName=this.data.element.organizationName
|
|
|
|
|
this.verifyTime=this.data.element.contentVerify.verifyTime |
|
|
|
|
this.remark=this.data.element.remark |
|
|
|
|
this.verifyState=this.data.element.contentVerify.verifyState |
|
|
|
|
this.verifyOrganizationName=this.data.element.contentVerify.verifyOrganizationName |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
onNoClick(): void { |
|
|
|
|
this.dialogRef.close(); |
|
|
|
|
} |
|
|
|
|
} |