|
|
|
@ -441,9 +441,17 @@ export default { |
|
|
|
}else if (column.property === 'rmCostQuote'){ |
|
|
|
totalCostQuote = new Decimal(sums[index]).toNumber() |
|
|
|
}else if (column.property === 'totalCostStd'){ |
|
|
|
sums[index] = new Decimal(totalCostStd / this.subtotalCostStd * 100).toFixed(0) + '%' |
|
|
|
if (!totalCostStd || totalCostStd === 0 || this.subtotalCostStd === 0){ |
|
|
|
sums[index] = 0+'%' |
|
|
|
}else { |
|
|
|
sums[index] = new Decimal(totalCostStd / this.subtotalCostStd * 100).toFixed(0) + '%' |
|
|
|
} |
|
|
|
}else if (column.property === 'totalCostQuote'){ |
|
|
|
sums[index] = new Decimal(totalCostQuote / this.subtotalCostQuote * 100).toFixed(0) + '%' |
|
|
|
if (!totalCostQuote || totalCostQuote === 0 || this.subtotalCostQuote === 0){ |
|
|
|
sums[index] = 0+'%' |
|
|
|
}else { |
|
|
|
sums[index] = new Decimal(totalCostQuote / this.subtotalCostQuote * 100).toFixed(0) + '%' |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
sums[index] = 'N/A'; |
|
|
|
|