结算优化修改

This commit is contained in:
hongchao 2025-09-11 15:07:18 +08:00
parent 7b93aaa441
commit e5de388814
2 changed files with 4 additions and 7 deletions

View File

@ -35,7 +35,7 @@
>
<el-option
v-for="dict in dict.type.cost_status"
v-if="dict.value !== '2'"
v-if="dict.value !== '2' && dict.value!== '1'"
:key="dict.value"
:label="dict.label"
:value="dict.value"

View File

@ -69,11 +69,8 @@
<el-table-column label="结算单位" align="center" prop="unitName" />
<el-table-column label="结算工程" align="center" prop="projectName" />
<el-table-column label="合计费用(元)" align="center" prop="costs" :show-overflow-tooltip="true">
<template slot-scope="scope" v-if="scope.row.costs != null && scope.row.costs != ''">
{{ scope.row.costs.toFixed(2) }}
</template>
<template slot-scope="scope" v-if="scope.row.costs == null || scope.row.costs === '' || scope.row.costs === 0">
{{ 0.00 }}
<template slot-scope="scope">
{{ parseFloat(scope.row.costs || 0).toFixed(2) }}
</template>
</el-table-column>