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)}}%
- {{ new Decimal(scope.row['rmCostStandard']/ subtotalCostStd * 100).toFixed(0)}}%
+ {{ new Decimal(scope.row['rmCostStandard'] / subtotalCostStd * 100).toFixed(0)}}%
+ 0%
- {{ new Decimal(scope.row['rmCostQuote']/ subtotalCostQuote * 100).toFixed(0)}}%
+ {{ new Decimal(scope.row['rmCostQuote']/ subtotalCostQuote * 100).toFixed(0)}}%
+ 0%
{{ scope.row[item.columnProp] }}