【修改】确认收总计与实际收入总计 赋值错误
This commit is contained in:
@@ -9,6 +9,8 @@ export function formatMoney(money) {
|
|||||||
if (num.indexOf('.') !== -1) {
|
if (num.indexOf('.') !== -1) {
|
||||||
point = num.substring(num.indexOf('.'))
|
point = num.substring(num.indexOf('.'))
|
||||||
num = parseInt(num)
|
num = parseInt(num)
|
||||||
|
}else {
|
||||||
|
point = '.00'
|
||||||
}
|
}
|
||||||
|
|
||||||
// 循环添加逗号
|
// 循环添加逗号
|
||||||
|
|||||||
@@ -94,8 +94,8 @@
|
|||||||
|
|
||||||
<template slot="allMoney" slot-scope="text">
|
<template slot="allMoney" slot-scope="text">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template slot="title">{{ formatMoney(text) }}</template>
|
<template slot="title">{{ formatMoney(text+'') }}</template>
|
||||||
<div class="table-text">{{ formatMoney(text) }}</div>
|
<div class="table-text">{{ formatMoney(text+'') }}</div>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -283,8 +283,8 @@ export default {
|
|||||||
id: '1',
|
id: '1',
|
||||||
title: '总计',
|
title: '总计',
|
||||||
packChargeTotal: res.result.sumOfMoney || '0.00' + '',
|
packChargeTotal: res.result.sumOfMoney || '0.00' + '',
|
||||||
receiptExpense: res.result.sumOfReallyMoney || '0.00' + '',
|
receiptExpense: res.result.sumOfConfirmAmount || '0.00' + '',
|
||||||
confirmAmount: res.result.sumOfConfirmAmount || '0.00' + '',
|
confirmAmount: res.result.sumOfReallyMoney || '0.00' + '',
|
||||||
|
|
||||||
}
|
}
|
||||||
this.footerDataSource = [obj]
|
this.footerDataSource = [obj]
|
||||||
|
|||||||
Reference in New Issue
Block a user