From 9fc68a598a23f650d3e5896ac78cfdee662e849d Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Fri, 19 Jul 2024 20:05:55 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90update=E3=80=91-=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E6=9D=A5=E6=AC=BE=E5=88=86=E7=B1=BB=E7=BB=9F=E8=AE=A1-?= =?UTF-8?q?=E8=81=94=E8=B0=832?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...isePaymentClassificationStatisticsList.vue | 56 ++++++++++--------- 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/src/views/statisticalReport/enterprisePaymentStatistics/EnterprisePaymentClassificationStatisticsList.vue b/src/views/statisticalReport/enterprisePaymentStatistics/EnterprisePaymentClassificationStatisticsList.vue index f3d6b51..233e21d 100644 --- a/src/views/statisticalReport/enterprisePaymentStatistics/EnterprisePaymentClassificationStatisticsList.vue +++ b/src/views/statisticalReport/enterprisePaymentStatistics/EnterprisePaymentClassificationStatisticsList.vue @@ -41,7 +41,7 @@ - +
{ if (res.success) { - // todo 处理TableColumns 的数据 先本地生成 + // 处理TableColumns 的数据 // let columnsKeys = res.result.columns || [] let syncColumns = this.getColumnsData(res.result.titleList || []) + console.log("-------syncColumns----", syncColumns) this.columns = [firstColumnTop, ...defaultTableColumns, ...syncColumns] this.columnsFooter = [firstColumnFooter, ...defaultTableColumns, ...syncColumns] // this.dataSource = res.result.pageList.records @@ -319,7 +319,7 @@ export default { this.dataSource = res.result.valList || [] this.dataSource.map(data => { syncColumns.map(col => { - data[col.dataIndex] = data.allMoney || '0.00' + '' + data[col.dataIndex] = data[col.dataIndex] || '0.00' + '' }) }) // 操作汇总表格的数据 @@ -336,11 +336,11 @@ export default { obj[col.dataIndex] = footerData[col.dataIndex] || '0.00' + '' }) this.footerDataSource = [obj] - if (res.result.pageList.total) { - this.ipagination.total = res.result.pageList.total - } else { - this.ipagination.total = 0 - } + // if (res.result.pageList.total) { + // this.ipagination.total = res.result.pageList.total + // } else { + // this.ipagination.total = 0 + // } } if (this.dataSource.length > 0) { this.$nextTick(() => { @@ -360,6 +360,10 @@ export default { this.$message.warning('请选择项目年份时间段') return } + if(!this.queryParam.chargeCompany) { + this.$message.warning('请选择来款企业进行查询') + return + } this.lastQueryParam = {...this.queryParam} this.loadData(1) }, @@ -372,7 +376,7 @@ export default { year_begin: new Date().getFullYear().toString(), year_end: new Date().getFullYear().toString() } - this.loadData(1) + // this.loadData(1) } } }