constructsiteInfo.vue
13.7 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
<template>
<div v-loading="loading">
<div id="printItem">
<el-row style="border: 1px solid black;" type="flex" align="middle" justify="center">
<el-col :span="2" class="bd_padding">
勘察人员填写
</el-col>
<el-col :span="22" class="bd_left">
<el-row class="bd_bottom" >
<el-col :span="6" class="bd_right bd_padding">工程名称</el-col>
<el-col :span="6" class="bd_right bd_padding">{{infoData.name}}</el-col>
<el-col :span="6" class="bd_right bd_padding">施工地点</el-col>
<el-col :span="6">{{infoData.address}}</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_right bd_padding">{{infoData.areaCodeName}}</el-col>
<el-col :span="6" class="bd_right bd_padding">作业区域</el-col>
<el-col :span="6">{{infoData.workAreaCodeName}}</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_right bd_padding">{{infoData.constructionCompany}}</el-col>
<el-col :span="6" class="bd_right bd_padding">负责人</el-col>
<el-col :span="6">{{infoData.constructionCompanyPerson}}</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_right bd_padding">{{infoData.projectCompany}}</el-col>
<el-col :span="6" class="bd_right bd_padding">现场责任人</el-col>
<el-col :span="6">{{infoData.projectCompanyPerson}}</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_right bd_padding">{{infoData.transportCompany}}</el-col>
<el-col :span="6" class="bd_right bd_padding">负责人</el-col>
<el-col :span="6">{{infoData.transportCompanyPerson}}</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.reportingCapacity}}</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.effectiveFrom}} 至 {{infoData.effectiveEnd}}</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.monitorBall}})台 枪机({{infoData.monitorGun}})台</el-col>
</el-row>
<el-row class="bd_bottom">
<el-col :span="6" >洗车作业平台及配套设施设备情况</el-col>
<el-col :span="18" class="bd_left">
<el-row class="bd_bottom">
<el-col :span="6" class="bd_right bd_padding">过水槽</el-col>
<el-col :span="18" class="bd_padding">
长度({{infoData.waterTroughLength}}米)
宽度({{infoData.waterTroughWidth}}米)
</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.carWasherLength}}米)
宽度({{infoData.carWasherWidth}}米)
挡板高度({{infoData.carWasherHeight}}米)
自动感应装置({{infoData.carWasherResponseName}})
</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.ManualFlushingLength}}米)
水枪({{infoData.waterGun}}把)
</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.buffer}}米)
</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.lightingFacilities}}盏)
</el-col>
</el-row>
</el-col>
</el-row>
<el-row class="bd_bottom">
<el-col :span="6" >申报资料</el-col>
<el-col :span="18" class="bd_left">
<el-row class="bd_bottom">
<el-col :span="6" class="bd_right bd_padding">《长沙市城市营理和综合执法局政务服务事项办理申清表》</el-col>
<el-col :span="6" class="bd_padding">√
</el-col>
<el-col :span="6" class="bd_left bd_right" style="height: 80px;">用地证明材料</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="6" class="bd_right bd_padding">√
</el-col>
<el-col :span="6" class="bd_right bd_padding">建设工程施工合同</el-col>
<el-col :span="6" class="bd_padding">√
</el-col>
</el-row>
<el-row >
<el-col :span="6" class="bd_right bd_padding">消纳处置合同</el-col>
<el-col :span="6" class="bd_right bd_padding">√
</el-col>
<el-col :span="6" class="bd_right bd_padding">建设垃圾运输合同</el-col>
<el-col :span="6" class="bd_padding">√
</el-col>
</el-row>
</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.earthSiteNames}}</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.routeNames}}</el-col>
</el-row>
<el-col :span="24" >
<el-row class="bd_padding">{{infoData.applyOpinion}}</el-row>
<el-row class="bd_padding">
<label style="float: right;">勘察人:{{infoData.surveyor}}</label>
</el-row>
</el-col>
</el-col>
</el-col>
</el-row>
<el-row class="bd_left bd_right bd_bottom" v-if="signData.sign2">
<el-col :span="2" class="bd_padding bd_right">主管领导意见</el-col>
<el-col :span="22" >
<el-row class="bd_padding">{{signData.sign2Text}}</el-row>
<el-row >
<label style="float: right;">签字:<img :src="signData.sign2" width="100px" height="40px" v-if="signData.sign2"/>{{signData.sign2Time}}</label>
</el-row>
</el-col>
</el-row>
<el-row class="bd_left bd_right" v-if="signData.sign3">
<el-col :span="2" class="bd_padding bd_right">分管领导意见</el-col>
<el-col :span="22" >
<el-row class="bd_padding">{{signData.sign3Text}}</el-row>
<el-row >
<label style="float: right;">签字:<img :src="signData.sign3" width="100px" height="40px" v-if="signData.sign3"/>{{signData.sign3Time}}</label>
</el-row>
</el-col>
</el-row>
<el-row class="bd_left bd_right" style="border: 1px solid black;" v-if="signData.sign4">
<el-col :span="2" class="bd_right bd_padding">渣土事务中心负责人意见</el-col>
<el-col :span="22" >
<el-row class="bd_padding">{{signData.sign4Text}}</el-row>
<el-row >
<label style="float: right;">签字:<img :src="signData.sign4" width="100px" height="40px" v-if="signData.sign4"/>{{signData.sign4Time}}</label>
</el-row>
</el-col>
</el-row>
</div>
</div>
</template>
<script>
import { getSignByObjId, addSign, updateSign } from "@/api/sign/sign";
import store from "@/store";
import {
getToken
} from "@/utils/auth";
import {
constructionById,
getArea
} from "@/api/dict";
export default {
name: "ThreestepInfo",
props: {
businessKey: {
type: String
},
signData:{},
},
data() {
return {
sign: store.getters.avatar, //裁剪图片的地址
areas: [],
loading: null,
objectDict: {
id: "工地id",
name: "工地名称",
certificateNo: "证书编号",
address: "施工地址",
monitorModel: "监控模式",
workAreaCode: "作业区域",
areaCode: "管辖区",
projectType: "工程类型",
cargoId: "建筑垃圾类型",
constructionCompany: "建设单位",
constructionCompanyAddress: "建设单位地址",
constructionCompanyPerson: "建设单位责任人",
constructionCompanyPhone: "建设单位联系电话",
transportCompanyId: "运输企业单位",
transportCompany: "运输企业单位",
transportCompanyAddress: "运输单位地址",
transportCompanyPerson: "运输单位负责人",
transportCompanyPhone: "运输单位联系电话",
projectCompany: "施工单位",
projectCompanyAddress: "施工单位地址",
projectCompanyPerson: "施工单位责任人",
projectnCompanyPhone: "施工单位联系电话",
principal: "现场负责人",
reportingCapacity: "申报容量(m³)",
effectiveFrom: "有效期开始时间",
effectiveEnd: "有效期结束时间",
transportStartTime: "运输开始时间",
transportEndTime: "运输结束时间",
monitorBall: "视频监控设施设备 球机(台)",
monitorGun: "视频监控设施设备 枪机(台)",
waterTroughLength: "过水槽 长度(米)",
waterTroughWidth: "过水槽 宽度(米)",
carWasherLength: "自动洗车机 长度(米)",
carWasherWidth: "自动洗车机 宽度(米)",
carWasherHeight: "自动洗车机 挡板高度(米)",
carWasherResponse: "自动洗车机 感应装置",
ManualFlushingLength: "人工冲洗 长度(米)",
waterGun: "水枪(把)",
buffer: "缓冲区(米)",
lightingFacilities: "照明设施(盏)",
washingPlatform: "洗车平台",
washingGunNum: "洗车水枪数",
electricRailings: "电动栏杆",
hydroelectricity: "水电情况",
exitRoadConditions: "出口道路状况",
projectProgress: "工程进度情况",
constructionEnclosure: "施工围挡",
siteInvestmentType: "工地投资类型",
deductionPercentage: "减免百分比",
deductionBasis: "减免依据",
circuitId: "线路图",
polygonId: "电子围栏ID",
earthId: "消纳场地ID",
earthName: "消纳场地",
applyOpinion: "申请意见",
surveyor: "勘察人员",
candidates: "待选人员"
},
infoData: [],
}
},
created() {
// if(){
if(window.location.search){
let arr = window.location.search.split("&");
if(arr.length == 2){
this.businessKey = arr[0].split("=")[1];
}
else{
if(!window.location.search.startsWith("?token")){
this.businessKey = arr[0].split("=")[1];
}
}
}
this.loading = true;
this.getInfo();
},
methods: {
printBody(){
document.body.innerHTML = document.getElementById("printItem").innerHTML;
window.print();
},
getInfo() {
let id;
if (this.businessKey.split(":").length == 2) {
id = this.businessKey.split(":")[1];
} else {
id = this.businessKey;
}
constructionById(id).then(response => {
this.infoData = response.result;
getArea().then(res => {
this.areas = res.result;
this.loading = false;
for (let i = 0; i < this.areas.length; i++) {
if (Number(this.infoData.place) == this.areas[i].code) {
this.infoData.place = this.areas[i].name;
}
}
});
let earthSiteNames = "";
let routeNames = "";
if(this.infoData.earthList){
for(let i in this.infoData.earthList){
earthSiteNames += this.infoData.earthList[i].earthSiteName;
routeNames += this.infoData.earthList[i].routeName;
}
this.infoData.routeNames = routeNames;
this.infoData.earthSiteNames = earthSiteNames;
}
getSignByObjId(id).then(res=>{
this.signData = res.data;
});
// for(let i in obj){
// if(this.objectDict[i]){
// this.infoData.push({label:this.objectDict[i] ,value:obj[i]})
// }
// }
this.loading = false;
});
},
}
}
</script>
<style>
.bd_padding{
padding:5px;
}
.bd_right {
border-right: 1px solid black;
height: 100%;
}
.bd_left {
border-left: 1px solid black;
}
.bd_top {
border-top: 1px solid black;
}
.bd_bottom {
border-bottom: 1px solid black;
}
</style>