Compare commits

..

No commits in common. "a13d442924bdb0aaa7e90ba48a1134ea32f667e6" and "a1f206a3c0385c3da95b2e3ee9ba31ac21473280" have entirely different histories.

1 changed files with 16 additions and 19 deletions

View File

@ -55,19 +55,20 @@
class="elevation-1" class="elevation-1"
hide-default-footer hide-default-footer
> >
<template slot="body.prepend"> <template v-slot:item.email="{ item }">
<tr> {{ item.email }}
<td colspan="5"> </template>
합계
</td> <template v-slot:item.nickname="{ item }">
<td>{{ sumField('numberOfPeople').toLocaleString() }} </td> {{ item.nickname }}
<td>{{ sumField('totalAmount').toLocaleString() }} </td> </template>
<td>{{ sumField('totalKrw').toLocaleString() }} </td>
<td>{{ sumField('paymentFee').toLocaleString() }} </td> <template v-slot:item.date="{ item }">
<td>{{ sumField('settlementAmount').toLocaleString() }} </td> {{ item.date }}
<td>{{ sumField('tax').toLocaleString() }} </td> </template>
<td>{{ sumField('depositAmount').toLocaleString() }} </td>
</tr> <template v-slot:item.title="{ item }">
{{ item.title }}
</template> </template>
<template v-slot:item.entranceFee="{ item }"> <template v-slot:item.entranceFee="{ item }">
@ -144,7 +145,7 @@ export default {
field: "entranceFee", field: "entranceFee",
}, },
{ {
label: "유료방참여인원", label: "인원",
field: "numberOfPeople", field: "numberOfPeople",
}, },
{ {
@ -203,7 +204,7 @@ export default {
value: 'entranceFee', value: 'entranceFee',
}, },
{ {
text: '유료방참여인원', text: '인원',
align: 'center', align: 'center',
sortable: false, sortable: false,
value: 'numberOfPeople', value: 'numberOfPeople',
@ -279,10 +280,6 @@ 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 getCalculateLive() { async getCalculateLive() {
this.is_loading = true this.is_loading = true