修改bug

This commit is contained in:
Teo
2025-08-21 18:32:37 +08:00
parent 5c1aca212e
commit e4f2548199
9 changed files with 67 additions and 47 deletions

View File

@ -25,7 +25,7 @@
<table style="width: 100%" border="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">设备材料名称</th>
<th colspan="2">设备材料名称</th>
<td class="th-bg" colspan="2">{{ formData.materialName }}</td>
<th colspan="2">规格及数量</th>
<td class="th-bg" colspan="2">见下表</td>
@ -79,7 +79,7 @@
<tbody>
<tr>
<td colspan="7">
<div style="margin-bottom: 10px;">缺陷情况:</div>
<div style="margin-bottom: 10px">缺陷情况:</div>
{{ formData.defectDescription }}
</td>
</tr>
@ -90,10 +90,10 @@
<td colspan="8">
<span>是否附带以下随机资料</span>
<div class="file_detail">
<span>(1) 合格证 {{ formData.certCountFile ? formData.certCountFile.length : 0 }} </span>
<span>(2) 出厂报告 {{ formData.reportCountFileId ? formData.reportCountFileId.length : 0 }} </span>
<span>(3) 技术资料文件 {{ formData.techDocCountFileId ? formData.techDocCountFileId.length : 0 }} </span>
<span>(4) 厂家资质文件 {{ formData.licenseCountFileId ? formData.licenseCountFileId.length : 0 }} </span>
<span>(1) 合格证 {{ formData.certCount ? formData.certCount : 0 }} </span>
<span>(2) 出厂报告 {{ formData.reportCount ? formData.reportCount : 0 }} </span>
<span>(3) 技术资料文件 {{ formData.techDocCount ? formData.techDocCount : 0 }} </span>
<span>(4) 厂家资质文件 {{ formData.licenseCount ? formData.licenseCount : 0 }} </span>
</div>
</td>
</tr>
@ -248,11 +248,10 @@ defineExpose({
}
}
}
.file_detail{
>span{
width: 40%;
display: inline-block;
.file_detail {
> span {
width: 40%;
display: inline-block;
}
}
table {

View File

@ -81,10 +81,10 @@
<td colspan="8">
<span>是否附带以下随机资料</span>
<div class="file_detail">
<span>(1) 合格证 {{ formData.certCountFile ? formData.certCountFile.length : 0 }} </span>
<span>(2) 出厂报告 {{ formData.reportCountFileId ? formData.reportCountFile.length : 0 }} </span>
<span>(3) 技术资料文件 {{ formData.techDocCountFileId ? formData.techDocCountFile.length : 0 }} </span>
<span>(4) 厂家资质文件 {{ formData.licenseCountFileId ? formData.licenseCountFile.length : 0 }} </span>
<span>(1) 合格证 {{ formData.certCount ? formData.certCount : 0 }} </span>
<span>(2) 出厂报告 {{ formData.reportCount ? formData.reportCount : 0 }} </span>
<span>(3) 技术资料文件 {{ formData.techDocCount ? formData.techDocCount : 0 }} </span>
<span>(4) 厂家资质文件 {{ formData.licenseCount ? formData.licenseCount : 0 }} </span>
</div>
</td>
</tr>

View File

@ -56,6 +56,7 @@
</el-table-column>
<el-table-column label="出库登记" align="center">
<el-table-column label="交接单位" align="center" prop="recipient" />
<el-table-column label="使用部位" align="center" prop="usePart" />
<el-table-column label="数量" align="center" prop="number">
<template #default="scope">
<span v-if="scope.row.outPut === '1'">{{ scope.row.number }}</span>

View File

@ -88,7 +88,7 @@
</el-table>
<!-- 分页 -->
<div class="flex items-center justify-between p-4 border-t">
<div class="flex items-center justify-between p-4 border-t" v-if="total > 0">
<div class="text-gray-500 text-sm">
{{ total }} 条记录当前显示第 {{ (currentPage - 1) * pageSize + 1 }} {{ Math.min(currentPage * pageSize, total) }}
</div>

View File

@ -166,7 +166,7 @@
</el-table-column>
</el-table>
<!-- 分页 -->
<div class="flex flex-wrap items-center justify-between p-4 border-t gap-4">
<div class="flex flex-wrap items-center justify-between p-4 border-t gap-4" v-if="total > 0">
<div class="text-gray-500 text-sm">
{{ total }} 条记录当前显示第 {{ (currentPage - 1) * pageSize + 1 }} {{ Math.min(currentPage * pageSize, total) }}
</div>