sitePaper.js
4.85 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
import { getSignByObjId, addSign, updateSign } from "@/api/sign/sign";
import store from "@/store";
import {
getToken
} from "@/utils/auth";
import {
constructionLicenseById,
getArea
} from "@/api/dict";
export default {
name: "ThreestepInfo",
props: {
businessKey: {
type: String
},
signData:{},
},
data() {
return {
hide:'block',
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(){
let body = document.body;
document.body.innerHTML = document.getElementById("printItem").innerHTML;
window.print();
window.location.reload();
},
getInfo() {
let id;
if (this.businessKey.split(":").length == 2) {
id = this.businessKey.split(":")[1];
} else {
id = this.businessKey;
}
constructionLicenseById(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;
}
}
});
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;
});
},
}
}