earthsitesInfo.vue
7.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<template>
<div v-loading="loading" style="border:1px solid black;">
<el-row class="bd_bottom" >
<el-col :span="6" class="bd_right bd_padding">消纳场名称</el-col>
<el-col :span="6" class="bd_padding">{{infoData.site.name}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding">证书编号</el-col>
<el-col :span="6" class="bd_padding">{{infoData.certificateNo}}</el-col>
</el-row>
<el-row class="bd_bottom" >
<el-col :span="6" class="bd_right bd_padding">消纳场类型</el-col>
<el-col :span="6" class="bd_padding">{{infoData.typeName}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding">所在区域</el-col>
<el-col :span="6" class="bd_padding">{{infoData.areaName}}</el-col>
</el-row>
<el-row class="bd_bottom" >
<el-col :span="6" class="bd_right bd_padding">所在地址</el-col>
<el-col :span="6" class="bd_padding">{{infoData.site.address}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding">作业区域</el-col>
<el-col :span="6" class="bd_padding">{{infoData.workAreaCodeName}}</el-col>
</el-row>
<el-row class="bd_bottom">
<el-col :span="6" class="bd_right bd_padding">备案方量(m³)</el-col>
<el-col :span="6" class="bd_padding">{{infoData.capacity}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding">建筑垃圾类型</el-col>
<el-col :span="6" class="bd_padding">{{infoData.buildWasteTypeName}}</el-col>
</el-row>
<el-row class="bd_bottom" >
<el-col :span="6" class="bd_right bd_padding">建筑单位责任人</el-col>
<el-col :span="6" class="bd_padding">{{infoData.site.principal}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding">责任人联系电话</el-col>
<el-col :span="6" class="bd_padding">{{infoData.site.principalPhoneNo}}</el-col>
</el-row>
<el-row class="bd_bottom">
<el-col :span="6" class="bd_right bd_padding">有效期开始时间</el-col>
<el-col :span="6" class="bd_padding">{{infoData.site.effectiveFrom}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding">有效期结束时间</el-col>
<el-col :span="6" class="bd_padding">{{infoData.site.effectiveEnd}}</el-col>
</el-row>
<el-row class="bd_bottom">
<el-col :span="6" class="bd_right bd_padding">建设单位名称</el-col>
<el-col :span="6" class="bd_padding">{{infoData.buildCompany}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding">建设单位地址</el-col>
<el-col :span="6" class="bd_padding">{{infoData.buildCompanyAddress}}</el-col>
</el-row>
<el-row class="bd_bottom">
<el-col :span="6" class="bd_right bd_padding">洗车平台</el-col>
<el-col :span="6" class="bd_padding">{{infoData.washingPlatformName}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding">出口道路状况</el-col>
<el-col :span="6" class="bd_padding">{{infoData.exitRoadConditionsName}}</el-col>
</el-row>
<el-row class="bd_bottom">
<el-col :span="6" class="bd_right bd_padding">安全警示</el-col>
<el-col :span="6" class="bd_padding">{{infoData.safetyAlertName}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding">洗车水枪数</el-col>
<el-col :span="6" class="bd_padding">{{infoData.washingGunNum}}</el-col>
</el-row>
<el-row class="bd_bottom">
<el-col :span="6" class="bd_right bd_padding">排水沟</el-col>
<el-col :span="6" class="bd_padding">{{infoData.drainageDitchName}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding">沉淀池</el-col>
<el-col :span="6" class="bd_padding">{{infoData.sedimentationTankName}}</el-col>
</el-row>
<el-row class="bd_bottom">
<el-col :span="6" class="bd_right bd_padding">电动栏杆</el-col>
<el-col :span="6" class="bd_padding">{{infoData.electricRailingsName}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding">水电</el-col>
<el-col :span="6" class="bd_padding">{{infoData.hydroelectricityName}}</el-col>
</el-row>
<el-row class="bd_bottom">
<el-col :span="6" class="bd_right bd_padding">其他情形</el-col>
<el-col :span="6" class="bd_padding">{{infoData.otherSituationsName}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding">填表人名称</el-col>
<el-col :span="6" class="bd_padding">{{infoData.filledBy}}</el-col>
</el-row>
<el-row class="bd_bottom">
<el-col :span="6" class="bd_right bd_padding">工程类型</el-col>
<el-col :span="6" class="bd_padding">{{infoData.projectTypeName}}</el-col>
<el-col :span="6" class="bd_left bd_right bd_padding"></el-col>
<el-col :span="6" class="bd_padding"></el-col>
</el-row>
<el-row class="bd_bottom">
<el-col :span="6" class="bd_right bd_padding">申请意见</el-col>
<el-col :span="18" class="bd_padding">{{infoData.applyOpinion}}</el-col>
</el-row>
<el-row >
<el-col :span="6" class="bd_right bd_padding">电子围栏</el-col>
<el-col :span="18" class="bd_padding">{{infoData.site.coord}}</el-col>
</el-row>
</div>
</template>
<script>
import store from "@/store";
import {
getToken
} from "@/utils/auth";
import {
earthsitesById,
getArea,
getDict
} from "@/api/dict";
export default {
name: "ThreestepInfo",
props: {
businessKey: {
type: String
},
},
data() {
return {
sign: store.getters.avatar, //裁剪图片的地址
areas: [],
loading: null,
infoData: {},
}
},
created() {
this.loading = true;
this.getInfo();
},
methods: {
getInfo() {
let id;
if (this.businessKey.split(":").length == 2) {
id = this.businessKey.split(":")[1];
} else {
id = this.businessKey;
}
earthsitesById(id).then(response => {
this.infoData = response.result;
let type = {"type":"CSDisSiteType"};
getDict(type).then(res=>{
debugger;
for(var i in res.result){
if(this.infoData.disposalType == res.result[i].code){
this.infoData.disposalType = res.result[i].name;
}
}
});
type = {"type":"CSDisSiteProjectType"};
getDict(type).then(res=>{
for(var i in res.result){
if(this.infoData.projectType == res.result[i].code){
this.infoData.projectType = res.result[i].name;
}
}
});
// type = {"type":"CSDisSiteType"};
// getDict(type).then(res=>{
// for(var i in res.result){
// // for(let j in this.infoData.buildWasteType.split(,)){
// // }
// // if(this.infoData.buildWasteType == res.result[i].code){
// // this.infoDate.buildWasteType = res.result[i].name;
// // }
// }
// });
this.loading = false;
});
},
}
}
</script>