From d1a7142f19bfb0cdfa195b4f52b40269b7eb30e7 Mon Sep 17 00:00:00 2001 From: zhangyouji Date: Tue, 11 Jul 2023 11:05:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oilFinalStatementListInfo.vue | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/views/oilFinalStatement/oilFinalStatementListInfo.vue b/src/views/oilFinalStatement/oilFinalStatementListInfo.vue index e0c91d9..7a91fe2 100644 --- a/src/views/oilFinalStatement/oilFinalStatementListInfo.vue +++ b/src/views/oilFinalStatement/oilFinalStatementListInfo.vue @@ -218,7 +218,7 @@ export default { ], tableColumns: [ { - prop: 'orderSerialNumber', + prop: 'id', minWidth: 180, label: '订单号', show: true, @@ -370,21 +370,6 @@ export default { sums[index] = '合计' return } - const values = data.map(item => Number(item[column.property])) - if (!values.every(value => isNaN(value))) { - sums[index] = values.reduce((prev, curr) => { - const value = Number(curr) - if (!isNaN(value)) { - return prev + curr - } else { - return prev - } - }, 0) - sums[index] = sums[index].toFixed(2) - sums[index] += ' 元' - } else { - sums[index] = '' - } if (this.importData.settlementType == 1) { switch ( column.property // column.property可以匹配它的每一列的命名, 然后赋值 -- 2.36.2