feat : 分摊汇总小计保留两位小数
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
<el-table-column prop="afterTax" label="分摊金额" align="center">
|
<el-table-column prop="afterTax" label="分摊金额" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div v-if="scope.row.afterTax !== null">
|
<div v-if="scope.row.afterTax !== null">
|
||||||
<!-- {{ toThousands(scope.row.afterTax) }}-->
|
<!-- {{ toThousands(scope.row.afterTax) }}-->
|
||||||
{{ scope.row.afterTax }}
|
{{ scope.row.afterTax }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -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] = '-'
|
||||||
@@ -85,7 +85,7 @@ const exportTable = () => {
|
|||||||
if (!$table) {
|
if (!$table) {
|
||||||
$table = $e
|
$table = $e
|
||||||
}
|
}
|
||||||
exportExcel($table, (5 + (Object.keys(tableData.value[0]).length - 5) * 5), "四川省国有资产经营投资管理有限责任公司科技创新项目费用分摊表",2)
|
exportExcel($table, (5 + (Object.keys(tableData.value[0]).length - 5) * 5), "四川省国有资产经营投资管理有限责任公司科技创新项目费用分摊表", 2)
|
||||||
}
|
}
|
||||||
const init = () => {
|
const init = () => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
|
|||||||
Reference in New Issue
Block a user