fix: BUG修改
This commit is contained in:
parent
e2a3cd3285
commit
8b3f8d8b32
@ -634,6 +634,7 @@ const getSubItemList = async () => {
|
||||
];
|
||||
if (res.result) {
|
||||
responseArr = res.result;
|
||||
// 乘以100处理相加精度问题
|
||||
responseArr.map(item => {
|
||||
if (item.totalAmount) {
|
||||
sumRowData.totalAmount += item.totalAmount * 100;
|
||||
@ -654,6 +655,7 @@ const getSubItemList = async () => {
|
||||
sumRowData.completeScheduleRatio += +item.completeScheduleRatio * 100;
|
||||
}
|
||||
});
|
||||
// 然后再除以100使数据回正
|
||||
for (let i in sumRowData) {
|
||||
if (i != "reportContent") {
|
||||
sumRowData[i] = sumRowData[i] / 100;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user