bug修复

main
zhaoyu 2023-12-22 16:27:47 +08:00
parent b0db6e3e4d
commit f750e41a25
7 changed files with 151 additions and 79 deletions

View File

@ -45,10 +45,10 @@
<td colspan="8"> <td colspan="8">
<div>盲板位置图可另附图及编号</div> <div>盲板位置图可另附图及编号</div>
<div style="display: flex;justify-content: space-between;margin-top: 20px;"> <div style="display: flex;justify-content: space-between;margin-top: 20px;">
<img v-viewer :src="config.cfdfileUrl + info.BOARD_PATH" alt="" width="100" height="100"> <img v-viewer :src="config.fileUrl + info.BOARD_PATH" alt="" width="100" height="100">
<div> <div>
编制人 编制人
<img v-viewer :src="config.cfdfileUrl + info.APPLY_USER_SIGNER_PATH" alt="" width="100" height="100"> <img v-viewer :src="config.fileUrl + info.APPLY_USER_SIGNER_PATH" alt="" width="100" height="100">
{{ info.APPLY_USER_SIGNER_TIME }} {{ info.APPLY_USER_SIGNER_TIME }}
</div> </div>
</div> </div>
@ -63,7 +63,7 @@
<td v-if="info.GUARDIAN_USER_SIGNER_PATH" colspan="5"> <td v-if="info.GUARDIAN_USER_SIGNER_PATH" colspan="5">
<div style="text-align: right"> <div style="text-align: right">
<span>签字</span> <span>签字</span>
<img v-viewer :src="config.cfdfileUrl + info.GUARDIAN_USER_SIGNER_PATH" alt="" width="100" height="100"> <img v-viewer :src="config.fileUrl + info.GUARDIAN_USER_SIGNER_PATH" alt="" width="100" height="100">
<span>{{ info.GUARDIAN_USER_SIGNER_TIME }}</span> <span>{{ info.GUARDIAN_USER_SIGNER_TIME }}</span>
</div> </div>
</td> </td>
@ -117,20 +117,20 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="bbg-transparent">安全交底</td> <td v-if="info.CONFESS_USER_SIGNER_PATH" class="bbg-transparent"></td>
<td colspan="3"> <td v-if="info.CONFESS_USER_SIGNER_PATH" colspan="3">
<div v-if="info.CONFESS_USER_SIGNER_PATH" style="text-align: right"> <div v-if="info.CONFESS_USER_SIGNER_PATH" style="text-align: right">
<span>签字</span> <span>签字</span>
<img v-viewer :src="config.cfdfileUrl + info.CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100"> <img v-viewer :src="config.fileUrl + info.CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
<span>{{ info.CONFESS_USER_SIGNER_TIME }}</span> <span>{{ info.CONFESS_USER_SIGNER_TIME }}</span>
</div> </div>
</td> </td>
<td class="bbg-transparent">接受交底</td> <td v-if="imgList.length>0" class="bbg-transparent"></td>
<td colspan="3"> <td v-if="imgList.length>0" colspan="3">
<div v-if="info.ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right"> <div v-if="imgList[0].ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right">
<span>签字</span> <span>签字</span>
<img v-viewer :src="config.cfdfileUrl + info.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100"> <img v-viewer :src="config.fileUrl + imgList[0].ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
<span>{{ info.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span> <span>{{ imgList[0].ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
</div> </div>
</td> </td>
</tr> </tr>
@ -146,7 +146,7 @@
<div> <div>
签字 签字
<span class="print-approval-img"> <span class="print-approval-img">
<img v-if="info.CONSTRUCTION_USER_SIGNER_PATH" :src="config.cfdfileUrl+info.CONSTRUCTION_USER_SIGNER_PATH"> <img v-if="info.CONSTRUCTION_USER_SIGNER_PATH" :src="config.fileUrl+info.CONSTRUCTION_USER_SIGNER_PATH">
</span> </span>
</div> </div>
<div style="float: right"> <div style="float: right">
@ -166,7 +166,7 @@
<div> <div>
签字 签字
<span class="print-approval-img"> <span class="print-approval-img">
<img v-if="info.LEADER_USER_SIGNER_PATH" :src="config.cfdfileUrl+info.LEADER_USER_SIGNER_PATH"> <img v-if="info.LEADER_USER_SIGNER_PATH" :src="config.fileUrl+info.LEADER_USER_SIGNER_PATH">
</span> </span>
</div> </div>
<div style="float: right"> <div style="float: right">
@ -208,6 +208,7 @@ export default {
info: {}, info: {},
ImgList: [], ImgList: [],
measuresList: [], measuresList: [],
imgList: []
} }
}, },
created() { created() {
@ -223,7 +224,7 @@ export default {
}, },
getData() { getData() {
requestFN( requestFN(
'/map/Eight/getByIdCfdD', '/map/Eight/getByIdOrder',
{ {
id: this.id, id: this.id,
TYPE: this.type, TYPE: this.type,
@ -232,7 +233,11 @@ export default {
).then((data) => { ).then((data) => {
this.info = { ...data.pd, ...data.Info } this.info = { ...data.pd, ...data.Info }
this.ImgList = data.ImgList this.ImgList = data.ImgList
this.imgList = data.imgList
this.measuresList = data.measuresList this.measuresList = data.measuresList
this.info.APPLY_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
this.info.CONSTRUCTION_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
this.info.LEADER_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[2]
}).catch((e) => { }).catch((e) => {
}) })
} }

View File

@ -114,7 +114,6 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="bbg-transparent">安全交底人</td> <td class="bbg-transparent">安全交底人</td>
<td colspan="5"> <td colspan="5">
@ -126,12 +125,12 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="bbg-transparent">接受交底</td> <td v-if="imgList.length>0" class="bbg-transparent"></td>
<td colspan="5"> <td v-if="imgList.length>0" colspan="5">
<div v-if="info.ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right"> <div v-if="imgList[0].ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right">
<span>签字</span> <span>签字</span>
<img v-viewer :src="config.fileUrl + info.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100"> <img v-viewer :src="config.fileUrl + imgList[0].ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
<span>{{ info.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span> <span>{{ imgList[0].ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
</div> </div>
</td> </td>
</tr> </tr>
@ -247,7 +246,8 @@ export default {
config: config, config: config,
info: {}, info: {},
ImgList: [], ImgList: [],
measuresList: [] measuresList: [],
imgList: []
} }
}, },
created() { created() {
@ -273,6 +273,22 @@ export default {
this.info = { ...data.pd, ...data.Info } this.info = { ...data.pd, ...data.Info }
this.ImgList = data.ImgList this.ImgList = data.ImgList
this.measuresList = data.measuresList this.measuresList = data.measuresList
this.imgList = data.imgList
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 0) {
this.info.APPLY_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
}
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 1) {
this.info.CONSTRUCTION_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
}
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 2) {
this.info.PRODUCTION_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[2]
}
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 3) {
this.info.SAFETY_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[3]
}
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 4) {
this.info.LEADER_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[4]
}
}).catch((e) => { }).catch((e) => {
}) })
} }

View File

@ -8,9 +8,9 @@
<tr> <tr>
<td class="bbg-transparent">申请单位</td> <td class="bbg-transparent">申请单位</td>
<td >{{ info.APPLY_DEPARTMENT_NAME }}</td> <td >{{ info.APPLY_DEPARTMENT_NAME }}</td>
<td class="bbg-transparent">作业单位</td> <td class="bbg-transparent">作业单位</td>
<td >{{ info.CONSTRUCTION_DEPARTMENT_NAME }}</td> <td >{{ info.CONSTRUCTION_DEPARTMENT_NAME }}</td>
<td class="bbg-transparent">作业负责人</td> <td class="bbg-transparent">作业负责人</td>
<td >{{ info.CONSTRUCTION_USER_NAME }}</td> <td >{{ info.CONSTRUCTION_USER_NAME }}</td>
</tr> </tr>
<tr class="bgst-transparent"> <tr class="bgst-transparent">
@ -113,12 +113,12 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="bbg-transparent">接受交底</td> <td v-if="imgList.length>0" class="bbg-transparent"></td>
<td colspan="5"> <td v-if="imgList.length>0" colspan="5">
<div v-if="info.ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right"> <div v-if="imgList[0].ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right">
<span>签字</span> <span>签字</span>
<img v-viewer :src="config.fileUrl + info.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100"> <img v-viewer :src="config.fileUrl + imgList[0].ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
<span>{{ info.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span> <span>{{ imgList[0].ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
</div> </div>
</td> </td>
</tr> </tr>
@ -235,7 +235,8 @@ export default {
config: config, config: config,
info: {}, info: {},
ImgList: [], ImgList: [],
measuresList: [] measuresList: [],
imgList: []
} }
}, },
created() { created() {
@ -258,9 +259,26 @@ export default {
GANGKOU: this.gangkou GANGKOU: this.gangkou
} }
).then((data) => { ).then((data) => {
debugger
this.info = { ...data.pd, ...data.Info } this.info = { ...data.pd, ...data.Info }
this.ImgList = data.ImgList this.ImgList = data.ImgList
this.measuresList = data.measuresList this.measuresList = data.measuresList
this.imgList = data.imgList
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 0) {
this.info.APPLY_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
}
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 1) {
this.info.CONSTRUCTION_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
}
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 2) {
this.info.PRODUCTION_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[2]
}
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 3) {
this.info.SAFETY_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[3]
}
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 4) {
this.info.LEADER_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[4]
}
}).catch((e) => { }).catch((e) => {
}) })
} }

View File

@ -58,7 +58,7 @@
<td class="bbg-transparent">风险辨识结果</td> <td class="bbg-transparent">风险辨识结果</td>
<td colspan="5">{{ pd.RISK_IDENTIFICATION }}</td> <td colspan="5">{{ pd.RISK_IDENTIFICATION }}</td>
</tr> </tr>
<tr> <tr v-if="gasList">
<td class="bbg-transparent" colspan="6">可燃气体分析运行的生产装置罐区和具有火灾爆炸危险场所</td> <td class="bbg-transparent" colspan="6">可燃气体分析运行的生产装置罐区和具有火灾爆炸危险场所</td>
</tr> </tr>
<template v-for="(item,index) in gasList"> <template v-for="(item,index) in gasList">
@ -246,6 +246,9 @@ export default {
this.measuresList = data.measuresList // map this.measuresList = data.measuresList // map
this.gasList = data.gasList // map this.gasList = data.gasList // map
this.otherProtectiveMeasures = this.validStr(this.pd.OTHER_PROTECTIVE_MEASURES.replace(/;_;/g, '')) ? this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;') : [] this.otherProtectiveMeasures = this.validStr(this.pd.OTHER_PROTECTIVE_MEASURES.replace(/;_;/g, '')) ? this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;') : []
this.info.CONFIRM_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
this.info.AUDIT_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
this.info.APPROVE_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[2]
}).catch((e) => { }).catch((e) => {
this.listLoading = false this.listLoading = false
}) })

View File

@ -57,7 +57,7 @@
<td class="bbg-transparent">风险辨识结果</td> <td class="bbg-transparent">风险辨识结果</td>
<td colspan="5">{{ info.RISK_IDENTIFICATION }}</td> <td colspan="5">{{ info.RISK_IDENTIFICATION }}</td>
</tr> </tr>
<tr> <tr v-if="gasList.length>0">
<td class="bbg-transparent" colspan="6">可燃气体分析运行的生产装置罐区和具有火灾爆炸危险场所</td> <td class="bbg-transparent" colspan="6">可燃气体分析运行的生产装置罐区和具有火灾爆炸危险场所</td>
</tr> </tr>
<template v-for="(item,index) in gasList"> <template v-for="(item,index) in gasList">
@ -79,7 +79,7 @@
<td colspan="5">{{ formatDate(info.WORK_START_DATE,'YYYY年MM月DD日HH时mm分') }} {{ formatDate(info.WORK_END_DATE,'YYYY年MM月DD日HH时mm分') }}</td> <td colspan="5">{{ formatDate(info.WORK_START_DATE,'YYYY年MM月DD日HH时mm分') }} {{ formatDate(info.WORK_END_DATE,'YYYY年MM月DD日HH时mm分') }}</td>
</tr> </tr>
<tr> <tr v-if="measuresList.length>0">
<td colspan="6"> <td colspan="6">
<table class="table-vi"> <table class="table-vi">
<tr class="bbg-transparent"> <tr class="bbg-transparent">
@ -120,9 +120,7 @@
</td> </td>
</tr> </tr>
<tr v-if="info.CONFESS_USER_SIGNER_TIME">
<tr>
<td class="bbg-transparent">安全交底人</td> <td class="bbg-transparent">安全交底人</td>
<td colspan="10"> <td colspan="10">
<div v-if="info.CONFESS_USER_SIGNER_PATH" style="text-align: right"> <div v-if="info.CONFESS_USER_SIGNER_PATH" style="text-align: right">
@ -132,17 +130,17 @@
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr v-if="imgList.length>0">
<td class="bbg-transparent">接受交底人</td> <td class="bbg-transparent">接受交底人</td>
<td colspan="10"> <td colspan="10">
<div v-if="info.ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right"> <div v-if="imgList[0].ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right">
<span>签字</span> <span>签字</span>
<img v-viewer :src="config.fileUrl + info.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100"> <img v-viewer :src="config.fileUrl + imgList[0].ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
<span>{{ info.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span> <span>{{ imgList[0].ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr v-if="info.CONFIRM_USER_SIGNER_TIME">
<td colspan="6"> <td colspan="6">
<div>作业负责人意见{{ info.CONFIRM_CONTENT }}</div> <div>作业负责人意见{{ info.CONFIRM_CONTENT }}</div>
<div style="text-align: right"> <div style="text-align: right">
@ -152,7 +150,7 @@
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr v-if="info.AUDIT_USER_SIGNER_TIME">
<td colspan="6"> <td colspan="6">
<div>用电单位意见{{ info.AUDIT_CONTENT }}</div> <div>用电单位意见{{ info.AUDIT_CONTENT }}</div>
<div style="text-align: right"> <div style="text-align: right">
@ -162,7 +160,7 @@
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr v-if="info.APPROVE_USER_SIGNER_TIME">
<td colspan="6"> <td colspan="6">
<div>配送电单位意见{{ info.APPROVE_CONTENT }}</div> <div>配送电单位意见{{ info.APPROVE_CONTENT }}</div>
<div style="text-align: right"> <div style="text-align: right">
@ -209,6 +207,7 @@ export default {
}, },
measuresList: [], measuresList: [],
gasList: [], gasList: [],
imgList: [],
otherProtectiveMeasures: [] otherProtectiveMeasures: []
} }
}, },
@ -235,23 +234,11 @@ export default {
this.info = data.pd this.info = data.pd
this.measuresList = data.measuresList this.measuresList = data.measuresList
this.gasList = data.gasList this.gasList = data.gasList
this.imgList = data.imgList
this.otherProtectiveMeasures = this.validStr(this.info.OTHER_PROTECTIVE_MEASURES.replace(/;_;/g, '')) ? this.info.OTHER_PROTECTIVE_MEASURES.split(';_;') : [] this.otherProtectiveMeasures = this.validStr(this.info.OTHER_PROTECTIVE_MEASURES.replace(/;_;/g, '')) ? this.info.OTHER_PROTECTIVE_MEASURES.split(';_;') : []
console.info(this.otherProtectiveMeasures) this.info.CONFIRM_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
if (!this.info.WORK_OPERATOR_ID) { this.info.AUDIT_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
this.$set(this.info, 'WORK_OPERATOR_ID', []) this.info.APPROVE_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[2]
} else {
this.info.WORK_OPERATOR_ID = this.info.WORK_OPERATOR_ID.split(',')
}
if (!this.info.WORK_USER) {
this.$set(this.info, 'WORK_USER', [])
} else {
this.info.WORK_OPERATOR_NAME = this.info.WORK_USER.split(',')
}
if (!this.info.CARD_NO) {
this.$set(this.info, 'CARD_NO', [])
} else {
this.info.WORK_OPERATOR_NUMBER = this.info.CARD_NO.split(',')
}
}) })
} }
} }

View File

@ -113,18 +113,18 @@
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr v-if="imgList.length>0">
<td class="bbg-transparent">接受交底人</td> <td class="bbg-transparent">接受交底人</td>
<td colspan="4"> <td colspan="4">
<div v-if="info.ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right"> <div v-if="imgList[0].ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right">
<span>签字</span> <span>签字</span>
<img v-viewer :src="config.fileUrl + info.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100"> <img v-viewer :src="config.fileUrl + imgList[0].ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
<span>{{ info.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span> <span>{{ imgList[0].ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr v-if="info.CONSTRUCTION_USER_SIGNER_TIME">
<td colspan="4"> <td colspan="4">
<div>作业负责人意见{{ info.CONSTRUCTION_CONTENT }}</div> <div>作业负责人意见{{ info.CONSTRUCTION_CONTENT }}</div>
<div style="text-align: right"> <div style="text-align: right">
@ -134,7 +134,7 @@
</div> </div>
</td> </td>
</tr> </tr>
<tr v-if="info.LEADER_USER_ID"> <tr v-if="info.LEADER_USER_SIGNER_TIME">
<td colspan="4"> <td colspan="4">
<div>所在单位意见{{ info.LEADER_CONTENT }}</div> <div>所在单位意见{{ info.LEADER_CONTENT }}</div>
<div style="text-align: right"> <div style="text-align: right">
@ -144,7 +144,7 @@
</div> </div>
</td> </td>
</tr> </tr>
<tr v-if="info.AUDIT_USER_ID"> <tr v-if="info.AUDIT_USER_SIGNER_TIME">
<td colspan="4"> <td colspan="4">
<div>审核部门意见{{ info.AUDIT_CONTENT }}</div> <div>审核部门意见{{ info.AUDIT_CONTENT }}</div>
<div style="text-align: right"> <div style="text-align: right">
@ -154,7 +154,7 @@
</div> </div>
</td> </td>
</tr> </tr>
<tr v-if="info.APPROVE_USER_ID"> <tr v-if="info.APPROVE_USER_SIGNER_TIME">
<td colspan="4"> <td colspan="4">
<div>审批部门意见{{ info.APPROVE_CONTENT }}</div> <div>审批部门意见{{ info.APPROVE_CONTENT }}</div>
<div style="text-align: right"> <div style="text-align: right">
@ -198,7 +198,8 @@ export default {
info: { info: {
OTHER_PROTECTIVE_MEASURES: [] OTHER_PROTECTIVE_MEASURES: []
}, },
measuresList: [] measuresList: [],
imgList: []
} }
}, },
created() { created() {
@ -223,7 +224,19 @@ export default {
).then((data) => { ).then((data) => {
this.info = data.pd this.info = data.pd
this.measuresList = data.measuresList this.measuresList = data.measuresList
this.imgList = data.imgList
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 0) {
this.info.CONFIRM_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
}
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 1) {
this.info.LEADER_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
}
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 2) {
this.info.AUDIT_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[2]
}
if (this.info.OTHER_PROTECTIVE_MEASURES.split(';_;').length > 3) {
this.info.APPROVE_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[3]
}
if (!this.info.OTHER_PROTECTIVE_MEASURES) { if (!this.info.OTHER_PROTECTIVE_MEASURES) {
this.info.OTHER_PROTECTIVE_MEASURES = [] this.info.OTHER_PROTECTIVE_MEASURES = []
} else { } else {

View File

@ -42,12 +42,16 @@
<td colspan="2"> <td colspan="2">
<span>{{ info.PART_WEIGHT }}t</span> <span>{{ info.PART_WEIGHT }}t</span>
<span style="margin-left: 20px;"> <span style="margin-left: 20px;">
{{ info.WORK_LEVEL == '1' ? '一级作业级别' : '' }} {{ info.WORK_LEVEL == '1' ? '一级作业级别' : '' }}
{{ info.WORK_LEVEL == '2' ? '二级作业级别' : '' }} {{ info.WORK_LEVEL == '2' ? '二级作业级别' : '' }}
{{ info.WORK_LEVEL == '3' ? '三级作业级别' : '' }} {{ info.WORK_LEVEL == '3' ? '三级作业级别' : '' }}
</span> </span>
</td> </td>
</tr> </tr>
<tr>
<td class="bbg-transparent">关联的其他特殊作业及安全作业票编号</td>
<td colspan="5">{{ info.SPECIAL_WORK }}</td>
</tr>
<tr> <tr>
<td class="bbg-transparent">风险辨识结果</td> <td class="bbg-transparent">风险辨识结果</td>
<td colspan="5">{{ info.HAZARD_IDENTIFICATION }}</td> <td colspan="5">{{ info.HAZARD_IDENTIFICATION }}</td>
@ -78,7 +82,7 @@
</tr> </tr>
<tr v-if="info.LEADER_USER_MEASURES || info.CONFIRM_USER_MEASURES || info.AUDIT_USER_MEASURES || info.APPROVE_USER_MEASURES"> <tr v-if="info.LEADER_USER_MEASURES || info.CONFIRM_USER_MEASURES || info.AUDIT_USER_MEASURES || info.APPROVE_USER_MEASURES">
<td>{{ measuresList.length + 1 }}</td> <td>{{ measuresList.length + 1 }}</td>
<td colspan="2"> <td colspan="3">
<div v-if="info.LEADER_USER_MEASURES" style="display: flex;justify-content: space-between;"> <div v-if="info.LEADER_USER_MEASURES" style="display: flex;justify-content: space-between;">
<span>其他安全措施{{ info.LEADER_USER_MEASURES }}</span> <span>其他安全措施{{ info.LEADER_USER_MEASURES }}</span>
<span>编制人{{ info.LEADER_USER_NAME }}</span> <span>编制人{{ info.LEADER_USER_NAME }}</span>
@ -110,13 +114,13 @@
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr v-if="imgList.length>0">
<td class="bbg-transparent">接受交底人</td> <td class="bbg-transparent">接受交底人</td>
<td colspan="5"> <td colspan="5">
<div v-if="info.ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right"> <div v-if="imgList[0].ACCEPT_CONFESS_USER_SIGNER_PATH" style="text-align: right">
<span>签字</span> <span>签字</span>
<img v-viewer :src="config.fileUrl + info.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100"> <img v-viewer :src="config.fileUrl + imgList[0].ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
<span>{{ info.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span> <span>{{ imgList[0].ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
</div> </div>
</td> </td>
</tr> </tr>
@ -237,13 +241,34 @@ export default {
CRANE_DRIVER_NUMBER: [] CRANE_DRIVER_NUMBER: []
}, },
measuresList: [], measuresList: [],
oldSupplementaryMeasures: [] oldSupplementaryMeasures: [],
imgList: []
} }
}, },
created() { created() {
this.getData() this.getData()
}, },
methods: { methods: {
handleStr(measuresList) {
for (let i = 0; i < measuresList.length; i++) {
//
const PROTECTIVE_MEASURES = measuresList[i].PROTECTIVE_MEASURES.split('')
for (let j = 1; j <= 3; j++) {
//
if (this.findCharIndex(PROTECTIVE_MEASURES, '', j) !== -1) {
//
PROTECTIVE_MEASURES.splice(
this.findCharIndex(PROTECTIVE_MEASURES, '', j) + 1,
0,
measuresList[i]['ANSWER' + j]
)
}
}
//
measuresList[i].PROTECTIVE_MEASURES = PROTECTIVE_MEASURES.join('')
}
return measuresList
},
formatDate(date, format) { formatDate(date, format) {
if (date) { if (date) {
return moment(date).format(format) return moment(date).format(format)
@ -261,7 +286,12 @@ export default {
} }
).then((data) => { ).then((data) => {
this.info = data.pd this.info = data.pd
this.measuresList = data.measuresList this.measuresList = data.measuresList // map
this.imgList = data.imgList
this.info.LEADER_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
this.info.CONFIRM_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
this.info.AUDIT_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[2]
this.info.APPROVE_USER_MEASURES = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')[3]
if (!this.info.CRANE_DRIVER_ID) { if (!this.info.CRANE_DRIVER_ID) {
this.$set(this.info, 'CRANE_DRIVER_ID', []) this.$set(this.info, 'CRANE_DRIVER_ID', [])
} else { } else {