|
|
|
@ -101,7 +101,7 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
chuorzhong; //判断初审还是终审
|
|
|
|
|
radioid; //选中的id
|
|
|
|
|
shenheTable = []; //选中要审核的对象
|
|
|
|
|
showtype = -1; //0:word,1:全景图,2:二维三维,3:重点单位
|
|
|
|
|
showtype: any = -1; //0:word,1:全景图,2:二维三维,3:重点单位
|
|
|
|
|
compantData = { name: "", buildingTypes: [], address: "" }; |
|
|
|
|
organizationName; |
|
|
|
|
planData; |
|
|
|
@ -111,7 +111,7 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
fetchUrl; |
|
|
|
|
companyName; |
|
|
|
|
plantypes; |
|
|
|
|
IsNewData:any = [true, false]; |
|
|
|
|
IsNewData: any = [true, false]; |
|
|
|
|
|
|
|
|
|
//获取表格数据
|
|
|
|
|
PageNumber = 1; |
|
|
|
@ -196,14 +196,18 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
differentContentOfPicture: any; //当前单位变更数据 之 实景图
|
|
|
|
|
bianzhi = false; |
|
|
|
|
radioClick(e, item) { |
|
|
|
|
console.log(item); |
|
|
|
|
//重置状态
|
|
|
|
|
this.showtype = -1; |
|
|
|
|
this.selectedItem = item; |
|
|
|
|
|
|
|
|
|
// console.log('当前选择的信息',JSON.parse(this.selectedItem.differentContent) )
|
|
|
|
|
this.organizationName = ""; |
|
|
|
|
this.itemid = item.itemId; |
|
|
|
|
this.id = item.id; |
|
|
|
|
this.fetchUrl = ""; |
|
|
|
|
this.viewer = {}; |
|
|
|
|
// 单位信息审核并且与上次有差异
|
|
|
|
|
if (item.contentType == 11 && this.selectedItem.differentContent) { |
|
|
|
|
let differentContent = JSON.parse(this.selectedItem.differentContent); |
|
|
|
|
|
|
|
|
|
//console.log('差异信息', differentContent)
|
|
|
|
|
|
|
|
|
|
// 单位信息
|
|
|
|
|
this.differentContentOfUnitInfo = differentContent.filter( |
|
|
|
|
(item) => item.propertyName == "basicInfo" |
|
|
|
@ -272,16 +276,7 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// console.log('功能分区', this.differentContentOfFunction)
|
|
|
|
|
|
|
|
|
|
this.showtype = -1; |
|
|
|
|
this.organizationName = ""; |
|
|
|
|
this.itemid = item.itemId; |
|
|
|
|
this.id = item.id; |
|
|
|
|
this.fetchUrl = ""; |
|
|
|
|
this.viewer = {}; |
|
|
|
|
|
|
|
|
|
// 单位信息审核
|
|
|
|
|
if (item.contentType == 11) { |
|
|
|
|
this.bianzhi = false; |
|
|
|
|
window.setTimeout(() => { |
|
|
|
@ -330,13 +325,17 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
this.showtype = 14; |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
// 预案相关审核
|
|
|
|
|
this.http |
|
|
|
|
.get(`/api/PlanComponents/${item.itemId}`) |
|
|
|
|
.subscribe((data: any) => { |
|
|
|
|
//console.log('预案信息',data)
|
|
|
|
|
console.log("预案信息", data); |
|
|
|
|
item.planData = data; |
|
|
|
|
this.companyId = data.companyId; |
|
|
|
|
this.companyName = data.companyName; |
|
|
|
|
if (data.planType != 2 && data.planType != 1) { |
|
|
|
|
// 不是二维也不是三维预案
|
|
|
|
|
if (data.planType != 1 && data.planType != 2) { |
|
|
|
|
//在线编辑或者自定义编辑预案
|
|
|
|
|
if (data.planMode == 2 || data.planMode == 4) { |
|
|
|
|
this.showtype = 0; |
|
|
|
|
this.bianzhi = true; |
|
|
|
@ -344,11 +343,11 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
this.iframeSrc = this.sanitizer.bypassSecurityTrustResourceUrl( |
|
|
|
|
this.src |
|
|
|
|
); |
|
|
|
|
//this.src=`/keyUnit/viewunitinfoplan?id=${data.companyId}&orName=${data.company.organizationId}&orId=${data.company.organizationName}`
|
|
|
|
|
} else { |
|
|
|
|
this.bianzhi = false; |
|
|
|
|
this.fetchUrl = data.attachmentUrls[0]; |
|
|
|
|
var index = this.fetchUrl.indexOf("/"); |
|
|
|
|
//如果是实景图
|
|
|
|
|
if (this.fetchUrl.substr(0, index) == "psw") { |
|
|
|
|
this.showtype = 1; |
|
|
|
|
var obj = document.getElementById("viewer"); |
|
|
|
@ -362,10 +361,12 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
//其余格式的文件
|
|
|
|
|
this.lookWord(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
//二三维预案查看
|
|
|
|
|
this.bianzhi = false; |
|
|
|
|
this.organizationName = item.organizationName; |
|
|
|
|
this.planData = data; |
|
|
|
@ -388,9 +389,7 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
//毕升
|
|
|
|
|
lookWord() { |
|
|
|
|
console.log("lookWord"); |
|
|
|
|
this.showtype = 0; |
|
|
|
|
//let src
|
|
|
|
|
let suffix = this.fetchUrl |
|
|
|
|
.split(".") |
|
|
|
|
[this.fetchUrl.split(".").length - 1].toLowerCase(); |
|
|
|
@ -400,7 +399,12 @@ export class WaitExamineerComponent implements OnInit {
|
|
|
|
|
this.src = `/api/Objects/PlanPlatform/` + arr.join("."); |
|
|
|
|
} else if (suffix == "pdf") { |
|
|
|
|
this.src = `/api/Objects/PlanPlatform/` + this.fetchUrl; |
|
|
|
|
} else { |
|
|
|
|
this.showtype = "img"; |
|
|
|
|
this.src = `/api/Objects/PlanPlatform/` + this.fetchUrl; |
|
|
|
|
} |
|
|
|
|
console.log("查看附件111", this.fetchUrl); |
|
|
|
|
console.log("查看附件222", this.src); |
|
|
|
|
this.iframeSrc = this.sanitizer.bypassSecurityTrustResourceUrl(this.src); |
|
|
|
|
} |
|
|
|
|
//查看按钮跳转
|
|
|
|
@ -726,12 +730,14 @@ export class remark {
|
|
|
|
|
} |
|
|
|
|
//确定
|
|
|
|
|
define() { |
|
|
|
|
console.log(this.data); |
|
|
|
|
// return;
|
|
|
|
|
//type == 1同意 type == 12拒绝
|
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = "top"; |
|
|
|
|
config.duration = 3000; |
|
|
|
|
//同意操作
|
|
|
|
|
if (this.data.type == 1) { |
|
|
|
|
//同意操作
|
|
|
|
|
// console.log(this.shenheTable)
|
|
|
|
|
//单个审核
|
|
|
|
|
if (this.shenheTable.length == 1) { |
|
|
|
|
//重点单位审核
|
|
|
|
@ -746,8 +752,7 @@ export class remark {
|
|
|
|
|
}; |
|
|
|
|
this.http.put(`/api/ContentVerifies`, body).subscribe((data) => { |
|
|
|
|
this.snackBar.open("操作成功!", "确定", config); |
|
|
|
|
this.dialogRef.close(); |
|
|
|
|
//this.getAlltabledate()
|
|
|
|
|
this.dialogRef.close("操作成功!"); |
|
|
|
|
}); |
|
|
|
|
} else if ( |
|
|
|
|
this.shenheTable[0].contentType == 12 || |
|
|
|
@ -769,8 +774,8 @@ export class remark {
|
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
//预案审核
|
|
|
|
|
//verifyState == 0待初审
|
|
|
|
|
if (this.shenheTable[0].verifyState == 0) { |
|
|
|
|
//待初审
|
|
|
|
|
let body: any = { |
|
|
|
|
auditStatus: 16, //初审通过,待终审
|
|
|
|
|
auditOpinion: this.remark || "", |
|
|
|
@ -781,14 +786,17 @@ export class remark {
|
|
|
|
|
this.snackBar.open("操作成功!", "确定", config); |
|
|
|
|
this.dialogRef.close(); |
|
|
|
|
}); |
|
|
|
|
} else if (this.shenheTable[0].verifyState == 3) { |
|
|
|
|
} else if ( |
|
|
|
|
//verifyState == 3待终审
|
|
|
|
|
this.shenheTable[0].verifyState == 3 |
|
|
|
|
) { |
|
|
|
|
//待终审
|
|
|
|
|
let body: any = { |
|
|
|
|
auditStatus: 2, //审核(终审)通过
|
|
|
|
|
auditOpinion: this.remark || "", |
|
|
|
|
}; |
|
|
|
|
this.http |
|
|
|
|
.put(`/api/PlanAudits/${this.radioid}`, body) |
|
|
|
|
.put(`/api/PlanAudits/${this.shenheTable[0].itemId}`, body) |
|
|
|
|
.subscribe((data) => { |
|
|
|
|
this.snackBar.open("操作成功!", "确定", config); |
|
|
|
|
this.dialogRef.close(); |
|
|
|
|