|
|
|
@ -180,6 +180,18 @@ export class EntryPlanLookComponent implements OnInit {
|
|
|
|
|
if (e.auditStatus == 8) { |
|
|
|
|
if (e.planType == 1) { //如果是在线编辑
|
|
|
|
|
let id = e.id |
|
|
|
|
let body = {}; |
|
|
|
|
let resetAudit = true |
|
|
|
|
let headers = new HttpHeaders({ |
|
|
|
|
'Content-Type': 'text/json' |
|
|
|
|
}); |
|
|
|
|
let options = { |
|
|
|
|
headers |
|
|
|
|
}; |
|
|
|
|
this.http.put(`/api/PlanComponents/${e.id}?resetAudit=${resetAudit}`, body, options).subscribe(data => { |
|
|
|
|
this.getAllPlanComponents() |
|
|
|
|
// this.lookPlan(e)
|
|
|
|
|
}) |
|
|
|
|
sessionStorage.setItem("planId", id) |
|
|
|
|
sessionStorage.setItem("companyId", this.companyId) |
|
|
|
|
sessionStorage.setItem("buildingTypeId", this.unittypeId) |
|
|
|
@ -239,6 +251,20 @@ export class EntryPlanLookComponent implements OnInit {
|
|
|
|
|
//let isTrue = confirm('编辑后审核状态会成为未审核状态,您确定要编辑吗')
|
|
|
|
|
if (e.planType == 1) { //如果是在线编辑
|
|
|
|
|
let id = e.id |
|
|
|
|
let body = {}; |
|
|
|
|
let resetAudit = true |
|
|
|
|
let headers = new HttpHeaders({ |
|
|
|
|
'Content-Type': 'text/json' |
|
|
|
|
}); |
|
|
|
|
let options = { |
|
|
|
|
headers |
|
|
|
|
}; |
|
|
|
|
this.http.put(`/api/PlanComponents/${e.id}?resetAudit=${resetAudit}`, body, options).subscribe(data => { |
|
|
|
|
this.getAllPlanComponents() |
|
|
|
|
// this.lookPlan(e)
|
|
|
|
|
}/* ,err => { |
|
|
|
|
this.snackBar.open(err,'确定',config); |
|
|
|
|
} */) |
|
|
|
|
sessionStorage.setItem("planId", id) |
|
|
|
|
sessionStorage.setItem("companyId", this.companyId) |
|
|
|
|
sessionStorage.setItem("buildingTypeId", this.unittypeId) |
|
|
|
|