[update] - 修改确认来款对应字段;修改总计中的数据
This commit is contained in:
@@ -145,7 +145,7 @@
|
||||
v-has="'incomePaymentAndInvoiving:invoicing'">开票</a>
|
||||
<!-- 确认来款项目--- 普通项目、工作组项目、资料网员 项目 可以确认来款-->
|
||||
<a
|
||||
v-show="record.projectType === ProjectTypeEnums.GENERAL_PRO.value || record.projectType === ProjectTypeEnums.GROUP_PRO.value || record.projectType === ProjectTypeEnums.MEMBER_PRO.value"
|
||||
v-has="'incomePaymentAndInvoiving:confirmPayment'"
|
||||
@click="preComeMoney(record)"
|
||||
>确认来款</a>
|
||||
</span>
|
||||
|
||||
@@ -307,7 +307,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},
|
||||
{
|
||||
@@ -382,7 +382,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},
|
||||
{
|
||||
@@ -504,7 +504,9 @@ export default {
|
||||
id: '1',
|
||||
title: '总计',
|
||||
allMoney: res.result.sumOfMoney || '0.00' + '',
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + ''
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + '',
|
||||
billMoney: res.result.sumOfBillMoney || '0.00' + '',
|
||||
confirmAmount: res.result.sumOfConfirmAmount || '0.00' + ''
|
||||
}
|
||||
this.footerDataSource = [obj]
|
||||
if (res.result.pageList.total) {
|
||||
|
||||
@@ -156,7 +156,7 @@ const defaultTableColumns = [
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: {customRender: 'allMoney'}
|
||||
}
|
||||
]
|
||||
@@ -236,7 +236,9 @@ export default {
|
||||
id: '1',
|
||||
title: '总计',
|
||||
allMoney: res.result.sumOfMoney || '0.00' + '',
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + ''
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + '',
|
||||
billMoney: res.result.sumOfBillMoney || '0.00' + '',
|
||||
confirmAmount: res.result.sumOfConfirmAmount || '0.00' + ''
|
||||
}
|
||||
this.footerDataSource = [obj]
|
||||
if (res.result.pageList.total) {
|
||||
|
||||
+26
-7
@@ -97,6 +97,14 @@
|
||||
<status-slot :statu-obj="record" :status-no="text" :status-type="true"></status-slot>
|
||||
</template>
|
||||
|
||||
<template slot="allMoney" slot-scope="text">
|
||||
|
||||
<a-tooltip>
|
||||
<template slot="title">{{ formatMoney(text) }}</template>
|
||||
<div class="table-text">{{ formatMoney(text) }}</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<template slot="footer" v-if="dataSource.length > 0">
|
||||
|
||||
<a-table
|
||||
@@ -119,6 +127,13 @@
|
||||
<template slot="text" slot-scope="text">
|
||||
<j-ellipsis :value="text" :length="18"></j-ellipsis>
|
||||
</template>
|
||||
<template slot="allMoney" slot-scope="text">
|
||||
|
||||
<a-tooltip>
|
||||
<template slot="title">{{ formatMoney(text) }}</template>
|
||||
<div class="table-text">{{ formatMoney(text) }}</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
</a-table>
|
||||
</template>
|
||||
</a-table>
|
||||
@@ -135,6 +150,7 @@ import JYearDate from '../../../components/jero/JYearDate'
|
||||
import { getAction } from '@api/manage'
|
||||
import ProjectDetailModal from '../../../components/ProjectDetailModal'
|
||||
import StatusSlot from '../../../components/tools/StatusSlot'
|
||||
import {formatMoney} from '@/utils/formatMoney'
|
||||
|
||||
export default {
|
||||
name: 'IndividualPaymentStatisticsDetail',
|
||||
@@ -198,14 +214,14 @@ export default {
|
||||
width: 160,
|
||||
sorter: true,
|
||||
dataIndex: 'allMoney',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
}, {
|
||||
title: '实收金额',
|
||||
align: 'center',
|
||||
width: 160,
|
||||
sorter: true,
|
||||
dataIndex: 'comeAllMoney',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},
|
||||
{
|
||||
title: '已开票金额',
|
||||
@@ -220,7 +236,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},
|
||||
{
|
||||
@@ -262,14 +278,14 @@ export default {
|
||||
width: 160,
|
||||
sorter: true,
|
||||
dataIndex: 'allMoney',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
}, {
|
||||
title: '实收金额',
|
||||
align: 'center',
|
||||
width: 160,
|
||||
sorter: true,
|
||||
dataIndex: 'comeAllMoney',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},
|
||||
{
|
||||
title: '已开票金额',
|
||||
@@ -284,7 +300,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
}, {
|
||||
title: '来款用途',
|
||||
@@ -302,6 +318,7 @@ export default {
|
||||
this.setScroll()
|
||||
},
|
||||
methods: {
|
||||
formatMoney,
|
||||
// 同步表与footer滚动,保留底部滚动条
|
||||
setScroll() {
|
||||
if (this.dataSource.length === 0) {
|
||||
@@ -338,7 +355,9 @@ export default {
|
||||
id: '1',
|
||||
title: '总计',
|
||||
allMoney: res.result.sumOfMoney || '0.00' + '',
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + ''
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + '',
|
||||
billMoney: res.result.sumOfBillMoney || '0.00' + '',
|
||||
confirmAmount: res.result.sumOfConfirmAmount || '0.00' + ''
|
||||
}
|
||||
this.footerDataSource = [obj]
|
||||
if (res.result.pageList.total) {
|
||||
|
||||
+5
-3
@@ -215,7 +215,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},
|
||||
],
|
||||
@@ -265,7 +265,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
}
|
||||
],
|
||||
@@ -353,7 +353,9 @@ export default {
|
||||
id: '1',
|
||||
title: '总计',
|
||||
allMoney: res.result.sumOfMoney || '0.00' + '',
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + ''
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + '',
|
||||
billMoney: res.result.sumOfBillMoney || '0.00' + '',
|
||||
confirmAmount: res.result.sumOfConfirmAmount || '0.00' + ''
|
||||
}
|
||||
this.footerDataSource = [obj]
|
||||
if (res.result.pageList.total) {
|
||||
|
||||
@@ -255,7 +255,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},
|
||||
{
|
||||
@@ -325,7 +325,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
}, {
|
||||
title: '来款用途',
|
||||
@@ -412,7 +412,9 @@ export default {
|
||||
id: '1',
|
||||
title: '总计',
|
||||
allMoney: res.result.sumOfMoney || '0.00' + '',
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + ''
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + '',
|
||||
billMoney: res.result.sumOfBillMoney || '0.00' + '',
|
||||
confirmAmount: res.result.sumOfConfirmAmount || '0.00' + ''
|
||||
}
|
||||
this.footerDataSource = [obj]
|
||||
if (res.result.pageList.total) {
|
||||
|
||||
+5
-3
@@ -229,7 +229,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},
|
||||
{
|
||||
@@ -293,7 +293,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
}, {
|
||||
title: '来款用途',
|
||||
@@ -360,7 +360,9 @@ export default {
|
||||
id: '1',
|
||||
title: '总计',
|
||||
allMoney: res.result.sumOfMoney || '0.00' + '',
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + ''
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + '',
|
||||
billMoney: res.result.sumOfBillMoney || '0.00' + '',
|
||||
confirmAmount: res.result.sumOfConfirmAmount || '0.00' + ''
|
||||
}
|
||||
this.footerDataSource = [obj]
|
||||
if (res.result.pageList.total) {
|
||||
|
||||
+5
-3
@@ -217,7 +217,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},
|
||||
{
|
||||
@@ -275,7 +275,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},{
|
||||
title: '操作',
|
||||
@@ -369,7 +369,9 @@ export default {
|
||||
id: '1',
|
||||
title: '总计',
|
||||
allMoney: res.result.sumOfMoney || '0.00' + '',
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + ''
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + '',
|
||||
billMoney: res.result.sumOfBillMoney || '0.00' + '',
|
||||
confirmAmount: res.result.sumOfConfirmAmount || '0.00' + ''
|
||||
}
|
||||
this.footerDataSource = [obj]
|
||||
if (res.result.pageList.total) {
|
||||
|
||||
+5
-3
@@ -246,7 +246,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},
|
||||
{
|
||||
@@ -318,7 +318,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},, {
|
||||
title: '来款用途',
|
||||
@@ -362,7 +362,9 @@ export default {
|
||||
id: '1',
|
||||
title: '总计',
|
||||
allMoney: res.result.sumOfMoney || '0.00' + '',
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + ''
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + '',
|
||||
billMoney: res.result.sumOfBillMoney || '0.00' + '',
|
||||
confirmAmount: res.result.sumOfConfirmAmount || '0.00' + ''
|
||||
}
|
||||
this.footerDataSource = [obj]
|
||||
console.log(this.footerDataSource)
|
||||
|
||||
+5
-3
@@ -224,7 +224,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
},
|
||||
{
|
||||
@@ -283,7 +283,7 @@ export default {
|
||||
align: 'center',
|
||||
width: 150,
|
||||
sorter: true,
|
||||
dataIndex: 'preComeMoney',
|
||||
dataIndex: 'confirmAmount',
|
||||
scopedSlots: { customRender: 'allMoney' }
|
||||
}, {
|
||||
title: '操作',
|
||||
@@ -324,7 +324,9 @@ export default {
|
||||
id: '1',
|
||||
title: '总计',
|
||||
allMoney: res.result.sumOfMoney || '0.00' + '',
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + ''
|
||||
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + '',
|
||||
billMoney: res.result.sumOfBillMoney || '0.00' + '',
|
||||
confirmAmount: res.result.sumOfConfirmAmount || '0.00' + ''
|
||||
}
|
||||
this.footerDataSource = [obj]
|
||||
this.ipagination.total = res.result.pageList.total || 0
|
||||
|
||||
Reference in New Issue
Block a user