From a6a5ba5cce262b2bccc42a1a4c2121d9d9e57e67 Mon Sep 17 00:00:00 2001 From: mashuai Date: Thu, 11 Dec 2025 13:10:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cost/component/lostReportHome.vue | 27 +++++++++++++++++-- .../cost/component/repairReportHome.vue | 23 ++++++++++++++++ .../cost/component/scrapReportHome.vue | 23 ++++++++++++++++ .../material/cost/component/unreportHome.vue | 16 +++++------ 4 files changed, 79 insertions(+), 10 deletions(-) diff --git a/src/views/material/cost/component/lostReportHome.vue b/src/views/material/cost/component/lostReportHome.vue index a3f17ad9..425c62ae 100644 --- a/src/views/material/cost/component/lostReportHome.vue +++ b/src/views/material/cost/component/lostReportHome.vue @@ -88,6 +88,17 @@ style="width: 220px" /> + + + + + + 查询 重置 @@ -122,6 +133,13 @@ {{ (scope.row.buyPrice * scope.row.num).toFixed(2) }} + + + + { - this.tableList = response.rows || [] - this.total = response.total + this.tableList = response.data.rows || [] + this.total = response.data.total this.loading = false }).catch((error) => { console.error('获取丢失费用报表失败:', error) diff --git a/src/views/material/cost/component/repairReportHome.vue b/src/views/material/cost/component/repairReportHome.vue index bc1d390e..86503bf8 100644 --- a/src/views/material/cost/component/repairReportHome.vue +++ b/src/views/material/cost/component/repairReportHome.vue @@ -43,6 +43,17 @@ style="width: 130px" /> + + + + + + 查询 重置 @@ -73,6 +84,13 @@ + + + + + + + + + + 查询 重置 @@ -71,6 +82,13 @@ {{ scope.row.costs ? scope.row.costs.toFixed(2) : '0.00' }} + + + + 重置 导出Excel 查看历史报表 - {{ exportButtonText }} @@ -604,7 +604,7 @@ import { getUnitList, getAgreementInfoById, getUnitListFilterTeam, } from '@/api/back/index.js' -import {getSltList, costExamine, getSltReportedList, getSltReportList, getHistoryReportList, +import {getSltList, costExamine, getSltReportedList, getSltReportList, getHistoryReportList, getHistoryLeaseCostDetails, getHistoryRepairCostDetails, getHistoryLoseCostDetails, getHistoryScrapCostDetails, getExportZipUnsettled,getExportZipProgress } from '@/api/cost/cost' @@ -929,7 +929,7 @@ export default { this.ids.map(item => { param.push({ agreementId: item.agreementId,settlementType:item.settlementType }) }) - this.totalItems = param.length; + this.totalItems = param.length; const taskId = null const payload = { @@ -946,7 +946,7 @@ export default { console.error('未结算批量明细导出失败', err); this.handleDownloadError(err); } - + }, /** 初始化下载状态 */