From 3f6a363f6bb9005ce13f76c712547a75573c5853 Mon Sep 17 00:00:00 2001 From: fengachen <373943794@qq.com> Date: Tue, 16 Aug 2022 15:09:40 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E5=85=A8?= =?UTF-8?q?=E6=89=80=E7=BB=9F=E8=AE=A1=E6=94=B6=E5=85=A5=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=90=88=E5=90=8C=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statisticalReport/WholePaymentsStatistics.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/statisticalReport/WholePaymentsStatistics.vue b/src/views/statisticalReport/WholePaymentsStatistics.vue index dc3f366..2295fcb 100644 --- a/src/views/statisticalReport/WholePaymentsStatistics.vue +++ b/src/views/statisticalReport/WholePaymentsStatistics.vue @@ -82,6 +82,7 @@ const columns = [ title: '', align: 'center', width: 150, + fixed:'left', dataIndex: 'indexName', scopedSlots: {customRender: 'text'} }, @@ -160,6 +161,7 @@ export default { let dataSource = res.result.list // 讲树形结构的数据 ,修改成table可以直接展示的数据,默认只有三行数据 let tableData = [ + {indexName: '合同金额', total: res.result.sumOfMoney}, {indexName: '确认收入金额', total: res.result.sumOfConfirmAmount}, {indexName: '开票金额', total: res.result.sumOfBillMoney}, {indexName: '到账金额', total: res.result.sumOfReallyMoney}, @@ -169,9 +171,10 @@ export default { let keyItem = MonthData.find(ele => Number(ele.value) === (index + 1)) if(keyItem) { let key = keyItem.key - tableData[0][key] = item.confirmAmount - tableData[1][key] = item.billMoney - tableData[2][key] = item.comeAllMoney + tableData[0][key] = item.allMoney + tableData[1][key] = item.confirmAmount + tableData[2][key] = item.billMoney + tableData[3][key] = item.comeAllMoney } }) this.dataSource = tableData