企业端八项作业bug修复
parent
760adc19f5
commit
d890052fa7
|
@ -2,219 +2,179 @@
|
|||
<div class="app-container print-work">
|
||||
<div class="level-title">
|
||||
<h1>有限空间作业许可证</h1>
|
||||
<div class="level-btns">编号:{{ info.WORK_PERMIT_NUMBER }}</div>
|
||||
<div class="level-btns">编号:{{ info.CHECK_NO }}</div>
|
||||
</div>
|
||||
<table class="table-ui">
|
||||
<tr>
|
||||
<td class="bbg-transparent">管理单位</td>
|
||||
<td>{{ info.MANAGEMENT_UNIT_NAME }}</td>
|
||||
<td class="bbg-transparent">作业单位</td>
|
||||
<td>{{ info.WORK_UNIT_NAME }}</td>
|
||||
<td class="bbg-transparent">作业申请单位</td>
|
||||
<td colspan="5">{{ info.APPLY_DEPARTMENT_NAME }}</td>
|
||||
<td class="bbg-transparent">作业申请时间</td>
|
||||
<td colspan="3">{{ info.CREATTIME }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="bbg-transparent">作业地点</td>
|
||||
<td>{{ info.WORK_LOCATION }}</td>
|
||||
<td class="bbg-transparent">有限空间名称及编号</td>
|
||||
<td>{{ info.RESTRICTED_SPACE_NAME }}</td>
|
||||
<td class="bbg-transparent">受限空间名称</td>
|
||||
<td colspan="5">{{ info.LIMITSPACE_NAME }}</td>
|
||||
<td class="bbg-transparent">受限空间内原有介质名称</td>
|
||||
<td colspan="3">{{ info.MEDIUM_NAME }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="bbg-transparent">主要介质</td>
|
||||
<td>{{ info.MAIN_MEDIUM }}</td>
|
||||
<td class="bbg-transparent">主要危险因素</td>
|
||||
<td>{{ info.MAJOR_RISK_FACTORS }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="bbg-transparent">作业内容</td>
|
||||
<td colspan="3">{{ info.CONTENTS_OF_HOMEWORK }}</td>
|
||||
<td colspan="9">{{ info.WORK_CONTENT }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="4" style="padding: 0;">
|
||||
<table class="table-vi">
|
||||
<td class="bbg-transparent">作业单位</td>
|
||||
<td colspan="5">{{ info.CONFIRM_DEPARTMENT_NAME }}</td>
|
||||
<td class="bbg-transparent">作业负责人</td>
|
||||
<td colspan="3">{{ info.CONFIRM_USER_NAME }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bbg-transparent">作业人</td>
|
||||
<td>{{ info.WORKER }}</td>
|
||||
<td colspan="5">{{ info.WORK_USER }}</td>
|
||||
<td class="bbg-transparent">监护人</td>
|
||||
<td>{{ info.GUARDIAN }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="bbg-transparent">作业时间</td>
|
||||
<td colspan="3">
|
||||
自 {{ formatDate(info.WORK_START_DATE, 'YYYY年MM月DD日HH时mm分') }} 至
|
||||
{{ formatDate(info.WORK_END_DATE, 'YYYY年MM月DD日HH时mm分') }} 止
|
||||
<td colspan="5">
|
||||
<div v-if="info.GUARDIAN_USER_SIGNER_PATH" style="text-align: right">
|
||||
<span>签字:</span>
|
||||
<img v-viewer :src="config.fileUrl + info.GUARDIAN_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||
<span>{{ info.GUARDIAN_USER_SIGNER_TIME }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" style="padding: 0;">
|
||||
<table class="table-vi">
|
||||
<tr class="bbg-transparent">
|
||||
<td :rowspan="gasList.length+1" align="center"> 采样分析</td>
|
||||
<td align="center">分析项目</td>
|
||||
<td align="center">有毒有害物质</td>
|
||||
<td align="center">可燃气</td>
|
||||
<td align="center">含氧量</td>
|
||||
<td align="center">取样时间</td>
|
||||
<td align="center">取样部位</td>
|
||||
<td align="center">分析人</td>
|
||||
<td class="bbg-transparent">关联的其他特殊作业及安全作业票编号</td>
|
||||
<td colspan="9">{{ info.SPECIAL_WORK }}</td>
|
||||
</tr>
|
||||
<template v-if="gasList.length > 0 ">
|
||||
<tr v-for="(item,index) in gasList" :key="item.CONFINEDSPACEGAS_ID">
|
||||
<td v-if="index==0" :rowspan="gasList.length">采样分析</td>
|
||||
<td>{{ item.HARMFUL_MATERIALS }}</td>
|
||||
<td>{{ item.COMBUSTIBLE_GAS }}</td>
|
||||
<tr>
|
||||
<td class="bbg-transparent">风险辨识结果</td>
|
||||
<td colspan="9">{{ info.RISK_IDENTIFICATION }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td :rowspan="3 + gasList.length" class="bbg-transparent">气体分析</td>
|
||||
<td class="bbg-transparent" rowspan="2">分析项目</td>
|
||||
<td class="bbg-transparent" colspan="2">有毒有害气体名称</td>
|
||||
<td class="bbg-transparent" colspan="2">可燃气体名称</td>
|
||||
<td class="bbg-transparent" rowspan="2">氧气含量</td>
|
||||
<td class="bbg-transparent" rowspan="3">取样分析时间</td>
|
||||
<td class="bbg-transparent" rowspan="3">分析部位</td>
|
||||
<td class="bbg-transparent" rowspan="3">分析人</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td :style="{padding:gas.GAS_NAME1 ? '8px' : '16px'}">{{ gas.GAS_NAME1 }}</td>
|
||||
<td :style="{padding:gas.GAS_NAME2 ? '8px' : '16px'}">{{ gas.GAS_NAME2 }}</td>
|
||||
<td :style="{padding:gas.GAS_NAME3 ? '8px' : '16px'}">{{ gas.GAS_NAME3 }}</td>
|
||||
<td :style="{padding:gas.GAS_NAME4 ? '8px' : '16px'}">{{ gas.GAS_NAME4 }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bbg-transparent">合格标准</td>
|
||||
<td>{{ gas.GAS_STANDARD1 }}</td>
|
||||
<td>{{ gas.GAS_STANDARD2 }}</td>
|
||||
<td>{{ gas.GAS_STANDARD3 }}</td>
|
||||
<td>{{ gas.GAS_STANDARD4 }}</td>
|
||||
<td>19.5% 〜21%(体积分数)</td>
|
||||
</tr>
|
||||
<tr v-for="(item,index) in gasList" :key="index">
|
||||
<td v-if="index === 0" :rowspan="gasList.length" class="bbg-transparent">分析数据</td>
|
||||
<td><span v-if="gas.GAS_NAME1">{{ item.DATA1 }}</span></td>
|
||||
<td><span v-if="gas.GAS_NAME2">{{ item.DATA2 }}</span></td>
|
||||
<td><span v-if="gas.GAS_NAME3">{{ item.DATA3 }}</span></td>
|
||||
<td><span v-if="gas.GAS_NAME4">{{ item.DATA4 }}</span></td>
|
||||
<td>{{ item.OXYGEN_CONTENT }}</td>
|
||||
<td>{{ item.ANALYZE_TIME }}</td>
|
||||
<td>{{ item.ANALYZE_PLACE }}</td>
|
||||
<td>{{ item.ANALYZE_USER }}</td>
|
||||
</tr>
|
||||
</template>
|
||||
<tr v-else>
|
||||
<td colspan="8" class="bbg-transparent">暂无数据</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<tr>
|
||||
<td class="bbg-transparent">作业实施时间</td>
|
||||
<td colspan="9">{{ info.WORK_START_DATE }}至{{ info.WORK_END_DATE }}止</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" style="padding: 0;">
|
||||
<table class="table-vi">
|
||||
<tr class="bbg-transparent">
|
||||
<td style="width:80px">序号</td>
|
||||
<td>主要安全措施</td>
|
||||
<td style="width: 80px">是否合格</td>
|
||||
<td colspan="10">
|
||||
<table class="table-ui">
|
||||
<tr>
|
||||
<td>序号</td>
|
||||
<td>安全措施</td>
|
||||
<td style="width: 100px">是否涉及</td>
|
||||
<td style="width: 100px">确认人</td>
|
||||
</tr>
|
||||
<tr v-for="(item,index) in measuresList" :key="item.BUS_CONFINEDSPACE_MEASURES_ID" class="bbg-transparent">
|
||||
<tr v-for="(item,index) in measuresList" :key="index">
|
||||
<td>{{ index + 1 }}</td>
|
||||
<td>
|
||||
{{ index + 1 }}
|
||||
{{ item.PROTECTIVE_MEASURES }}
|
||||
</td>
|
||||
<td>
|
||||
<span v-if="item.STATUS=='1'"><input type="radio" disabled checked>涉 及</span>
|
||||
<span v-if="item.STATUS=='-1'"><input type="radio" disabled checked>不涉及</span>
|
||||
</td>
|
||||
<td>
|
||||
{{ item.CONFIRM_NAME }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="info.CONFIRM_USER_MEASURES || info.APPROVE_USER_MEASURES" >
|
||||
<td >{{ measuresList.length + 1 }}</td>
|
||||
<td colspan="3">
|
||||
<div v-if="info.CONFIRM_USER_MEASURES" style="display: flex;justify-content: space-between;">
|
||||
<span>其他安全措施:{{ info.CONFIRM_USER_MEASURES }}</span>
|
||||
<span>编制人:{{ info.CONFIRM_USER_NAME }}</span>
|
||||
</div>
|
||||
<div v-if="info.APPROVE_USER_MEASURES" style="display: flex;justify-content: space-between;">
|
||||
<span>其他安全措施:{{ info.APPROVE_USER_MEASURES }}</span>
|
||||
<span>编制人:{{ info.APPROVE_USER_NAME }}</span>
|
||||
</div>
|
||||
</td>
|
||||
<td>{{ item.PROTECTIVE_MEASURES }}</td>
|
||||
<td v-if="item.STATUS == 1">合格</td>
|
||||
<td v-else-if="item.STATUS == 0">不合格</td>
|
||||
<td v-else/>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="oldHazardIdentification.length > 0">
|
||||
<td colspan="4" style="padding: 0;">
|
||||
<table class="table-vi">
|
||||
<tr class="bbg-transparent">
|
||||
<td>危害因素辨识</td>
|
||||
<tr>
|
||||
<td class="bbg-transparent">安全交底人</td>
|
||||
<td colspan="10">
|
||||
<div v-if="info.CONFESS_USER_SIGNER_PATH" style="text-align: right">
|
||||
<span>签字:</span>
|
||||
<img v-viewer :src="config.fileUrl + info.CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||
<span>{{ info.CONFESS_USER_SIGNER_TIME }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-for="(item,index) in oldHazardIdentification" :key="index">
|
||||
<td v-if="item">{{ item }}</td>
|
||||
<tr>
|
||||
<td class="bbg-transparent">接受交底人</td>
|
||||
<td colspan="10">
|
||||
<div v-for="item in imgList" :key="item.ACCEPT_CONFESS_ID" style="text-align: right">
|
||||
<span>签字:</span>
|
||||
<img v-viewer :src="config.fileUrl + item.ACCEPT_CONFESS_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||
<span>{{ item.ACCEPT_CONFESS_USER_SIGNER_TIME }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<tr v-if="info.CONFIRM_USER_SIGNER_PATH">
|
||||
<td colspan="10">
|
||||
<div>作业负责人意见:{{ info.CONFIRM_CONTENT }}</div>
|
||||
<div style="text-align: right">
|
||||
<span>签字:</span>
|
||||
<img v-viewer :src="config.fileUrl + info.CONFIRM_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||
<span>{{ info.CONFIRM_USER_SIGNER_TIME }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="oldWorkSafetyMeasures.length > 0">
|
||||
<td colspan="4" style="padding: 0;">
|
||||
<table class="table-vi">
|
||||
<tr class="bbg-transparent">
|
||||
<td>作业安全措施</td>
|
||||
</tr>
|
||||
<tr v-for="(item,index) in oldWorkSafetyMeasures" :key="index">
|
||||
<td v-if="item">{{ item }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<div><span>作业单位负责人意见:</span>
|
||||
<span>
|
||||
{{ info.WORK_UNIT_MANAGER_OPINION }}
|
||||
</span>
|
||||
</div>
|
||||
<div style="text-align: right;">
|
||||
<span class="print-approval-img">
|
||||
<img v-if="info.WORK_UNIT_MANAGER_IMG" :src="config.fileUrl+info.WORK_UNIT_MANAGER_IMG">
|
||||
</span>
|
||||
<span v-if="info.WORK_UNIT_MANAGER_TIME">{{
|
||||
formatDate(info.WORK_UNIT_MANAGER_TIME, 'YYYY年MM月DD日HH时mm分')
|
||||
}}</span>
|
||||
<tr v-if="info.APPROVE_USER_SIGNER_PATH">
|
||||
<td colspan="10">
|
||||
<div>所在单位意见:{{ info.APPROVE_CONTENT }}</div>
|
||||
<div style="text-align: right">
|
||||
<span>签字:</span>
|
||||
<img v-viewer :src="config.fileUrl + info.APPROVE_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||
<span>{{ info.APPROVE_USER_SIGNER_TIME }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<div><span>作业现场负责人意见:</span>
|
||||
<span>
|
||||
{{ info.JOB_SITE_MANAGER_OPINION }}
|
||||
</span>
|
||||
</div>
|
||||
<div style="text-align: right;">
|
||||
<span class="print-approval-img">
|
||||
<img v-if="info.JOB_SITE_MANAGER_IMG" :src="config.fileUrl+info.JOB_SITE_MANAGER_IMG">
|
||||
</span>
|
||||
<span v-if="info.JOB_SITE_MANAGER_TIME">{{
|
||||
formatDate(info.JOB_SITE_MANAGER_TIME, 'YYYY年MM月DD日HH时mm分')
|
||||
}}</span>
|
||||
<tr v-if="imgList1.length>0">
|
||||
<td colspan="10">
|
||||
<div>完工验收:{{ info.ACCEPT_CONTENT }}</div>
|
||||
<div v-for="item in imgList1" :key="item.ACCEPT_CONFESS_ID" style="text-align: right">
|
||||
<span>签字:</span>
|
||||
<img v-viewer :src="config.fileUrl + item.ACCEPT_USER_SIGNER_PATH" alt="" width="100" height="100">
|
||||
<span>{{ item.ACCEPT_USER_SIGNER_TIME }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<div><span>管理单位负责人意见:</span>
|
||||
<span>
|
||||
{{ info.MANAGEMENT_UNIT_OPINION }}
|
||||
</span>
|
||||
</div>
|
||||
<div style="text-align: right;">
|
||||
<span class="print-approval-img">
|
||||
<img v-if="info.MANAGEMENT_UNIT_IMG" :src="config.fileUrl+info.MANAGEMENT_UNIT_IMG">
|
||||
</span>
|
||||
<span v-if="info.MANAGEMENT_UNIT_TIME">{{
|
||||
formatDate(info.MANAGEMENT_UNIT_TIME, 'YYYY年MM月DD日HH时mm分')
|
||||
}}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<div><span>完工验收作业单位负责人意见:</span>
|
||||
<span>
|
||||
{{ info.COMPLETION_ACCEPTANCE_OPINION }}
|
||||
</span>
|
||||
</div>
|
||||
<div style="text-align: right;">
|
||||
<span class="print-approval-img">
|
||||
<img v-if="info.COMPLETION_ACCEPTANCE_IMG" :src="config.fileUrl+info.COMPLETION_ACCEPTANCE_IMG">
|
||||
</span>
|
||||
<span v-if="info.COMPLETION_ACCEPTANCE_TIME">{{
|
||||
formatDate(info.COMPLETION_ACCEPTANCE_TIME, 'YYYY年MM月DD日HH时mm分')
|
||||
}}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<!--<tr>
|
||||
<td colspan="4">
|
||||
<div><span>完工验收管理单位负责人意见:</span>
|
||||
<span>
|
||||
{{ info.COMPLETION_ACCEPTANCE_MANAGEMENT_OPINION }}
|
||||
</span>
|
||||
</div>
|
||||
<div style="text-align: right;">
|
||||
<span class="print-approval-img">
|
||||
<img
|
||||
v-if="info.COMPLETION_ACCEPTANCE_MANAGEMENT_OPINION_IMG"
|
||||
:src="config.fileUrl+info.COMPLETION_ACCEPTANCE_MANAGEMENT_OPINION_IMG">
|
||||
</span>
|
||||
<span v-if="info.COMPLETION_ACCEPTANCE_MANAGEMENT_TIME">{{
|
||||
formatDate(info.COMPLETION_ACCEPTANCE_MANAGEMENT_TIME, 'YYYY年MM月DD日HH时mm分')
|
||||
}}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>-->
|
||||
</table>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -249,7 +209,11 @@ export default {
|
|||
measuresList: [],
|
||||
gasList: [],
|
||||
oldHazardIdentification: [],
|
||||
oldWorkSafetyMeasures: []
|
||||
oldWorkSafetyMeasures: [],
|
||||
imgList: [],
|
||||
imgList1: [],
|
||||
gas: {},
|
||||
otherProtectiveMeasures: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
@ -266,7 +230,7 @@ export default {
|
|||
},
|
||||
getData() {
|
||||
requestFN(
|
||||
'/map/Eight/getById',
|
||||
'/map/Eight/getByIdOrder',
|
||||
{
|
||||
id: this.id,
|
||||
TYPE: this.type,
|
||||
|
@ -275,17 +239,40 @@ export default {
|
|||
).then((data) => {
|
||||
this.listLoading = false
|
||||
this.info = data.pd
|
||||
this.measuresList = data.measuresList || []
|
||||
this.gasList = data.gasList || []
|
||||
|
||||
if (this.info.HARM) {
|
||||
this.oldHazardIdentification = this.info.HARM.split('$$$')
|
||||
this.imgList = data.imgList
|
||||
this.imgList1 = data.imgList1
|
||||
for (let i = 0; i < data.measuresList.length; i++) {
|
||||
// 将字符串转成数组
|
||||
const PROTECTIVE_MEASURES = data.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,
|
||||
data.measuresList[i]['ANSWER' + j]
|
||||
)
|
||||
}
|
||||
if (this.info.SAFTETY) {
|
||||
this.oldWorkSafetyMeasures = this.info.SAFTETY.split('$$$')
|
||||
}
|
||||
// 将数组转回字符串
|
||||
data.measuresList[i].PROTECTIVE_MEASURES = PROTECTIVE_MEASURES.join('')
|
||||
}
|
||||
this.measuresList = data.measuresList // 参数map
|
||||
this.gasList = data.gasList // 参数map
|
||||
this.gas = data.gas || {} // 参数map
|
||||
this.info.CONFIRM_USER_MEASURES = data.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0]
|
||||
this.info.APPROVE_USER_MEASURES = data.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1]
|
||||
}).catch((e) => {
|
||||
console.log(e)
|
||||
})
|
||||
},
|
||||
findCharIndex(str, char, num) {
|
||||
let index = str.indexOf(char)
|
||||
for (let i = 0; i < num - 1; i++) {
|
||||
index = str.indexOf(char, index + 1)
|
||||
}
|
||||
return index
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue