王飞
2025-01-23 99365608dec6eade7d645a91fb0f2205a332d1f1
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
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
// pages/space/space.js
var req_url = getApp().globalData.base_url;
const app = getApp()
Page({
    /**
     * 页面的初始数据
     */
    data: {
        activeNames: [],
        spanCode: '',
        firehazard: true,
        refer1: "是",
        applicant: "",
        applicationtime: "",
        dhlocationsandposition: "",
        perandnum: "",
        content: "",
        operator: "",
        guardian: '',
        otherworkandnum: '',
        operatingvoltage: '',
        perandnum: '',
        gasanalysistime1: '',
        gas1: '',
        electricitynum2: "",
        gasanalysistime2: '',
        gasanalysistime3: '',
        gas2: '',
        gas3: '',
        analysisresult1: '',
        analysisresult2: '',
        analysisresult3: '',
        analyst2: '',
        analyst1: '',
        analyst3: '',
        result: [],
        otherinjuries: '',
        highlevel: '',
        operatingunit: '',
        operationmanager: '',
        checkstatus: '',
        branchopinion: '',
        hottime: '',
        secureper: '',
        receive: '',
        operationaladvice: '',
        safetyadvice: '',
        workshopmanager: '',
        completionacceptance: '',
        refer16: '',
        safetymeasure16: '',
        organizer: '',
        safetymeasureother: '',
        rightText: '处理',
        safetyMeasure: [
            {
                context: "动火设备内部构件清理干净,蒸汽吹扫或水洗合格,达到动火条件",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "断开与动火设备相连接的所有管线,加盲板( )块,未采取水封或仅关闭阀门的方式代替盲板",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "动火点周围及附近的孔洞、窖井、地沟、水封设施、污水井等已清除易燃物,并已采取覆盖、铺沙等手段进行隔离",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "油气罐区内动火点同一防火堤内和防火间距内的油罐不同时进行脱水和取样作业",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "高处作业已采取防火花飞溅措施,作业人员应佩戴必要的个体防护装备",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "在有可燃物构件和使用可燃物做防腐内衬的设备内部动火作业,已采取防火隔绝 措施",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "乙炔气瓶直立放置,已采取防倾倒措施并安装防回火装置;乙炔气瓶、氧气瓶与火源间的距离不应小于10 m,两气瓶相互间距不应小于5 m",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "现场配备灭火器( )台,灭火毯( )块,消防蒸汽带或消防水带( )",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "电焊机所处位置已考虑防火防爆要求,且已可靠接地",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "动火点周围规定距离内没有易燃易爆化学品的装卸、排放、喷漆等可能引起火爆炸的危险作业",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "动火点30 m内垂直空间未排放可燃气体;15 m内垂直空间未排放可燃液体;10 m范围内及动火点下方未同时进行可燃溶剂清洗或喷漆等作业,10 m范围内未见有可燃性粉尘清扫作业",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "已开展作业危害分析,制定相应的安全风险管控措施,交叉作业已明确协调人",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "用于连续检测的移动式可燃气体检测仪已配备到位",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "配备的摄录设备已到位,且防爆级别满足安全要求",
                safetymeasure: '',
                refer: "",
            },
            {
                context: "其他相关特殊作业已办理相应安全作业票,作业现场四周已设立警戒区",
                safetymeasure: '',
                refer: "",
            },
        ],
    },
    onChange(event) {
        this.setData({
            activeNames: event.detail,
 
        });
    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {
        this.setData({
            spanCode: options.num
        })
        if (options.handle==1) {
            this.setData({
                rightText: "完结"
            })
        }
        this.getList()
    },
    onClickLeft() {
        wx.redirectTo({
            url: `/pages/index/index`
        })
    },
    onClickRight() {
        wx.navigateTo({
            url: '../handle/handle?zypcode=' + this.data.spanCode + '&zyptepe= 动火作业证'
        })
    },
    /**
 * 请求后台获取数据
 */
    getList: function () {
        var that = this;
        //请求后台数据
        wx.request({
            url: req_url + "/findFireCode",
            data: {
                code: that.data.spanCode,
            },
            method: 'get',
            success: function (res) {
                var datas = res.data;
                if (res.statusCode != 200) {
                    wx.showToast({
                        title: '获取数据失败',
                        icon: 'none',
                        duration: 2000
                    });
                } else {
                    var zypd = []
                    var json = {}
                    json.context = that.data.safetyMeasure[0].context
                    json.refer = datas.refer1
                    json.safetymeasure = datas.safetymeasure1
                    zypd.push(json)
                    var json1 = {}
                    json1.context = that.data.safetyMeasure[1].context
                    json1.refer = datas.refer2
                    json1.safetymeasure = datas.safetymeasure2
                    zypd.push(json1)
                    var json2 = {}
                    json2.context = that.data.safetyMeasure[2].context
                    json2.refer = datas.refer3
                    json2.safetymeasure = datas.safetymeasure3
                    zypd.push(json2)
                    var json3 = {}
                    json3.context = that.data.safetyMeasure[3].context
                    json3.refer = datas.refer4
                    json3.safetymeasure = datas.safetymeasure4
                    zypd.push(json3)
                    var json4 = {}
                    json4.context = that.data.safetyMeasure[4].context
                    json4.refer = datas.refer5
                    json4.safetymeasure = datas.safetymeasure5
                    zypd.push(json4)
                    var json5 = {}
                    json5.context = that.data.safetyMeasure[5].context
                    json5.refer = datas.refer6
                    json5.safetymeasure = datas.safetymeasure6
                    zypd.push(json5)
                    var json6 = {}
                    json6.context = that.data.safetyMeasure[6].context
                    json6.refer = datas.refer7
                    json6.safetymeasure = datas.safetymeasure7
                    zypd.push(json6)
                    var json7 = {}
                    json7.context = that.data.safetyMeasure[7].context
                    json7.refer = datas.refer8
                    json7.safetymeasure = datas.safetymeasure8
                    zypd.push(json7)
                    var json8 = {}
                    json8.context = that.data.safetyMeasure[8].context
                    json8.refer = datas.refer9
                    json8.safetymeasure = datas.safetymeasure9
                    zypd.push(json8)
                    var json9 = {}
                    json9.context = that.data.safetyMeasure[9].context
                    json9.refer = datas.refer10
                    json9.safetymeasure = datas.safetymeasure10
                    zypd.push(json9)
                    var json10 = {}
                    json10.context = that.data.safetyMeasure[10].context
                    json10.refer = datas.refer11
                    json10.safetymeasure = datas.safetymeasure11
                    zypd.push(json10)
                    var json11 = {}
                    json11.context = that.data.safetyMeasure[11].context
                    json11.refer = datas.refer12
                    json11.safetymeasure = datas.safetymeasure12
                    zypd.push(json11)
                    var json12 = {}
                    json12.context = that.data.safetyMeasure[12].context
                    json12.refer = datas.refer13
                    json12.safetymeasure = datas.safetymeasure13
                    zypd.push(json12)
                    var json13 = {}
                    json13.context = that.data.safetyMeasure[13].context
                    json13.refer = datas.refer13
                    json13.safetymeasure = datas.safetymeasure14
                    zypd.push(json13)
                    var json14 = {}
                    json14.context = that.data.safetyMeasure[14].context
                    json14.refer = datas.refer13
                    json14.safetymeasure = datas.safetymeasure15
                    zypd.push(json14)
                    var fenxian = []
                    if (datas.firehazard != null && datas.firehazard != '') {
                        fenxian.push("firehazard")
                    }
                    if (datas.drowning != null && datas.drowning != '') {
                        fenxian.push("drowning")
                    }
                    if (datas.getshock != null && datas.getshock != '') {
                        fenxian.push("getshock")
                    }
                    if (datas.guardian != null && datas.guardian != '') {
                        fenxian.push("guardian")
                    }
                    if (datas.highfall != null && datas.highfall != '') {
                        fenxian.push("highfall")
                    }
                    if (datas.liftinginjury != null && datas.liftinginjury != '') {
                        fenxian.push("liftinginjury")
                    }
                    if (datas.mechanicalinjury != null && datas.mechanicalinjury != '') {
                        fenxian.push("mechanicalinjury")
                    }
                    if (datas.otherexplosions != null && datas.otherexplosions != '') {
                        fenxian.push("otherexplosions")
                    }
                    if (datas.scalding != null && datas.scalding != '') {
                        fenxian.push("scalding")
                    }
                    if (datas.zdandzx != null && datas.zdandzx != '') {
                        fenxian.push("zdandzx")
                    }
                    if (datas.physicalattack != null && datas.physicalattack != '') {
                        fenxian.push("physicalattack")
                    }
                    if (datas.containerexplosion != null && datas.containerexplosion != '') {
                        fenxian.push("containerexplosion")
                    }
                    if (datas.boilerexplosion != null && datas.boilerexplosion != '') {
                        fenxian.push("boilerexplosion")
                    }
                    if (datas.collapse != null && datas.collapse != '') {
                        fenxian.push("collapse")
                    }
                    if (datas.vehicleinjury != null && datas.vehicleinjury != '') {
                        fenxian.push("vehicleinjury")
                    }
                    that.setData({
                        safetyMeasure: zypd,
                        spanCode: datas.code,
                        applicant: datas.applicant,
                        applicationtime: datas.applicationtime,
                        dhlocationsandposition: datas.dhlocationsandposition,
                        dhway: datas.dhway,
                        perandnum: datas.perandnum,
                        gasanalysistime1: datas.gasanalysistime1,
                        gas1: datas.gas1,
                        guardian: datas.guardian,
                        analysisresult3: datas.analysisresult3,
                        analyst3: datas.analyst3,
                        gasanalysistime2: datas.gasanalysistime2,
                        gasanalysistime3: datas.gasanalysistime3,
                        gas2: datas.gas2,
                        gas3: datas.gas3,
                        analysisresult1: datas.analysisresult1,
                        analysisresult2: datas.analysisresult2,
                        analyst1: datas.analyst1,
                        analyst2: datas.analyst2,
                        guardian: datas.guardian,
                        content: datas.content,
                        otherworkandnum: datas.otherworkandnum,
                        result: fenxian,
                        otherinjuries: datas.otherinjuries,
                        customer: datas.customer,
                        operator: datas.operator,
                        workshopmanager: datas.workshopmanager,
                        operationmanager: datas.operationmanager,
                        checkstatus: datas.checkstatus,
                        branchopinion: datas.branchopinion,
                        hottime: datas.hottime,
                        secureper: datas.secureper,
                        receive: datas.receive,
                        operationaladvice: datas.operationaladvice,
                        safetyadvice: datas.safetyadvice,
                        completionacceptance: datas.completionacceptance,
                        refer16: datas.refer16,
                        safetymeasure16: datas.safetymeasure16,
                        organizer: datas.organizer,
                        safetymeasureother: datas.safetymeasureother,
                    })
                }
            },
            complete: function (res) {
                wx.hideLoading();
            },
            fail: function (res) {
            }
        })
    },
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {
 
    },
 
    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {
 
    },
 
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {
 
    },
 
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {
 
    },
 
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {
 
    },
 
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {
 
    },
 
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {
 
    }
})