diff --git a/src/components/data/InAppPurchaseDetails/index.vue b/src/components/data/InAppPurchaseDetails/index.vue
index e9d55b6..2f61e70 100644
--- a/src/components/data/InAppPurchaseDetails/index.vue
+++ b/src/components/data/InAppPurchaseDetails/index.vue
@@ -42,9 +42,9 @@
{{ order.details.env }}
{{ order.details.env }}
-
{{ $t('pages.inAppPurchaseDetails.label.type') }}: {{ orderReceiptTypeMap[order.details.receiptType] }}
+ {{ $t('pages.inAppPurchaseDetails.label.type') }}: {{ getReceiptTypeLabel(order.details.receiptType) }}
{{ $t('pages.inAppPurchaseDetails.label.status') }}:
- {{ orderStatusMap[order.details.status].label }}
+ {{ getOrderStatus(order.details.status).label }}
{{ $t('pages.inAppPurchaseDetails.label.id') }}: {{ order.details.id }}
{{ $t('pages.inAppPurchaseDetails.label.trackId') }}: {{ order.details.trackId }}
@@ -52,8 +52,8 @@
{{ $t('pages.inAppPurchaseDetails.label.orderId') }}: {{ order.details.orderId }}
{{ $t('pages.inAppPurchaseDetails.label.platformChannel') }}:
-
-
+
+
{{ $t('pages.inAppPurchaseDetails.label.countryCode') }}: {{ order.details.countryCode }}
{{ $t('pages.inAppPurchaseDetails.label.currency') }}: {{ order.details.currency }}
@@ -73,7 +73,7 @@
{{ $t('pages.inAppPurchaseDetails.section.statusFlow') }}
-
+
@@ -168,7 +168,7 @@ export default {
},
computed: {
orderReceiptTypeMap() {
- const locale = this.$i18n.locale
+ const locale = this.$locale
void locale
return {
PAYMENT: this.$t('pages.inAppPurchaseDetails.receiptType.payment'),
@@ -176,7 +176,7 @@ export default {
}
},
orderStatusMap() {
- const locale = this.$i18n.locale
+ const locale = this.$locale
void locale
return {
CREATE: {
@@ -231,6 +231,18 @@ export default {
handleClose() {
this.$emit('close')
},
+ getReceiptTypeLabel(receiptType) {
+ return this.orderReceiptTypeMap[receiptType] || receiptType || '-'
+ },
+ getOrderStatus(status) {
+ return this.orderStatusMap[status] || {
+ label: status || '-',
+ tagType: 'info'
+ }
+ },
+ getOrderFactory(details) {
+ return (details && details.factory) || {}
+ },
loadInAppPurchase() {
const that = this
that.orderLoading = true
diff --git a/src/views/game/lottery-config/form-edit.vue b/src/views/game/lottery-config/form-edit.vue
index 58d1166..5600800 100644
--- a/src/views/game/lottery-config/form-edit.vue
+++ b/src/views/game/lottery-config/form-edit.vue
@@ -503,7 +503,7 @@ export default {
},
computed: {
badgeRestaurants() {
- const locale = this.$i18n.locale
+ const locale = this.$locale
void locale
return [{ value: '0', label: this.$t('pages.gameLotteryConfigForm.word.permanent') }]
},