Commit d3056002 authored by lei's avatar lei

Merge branch 'gaoqucodecheck' of...

Merge branch 'gaoqucodecheck' of http://h.gemho.cn:7099/zhaojunbao/gaoquyingjih5-asd into gaoqucodecheck
parents 44dd08f3 be175b2e
window.onload = function() {
function countSelectedNo(result) {
// 获取 checkList 中 selected 为 'no' 的对象个数
return result.reduce((total, category) => {
return (
total +
category.gqCheckItemVoList.filter((item) => item.itemAnswer === 2)
.length
)
}, 0)
}
function countSelectedNotNull(result) {
// 获取 checkList 中 selected 不为 null 的个数
return result.reduce((total, category) => {
return (
total +
category.gqCheckItemVoList.filter((item) => item.itemAnswer !== 0)
.length
)
}, 0)
}
new Vue({
el: '#app',
data: {
id: '', // 记录id || 隐患id
pageName: '', // 页面名称(用于记录页面来源,用于操作后返回上一页)
flag: 'ZG_XQ', // 值为ADD新增、JC_XQ检查详情、ZG_XQ整改详情、YH_XQ隐患详情
flag: 'ADD',
// flag: 'JC_XQ',
// flag: 'YH_XQ',
deadlineOptions: ['1', '3', '5', '7'],
checkData: [], // 提交给后端,图片使用vant结构,base64,后端处理,不走爱山东中台。(数据量大!)
originCheckData: [],
checkPageIndex: 0,
noCount: 0,
totalItems: 0,
notNullCount: 0,
// 外层表单信息
checkDate: gemhoUtil.getTargetDateYMD(), // 检查日期
checkPeopleName: '', // 检查人员
rectificationDeadline: '', // 整改截止日期
reviewDate: '', // 隐患审核日期
reviewRecord: '',
},
mounted() {
/**
* 调转该_check_info.html页面时需要传递参数
* type : ADD新增、JC_XQ检查详情、ZG_XQ整改详情、YH_XQ隐患详情
* id: 记录id || 隐患id
* pageName: 页面名称(用于记录页面来源,用于操作后返回上一页)
*
*/
// if (type === 'YH_XQ') { // 隐患详情
// this.getDetail4YH_XQ()
// } else if (this.flag === 'ZG_XQ') { // 整改详情
// this.getDetail4YH_XQ()
// } else if (this.flag === 'JC_XQ') { // 检查详情
// this.getDetail4JC_XQ()
// } else if (this.flag === 'ADD') { // 新增,调用模板详情方法
this.getDetail4Template()
// }
},
watch: {
checkData: {
handler(newVal) {
const snapshot = JSON.parse(JSON.stringify(newVal));
console.log('全量变化:', snapshot);
this.noCount = countSelectedNo(newVal); // selected=no 的个数
// this.totalItems = getTotalCheckListItems(newVal); // checkList 子元素总数
this.notNullCount = countSelectedNotNull(newVal); // selected 不为 null 的个数
},
deep: true
}
},
methods: {
getOriginMatchedItemById(id) {
const result = this.originCheckData[this.checkPageIndex]['gqCheckItemVoList'].find(item =>
item.id === id) || []
return JSON.parse(JSON.stringify(result))
},
// 处理单选变化
handleSelectionChange(val, item, index) {
console.log(val, item, '数据改变了前')
const newItem = this.getOriginMatchedItemById(item.id)
console.log(val, newItem, '数据改变了。。。。newItem')
newItem.itemAnswer = val
// console.log(this.checkData[this.checkPageIndex]['gqCheckItemVoList'])
this.$set(this.checkData[this.checkPageIndex]['gqCheckItemVoList'], index, JSON.parse(JSON
.stringify()));
console.log(val, this.checkData[this.checkPageIndex]['gqCheckItemVoList'][index], '数据改变了后',
index)
},
// 文件上传处理
handleFileUpload(file) {
console.log('上传文件:', file);
// 此处可添加实际文件上传逻辑
},
// 整改天数确认
handleDeadlineConfirm(event, item) {
console.log('select选择', event.target.value)
const value = event.target.value;
if (value) {
const days = parseInt(value);
item.deadlineDays = days;
const deadlineDate = new Date();
deadlineDate.setDate(deadlineDate.getDate() + days);
item.deadlineDate = this.formatDate(deadlineDate);
}
// this.showDeadlinePicker = false;
},
// 日期格式化
formatDate(date) {
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')}`;
},
getDetail4Template() { // 安全检查模板初始化
vant.Toast.loading({
message: '正在加载...',
forbidClick: true,
loadingType: 'spinner',
});
http2.post({
serviceId: API_KEY_MAP["no-page"]['id'],
interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"],
interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
reqParams: {}
}, (res) => {
if (!res) { // 中台返回为undefined 重新请求
vant.Toast.clear()
setTimeout(() => {
// this.getDetail4Template()
}, 0);
return
}
if (res) {
console.log('接口回调数据', JSON.parse(res))
setTimeout(() => {
this.$nextTick(() => {
vant.Toast.clear()
})
}, 0);
var result = JSON.parse(res)
this.checkDate = result.checkDate // 检查日期
this.checkPeopleName = result.checkPeopleName // 检查人员
this.rectificationDeadline = result.rectificationDeadline // 整改截止日期
this.reviewDate = result.reviewDate // 隐患审核日期
this.reviewRecord = result.reviewRecord
this.totalItems = result.itemAllCount,
// 表单数据
this.checkData = JSON.parse(JSON.stringify(result.data))
this.originCheckData = JSON.parse(JSON.stringify(result.data))
}
})
},
getDetail4YH_XQ() { // 隐患详情
vant.Toast.loading({
message: '正在加载...',
forbidClick: true,
loadingType: 'spinner',
});
http2.post({
serviceId: API_KEY_MAP["no-page"]['id'],
interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"],
interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
reqParams: {
"hdId": "1",
}
}, (res) => {
if (!res) { // 中台返回为undefined 重新请求
vant.Toast.clear()
setTimeout(() => {
this.getDetail4YH_XQ()
}, 0);
return
}
if (res) {
console.log('接口回调数据', JSON.parse(res))
setTimeout(() => {
this.$nextTick(() => {
vant.Toast.clear()
})
}, 0);
var result = JSON.parse(res)
this.checkDate = result.checkDate // 检查日期
this.checkPeopleName = result.checkPeopleName // 检查人员
this.rectificationDeadline = result.rectificationDeadline // 整改截止日期
this.reviewDate = result.reviewDate // 隐患审核日期
this.reviewRecord = result.reviewRecord
// 表单数据
this.checkData = result.data
}
})
},
getDetail4JC_XQ() { // 检查单详情
vant.Toast.loading({
message: '正在加载...',
forbidClick: true,
loadingType: 'spinner',
});
http2.post({
serviceId: API_KEY_MAP["no-page"]['id'],
interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"],
interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
reqParams: {
"recordId": "1",
}
}, (res) => {
if (!res) { // 中台返回为undefined 重新请求
vant.Toast.clear()
setTimeout(() => {
this.getDetail4YH_XQ()
}, 0);
return
}
if (res) {
console.log('接口回调数据', JSON.parse(res))
setTimeout(() => {
this.$nextTick(() => {
vant.Toast.clear()
})
}, 0);
var result = JSON.parse(res)
this.checkDate = result.data.checkTime // 检查日期
this.checkPeopleName = result.data.checkPeopleName // 检查人员
this.checkData = result.data.gqCheckTypeDtoList
this.noCount = result.data.hiddenCount
this.notNullCount = result.data.notRectifiedCount
this.totalItems = result.itemAllCount
}
})
},
add4ZG_XQ() {
if (!this.checkData.photos.length) {
vant.Dialog.alert({
message: '请上传整改图片',
})
return;
}
vant.Toast.loading({
message: '正在处理...',
forbidClick: true,
loadingType: 'spinner',
});
http2.post({
serviceId: API_KEY_MAP["no-page"]['id'],
interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"],
interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
reqParams: {
"hdId": this.id,
"photos": this.checkData,
}
}, (res, type) => {
if (!res && !type) { // 如果是中台接口返回为undefined,则重新发起请求
vant.Toast.clear()
setTimeout(() => {
this.add4ZG_XQ()
}, 0);
return
}
if (res) {
console.log('添加结果', res)
vant.Toast({
message: '操作成功',
})
// history.back()
gemhoUtil.navigatePage(this.pageName + '.html', '操作完成,跳转中...')
}
})
},
add4YH_XQ(auditStatus) { // 隐患详情 审核通过或拒绝
vant.Toast.loading({
message: '正在处理...',
forbidClick: true,
loadingType: 'spinner',
});
http2.post({
serviceId: API_KEY_MAP["no-page"]['id'],
interfacePublicKey: API_KEY_MAP["no-page"]["publicKey"],
interfacePrivateKey: API_KEY_MAP["no-page"]["privateKey"],
reqParams: {
"hdId": this.id,
auditStatus
}
}, (res, type) => {
if (!res && !type) { // 如果是中台接口返回为undefined,则重新发起请求
vant.Toast.clear()
setTimeout(() => {
this.add4YH_XQ()
}, 0);
return
}
if (res) {
console.log('添加结果', res)
vant.Toast({
message: '操作成功',
})
// history.back()
gemhoUtil.navigatePage(this.pageName + '.html', '操作完成,跳转中...')
}
})
},
add4JC_XQ() {
var reqParam = {
"merId": "1",
"gqCheckTypeVoList": this.checkData
}
var url = "/gq/checkRecord/safeCheckRecord"
http.post(url, reqParam).then((res) => {
console.log('添加结果', res)
vant.Toast({
message: '操作成功',
})
gemhoUtil.navigatePage(this.pageName + '.html', '操作完成,跳转中...')
})
}
}
});
}
\ No newline at end of file
......@@ -170,13 +170,13 @@
</div>
</div> -->
<div class="bottom_bar" v-if="flag=='0'">
<div class="bottom_bar" v-if="flag=='0' && userType=='shop'">
<div style="display: flex;justify-content: center;gap: 1rem;">
<van-button type="info" size="small" @click="add4DZG_XQ" style="width:2rem" >提交整改</van-button>
</div>
</div>
<div class="bottom_bar" v-if="flag=='2'">
<div class="bottom_bar" v-if="flag=='2' && userType=='wgy'">
<div style="display: flex;justify-content: center;gap: 1rem;">
<van-button type="danger" size="small" @click="add4DSH_XQ(0)" style="width:2rem" >拒绝</van-button>
<van-button type="info" size="small" @click="add4DSH_XQ(1)" style="width:2rem" >通过</van-button>
......
......@@ -50,6 +50,7 @@ window.onload = function() {
VUE = new Vue({
el: '#app',
data: {
userType: gemhoUtil.getCookie('userType'),
id: '', // 记录id || 隐患id
merId: '', // 商户id
pageName: '', // 页面名称(用于记录页面来源,用于操作后返回上一页)
......
var res = {
"msg": "操作成功",
"code": 200,
"data": [
{
"id": 1,
"name": "消防安全检查",
"gqCheckItemVoList": [
{
"id": 1,
"checkTypeId": 0,
"name": "灭火器是否完好有效",
"itemType": 1,
"itemAnswer": 2,
"gqCheckQuestionDtoList": [
{
"id": 1,
"checkItemId": 0,
"name": "未配置",
"type": 1,
"check": true,
"content": ""
},
{
"id": 2,
"checkItemId": 0,
"name": "压力失效",
"type": 1,
"check": true,
"content": ""
},
{
"id": 3,
"checkItemId": 0,
"name": "压力失效",
"type": 1,
"check": false,
"content": ""
},
{
"id": 8,
"checkItemId": 0,
"name": "配置类型错误",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 2,
"checkTypeId": 0,
"name": "室内消火栓是否完好有效",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [
{
"id": 4,
"checkItemId": 0,
"name": "缺少水带",
"type": 1,
"check": false,
"content": ""
},
{
"id": 5,
"checkItemId": 0,
"name": "缺少枪头",
"type": 1,
"check": false,
"content": ""
},
{
"id": 6,
"checkItemId": 0,
"name": "水带捆绑未双头并卷",
"type": 1,
"check": false,
"content": ""
},
{
"id": 7,
"checkItemId": 0,
"name": "消防卷盘水管缺少金属枪头",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 3,
"checkTypeId": 0,
"name": "疏散通道、楼梯 、窗户 是否畅通",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [
{
"id": 9,
"checkItemId": 0,
"name": "锁闭",
"type": 1,
"check": false,
"content": ""
},
{
"id": 11,
"checkItemId": 0,
"name": "堵塞",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 4,
"checkTypeId": 0,
"name": "安全出口、疏散门,是否配置并畅通",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [
{
"id": 10,
"checkItemId": 0,
"name": "锁闭",
"type": 1,
"check": false,
"content": ""
},
{
"id": 12,
"checkItemId": 0,
"name": "堵塞",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 5,
"checkTypeId": 0,
"name": "疏散指示标志,是否完好有效",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [
{
"id": 13,
"checkItemId": 0,
"name": "破损",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 6,
"checkTypeId": 0,
"name": "应急照明,是否完好有效",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [
{
"id": 14,
"checkItemId": 0,
"name": "破损",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 7,
"checkTypeId": 0,
"name": "员工是否参加安全培训和应急演练",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 8,
"checkTypeId": 0,
"name": "合用场所是否没有安排人员住宿",
"itemType": 2,
"itemAnswer": 2,
"gqCheckQuestionDtoList": [
{
"id": 15,
"checkItemId": 0,
"name": "住宿人数:    人",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
}
]
},
{
"id": 2,
"name": "用电安全检查",
"gqCheckItemVoList": [
{
"id": 9,
"checkTypeId": 0,
"name": "1.电气线路是否没有老化、破损",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 10,
"checkTypeId": 0,
"name": "2.电气线路是否穿管敷设",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 11,
"checkTypeId": 0,
"name": "3.空气开关是否设置防护措施",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 12,
"checkTypeId": 0,
"name": "4.配电箱、开关箱内电器件是否安装在木板或可燃材料上",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 13,
"checkTypeId": 0,
"name": "5.配电箱门与箱体是否跨接",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 14,
"checkTypeId": 0,
"name": "6.配电箱及用电产品周边是否没有堆放可燃物质",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 15,
"checkTypeId": 0,
"name": "7.配电箱门是否张贴安全警示标志",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
}
]
},
{
"id": 3,
"name": "燃气安全检查",
"gqCheckItemVoList": [
{
"id": 16,
"checkTypeId": 0,
"name": "1.燃气使用场所是否张贴安全管理制度和操作规程",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 17,
"checkTypeId": 0,
"name": "2.燃具是否安装熄火保护装置",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 18,
"checkTypeId": 0,
"name": "3.厨房是否安装可燃气体监测报警器(不高于离地面30cm)",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 19,
"checkTypeId": 0,
"name": "4.场所天燃气使用是否安装工业气体监测报警器(不低于顶部30cm)",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 20,
"checkTypeId": 0,
"name": "5.燃气连接软管是否使用国家标准的燃具软管(单根不超过2米)",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 21,
"checkTypeId": 0,
"name": "6.软管连接紧密、最近一次更换不超过两年和连接处未使用三通",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 22,
"checkTypeId": 0,
"name": "7.燃气通过管路输送是否串并联",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 23,
"checkTypeId": 0,
"name": "8.室内单个液化石油气罐未超出50公斤",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 24,
"checkTypeId": 0,
"name": "9.室内超出100公斤液化石油的,是否设置单独的气瓶间",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 25,
"checkTypeId": 0,
"name": "10.气瓶间是否设置燃气泄漏自动切断装置和报警器",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 26,
"checkTypeId": 0,
"name": "11.气瓶是否定期检测和配备可追溯的电子识读标志",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 27,
"checkTypeId": 0,
"name": "12.气瓶连接是否安装符合国家标准的不可调节式液化石油气调压器",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 28,
"checkTypeId": 0,
"name": "13.气瓶间是否设置在地下室、半地下室、高层建筑、密闭空间内",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
}
]
},
{
"id": 4,
"name": "消防通用检查",
"gqCheckItemVoList": [
{
"id": 29,
"checkTypeId": 0,
"name": "1. 电焊、气焊等具有火灾危险作业的人员未持证上岗。",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 30,
"checkTypeId": 0,
"name": "2.上岗前未主动接受消防安全教育培训,未积 极参加单位灭火和应急疏散的预案演练。",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 31,
"checkTypeId": 0,
"name": "3.未熟悉工作岗位附近消防设施器材及安全出 口位置,未掌握消防设施器材的使用方法,不会 报火警、不会扑救初起火灾、不会组织疏散逃生。",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 32,
"checkTypeId": 0,
"name": "4.建筑场所的安全出口、疏散楼梯、疏散走 道宽度不符合消防技术规范的。",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 33,
"checkTypeId": 0,
"name": "5. 电动自行车在疏散通道、安全出口、楼梯 间等部位违规充停。",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 34,
"checkTypeId": 0,
"name": "6.*194.人员密集场所的居住场所采用彩钢夹芯板 搭建,且彩钢夹芯板芯材的燃烧性能等级低于 GB 8624 规定的 A 级。",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
}
]
}
],
"itemAllCount": 34
}
\ No newline at end of file
var res = {
"msg": "操作成功",
"code": 200,
"data": [
{
"id": 1,
"name": "消防安全检查",
"gqCheckItemVoList": [
{
"id": 1,
"checkTypeId": 0,
"name": "灭火器是否完好有效",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [
{
"id": 1,
"checkItemId": 0,
"name": "未配置",
"type": 1,
"check": false,
"content": ""
},
{
"id": 2,
"checkItemId": 0,
"name": "压力失效",
"type": 1,
"check": false,
"content": ""
},
{
"id": 3,
"checkItemId": 0,
"name": "压力失效",
"type": 1,
"check": false,
"content": ""
},
{
"id": 8,
"checkItemId": 0,
"name": "配置类型错误",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 2,
"checkTypeId": 0,
"name": "室内消火栓是否完好有效",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [
{
"id": 4,
"checkItemId": 0,
"name": "缺少水带",
"type": 1,
"check": false,
"content": ""
},
{
"id": 5,
"checkItemId": 0,
"name": "缺少枪头",
"type": 1,
"check": false,
"content": ""
},
{
"id": 6,
"checkItemId": 0,
"name": "水带捆绑未双头并卷",
"type": 1,
"check": false,
"content": ""
},
{
"id": 7,
"checkItemId": 0,
"name": "消防卷盘水管缺少金属枪头",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 3,
"checkTypeId": 0,
"name": "疏散通道、楼梯 、窗户 是否畅通",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [
{
"id": 9,
"checkItemId": 0,
"name": "锁闭",
"type": 1,
"check": false,
"content": ""
},
{
"id": 11,
"checkItemId": 0,
"name": "堵塞",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 4,
"checkTypeId": 0,
"name": "安全出口、疏散门,是否配置并畅通",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [
{
"id": 10,
"checkItemId": 0,
"name": "锁闭",
"type": 1,
"check": false,
"content": ""
},
{
"id": 12,
"checkItemId": 0,
"name": "堵塞",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 5,
"checkTypeId": 0,
"name": "疏散指示标志,是否完好有效",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [
{
"id": 13,
"checkItemId": 0,
"name": "破损",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 6,
"checkTypeId": 0,
"name": "应急照明,是否完好有效",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [
{
"id": 14,
"checkItemId": 0,
"name": "破损",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 7,
"checkTypeId": 0,
"name": "员工是否参加安全培训和应急演练",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 8,
"checkTypeId": 0,
"name": "合用场所是否没有安排人员住宿",
"itemType": 2,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [
{
"id": 15,
"checkItemId": 0,
"name": "住宿人数: 人",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
}
]
},
{
"id": 2,
"name": "用电安全检查",
"gqCheckItemVoList": [
{
"id": 9,
"checkTypeId": 0,
"name": "1.电气线路是否没有老化、破损",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 10,
"checkTypeId": 0,
"name": "2.电气线路是否穿管敷设",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 11,
"checkTypeId": 0,
"name": "3.空气开关是否设置防护措施",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 12,
"checkTypeId": 0,
"name": "4.配电箱、开关箱内电器件是否安装在木板或可燃材料上",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 13,
"checkTypeId": 0,
"name": "5.配电箱门与箱体是否跨接",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 14,
"checkTypeId": 0,
"name": "6.配电箱及用电产品周边是否没有堆放可燃物质",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 15,
"checkTypeId": 0,
"name": "7.配电箱门是否张贴安全警示标志",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
}
]
},
{
"id": 3,
"name": "燃气安全检查",
"gqCheckItemVoList": [
{
"id": 16,
"checkTypeId": 0,
"name": "1.燃气使用场所是否张贴安全管理制度和操作规程",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 17,
"checkTypeId": 0,
"name": "2.燃具是否安装熄火保护装置",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 18,
"checkTypeId": 0,
"name": "3.厨房是否安装可燃气体监测报警器(不高于离地面30cm)",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 19,
"checkTypeId": 0,
"name": "4.场所天燃气使用是否安装工业气体监测报警器(不低于顶部30cm)",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 20,
"checkTypeId": 0,
"name": "5.燃气连接软管是否使用国家标准的燃具软管(单根不超过2米)",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 21,
"checkTypeId": 0,
"name": "6.软管连接紧密、最近一次更换不超过两年和连接处未使用三通",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 22,
"checkTypeId": 0,
"name": "7.燃气通过管路输送是否串并联",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 23,
"checkTypeId": 0,
"name": "8.室内单个液化石油气罐未超出50公斤",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 24,
"checkTypeId": 0,
"name": "9.室内超出100公斤液化石油的,是否设置单独的气瓶间",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 25,
"checkTypeId": 0,
"name": "10.气瓶间是否设置燃气泄漏自动切断装置和报警器",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 26,
"checkTypeId": 0,
"name": "11.气瓶是否定期检测和配备可追溯的电子识读标志",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 27,
"checkTypeId": 0,
"name": "12.气瓶连接是否安装符合国家标准的不可调节式液化石油气调压器",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 28,
"checkTypeId": 0,
"name": "13.气瓶间是否设置在地下室、半地下室、高层建筑、密闭空间内",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
}
]
},
{
"id": 4,
"name": "消防通用检查",
"gqCheckItemVoList": [
{
"id": 29,
"checkTypeId": 0,
"name": "1. 电焊、气焊等具有火灾危险作业的人员未持证上岗。",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 30,
"checkTypeId": 0,
"name": "2.上岗前未主动接受消防安全教育培训,未积 极参加单位灭火和应急疏散的预案演练。",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 31,
"checkTypeId": 0,
"name": "3.未熟悉工作岗位附近消防设施器材及安全出 口位置,未掌握消防设施器材的使用方法,不会 报火警、不会扑救初起火灾、不会组织疏散逃生。",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 32,
"checkTypeId": 0,
"name": "4.建筑场所的安全出口、疏散楼梯、疏散走 道宽度不符合消防技术规范的。",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 33,
"checkTypeId": 0,
"name": "5. 电动自行车在疏散通道、安全出口、楼梯 间等部位违规充停。",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
},
{
"id": 34,
"checkTypeId": 0,
"name": "6.*194.人员密集场所的居住场所采用彩钢夹芯板 搭建,且彩钢夹芯板芯材的燃烧性能等级低于 GB 8624 规定的 A 级。",
"itemType": 1,
"itemAnswer": 0,
"gqCheckQuestionDtoList": [],
"hiddenImageUrlList": [],
"rectificationImageUrlList": [],
"checkPeople": "",
"rectificationDate": null,
"description": ""
}
]
}
],
"itemAllCount": 34
}
\ No newline at end of file
var res = {
"msg": "操作成功",
"reviewRecord": "",
"rectificationDeadline": "",
"code": 200,
"data": [
{
"id": 1,
"name": "消防安全检查",
"gqCheckItemVoList": [
{
"id": 1,
"checkTypeId": 0,
"name": "灭火器是否完好有效",
"itemType": 1,
"itemAnswer": 2,
"gqCheckQuestionDtoList": [
{
"id": 1,
"checkItemId": 0,
"name": "未配置",
"type": 0,
"check": true,
"content": ""
},
{
"id": 2,
"checkItemId": 1,
"name": "压力失效",
"type": 1,
"check": false,
"content": ""
},
{
"id": 3,
"checkItemId": 1,
"name": "压力失效",
"type": 1,
"check": false,
"content": ""
},
{
"id": 8,
"checkItemId": 1,
"name": "配置类型错误",
"type": 1,
"check": false,
"content": ""
}
],
"hiddenImageUrlList": [
"192.168.2.37:8080/profile/hidden/8qeclb1joyut5zjsjg52tylbjb63lvc.jpg",
"192.168.2.37:8080/profile/hidden/00055.jpg"
],
"rectificationImageUrlList": [
"192.168.2.37:8080/profile/hidden/8qeclb1joyut5zjsjg52tylbjb63lvc.jpg",
"192.168.2.37:8080/profile/hidden/00055.jpg"
],
"checkPeople": "超级管理员",
"rectificationDate": null,
"description": "asd"
}
]
}
],
"reviewDate": "",
"rectificationStatusName": "待整改",
"checkPeopleName": "超级管理员",
"checkDate": "2025-03-26 00:00:00"
}
\ No newline at end of file
......@@ -48,7 +48,7 @@
<div class="qr-card">
<canvas id="mainCanvas" width="300" height="400"></canvas>
</div>
<button class="save-btn" onclick="saveCanvas()">保存二维码</button>
<button class="save-btn" onclick="saveCanvas()" v-if="canvasReady">保存二维码</button>
</div>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment