forked from integrated_whb/integrated_whb_vue
八项作业扎点与弹窗
parent
3aef4d21fe
commit
7da60f0fbb
|
@ -0,0 +1,416 @@
|
|||
<template>
|
||||
<el-dialog v-model="visible" title="作业票信息">
|
||||
<div id="printContent">
|
||||
<table class="archive_print_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="10" style="border: none">
|
||||
<el-divider content-position="left">
|
||||
盲板抽堵安全作业票
|
||||
</el-divider>
|
||||
<div class="tr">编号:{{ data.info.CHECK_NO }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td class="title">申请单位</td>
|
||||
<td colspan="2">{{ data.info.APPLY_DEPARTMENT_NAME }}</td>
|
||||
<td class="title">作业单位</td>
|
||||
<td colspan="2">{{ data.info.CONFIRM_DEPARTMENT_NAME }}</td>
|
||||
<td class="title">作业类别</td>
|
||||
<td>
|
||||
<input
|
||||
:checked="data.info.WORK_TYPE === 1"
|
||||
type="checkbox"
|
||||
disabled
|
||||
/>堵盲板
|
||||
<input
|
||||
:checked="data.info.WORK_TYPE === 2"
|
||||
type="checkbox"
|
||||
disabled
|
||||
/>抽盲板
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2" class="title">设备、管道名称</td>
|
||||
<td colspan="3" class="title">管道参数</td>
|
||||
<td colspan="3" class="title">盲板参数</td>
|
||||
<td rowspan="2" class="title">实际作业开始时间</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">介质</td>
|
||||
<td class="title">温度</td>
|
||||
<td class="title">压力</td>
|
||||
<td class="title">材质</td>
|
||||
<td class="title">规格</td>
|
||||
<td class="title">编号</td>
|
||||
</tr>
|
||||
<tr v-for="(item, index) in data.boardList" :key="index">
|
||||
<td v-if="index === 0" :rowspan="data.boardList.length">
|
||||
{{ data.info.NAME }}
|
||||
</td>
|
||||
<td v-if="index === 0" :rowspan="data.boardList.length">
|
||||
{{ data.info.MEDIUM }}
|
||||
</td>
|
||||
<td v-if="index === 0" :rowspan="data.boardList.length">
|
||||
{{ data.info.TEMPERATURE }}
|
||||
</td>
|
||||
<td v-if="index === 0" :rowspan="data.boardList.length">
|
||||
{{ data.info.PRESSURE }}
|
||||
</td>
|
||||
<td>{{ item.BOARD_MATERIAL }}</td>
|
||||
<td>{{ item.BOARD_SPECIFICATION }}</td>
|
||||
<td>{{ item.BOARD_NO }}</td>
|
||||
<td v-if="index === 0" :rowspan="data.boardList.length">
|
||||
{{ data.info.WORK_START_DATE }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.info.BOARD_PATH">
|
||||
<td colspan="8">
|
||||
<div>盲板位置图(可另附图)及编号:</div>
|
||||
<div
|
||||
v-if="data.info.BOARD_PATH"
|
||||
style="
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 20px;
|
||||
"
|
||||
>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.info.BOARD_PATH"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mt-10 mr-10"
|
||||
/>
|
||||
<div>
|
||||
签字:
|
||||
<img
|
||||
v-for="(item, index) in data.signs.WORKSHOP?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.WORKSHOP?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="title">作业负责人</td>
|
||||
<td colspan="2">
|
||||
<img
|
||||
v-for="(item, index) in data.signs.CONFIRM?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="ml-10"
|
||||
/>
|
||||
</td>
|
||||
<td class="title">作业人</td>
|
||||
<td>
|
||||
<img
|
||||
v-for="(item, index) in data.signs.WORK_USER?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="ml-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
<td class="title">监护人</td>
|
||||
<td colspan="4">
|
||||
<img
|
||||
v-for="(item, index) in data.signs.GUARDIAN?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="ml-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="title">关联的其他特殊作业及安全作业票编号</td>
|
||||
<td colspan="6">{{ data.info.SPECIAL_WORK }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="title">风险辨识结果</td>
|
||||
<td colspan="6">{{ data.info.RISK_IDENTIFICATION }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="11">
|
||||
<table class="archive_print_table">
|
||||
<tr>
|
||||
<td style="width: 80px">序号</td>
|
||||
<td>安全措施</td>
|
||||
<td style="width: 100px">是否涉及</td>
|
||||
<td style="width: 100px">确认人</td>
|
||||
</tr>
|
||||
<tr v-for="(item, index) in data.measuresList" :key="index">
|
||||
<td>{{ index + 1 }}</td>
|
||||
<td>
|
||||
{{ item.PROTECTIVE_MEASURES }}
|
||||
<div v-if="item.IMG_PATH" class="mt-10">
|
||||
<template
|
||||
v-for="img in item.IMG_PATH.split(',')"
|
||||
:key="img"
|
||||
>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + img"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="ml-10 mt-10"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<span v-if="item.STATUS === '1'">
|
||||
涉 及
|
||||
</span>
|
||||
<span v-if="item.STATUS === '-1'"> 不涉及 </span>
|
||||
</td>
|
||||
<td>
|
||||
<img
|
||||
v-if="item.SIGN_PATH"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item.SIGN_PATH"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="ml-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<template v-if="data.signs.MEASURES_CONFIRM">
|
||||
<tr
|
||||
v-for="(item, index) in data.signs.MEASURES_CONFIRM"
|
||||
:key="item.BUS_BLINDBOARD_MEASURES_ID"
|
||||
>
|
||||
<td>{{ data.measuresList.length + 1 + index }}</td>
|
||||
<td colspan="2">
|
||||
<div style="display: flex; justify-content: space-between">
|
||||
<span> 其他安全措施: {{ item.DESCR }} </span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<img
|
||||
v-if="item.SIGN_PATH?.[0]"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item.SIGN_PATH?.[0]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="ml-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.CONFESS">
|
||||
<td colspan="11">
|
||||
<div>
|
||||
安全交底人:
|
||||
<div v-if="data.signs.CONFESS?.[0].IMG_PATH?.[0]">
|
||||
<template
|
||||
v-for="img in data.signs.CONFESS?.[0].IMG_PATH"
|
||||
:key="img"
|
||||
>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + img"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="ml-10 mt-10"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.CONFESS?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.CONFESS?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.CONFESS?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.ACCEPT_CONFESS">
|
||||
<td colspan="11">
|
||||
<div>接受交底人:</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.ACCEPT_CONFESS?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="
|
||||
VITE_FILE_URL +
|
||||
data.signs.ACCEPT_CONFESS?.[0].SIGN_PATH[index]
|
||||
"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.ACCEPT_CONFESS?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.CONFIRM">
|
||||
<td colspan="11">
|
||||
<div>作业负责人意见:{{ data.signs.CONFIRM?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.CONFIRM?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.CONFIRM?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.CONFIRM?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="data.signs.LEADER">
|
||||
<td colspan="11">
|
||||
<div>所在单位意见:{{ data.signs.LEADER?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.LEADER?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.LEADER?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.LEADER?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="data.signs.ACCEPT">
|
||||
<td colspan="11">
|
||||
<div>完工验收:{{ data.signs.ACCEPT?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.ACCEPT?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.ACCEPT?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.ACCEPT?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button @click="fnClose">关闭</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useVModels } from "@vueuse/core";
|
||||
import { reactive } from "vue";
|
||||
import { findCharIndex } from "@/assets/js/utils.js";
|
||||
|
||||
const props = defineProps({
|
||||
visible: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
default: false,
|
||||
},
|
||||
pd: {
|
||||
type: Object,
|
||||
required: true,
|
||||
default: () => ({}),
|
||||
},
|
||||
});
|
||||
const VITE_FILE_URL = import.meta.env.VITE_FILE_URL;
|
||||
const data = reactive({
|
||||
info: {},
|
||||
measuresList: [],
|
||||
gasList: [],
|
||||
signs: [],
|
||||
});
|
||||
|
||||
const fnInit = () => {
|
||||
data.info = props.pd.pd;
|
||||
const measuresList = props.pd.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 (findCharIndex(PROTECTIVE_MEASURES, "(", j) !== -1) {
|
||||
PROTECTIVE_MEASURES.splice(
|
||||
findCharIndex(PROTECTIVE_MEASURES, "(", j) + 1,
|
||||
0,
|
||||
measuresList[i]["ANSWER" + j]
|
||||
);
|
||||
}
|
||||
}
|
||||
measuresList[i].PROTECTIVE_MEASURES = PROTECTIVE_MEASURES.join("");
|
||||
}
|
||||
data.measuresList = measuresList;
|
||||
data.gasList = props.pd.gasList;
|
||||
data.signs = props.pd.signs;
|
||||
};
|
||||
fnInit();
|
||||
|
||||
const emits = defineEmits(["update:visible"]);
|
||||
const { visible } = useVModels(props, emits);
|
||||
const fnClose = () => {
|
||||
visible.value = false;
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
|
@ -0,0 +1,412 @@
|
|||
<template>
|
||||
<el-dialog v-model="visible" title="作业票信息">
|
||||
<div id="printContent">
|
||||
<table class="archive_print_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="10" style="border: none">
|
||||
<el-divider content-position="left"> 断路安全作业票 </el-divider>
|
||||
<div class="tr">编号:{{ data.info.CHECK_NO }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td class="title">申请单位</td>
|
||||
<td>{{ data.info.APPLY_DEPARTMENT_NAME }}</td>
|
||||
<td class="title">作业单位</td>
|
||||
<td>{{ data.info.CONFIRM_DEPARTMENT_NAME }}</td>
|
||||
<td class="title">作业负责人</td>
|
||||
<td>
|
||||
<img
|
||||
v-for="(item, index) in data.signs.CONFIRM?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">涉及相关单位(部门)</td>
|
||||
<td colspan="3">{{ data.info.OTHER_DEPT }}</td>
|
||||
<td class="title">监护人</td>
|
||||
<td>
|
||||
<img
|
||||
v-for="(item, index) in data.signs.GUARDIAN?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">断路原因</td>
|
||||
<td colspan="5">{{ data.info.WORK_REASON }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">关联的其他特殊作业及安全作业票编号</td>
|
||||
<td colspan="5">{{ data.info.SPECIAL_WORK }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<div>
|
||||
断路地段示意图(可另附图)及相关说明:{{ data.info.WORK_CONTENT }}
|
||||
</div>
|
||||
<div
|
||||
v-if="data.info.CONTENT_IMG_PATH"
|
||||
style="
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 20px;
|
||||
"
|
||||
>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.info.CONTENT_IMG_PATH"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<div>
|
||||
签字:
|
||||
<img
|
||||
v-for="(item, index) in data.signs.PROJECT_MANAGER?.[0]
|
||||
.SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{
|
||||
data.signs.PROJECT_MANAGER?.[0].SIGN_TIME[index]
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">风险辨识结果</td>
|
||||
<td colspan="5">{{ data.info.RISK_IDENTIFICATION }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">作业实施时间</td>
|
||||
<td colspan="5">
|
||||
{{ data.info.WORK_START_DATE }}至{{ data.info.WORK_END_DATE }}止
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="11">
|
||||
<table class="archive_print_table">
|
||||
<tr>
|
||||
<td style="width: 80px">序号</td>
|
||||
<td>安全措施</td>
|
||||
<td style="width: 100px">是否涉及</td>
|
||||
<td style="width: 100px">确认人</td>
|
||||
</tr>
|
||||
<tr v-for="(item, index) in data.measuresList" :key="index">
|
||||
<td>{{ index + 1 }}</td>
|
||||
<td>
|
||||
{{ item.PROTECTIVE_MEASURES }}
|
||||
<div v-if="item.IMG_PATH" class="mt-10">
|
||||
<template
|
||||
v-for="img in item.IMG_PATH.split(',')"
|
||||
:key="img"
|
||||
>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + img"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<span v-if="item.STATUS === '1'">
|
||||
涉 及
|
||||
</span>
|
||||
<span v-if="item.STATUS === '-1'"> 不涉及 </span>
|
||||
</td>
|
||||
<td>
|
||||
<img
|
||||
v-if="item.SIGN_PATH"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item.SIGN_PATH"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<template v-if="data.signs.MEASURES_CONFIRM">
|
||||
<tr
|
||||
v-for="(item, index) in data.signs.MEASURES_CONFIRM"
|
||||
:key="item.BUS_CUTROAD_MEASURES_ID"
|
||||
>
|
||||
<td>{{ data.measuresList.length + 1 + index }}</td>
|
||||
<td colspan="2">
|
||||
<div style="display: flex; justify-content: space-between">
|
||||
<span> 其他安全措施: {{ item.DESCR }} </span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<img
|
||||
v-if="item.SIGN_PATH?.[0]"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item.SIGN_PATH?.[0]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.CONFESS">
|
||||
<td colspan="10">
|
||||
<div>
|
||||
安全交底人:
|
||||
<div v-if="data.signs.CONFESS?.[0].IMG_PATH?.[0]">
|
||||
<template
|
||||
v-for="img in data.signs.CONFESS?.[0].IMG_PATH"
|
||||
:key="img"
|
||||
>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + img"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.CONFESS?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.CONFESS?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.CONFESS?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.ACCEPT_CONFESS">
|
||||
<td colspan="10">
|
||||
<div>接受交底人:</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.ACCEPT_CONFESS?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="
|
||||
VITE_FILE_URL +
|
||||
data.signs.ACCEPT_CONFESS?.[0].SIGN_PATH[index]
|
||||
"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.ACCEPT_CONFESS?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.CONFIRM">
|
||||
<td colspan="10">
|
||||
<div>作业负责人意见:{{ data.signs.CONFIRM?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.CONFIRM?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.CONFIRM?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.CONFIRM?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.LEADER">
|
||||
<td colspan="10">
|
||||
<div>所在单位意见:{{ data.signs.LEADER?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.LEADER?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.LEADER?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.LEADER?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.AUDIT">
|
||||
<td colspan="10">
|
||||
<div>消防、安全管理部门意见:{{ data.signs.AUDIT?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.AUDIT?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.AUDIT?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.AUDIT?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="data.signs.APPROVE">
|
||||
<td colspan="10">
|
||||
<div>审批部门意见:{{ data.signs.APPROVE?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.APPROVE?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.APPROVE?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.APPROVE?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.ACCEPT">
|
||||
<td colspan="10">
|
||||
<div>完工验收:{{ data.signs.ACCEPT?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.ACCEPT?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.ACCEPT?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.ACCEPT?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button @click="fnClose">关闭</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useVModels } from "@vueuse/core";
|
||||
import { reactive } from "vue";
|
||||
import { findCharIndex } from "@/assets/js/utils.js";
|
||||
|
||||
const props = defineProps({
|
||||
visible: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
default: false,
|
||||
},
|
||||
pd: {
|
||||
type: Object,
|
||||
required: true,
|
||||
default: () => ({}),
|
||||
},
|
||||
});
|
||||
const VITE_FILE_URL = import.meta.env.VITE_FILE_URL;
|
||||
const data = reactive({
|
||||
info: {},
|
||||
measuresList: [],
|
||||
gasList: [],
|
||||
signs: [],
|
||||
});
|
||||
|
||||
const fnInit = () => {
|
||||
data.info = props.pd.pd;
|
||||
const measuresList = props.pd.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 (findCharIndex(PROTECTIVE_MEASURES, "(", j) !== -1) {
|
||||
PROTECTIVE_MEASURES.splice(
|
||||
findCharIndex(PROTECTIVE_MEASURES, "(", j) + 1,
|
||||
0,
|
||||
measuresList[i]["ANSWER" + j]
|
||||
);
|
||||
}
|
||||
}
|
||||
measuresList[i].PROTECTIVE_MEASURES = PROTECTIVE_MEASURES.join("");
|
||||
}
|
||||
data.measuresList = measuresList;
|
||||
data.gasList = props.pd.gasList;
|
||||
data.signs = props.pd.signs;
|
||||
};
|
||||
fnInit();
|
||||
|
||||
const emits = defineEmits(["update:visible"]);
|
||||
const { visible } = useVModels(props, emits);
|
||||
const fnClose = () => {
|
||||
visible.value = false;
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
|
@ -0,0 +1,423 @@
|
|||
<template>
|
||||
<el-dialog v-model="visible" title="作业票信息">
|
||||
<div id="printContent">
|
||||
<table class="archive_print_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="10" style="border: none">
|
||||
<el-divider content-position="left"> 动土安全作业票 </el-divider>
|
||||
<div class="tr">编号:{{ data.info.CHECK_NO }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td class="title">申请单位</td>
|
||||
<td>{{ data.info.APPLY_DEPARTMENT_NAME }}</td>
|
||||
<td class="title" colspan="2">作业申请时间</td>
|
||||
<td colspan="2">{{ data.info.CREATTIME }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">作业单位</td>
|
||||
<td>{{ data.info.CONFIRM_DEPARTMENT_NAME }}</td>
|
||||
<td class="title">作业地点</td>
|
||||
<td>{{ data.info.WORK_PLACE }}</td>
|
||||
<td class="title">作业内容</td>
|
||||
<td>{{ data.info.JOB_CONTENT }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">监护人</td>
|
||||
<td>
|
||||
<img
|
||||
v-for="(item, index) in data.signs.GUARDIAN?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
<td class="title" colspan="2">作业负责人</td>
|
||||
<td colspan="2">
|
||||
<img
|
||||
v-for="(item, index) in data.signs.CONFIRM?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">关联的其他特殊作业及安全作业票编号</td>
|
||||
<td colspan="5">{{ data.info.SPECIAL_WORK }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<div>
|
||||
作业内容、范围、方式(包括深度、面积,并附简图):{{
|
||||
data.info.WORK_CONTENT
|
||||
}}
|
||||
</div>
|
||||
<div
|
||||
v-if="data.info.CONTENT_IMG_PATH"
|
||||
style="
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 20px;
|
||||
"
|
||||
>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.info.CONTENT_IMG_PATH"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<div>
|
||||
签字:
|
||||
<img
|
||||
v-for="(item, index) in data.signs.WORK_USER?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.CONFESS?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">风险辨识结果</td>
|
||||
<td colspan="5">
|
||||
{{ data.info.RISK_IDENTIFICATION?.split(";_;")[0] }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">作业实施时间</td>
|
||||
<td colspan="5">
|
||||
{{ data.info.WORK_START_DATE }}至{{ data.info.WORK_END_DATE }}止
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="11">
|
||||
<table class="archive_print_table">
|
||||
<tr>
|
||||
<td style="width: 80px">序号</td>
|
||||
<td>安全措施</td>
|
||||
<td style="width: 100px">是否涉及</td>
|
||||
<td style="width: 100px">确认人</td>
|
||||
</tr>
|
||||
<tr v-for="(item, index) in data.measuresList" :key="index">
|
||||
<td>{{ index + 1 }}</td>
|
||||
<td>
|
||||
{{ item.PROTECTIVE_MEASURES }}
|
||||
<div v-if="item.IMG_PATH" class="mt-10">
|
||||
<template
|
||||
v-for="img in item.IMG_PATH.split(',')"
|
||||
:key="img"
|
||||
>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + img"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<span v-if="item.STATUS === '1'">
|
||||
涉 及
|
||||
</span>
|
||||
<span v-if="item.STATUS === '-1'"> 不涉及 </span>
|
||||
</td>
|
||||
<td>
|
||||
<img
|
||||
v-if="item.SIGN_PATH"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item.SIGN_PATH"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<template v-if="data.signs.MEASURES_CONFIRM">
|
||||
<tr
|
||||
v-for="(item, index) in data.signs.MEASURES_CONFIRM"
|
||||
:key="item.BUS_BREAKGROUND_MEASURES_ID"
|
||||
>
|
||||
<td>{{ data.measuresList.length + 1 + index }}</td>
|
||||
<td colspan="2">
|
||||
<div style="display: flex; justify-content: space-between">
|
||||
<span> 其他安全措施: {{ item.DESCR }} </span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<img
|
||||
v-if="item.SIGN_PATH?.[0]"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item.SIGN_PATH?.[0]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.CONFESS">
|
||||
<td colspan="11">
|
||||
<div>
|
||||
安全交底人:
|
||||
<div v-if="data.signs.CONFESS?.[0].IMG_PATH?.[0]">
|
||||
<template
|
||||
v-for="img in data.signs.CONFESS?.[0].IMG_PATH"
|
||||
:key="img"
|
||||
>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + img"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.CONFESS?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.CONFESS?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.CONFESS?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.ACCEPT_CONFESS">
|
||||
<td colspan="11">
|
||||
<div>接受交底人:</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.ACCEPT_CONFESS?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="
|
||||
VITE_FILE_URL +
|
||||
data.signs.ACCEPT_CONFESS?.[0].SIGN_PATH[index]
|
||||
"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.ACCEPT_CONFESS?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.CONFIRM">
|
||||
<td colspan="11">
|
||||
<div>作业负责人意见:{{ data.signs.CONFIRM?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.CONFIRM?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.CONFIRM?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.CONFIRM?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.LEADER">
|
||||
<td colspan="11">
|
||||
<div>所在单位意见:{{ data.signs.LEADER?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.LEADER?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.LEADER?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.LEADER?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.SAFETY">
|
||||
<td colspan="6">
|
||||
<div>
|
||||
有关水、电、汽、工艺、设备、消防、安全等部门会签意见:{{
|
||||
data.signs.SAFETY?.[0].DESCR
|
||||
}}
|
||||
</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.SAFETY?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<div class="tr">
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.SAFETY?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.SAFETY?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.APPROVE">
|
||||
<td colspan="6">
|
||||
<div>审批部门意见:{{ data.signs.APPROVE?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.APPROVE?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<div class="tr">
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="
|
||||
VITE_FILE_URL + data.signs.APPROVE?.[0].SIGN_PATH[index]
|
||||
"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.APPROVE?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.ACCEPT">
|
||||
<td colspan="11">
|
||||
<div>完工验收:{{ data.signs.ACCEPT?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.ACCEPT?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.ACCEPT?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.ACCEPT?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button @click="fnClose">关闭</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useVModels } from "@vueuse/core";
|
||||
import { reactive } from "vue";
|
||||
import { findCharIndex } from "@/assets/js/utils.js";
|
||||
|
||||
const props = defineProps({
|
||||
visible: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
default: false,
|
||||
},
|
||||
pd: {
|
||||
type: Object,
|
||||
required: true,
|
||||
default: () => ({}),
|
||||
},
|
||||
});
|
||||
const VITE_FILE_URL = import.meta.env.VITE_FILE_URL;
|
||||
const data = reactive({
|
||||
info: {},
|
||||
measuresList: [],
|
||||
gasList: [],
|
||||
signs: [],
|
||||
});
|
||||
|
||||
const fnInit = () => {
|
||||
data.info = props.pd.pd;
|
||||
const measuresList = props.pd.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 (findCharIndex(PROTECTIVE_MEASURES, "(", j) !== -1) {
|
||||
PROTECTIVE_MEASURES.splice(
|
||||
findCharIndex(PROTECTIVE_MEASURES, "(", j) + 1,
|
||||
0,
|
||||
measuresList[i]["ANSWER" + j]
|
||||
);
|
||||
}
|
||||
}
|
||||
measuresList[i].PROTECTIVE_MEASURES = PROTECTIVE_MEASURES.join("");
|
||||
}
|
||||
data.measuresList = measuresList;
|
||||
data.gasList = props.pd.gasList;
|
||||
data.signs = props.pd.signs;
|
||||
};
|
||||
fnInit();
|
||||
|
||||
const emits = defineEmits(["update:visible"]);
|
||||
const { visible } = useVModels(props, emits);
|
||||
const fnClose = () => {
|
||||
visible.value = false;
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
|
@ -143,7 +143,7 @@
|
|||
<td colspan="10">
|
||||
<div>
|
||||
安全交底人:
|
||||
<div v-if="data.signs.CONFESS[0].IMG_PATH[0]">
|
||||
<div v-if="data.signs.CONFESS[0].IMG_PATH">
|
||||
<template
|
||||
v-for="img in data.signs.CONFESS[0].IMG_PATH"
|
||||
:key="img"
|
||||
|
|
|
@ -0,0 +1,441 @@
|
|||
<template>
|
||||
<el-dialog v-model="visible" title="作业票信息">
|
||||
<div id="printContent">
|
||||
<table class="archive_print_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="10" style="border: none">
|
||||
<el-divider content-position="left"> 吊装安全作业票 </el-divider>
|
||||
<div class="tr">编号:{{ data.info.CHECK_NO }}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td class="title">作业申请单位</td>
|
||||
<td>{{ data.info.APPLY_DEPARTMENT_NAME }}</td>
|
||||
<td class="title">作业单位</td>
|
||||
<td>{{ data.info.LEADER_DEPARTMENT_NAME }}</td>
|
||||
<td class="title">作业申请时间</td>
|
||||
<td>{{ data.info.CREATTIME }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">吊装地点</td>
|
||||
<td>{{ data.info.WORK_PLACE }}</td>
|
||||
<td class="title">吊具名称</td>
|
||||
<td>{{ data.info.TOOL_NAME }}</td>
|
||||
<td class="title">吊物内容</td>
|
||||
<td>{{ data.info.WORK_CONTENT }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">吊装作业人</td>
|
||||
<td>
|
||||
<img
|
||||
v-for="(item, index) in data.signs.WORK_USER?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
<td class="title">司索人</td>
|
||||
<td>
|
||||
<img
|
||||
v-for="(item, index) in data.signs.SISUO?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
<td class="title">监护人</td>
|
||||
<td>
|
||||
<img
|
||||
v-for="(item, index) in data.signs.GUARDIAN?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">指挥人员</td>
|
||||
<td>
|
||||
<img
|
||||
v-for="(item, index) in data.signs.PROJECT_MANAGER?.[0].SIGN_PATH"
|
||||
:key="index"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
<td class="title" colspan="2">吊物质量(t)及作业级别</td>
|
||||
<td colspan="2">
|
||||
<span>{{ data.info.PART_WEIGHT }}t</span>
|
||||
<span style="margin-left: 20px">
|
||||
{{ data.info.WORK_LEVEL === 1 ? "一级作业级别" : "" }}
|
||||
{{ data.info.WORK_LEVEL === 2 ? "二级作业级别" : "" }}
|
||||
{{ data.info.WORK_LEVEL === 3 ? "三级作业级别" : "" }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">关联的其他特殊作业及安全作业票编号</td>
|
||||
<td colspan="5">{{ data.info.SPECIAL_WORK }}</td>
|
||||
</tr>
|
||||
<tr />
|
||||
<tr>
|
||||
<td class="title">风险辨识结果</td>
|
||||
<td colspan="5">{{ data.info.RISK_IDENTIFICATION }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="title">作业实施时间</td>
|
||||
<td colspan="5">
|
||||
{{ data.info.WORK_START_DATE }}至{{ data.info.WORK_END_DATE }}止
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="11">
|
||||
<table class="archive_print_table">
|
||||
<tr>
|
||||
<td style="width: 80px">序号</td>
|
||||
<td>安全措施</td>
|
||||
<td style="width: 100px">是否涉及</td>
|
||||
<td style="width: 100px">确认人</td>
|
||||
</tr>
|
||||
<tr v-for="(item, index) in data.measuresList" :key="index">
|
||||
<td>{{ index + 1 }}</td>
|
||||
<td>
|
||||
{{ item.PROTECTIVE_MEASURES }}
|
||||
<div v-if="item.IMG_PATH" class="mt-10">
|
||||
<template
|
||||
v-for="img in item.IMG_PATH.split(',')"
|
||||
:key="img"
|
||||
>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + img"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<span v-if="item.STATUS === '1'">
|
||||
涉 及
|
||||
</span>
|
||||
<span v-if="item.STATUS === '-1'"> 不涉及 </span>
|
||||
</td>
|
||||
<td>
|
||||
<img
|
||||
v-if="item.SIGN_PATH"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item.SIGN_PATH"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<template v-if="data.signs.MEASURES_CONFIRM">
|
||||
<tr
|
||||
v-for="(item, index) in data.signs.MEASURES_CONFIRM"
|
||||
:key="item.BUS_HOISTING_MEASURES_ID"
|
||||
>
|
||||
<td>{{ data.measuresList.length + 1 + index }}</td>
|
||||
<td colspan="2">
|
||||
<div style="display: flex; justify-content: space-between">
|
||||
<span> 其他安全措施: {{ item.DESCR }} </span>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<img
|
||||
v-if="item.SIGN_PATH?.[0]"
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + item.SIGN_PATH?.[0]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.CONFESS">
|
||||
<td colspan="10">
|
||||
<div>
|
||||
安全交底人:
|
||||
<div v-if="data.signs.CONFESS?.[0].IMG_PATH?.[0]">
|
||||
<template
|
||||
v-for="img in data.signs.CONFESS?.[0].IMG_PATH"
|
||||
:key="img"
|
||||
>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + img"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.CONFESS?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.CONFESS?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.CONFESS?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.ACCEPT_CONFESS">
|
||||
<td colspan="10">
|
||||
<div>接受交底人:</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.ACCEPT_CONFESS?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="
|
||||
VITE_FILE_URL +
|
||||
data.signs.ACCEPT_CONFESS?.[0].SIGN_PATH[index]
|
||||
"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.ACCEPT_CONFESS?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.CONFIRM">
|
||||
<td colspan="10">
|
||||
<div>作业负责人意见:{{ data.signs.CONFIRM?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.CONFIRM?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.CONFIRM?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.CONFIRM?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.PROJECT_MANAGER">
|
||||
<td colspan="10">
|
||||
<div>
|
||||
吊装指挥负责人意见:{{ data.signs.PROJECT_MANAGER?.[0].DESCR }}
|
||||
</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.PROJECT_MANAGER?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="
|
||||
VITE_FILE_URL +
|
||||
data.signs.PROJECT_MANAGER?.[0].SIGN_PATH[index]
|
||||
"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{
|
||||
data.signs.PROJECT_MANAGER?.[0].SIGN_TIME[index]
|
||||
}}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.LEADER">
|
||||
<td colspan="10">
|
||||
<div>所在单位意见:{{ data.signs.LEADER?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.LEADER?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.LEADER?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.LEADER?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.AUDIT">
|
||||
<td colspan="10">
|
||||
<div>审核部门意见:{{ data.signs.AUDIT?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.AUDIT?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.AUDIT?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.AUDIT?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr v-if="data.signs.APPROVE">
|
||||
<td colspan="10">
|
||||
<div>审批部门意见:{{ data.signs.APPROVE?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.APPROVE?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.APPROVE?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.APPROVE?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="data.signs.ACCEPT">
|
||||
<td colspan="10">
|
||||
<div>完工验收:{{ data.signs.ACCEPT?.[0].DESCR }}</div>
|
||||
<div
|
||||
v-for="(item, index) in data.signs.ACCEPT?.[0].SIGN_TIME"
|
||||
:key="index"
|
||||
class="tr"
|
||||
>
|
||||
<span>签字:</span>
|
||||
<img
|
||||
v-viewer
|
||||
:src="VITE_FILE_URL + data.signs.ACCEPT?.[0].SIGN_PATH[index]"
|
||||
alt=""
|
||||
width="20"
|
||||
height="20"
|
||||
class="mr-10 mt-10"
|
||||
/>
|
||||
<span>{{ data.signs.ACCEPT?.[0].SIGN_TIME[index] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<template #footer>
|
||||
<el-button @click="fnClose">关闭</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useVModels } from "@vueuse/core";
|
||||
import { reactive } from "vue";
|
||||
import { findCharIndex } from "@/assets/js/utils.js";
|
||||
|
||||
const props = defineProps({
|
||||
visible: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
default: false,
|
||||
},
|
||||
pd: {
|
||||
type: Object,
|
||||
required: true,
|
||||
default: () => ({}),
|
||||
},
|
||||
});
|
||||
const VITE_FILE_URL = import.meta.env.VITE_FILE_URL;
|
||||
const data = reactive({
|
||||
info: {},
|
||||
measuresList: [],
|
||||
gasList: [],
|
||||
signs: [],
|
||||
});
|
||||
|
||||
const fnInit = () => {
|
||||
data.info = props.pd.pd;
|
||||
const measuresList = props.pd.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 (findCharIndex(PROTECTIVE_MEASURES, "(", j) !== -1) {
|
||||
PROTECTIVE_MEASURES.splice(
|
||||
findCharIndex(PROTECTIVE_MEASURES, "(", j) + 1,
|
||||
0,
|
||||
measuresList[i]["ANSWER" + j]
|
||||
);
|
||||
}
|
||||
}
|
||||
measuresList[i].PROTECTIVE_MEASURES = PROTECTIVE_MEASURES.join("");
|
||||
}
|
||||
data.measuresList = measuresList;
|
||||
data.gasList = props.pd.gasList;
|
||||
data.signs = props.pd.signs;
|
||||
};
|
||||
fnInit();
|
||||
|
||||
const emits = defineEmits(["update:visible"]);
|
||||
const { visible } = useVModels(props, emits);
|
||||
const fnClose = () => {
|
||||
visible.value = false;
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
|
@ -4,6 +4,10 @@ import hotworkDialog from "../components/dialog/hotwork_dialog.vue";
|
|||
import electricityDialog from "../components/dialog/electricity_dialog.vue";
|
||||
import confinedspaceDialog from "../components/dialog/confinedspace_dialog.vue";
|
||||
import highworkDialog from "../components/dialog/highwork_dialog.vue";
|
||||
import cutroad_dialog from "../components/dialog/cutroad_dialog.vue";
|
||||
import blindboard_dialog from "../components/dialog/blindboard_dialog.vue";
|
||||
import groundbreaking_dialog from "../components/dialog/groundbreaking_dialog.vue";
|
||||
import hoisting_dialog from "../components/dialog/hoisting_dialog.vue";
|
||||
import cameraDialog from "../components/dialog/camera_dialog.vue";
|
||||
import { Loadglb } from "./loadglb.js";
|
||||
|
||||
|
@ -330,23 +334,23 @@ const clickConfinedspaceWork = async (model) => {
|
|||
const clickCutroadwork = async (model) => {
|
||||
const id = model._id;
|
||||
const pd = await getOpenCircuitView({ CUTROAD_ID: id });
|
||||
handleDialog(confinedspaceDialog, pd);
|
||||
handleDialog(cutroad_dialog, pd);
|
||||
};
|
||||
|
||||
const clickBlindboardwork = async (model) => {
|
||||
const id = model._id;
|
||||
const pd = await getBlindBoardView({ BLINDBOARD_ID: id });
|
||||
handleDialog(highworkDialog, pd);
|
||||
handleDialog(blindboard_dialog, pd);
|
||||
};
|
||||
const clickHoistingwork = async (model) => {
|
||||
const id = model._id;
|
||||
const pd = await getHoistingView({ HOISTING_ID: id });
|
||||
handleDialog(highworkDialog, pd);
|
||||
handleDialog(hoisting_dialog, pd);
|
||||
};
|
||||
const clickBreakgroundwork = async (model) => {
|
||||
const id = model._id;
|
||||
const pd = await getGroundbreakingView({ BREAKGROUND_ID: id });
|
||||
handleDialog(highworkDialog, pd);
|
||||
handleDialog(groundbreaking_dialog, pd);
|
||||
};
|
||||
const clickHighwork = async (model) => {
|
||||
const id = model._id;
|
||||
|
|
Loading…
Reference in New Issue