// pages/space/space.js
|
var req_url = getApp().globalData.base_url;
|
const app = getApp()
|
Page({
|
/**
|
* 页面的初始数据
|
*/
|
data: {
|
activeNames: [],
|
spanCode: '',
|
applicant: "",
|
operatingunit: "",
|
applicationtime: "",
|
liftinglocations: '',
|
liftingname: "",
|
sisot: "",
|
liftingcontent: "",
|
liftingoperator: "",
|
guardian: '',
|
officerper: '',
|
liftingouality: '',
|
sign1: '',
|
sign2: '',
|
sign3: '',
|
sign4: '',
|
result: [],
|
safetyadvice: '',
|
otherinjuries: '',
|
hottime: '',
|
secureper: '',
|
receive: '',
|
completionacceptance: '',
|
safetymeasure20: '',
|
refer20: '',
|
organizer: '',
|
safetymeasureother: '',
|
rightText: '处理',
|
safetyMeasure: [
|
{
|
context: "一、二级吊装作业已编制吊装作业方案,已经审查批准;吊装物体形状复杂、刚度小、长径比大、精密贵重,作业条件特殊的三级吊装作业,已编制吊装作业方案,已经过审查批准",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "吊装场所如有危险物料的设备、管道时,应制定详细吊装方案,并对设备、管道采取有效的防护措施,必要时停车,放空物料,置换后再进行吊装作业",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "作业人员已按规定佩戴个体防护装备",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "已对起重吊装设备、钢丝绳、揽风绳、链条、吊钩等各种机具进行检查,安全可靠",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "已明确各自分工、坚守岗位,并统一规定联络信号",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "将建筑物、构筑物作为锚点,应经所属单位工程管理部门审查核算并批准",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "吊装绳索、揽风绳、拖拉绳不应与带电线路接触,并保持安全距离",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "不应利用管道、管架、电杆、机电设备等作吊装锚点",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "吊物捆扎坚固,未见绳打结、绳不齐现象,棱角吊物已采取衬垫措施",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "起重机安全装置灵活好用",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "吊装作业人员持有有效的法定资格证书",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "地下通讯电(光)缆、局域网络电(光)缆、排水沟的盖板,承重吊装机械的负重量已确认,保护措施已落实",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "起吊物的质量( t)经确认,在吊装机械的承重范围内",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "在吊装高度的管线、电缆桥架已做好防护措施",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "作业现场围栏、警戒线、警告牌、夜间警示灯已按要求设置",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "作业高度和转臂范围内无架空线路",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "在爆炸危险场所内的作业,机动车排气管已装阻火器",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "露天作业,环境风力满足作业安全要求",
|
safetymeasure: '',
|
refer: "",
|
},
|
{
|
context: "其他相关特殊作业已办理相应安全作业票",
|
safetymeasure: '',
|
refer: "",
|
},
|
],
|
},
|
onChange(event) {
|
this.setData({
|
activeNames: event.detail,
|
|
});
|
},
|
onClickLeft() {
|
wx.redirectTo({
|
url: `/pages/index/index`
|
})
|
},
|
onClickRight() {
|
wx.navigateTo({
|
url: '../handle/handle?zypcode=' + this.data.spanCode + '&zyptepe= 吊装安全作业'
|
})
|
},
|
/**
|
* 生命周期函数--监听页面加载
|
*/
|
onLoad(options) {
|
this.setData({
|
spanCode: options.num
|
})
|
if (options.handle==1) {
|
this.setData({
|
rightText: "完结"
|
})
|
}
|
this.getList()
|
},
|
|
/**
|
* 请求后台获取数据
|
*/
|
getList: function () {
|
var that = this;
|
//请求后台数据
|
wx.request({
|
url: req_url + "/findLiftingCode",
|
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.refer14
|
json13.safetymeasure = datas.safetymeasure14
|
zypd.push(json13)
|
var json14 = {}
|
json14.context = that.data.safetyMeasure[14].context
|
json14.refer = datas.refer14
|
json14.safetymeasure = datas.safetymeasure15
|
zypd.push(json14)
|
var json15 = {}
|
json15.context = that.data.safetyMeasure[15].context
|
json15.refer = datas.refer14
|
json15.safetymeasure = datas.safetymeasure16
|
zypd.push(json15)
|
var json16 = {}
|
json16.context = that.data.safetyMeasure[16].context
|
json16.refer = datas.refer14
|
json16.safetymeasure = datas.safetymeasure17
|
zypd.push(json16)
|
var json17 = {}
|
json17.context = that.data.safetyMeasure[17].context
|
json17.refer = datas.refer14
|
json17.safetymeasure = datas.safetymeasure18
|
zypd.push(json17)
|
var json18 = {}
|
json18.context = that.data.safetyMeasure[18].context
|
json18.refer = datas.refer14
|
json18.safetymeasure = datas.safetymeasure19
|
zypd.push(json18)
|
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,
|
liftingname: datas.liftingname,
|
mediumname: datas.mediumname,
|
liftinglocations: datas.liftinglocations,
|
guardian: datas.guardian,
|
liftingcontent: datas.liftingcontent,
|
liftingoperator: datas.liftingoperator,
|
result: fenxian,
|
otherinjuries: datas.otherinjuries,
|
operatingunit: datas.operatingunit,
|
sisot: datas.sisot,
|
officerper: datas.officerper,
|
liftingouality: datas.liftingouality,
|
sign1: datas.sign1,
|
sign2: datas.sign2,
|
sign3: datas.sign3,
|
sign4: datas.sign4,
|
hottime: datas.hottime,
|
secureper: datas.secureper,
|
receive: datas.receive,
|
operationaladvice: datas.operationaladvice,
|
safetyadvice: datas.safetyadvice,
|
completionacceptance: datas.completionacceptance,
|
safetymeasure20: datas.safetymeasure20,
|
refer20: datas.refer20,
|
organizer: datas.organizer,
|
safetymeasureother: datas.safetymeasureother,
|
})
|
}
|
},
|
complete: function (res) {
|
wx.hideLoading();
|
},
|
fail: function (res) {
|
}
|
})
|
},
|
/**
|
* 生命周期函数--监听页面初次渲染完成
|
*/
|
onReady() {
|
|
},
|
|
/**
|
* 生命周期函数--监听页面显示
|
*/
|
onShow() {
|
|
},
|
|
/**
|
* 生命周期函数--监听页面隐藏
|
*/
|
onHide() {
|
|
},
|
|
/**
|
* 生命周期函数--监听页面卸载
|
*/
|
onUnload() {
|
|
},
|
|
/**
|
* 页面相关事件处理函数--监听用户下拉动作
|
*/
|
onPullDownRefresh() {
|
|
},
|
|
/**
|
* 页面上拉触底事件的处理函数
|
*/
|
onReachBottom() {
|
|
},
|
|
/**
|
* 用户点击右上角分享
|
*/
|
onShareAppMessage() {
|
|
}
|
})
|