This commit is contained in:
Teo
2025-09-10 01:11:46 +08:00
parent f006ca5a2b
commit 311623e208
54 changed files with 3724 additions and 1523 deletions

View File

@ -2,7 +2,7 @@
<!-- <el-card v-loading="loading" body-class="printMe"> -->
<div class="w75% m-a">
<div id="printMe" class="pos-relative">
<div class="resultIcon"><img :src="'../../../../../src/assets/icons/svg/' + inspectionType + '.png'" alt="" /></div>
<div class="resultIcon"><img :src="'/image/svg/' + inspectionType + '.png'" alt="" /></div>
<h2 style="text-align: center; margin-top: 5px; font-weight: bold">安全生产监督检查通知书</h2>
<el-row>
<el-col :span="12" style="text-align: left">填报人{{ safetyInspectionDetail?.fill }}</el-col>
@ -34,6 +34,18 @@
</el-descriptions-item>
<el-descriptions-item label-align="center" label="检查附件" :span="2" label-class-name="white">
<el-space wrap>
<div v-for="item in safetyInspectionDetail.checkAttachment" :key="item.id">
<span v-if="['png', 'jpg', 'jpeg'].includes(item.fileType)">
<image-preview :src="'http://58.17.134.85:8920' + item.path" width="200px" />
</span>
<span v-else>
<el-link :href="`${'http://58.17.134.85:8920' + item.path}`" type="primary" :underline="false" target="_blank">
<span> {{ item.name }} </span>
</el-link>
</span>
</div>
</el-space>
<!-- <el-space wrap>
<div v-for="item in checkFileList" :key="item.ossId">
<span v-if="['.png', '.jpg', '.jpeg'].includes(item.fileSuffix)">
<image-preview :src="item.url" width="200px" />
@ -44,7 +56,7 @@
</el-link>
</span>
</div>
</el-space>
</el-space> -->
</el-descriptions-item>
<el-descriptions-item label-align="center" label="检查状态" :span="2" label-class-name="white">
<el-steps style="max-width: 200px" :active="Number(safetyInspectionDetail?.status)" finish-status="finish">
@ -67,13 +79,13 @@
</el-descriptions-item>
<el-descriptions-item label-align="center" label="整改附件" :span="2" label-class-name="white">
<el-space wrap>
<div v-for="item in safetyInspectionDetail.checkAttachment" :key="item.id">
<div v-for="item in safetyInspectionDetail.abarbeitungAttachment" :key="item.id">
<span v-if="['png', 'jpg', 'jpeg'].includes(item.fileType)">
<image-preview :src="'http://58.17.134.85:8919' + item.path" width="200px" />
<image-preview :src="'http://58.17.134.85:8920' + item.path" width="200px" />
</span>
<span v-else>
<el-link :href="`${'http://58.17.134.85:8919' + item.url}`" :underline="false" target="_blank">
<span> {{ item.originalName }} </span>
<el-link :href="`${'http://58.17.134.85:8920' + item.path}`" type="primary" :underline="false" target="_blank">
<span> {{ item.name }} </span>
</el-link>
</span>
</div>
@ -149,7 +161,9 @@ const get = async () => {
const res = await getSafetyInspection({ id: props.safetyInspectionId });
if (res.data && res.code === 0) {
safetyInspectionDetail.value = res.data;
console.log('🚀 ~ get ~ res.data:', res.data);
}
loading.value = false;
};