【修改】打包管理增加 确认收入列
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
export function formatMoney(money) {
|
export function formatMoney(money) {
|
||||||
|
if(money === 0) return '0.00'
|
||||||
if(money === '') return ''
|
if(money === '') return ''
|
||||||
var num = (money || 0).toString(),
|
var num = (money || 0).toString(),
|
||||||
re = /\d{3}$/,
|
re = /\d{3}$/,
|
||||||
|
|||||||
@@ -146,6 +146,13 @@ const defaultTableColumns = [
|
|||||||
dataIndex: 'packChargeTotal',
|
dataIndex: 'packChargeTotal',
|
||||||
scopedSlots: { customRender: 'allMoney' }
|
scopedSlots: { customRender: 'allMoney' }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '确认收入',
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
dataIndex: 'confirmAmount',
|
||||||
|
scopedSlots: { customRender: 'allMoney' }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '实际到账费用',
|
title: '实际到账费用',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -276,7 +283,9 @@ export default {
|
|||||||
id: '1',
|
id: '1',
|
||||||
title: '总计',
|
title: '总计',
|
||||||
packChargeTotal: res.result.sumOfMoney || '0.00' + '',
|
packChargeTotal: res.result.sumOfMoney || '0.00' + '',
|
||||||
receiptExpense: res.result.sumOfConfirmAmount || '0.00' + ''
|
receiptExpense: res.result.sumOfReallyMoney || '0.00' + '',
|
||||||
|
confirmAmount: res.result.sumOfConfirmAmount || '0.00' + '',
|
||||||
|
|
||||||
}
|
}
|
||||||
this.footerDataSource = [obj]
|
this.footerDataSource = [obj]
|
||||||
if (pageListObj.total) {
|
if (pageListObj.total) {
|
||||||
|
|||||||
Reference in New Issue
Block a user