fix: 移除质量统计卡中不必要的除以3计算

修复质量统计卡组件中各项统计值被错误除以3的问题,确保统计数据准确显示原始值
This commit is contained in:
2025-11-03 08:58:42 +08:00
parent bfc3fcd7fd
commit c7730399ec
2 changed files with 5 additions and 5 deletions

BIN
dist.rar Normal file

Binary file not shown.

View File

@@ -366,7 +366,7 @@ export default {
// 确保数据准确性,只加有效数字 // 确保数据准确性,只加有效数字
const value = Number(data.requireNumber); const value = Number(data.requireNumber);
return acc + (isNaN(value) ? 0 : value); return acc + (isNaN(value) ? 0 : value);
}, 0) / 3 }, 0)
); );
// 统计合格数 // 统计合格数
@@ -374,7 +374,7 @@ export default {
filteredData.reduce((acc, data) => { filteredData.reduce((acc, data) => {
const value = Number(data.qualifiedNumber); const value = Number(data.qualifiedNumber);
return acc + (isNaN(value) ? 0 : value); return acc + (isNaN(value) ? 0 : value);
}, 0) / 3 }, 0)
); );
// 计算合格率 // 计算合格率
@@ -390,7 +390,7 @@ export default {
filteredData.reduce((acc, data) => { filteredData.reduce((acc, data) => {
const value = Number(data.paoguangTotal); const value = Number(data.paoguangTotal);
return acc + (isNaN(value) ? 0 : value); return acc + (isNaN(value) ? 0 : value);
}, 0) / 3 }, 0)
); );
// 统计打磨数 // 统计打磨数
@@ -398,7 +398,7 @@ export default {
filteredData.reduce((acc, data) => { filteredData.reduce((acc, data) => {
const value = Number(data.damoTotal); const value = Number(data.damoTotal);
return acc + (isNaN(value) ? 0 : value); return acc + (isNaN(value) ? 0 : value);
}, 0) / 3 }, 0)
); );
// 统计报废数 // 统计报废数
@@ -406,7 +406,7 @@ export default {
filteredData.reduce((acc, data) => { filteredData.reduce((acc, data) => {
const value = Number(data.baofeiTotal); const value = Number(data.baofeiTotal);
return acc + (isNaN(value) ? 0 : value); return acc + (isNaN(value) ? 0 : value);
}, 0) / 3 }, 0)
); );
}, },