|
|
|
@ -88,11 +88,9 @@ |
|
|
|
<div class="report-cell">-</div> |
|
|
|
<div class="report-cell">-</div> |
|
|
|
<div class="report-cell">{{ formatNumber(summaryData.totalQuarterlyDuration) }}</div> |
|
|
|
<!--<div class="report-cell">{{ formatCurrency(summaryData.totalQuarterlyCost) }}</div>--> |
|
|
|
<div class="report-cell">0</div> |
|
|
|
<div class="report-cell">{{ formatCurrency(summaryData.totalQuarterlyCost) }}</div> |
|
|
|
<div class="report-cell">{{ formatNumber(summaryData.totalAnnualDuration) }}</div> |
|
|
|
<div class="report-cell">0</div> |
|
|
|
<!--<div class="report-cell">{{ formatCurrency(summaryData.totalAnnualCost) }}</div>--> |
|
|
|
<div class="report-cell">{{ formatCurrency(summaryData.totalAnnualCost) }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -176,7 +174,7 @@ function formatNumber(value) { |
|
|
|
function formatCurrency(value) { |
|
|
|
if (value === null || value === undefined) return '-'; |
|
|
|
const num = Number(value); |
|
|
|
return isNaN(num) ? '-' : `¥${num.toFixed(2)}`; |
|
|
|
return isNaN(num) ? '-' : `¥${num.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g, ',')}`; |
|
|
|
} |
|
|
|
|
|
|
|
// 返回查询页面 |
|
|
|
@ -205,9 +203,6 @@ async function fetchStatisticsData() { |
|
|
|
console.log('API返回的数据:', tableData.value); |
|
|
|
// 检查是否有律师数据 |
|
|
|
tableData.value.forEach((item, index) => { |
|
|
|
console.log(`第${index}行数据:`, item); |
|
|
|
console.log(`lawyerServiceVOList:`, item.lawyerServiceVOList); |
|
|
|
console.log(`hasLawyerData:`, hasLawyerData(item)); |
|
|
|
}); |
|
|
|
} catch (error) { |
|
|
|
message.error('获取统计数据失败'); |
|
|
|
|