报表修改

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

View File

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