qa-prevention-gwj-vue/src/views/map/dialog/hoisting.vue

238 lines
7.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<div class="app-container print-work" style="width: 100%">
<div class="level-title">
<h1>吊装安全作业证</h1>
<div class="level-btns">编号:{{ info.NUMBERING }}</div>
</div>
<table class="table-ui">
<tr>
<td class="bbg-transparent" width="20%">吊装地点</td>
<td width="32%">{{ info.HOISTING_LOCATION }}</td>
<td class="bbg-transparent" width="20%">吊装工具</td>
<td width="28%">{{ info.HOISTING_EQUIPMENT }}</td>
</tr>
<tr>
<td class="bbg-transparent">吊装作业负责人</td>
<td>{{ info.LIFTING_OPERATION_MANAGER_NAME }}</td>
<td class="bbg-transparent">安全监护人</td>
<td>{{ info.SAFETY_GUARDIAN_NAME }}</td>
</tr>
<tr>
<td class="bbg-transparent">指挥工</td>
<td>姓名{{ info.COMMANDER_NAME }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作业证号{{ info.COMMANDER_NUMBER }}</td>
<td class="bbg-transparent">起重司机</td>
<td>
<div v-for="(item, index) in info.CRANE_DRIVER_NAME" :key="index+Math.random()">
姓名:{{ info.CRANE_DRIVER_NAME[index] }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作业证号:{{ info.CRANE_DRIVER_NUMBER[index] }}
</div>
</td>
</tr>
<tr>
<td class="bbg-transparent">作业时间</td>
<td colspan="3">
自 {{ formatDate(info.JOB_START_TIME,'YYYY年MM月DD日HH时mm分') }} 至 {{ formatDate(info.JOB_END_TIME,'YYYY年MM月DD日HH时mm分') }} 止
</td>
</tr>
<tr>
<td class="bbg-transparent">吊装作业内容</td>
<td colspan="2">
{{ info.HOISTING_WORK_CONTENT }}
</td>
<td>起吊重物质量(t){{ info.LIFTING_WEIGHT }} </td>
</tr>
<tr>
<td colspan="4" style="padding: 0;">
<table class="table-vi">
<tr class="bbg-transparent">
<td>序号</td>
<td>主要安全措施</td>
<td class="tcenter select">是否合格</td>
</tr>
<tr v-for="(item, index) in measuresList" :key="item.HOISTING_MEASURES_ID">
<td style="text-align: center">
{{ index+1 }}
</td>
<td>
{{ item.PROTECTIVE_MEASURES }}
</td>
<td class="tcenter select">
<span v-if="item.STATUS === '1'">合格</span>
<span v-if="item.STATUS === '-1'">不合格</span>
</td>
</tr>
</table>
</td>
</tr>
<tr v-if="oldSupplementaryMeasures.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 oldSupplementaryMeasures" :key="index">
<td>{{ item }}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4" style="padding:0">
<table class="table-vi">
<tr>
<td>
<div><span>作业负责人意见</span>
<span>
{{ info.CONSTRUCTION_JOB_MANAGER_OPINION }}
</span>
</div>
<div style="text-align: right">
<span class="print-approval-img">
<img v-if="info.CONSTRUCTION_JOB_MANAGER_SIGNER_PATH" :src="config.fileUrl+info.CONSTRUCTION_JOB_MANAGER_SIGNER_PATH">
</span>
<span v-if="info.CONSTRUCTION_JOB_MANAGER_SIGNER_TIME">{{ formatDate(info.CONSTRUCTION_JOB_MANAGER_SIGNER_TIME,'YYYY年MM月DD日HH时mm分') }}</span>
</div>
</td>
<td>
<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_SIGNER_PATH" :src="config.fileUrl+info.WORK_UNIT_MANAGER_SIGNER_PATH">
</span>
<span v-if="info.WORK_UNIT_MANAGER_SIGNER_TIME">{{ formatDate(info.WORK_UNIT_MANAGER_SIGNER_TIME,'YYYY年MM月DD日HH时mm分') }}</span>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4" style="padding:0">
<table class="table-vi">
<tr>
<td>
<div><span>分公司(中心)审批意见:</span>
<span>
{{ info.BRANCH_APPROVER_OPINION }}
</span>
</div>
<div style="text-align: right">
<span class="print-approval-img">
<img v-if="info.BRANCH_APPROVER_SIGNER_PATH" :src="config.fileUrl+info.BRANCH_APPROVER_SIGNER_PATH">
</span>
<span v-if="info.BRANCH_APPROVER_SIGNER_TIME">{{ formatDate(info.BRANCH_APPROVER_SIGNER_TIME,'YYYY年MM月DD日HH时mm分') }}</span>
</div>
</td>
<td v-if="info.ACCEPTOR_SIGNER_TIME">
<div>
<span>验收意见:</span>
<span>
{{ info.ACCEPTOR_OPINION }}
</span>
</div>
<div style="text-align: right">
<span class="print-approval-img">
<img v-if="info.ACCEPTOR_SIGNER_PATH" :src="config.fileUrl+info.ACCEPTOR_SIGNER_PATH">
</span>
<span v-if="info.ACCEPTOR_SIGNER_TIME">{{ formatDate(info.ACCEPTOR_SIGNER_TIME,'YYYYMMDDHHmm') }}</span>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</template>
<script>
import { requestFN } from '@/utils/request'
import moment from 'moment/moment'
export default {
props: {
id: {
type: String,
default() {
return ''
}
},
type: {
type: String,
default() {
return ''
}
},
gangkou: {
type: String,
default: ''
}
},
data() {
return {
config: config,
info: {
CRANE_DRIVER_NAME: [],
CRANE_DRIVER_NUMBER: []
},
measuresList: [],
oldSupplementaryMeasures: []
}
},
created() {
this.getData()
},
methods: {
formatDate(date, format) {
if (date) {
return moment(date).format(format)
} else {
return ''
}
},
getData() {
requestFN(
'/map/Eight/getById',
{
id: this.id,
TYPE: this.type,
GANGKOU: this.gangkou
}
).then((data) => {
this.info = data.pd
this.measuresList = data.measuresList
if (!this.info.CRANE_DRIVER_ID) {
this.$set(this.info, 'CRANE_DRIVER_ID', [])
} else {
this.info.CRANE_DRIVER_ID = this.info.CRANE_DRIVER_ID.split(',')
}
if (!this.info.CRANE_DRIVER_NAME) {
this.$set(this.info, 'CRANE_DRIVER_NAME', [])
} else {
this.info.CRANE_DRIVER_NAME = this.info.CRANE_DRIVER_NAME.split(',')
}
if (!this.info.CRANE_DRIVER_NUMBER) {
this.$set(this.info, 'CRANE_DRIVER_NUMBER', [])
} else {
this.info.CRANE_DRIVER_NUMBER = this.info.CRANE_DRIVER_NUMBER.split(',')
}
if (this.info.OTHER_PROTECTIVE_MEASURES) {
this.oldSupplementaryMeasures = this.info.OTHER_PROTECTIVE_MEASURES.split(';_;')
}
}).catch((e) => {
})
}
}
}
</script>
<style lang="scss" scoped>
</style>