This commit is contained in:
@jyuhsin
2025-12-01 08:41:38 +08:00
parent 4253ea7d03
commit b8e4ecb777
2 changed files with 17 additions and 3 deletions
@@ -179,6 +179,14 @@ layout("/layouts/platform.html"){
</template>
</el-table-column>
<el-table-column label="佐证材料数量" header-align="center" align="center" width="100" prop="fileCount">
<template scope="scope">
<span v-if="scope.row.zp?.files?.length > 0" class="text-success" style="font-weight: bolder; font-size: 16px">
{{ scope.row.zp?.files?.length || 0 }}</span>
<span v-else>0</span>
</template>
</el-table-column>
<el-table-column label="佐证材料" header-align="center" align="center" prop="files">
<template scope="{row, $index}">
<el-button type="primary" plain size="small"
@@ -365,6 +373,12 @@ layout("/layouts/platform.html"){
} else if (['inspection', 'addition', 'files'].includes(column.property)) {
sums[index] = '';
return;
} else if (column.property === 'fileCount') {
const zpfs = data.map(v => v['zp']['files']?.length || 0)
sums[index] = zpfs.reduce((a, b) => {
return a + b;
}) + ' 个'
return;
}
const values = data.map(item => Number(item[column.property]));
if (!values.every(value => isNaN(value))) {