From 7609a3fd879d58cd941334026ecb00f39d981cc4 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Wed, 16 Oct 2024 14:14:15 +0800 Subject: [PATCH] 20241016 --- src/views/modules/quote/detail/breakdownCost.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/modules/quote/detail/breakdownCost.vue b/src/views/modules/quote/detail/breakdownCost.vue index a4fe201..54b4f03 100644 --- a/src/views/modules/quote/detail/breakdownCost.vue +++ b/src/views/modules/quote/detail/breakdownCost.vue @@ -391,10 +391,10 @@ export default { }, 0); sums[index] = new Decimal(sums[index]).toFixed(6) if (column.property ==='subtotalCostQuote'){ - this.subtotalCostQuote = sums[index] + this.subtotalCostQuote = sums[index]?sums[index]:0 } if (column.property ==='subtotalCostStd'){ - this.subtotalCostStd = sums[index] + this.subtotalCostStd = sums[index]?sums[index]:0 } if (column.property === 'subPercentageQuote' || column.property ==='subPercentageStd'){ sums[index] = new Decimal(sums[index] * 100).toFixed(2) + '%' @@ -461,10 +461,12 @@ export default { {{new Decimal(scope.row[item.columnProp] * 100).toFixed(2)}}%