크리에이터 기준 라이브, 콘텐츠, 커뮤니티 합계 정산 페이지 추가

This commit is contained in:
Yu Sung 2024-07-08 23:35:18 +09:00
parent dba6bff90c
commit c5c1a886c0
3 changed files with 57 additions and 0 deletions

View File

@ -76,6 +76,21 @@
class="elevation-1" class="elevation-1"
hide-default-footer hide-default-footer
> >
<template slot="body.prepend">
<tr>
<td colspan="2">
합계
</td>
<td>{{ sumField('totalCan').toLocaleString() }} </td>
<td>{{ sumField('totalKrw').toLocaleString() }} </td>
<td>{{ sumField('paymentFee').toLocaleString() }} </td>
<td>{{ sumField('settlementAmount').toLocaleString() }} </td>
<td>{{ sumField('tax').toLocaleString() }} </td>
<td>{{ sumField('depositAmount').toLocaleString() }} </td>
<td />
</tr>
</template>
<template v-slot:item.email="{ item }"> <template v-slot:item.email="{ item }">
{{ item.email }} {{ item.email }}
</template> </template>
@ -260,6 +275,10 @@ export default {
this.$dialog.notify.success(message) this.$dialog.notify.success(message)
}, },
sumField(key) {
return this.items.reduce((a, b) => a + (b[key] || 0), 0)
},
async next() { async next() {
await this.getCalculateCommunityByCreator() await this.getCalculateCommunityByCreator()
}, },

View File

@ -76,6 +76,21 @@
class="elevation-1" class="elevation-1"
hide-default-footer hide-default-footer
> >
<template slot="body.prepend">
<tr>
<td colspan="2">
합계
</td>
<td>{{ sumField('totalCan').toLocaleString() }} </td>
<td>{{ sumField('totalKrw').toLocaleString() }} </td>
<td>{{ sumField('paymentFee').toLocaleString() }} </td>
<td>{{ sumField('settlementAmount').toLocaleString() }} </td>
<td>{{ sumField('tax').toLocaleString() }} </td>
<td>{{ sumField('depositAmount').toLocaleString() }} </td>
<td />
</tr>
</template>
<template v-slot:item.email="{ item }"> <template v-slot:item.email="{ item }">
{{ item.email }} {{ item.email }}
</template> </template>
@ -260,6 +275,10 @@ export default {
this.$dialog.notify.success(message) this.$dialog.notify.success(message)
}, },
sumField(key) {
return this.items.reduce((a, b) => a + (b[key] || 0), 0)
},
async next() { async next() {
await this.getCalculateContentByCreator() await this.getCalculateContentByCreator()
}, },

View File

@ -76,6 +76,21 @@
class="elevation-1" class="elevation-1"
hide-default-footer hide-default-footer
> >
<template slot="body.prepend">
<tr>
<td colspan="2">
합계
</td>
<td>{{ sumField('totalCan').toLocaleString() }} </td>
<td>{{ sumField('totalKrw').toLocaleString() }} </td>
<td>{{ sumField('paymentFee').toLocaleString() }} </td>
<td>{{ sumField('settlementAmount').toLocaleString() }} </td>
<td>{{ sumField('tax').toLocaleString() }} </td>
<td>{{ sumField('depositAmount').toLocaleString() }} </td>
<td />
</tr>
</template>
<template v-slot:item.email="{ item }"> <template v-slot:item.email="{ item }">
{{ item.email }} {{ item.email }}
</template> </template>
@ -260,6 +275,10 @@ export default {
this.$dialog.notify.success(message) this.$dialog.notify.success(message)
}, },
sumField(key) {
return this.items.reduce((a, b) => a + (b[key] || 0), 0)
},
async next() { async next() {
await this.getCalculateLiveByCreator() await this.getCalculateLiveByCreator()
}, },