@@ -149,62 +149,22 @@ export default {
total_page: 0,
items: [],
total: null,
- headers: [
- {
- text: '날짜',
- align: 'center',
- sortable: false,
- value: 'date',
- },
- {
- text: '크리에이터',
- align: 'center',
- sortable: false,
- value: 'creator',
- },
- {
- text: '건수',
- align: 'center',
- sortable: false,
- value: 'count',
- },
- {
- text: '캔',
- align: 'center',
- sortable: false,
- value: 'totalCan',
- },
- {
- text: '원화',
- align: 'center',
- sortable: false,
- value: 'krw',
- },
- {
- text: '수수료\n(6.6%)',
- align: 'center',
- sortable: false,
- value: 'fee',
- },
- {
- text: '정산금액',
- align: 'center',
- sortable: false,
- value: 'settlementAmount',
- },
- {
- text: '원천세\n(3.3%)',
- align: 'center',
- sortable: false,
- value: 'withholdingTax',
- },
- {
- text: '입금액',
- align: 'center',
- sortable: false,
- value: 'depositAmount',
- },
- ],
+ }
+ },
+
+ computed: {
+ headers() {
+ return [
+ { text: this.$t('view.calculate.common.headers.date'), align: 'center', sortable: false, value: 'date' },
+ { text: this.$t('view.calculate.common.headers.creator'), align: 'center', sortable: false, value: 'creator' },
+ { text: this.$t('view.calculate.common.headers.count'), align: 'center', sortable: false, value: 'count' },
+ { text: this.$t('view.calculate.common.headers.totalCan'), align: 'center', sortable: false, value: 'totalCan' },
+ { text: this.$t('view.calculate.common.headers.krw'), align: 'center', sortable: false, value: 'krw' },
+ { text: this.$t('view.calculate.common.headers.feeWithPercent', { percent: '6.6%' }), align: 'center', sortable: false, value: 'fee' },
+ { text: this.$t('view.calculate.common.headers.settlementAmount'), align: 'center', sortable: false, value: 'settlementAmount' },
+ { text: this.$t('view.calculate.common.headers.withholdingTaxWithPercent', { percent: '3.3%' }), align: 'center', sortable: false, value: 'withholdingTax' },
+ { text: this.$t('view.calculate.common.headers.depositAmount'), align: 'center', sortable: false, value: 'depositAmount' },
+ ]
}
},
@@ -262,10 +222,10 @@ export default {
this.total = res.data.data.total
this.total_page = Math.ceil(res.data.data.totalCount / this.page_size)
} else {
- this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
+ this.notifyError(res.data.message || this.$t('common.error.fetchFailed'))
}
} catch (e) {
- this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
+ this.notifyError(this.$t('common.error.fetchFailed'))
} finally {
this.is_loading = false
}
diff --git a/src/views/Calculate/CalculateCommunityPost.vue b/src/views/Calculate/CalculateCommunityPost.vue
index 8ddc334..dc78788 100644
--- a/src/views/Calculate/CalculateCommunityPost.vue
+++ b/src/views/Calculate/CalculateCommunityPost.vue
@@ -2,7 +2,7 @@
- 커뮤니티 정산
+ {{ $t('view.calculate.community.title') }}
@@ -19,7 +19,7 @@
- ~
+ {{ $t('view.calculate.common.rangeSeparator') }}
@@ -40,7 +40,7 @@
depressed
@click="getCalculateCommunityPost"
>
- 조회
+ {{ $t('view.calculate.common.search') }}
@@ -58,14 +58,14 @@
|
- 합계
+ {{ $t('view.calculate.common.total') }}
|
- {{ sumField('totalCan').toLocaleString() }} 캔 |
- {{ sumField('totalKrw').toLocaleString() }} 원 |
- {{ sumField('paymentFee').toLocaleString() }} 원 |
- {{ sumField('settlementAmount').toLocaleString() }} 원 |
- {{ sumField('tax').toLocaleString() }} 원 |
- {{ sumField('depositAmount').toLocaleString() }} 원 |
+ {{ sumField('totalCan').toLocaleString() }} {{ $t('common.unit.can') }} |
+ {{ sumField('totalKrw').toLocaleString() }} {{ $t('common.unit.krw') }} |
+ {{ sumField('paymentFee').toLocaleString() }} {{ $t('common.unit.krw') }} |
+ {{ sumField('settlementAmount').toLocaleString() }} {{ $t('common.unit.krw') }} |
+ {{ sumField('tax').toLocaleString() }} {{ $t('common.unit.krw') }} |
+ {{ sumField('depositAmount').toLocaleString() }} {{ $t('common.unit.krw') }} |
@@ -74,27 +74,27 @@
- {{ item.totalCan.toLocaleString() }} 캔
+ {{ item.totalCan.toLocaleString() }} {{ $t('common.unit.can') }}
- {{ item.totalKrw.toLocaleString() }} 원
+ {{ item.totalKrw.toLocaleString() }} {{ $t('common.unit.krw') }}
- {{ item.paymentFee.toLocaleString() }} 원
+ {{ item.paymentFee.toLocaleString() }} {{ $t('common.unit.krw') }}
- {{ item.settlementAmount.toLocaleString() }} 원
+ {{ item.settlementAmount.toLocaleString() }} {{ $t('common.unit.krw') }}
- {{ item.tax.toLocaleString() }} 원
+ {{ item.tax.toLocaleString() }} {{ $t('common.unit.krw') }}
- {{ item.depositAmount.toLocaleString() }} 원
+ {{ item.depositAmount.toLocaleString() }} {{ $t('common.unit.krw') }}
@@ -130,69 +130,23 @@ export default {
page_size: 20,
total_page: 0,
items: [],
- headers: [
- {
- text: '날짜',
- align: 'center',
- sortable: false,
- value: 'date',
- },
- {
- text: '내용(앞 10글자)',
- sortable: false,
- value: 'title',
- align: 'center',
- width: "300px"
- },
- {
- text: '판매금액(캔)',
- align: 'center',
- sortable: false,
- value: 'can',
- },
- {
- text: '구매유저수',
- align: 'center',
- sortable: false,
- value: 'numberOfPurchase',
- },
- {
- text: '합계(캔)',
- align: 'center',
- sortable: false,
- value: 'totalCan',
- },
- {
- text: '원화',
- align: 'center',
- sortable: false,
- value: 'totalKrw',
- },
- {
- text: '수수료\n(6.6%)',
- align: 'center',
- sortable: false,
- value: 'paymentFee',
- },
- {
- text: '정산금액',
- align: 'center',
- sortable: false,
- value: 'settlementAmount',
- },
- {
- text: '원천세\n(3.3%)',
- align: 'center',
- sortable: false,
- value: 'tax',
- },
- {
- text: '입금액',
- align: 'center',
- sortable: false,
- value: 'depositAmount',
- }
- ],
+ }
+ },
+
+ computed: {
+ headers() {
+ return [
+ { text: this.$t('view.calculate.common.headers.date'), align: 'center', sortable: false, value: 'date' },
+ { text: this.$t('view.calculate.community.headers.contentPreview'), align: 'center', sortable: false, value: 'title', width: '300px' },
+ { text: this.$t('view.calculate.community.headers.orderPriceCan'), align: 'center', sortable: false, value: 'can' },
+ { text: this.$t('view.calculate.community.headers.numberOfPurchase'), align: 'center', sortable: false, value: 'numberOfPurchase' },
+ { text: this.$t('view.calculate.common.headers.totalCan'), align: 'center', sortable: false, value: 'totalCan' },
+ { text: this.$t('view.calculate.common.headers.krw'), align: 'center', sortable: false, value: 'totalKrw' },
+ { text: this.$t('view.calculate.common.headers.feeWithPercent', { percent: '6.6%' }), align: 'center', sortable: false, value: 'paymentFee' },
+ { text: this.$t('view.calculate.common.headers.settlementAmount'), align: 'center', sortable: false, value: 'settlementAmount' },
+ { text: this.$t('view.calculate.common.headers.withholdingTaxWithPercent', { percent: '3.3%' }), align: 'center', sortable: false, value: 'tax' },
+ { text: this.$t('view.calculate.common.headers.depositAmount'), align: 'center', sortable: false, value: 'depositAmount' },
+ ]
}
},
@@ -247,12 +201,12 @@ export default {
else
this.total_page = totalPage
} else {
- this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
+ this.notifyError(res.data.message || this.$t('common.error.fetchFailed'))
}
this.is_loading = false
} catch (e) {
- this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
+ this.notifyError(this.$t('common.error.fetchFailed'))
this.is_loading = false
}
}
diff --git a/src/views/Calculate/CalculateContentDonation.vue b/src/views/Calculate/CalculateContentDonation.vue
index afda54c..3a2a395 100644
--- a/src/views/Calculate/CalculateContentDonation.vue
+++ b/src/views/Calculate/CalculateContentDonation.vue
@@ -2,7 +2,7 @@
- 콘텐츠 정산
+ {{ $t('view.calculate.contentDonation.title') }}
@@ -19,7 +19,7 @@
- ~
+ {{ $t('view.calculate.common.rangeSeparator') }}
@@ -40,7 +40,7 @@
depressed
@click="getCalculateContentDonation"
>
- 조회
+ {{ $t('view.calculate.common.search') }}
@@ -58,27 +58,27 @@
hide-default-footer
>
- {{ item.totalCan.toLocaleString() }} 캔
+ {{ item.totalCan.toLocaleString() }} {{ $t('common.unit.can') }}
- {{ item.totalKrw.toLocaleString() }} 원
+ {{ item.totalKrw.toLocaleString() }} {{ $t('common.unit.krw') }}
- {{ item.paymentFee.toLocaleString() }} 원
+ {{ item.paymentFee.toLocaleString() }} {{ $t('common.unit.krw') }}
- {{ item.settlementAmount.toLocaleString() }} 원
+ {{ item.settlementAmount.toLocaleString() }} {{ $t('common.unit.krw') }}
- {{ item.tax.toLocaleString() }} 원
+ {{ item.tax.toLocaleString() }} {{ $t('common.unit.krw') }}
- {{ item.depositAmount.toLocaleString() }} 원
+ {{ item.depositAmount.toLocaleString() }} {{ $t('common.unit.krw') }}
@@ -114,81 +114,25 @@ export default {
page_size: 20,
total_page: 0,
items: [],
- headers: [
- {
- text: '후원날짜',
- align: 'center',
- sortable: false,
- value: 'donationDate',
- },
- {
- text: '크리에이터',
- align: 'center',
- sortable: false,
- value: 'nickname',
- },
- {
- text: '콘텐츠 제목',
- sortable: false,
- value: 'title',
- align: 'center',
- width: "300px"
- },
- {
- text: '구분',
- sortable: false,
- value: 'paidOrFree',
- align: 'center'
- },
- {
- text: '후원수',
- align: 'center',
- sortable: false,
- value: 'numberOfDonation',
- },
- {
- text: '합계(캔)',
- align: 'center',
- sortable: false,
- value: 'totalCan',
- },
- {
- text: '원화',
- align: 'center',
- sortable: false,
- value: 'totalKrw',
- },
- {
- text: '수수료\n(6.6%)',
- align: 'center',
- sortable: false,
- value: 'paymentFee',
- },
- {
- text: '정산금액',
- align: 'center',
- sortable: false,
- value: 'settlementAmount',
- },
- {
- text: '원천세\n(3.3%)',
- align: 'center',
- sortable: false,
- value: 'tax',
- },
- {
- text: '입금액',
- align: 'center',
- sortable: false,
- value: 'depositAmount',
- },
- {
- text: '콘텐츠 등록일',
- align: 'center',
- sortable: false,
- value: 'registrationDate',
- },
- ],
+ }
+ },
+
+ computed: {
+ headers() {
+ return [
+ { text: this.$t('view.calculate.common.headers.date'), align: 'center', sortable: false, value: 'donationDate' },
+ { text: this.$t('view.calculate.common.headers.creator'), align: 'center', sortable: false, value: 'nickname' },
+ { text: this.$t('view.calculate.common.headers.title'), align: 'center', sortable: false, value: 'title', width: '300px' },
+ { text: this.$t('view.calculate.common.headers.type'), align: 'center', sortable: false, value: 'paidOrFree' },
+ { text: this.$t('view.calculate.contentDonation.headers.numberOfDonation'), align: 'center', sortable: false, value: 'numberOfDonation' },
+ { text: this.$t('view.calculate.common.headers.totalCan'), align: 'center', sortable: false, value: 'totalCan' },
+ { text: this.$t('view.calculate.common.headers.krw'), align: 'center', sortable: false, value: 'totalKrw' },
+ { text: this.$t('view.calculate.common.headers.feeWithPercent', { percent: '6.6%' }), align: 'center', sortable: false, value: 'paymentFee' },
+ { text: this.$t('view.calculate.common.headers.settlementAmount'), align: 'center', sortable: false, value: 'settlementAmount' },
+ { text: this.$t('view.calculate.common.headers.withholdingTaxWithPercent', { percent: '3.3%' }), align: 'center', sortable: false, value: 'tax' },
+ { text: this.$t('view.calculate.common.headers.depositAmount'), align: 'center', sortable: false, value: 'depositAmount' },
+ { text: this.$t('view.calculate.content.headers.registrationDate'), align: 'center', sortable: false, value: 'registrationDate' },
+ ]
}
},
@@ -247,12 +191,12 @@ export default {
else
this.total_page = totalPage
} else {
- this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
+ this.notifyError(res.data.message || this.$t('common.error.fetchFailed'))
}
this.is_loading = false
} catch (e) {
- this.notifyError('알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')
+ this.notifyError(this.$t('common.error.fetchFailed'))
this.is_loading = false
}
}