报表修改

This commit is contained in:
syruan 2025-09-02 02:08:33 +08:00
parent 352178ad69
commit 137cad2b0b
2 changed files with 31 additions and 20 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="app-container" id="costApplyList">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="80px">
<el-form-item >
<el-form-item>
<treeselect
ref="treeselectRef"
v-model="unitIds"
@ -78,8 +78,13 @@
<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 slot-scope="scope">
<span v-if="scope.row.costs != null && scope.row.costs != ''">
{{ scope.row.costs.toFixed(2) }}
</span>
<span v-else style="color: #909399;">
无待结费用
</span>
</template>
</el-table-column>
<el-table-column label="结算状态" align="center" prop="sltStatus" :show-overflow-tooltip="true">
@ -177,7 +182,7 @@
<div class="tabelColumn">
<div class="columnLabel" style="width: 20%;">费用合计金额大写</div>
<div class="columnContent" style="width: 40%;">{{ agreementContent.costAllUpper }}</div>
<div class="columnContent" style="width: 40%;"> {{ agreementContent.costAll }}</div>
<div class="columnContent" style="width: 40%;"> {{ agreementContent.costAll }}</div>
</div>
<div class="tabelColumn">
<div class="columnLabel" style="width: 20%;">说明</div>

View File

@ -106,25 +106,31 @@
</el-table-column>
<el-table-column label="合计费用(元)" align="center" prop="costs" :show-overflow-tooltip="true">
<template slot-scope="scope">
<el-button
type="text"
@click="showCostDetail(scope.row, 'total')"
:style="{color: calculateTotalCost(scope.row) > 0 ? '#409EFF' : '#606266'}"
:disabled="!(calculateTotalCost(scope.row) > 0)">
{{ calculateTotalCost(scope.row).toFixed(2) }}
</el-button>
<span v-if="scope.row.costs != null && scope.row.costs != ''">
<el-button
type="text"
@click="showCostDetail(scope.row, 'total')"
:style="{color: calculateTotalCost(scope.row) > 0 ? '#409EFF' : '#606266'}"
:disabled="!(calculateTotalCost(scope.row) > 0)">
{{ calculateTotalCost(scope.row).toFixed(2) }}
</el-button>
</span>
<span v-else style="color: #909399;">
无待结算费用
</span>
</template>
</el-table-column>
</el-table>
<!-- <pagination-->
<!-- v-show="total > 0"-->
<!-- :total="total"-->
<!-- :page.sync="queryParams.pageNum"-->
<!-- :limit.sync="queryParams.pageSize"-->
<!-- @pagination="getList"-->
<!-- />-->
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 费用详情弹窗 -->
<el-dialog
@ -374,7 +380,7 @@ export default {
queryParams: {
disabled: false,
pageNum: 1,
pageSize: 10000,
pageSize: 10,
keyWord: undefined,
sltStatus: '',
isCommit: '',
@ -503,7 +509,7 @@ export default {
resetQuery() {
this.queryParams={
pageNum: 1,
pageSize: 10000,
pageSize: 10,
sltStatus: '',
isCommit:'',
unitId: null,