feat : 分摊汇总小计保留两位小数

This commit is contained in:
clay
2024-06-28 21:41:24 +08:00
parent fc034cc653
commit 377509b62a

View File

@@ -33,7 +33,6 @@
</template> </template>
<script setup> <script setup>
import {toThousands} from '@/utils/changePrice.js'
import {exportExcel} from "@/utils/export-excel"; import {exportExcel} from "@/utils/export-excel";
import {getAllocationSummaryDetails} from "@/api/expense-manage"; import {getAllocationSummaryDetails} from "@/api/expense-manage";
@@ -71,6 +70,7 @@ const getSummaries = (param) => {
return prev return prev
} }
}, 0)}` }, 0)}`
sums[index] = parseFloat(sums[index]).toFixed(2)
// sums[index] = toThousands(sums[index]) // sums[index] = toThousands(sums[index])
} else { } else {
sums[index] = '-' sums[index] = '-'