From d28b9f187ca0f847e19f174de8f487b4d8e4a11f Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 8 Nov 2022 14:43:04 +0100 Subject: [PATCH] Summaries have now a dialog component --- src/pages/Claim/Card/ClaimSummary.vue | 4 +- src/pages/Claim/Card/ClaimSummaryDialog.vue | 21 ++++++++++ src/pages/Claim/ClaimList.vue | 38 ++++++------------- src/pages/Customer/Card/CustomerSummary.vue | 4 +- .../Customer/Card/CustomerSummaryDialog.vue | 21 ++++++++++ src/pages/Customer/CustomerList.vue | 26 ++++++------- 6 files changed, 68 insertions(+), 46 deletions(-) create mode 100644 src/pages/Claim/Card/ClaimSummaryDialog.vue create mode 100644 src/pages/Customer/Card/CustomerSummaryDialog.vue diff --git a/src/pages/Claim/Card/ClaimSummary.vue b/src/pages/Claim/Card/ClaimSummary.vue index 2f9f28e4962..b02137f2227 100644 --- a/src/pages/Claim/Card/ClaimSummary.vue +++ b/src/pages/Claim/Card/ClaimSummary.vue @@ -12,13 +12,13 @@ const route = useRoute(); const { t } = useI18n(); const $props = defineProps({ - claimId: { + id: { type: Number, default: 0, }, }); -const entityId = computed(() => $props.claimId || route.params.id); +const entityId = computed(() => $props.id || route.params.id); const claim = ref(null); const salesClaimed = ref(null); diff --git a/src/pages/Claim/Card/ClaimSummaryDialog.vue b/src/pages/Claim/Card/ClaimSummaryDialog.vue new file mode 100644 index 00000000000..e0b4d22c178 --- /dev/null +++ b/src/pages/Claim/Card/ClaimSummaryDialog.vue @@ -0,0 +1,21 @@ + + + diff --git a/src/pages/Claim/ClaimList.vue b/src/pages/Claim/ClaimList.vue index 9649d8ee34a..93c656d3825 100644 --- a/src/pages/Claim/ClaimList.vue +++ b/src/pages/Claim/ClaimList.vue @@ -1,15 +1,14 @@ - - - diff --git a/src/pages/Customer/Card/CustomerSummary.vue b/src/pages/Customer/Card/CustomerSummary.vue index dd06bd52d51..7151b291eb7 100644 --- a/src/pages/Customer/Card/CustomerSummary.vue +++ b/src/pages/Customer/Card/CustomerSummary.vue @@ -12,13 +12,13 @@ const route = useRoute(); const { t } = useI18n(); const $props = defineProps({ - customerId: { + id: { type: Number, default: 0, }, }); -const entityId = computed(() => $props.customerId || route.params.id); +const entityId = computed(() => $props.id || route.params.id); const customer = ref(null); function fetch() { diff --git a/src/pages/Customer/Card/CustomerSummaryDialog.vue b/src/pages/Customer/Card/CustomerSummaryDialog.vue new file mode 100644 index 00000000000..84ecaf084b6 --- /dev/null +++ b/src/pages/Customer/Card/CustomerSummaryDialog.vue @@ -0,0 +1,21 @@ + + + diff --git a/src/pages/Customer/CustomerList.vue b/src/pages/Customer/CustomerList.vue index 1cba2f7b0e1..342eda58738 100644 --- a/src/pages/Customer/CustomerList.vue +++ b/src/pages/Customer/CustomerList.vue @@ -1,26 +1,25 @@ @@ -73,7 +72,7 @@ function showPreview(id) { {{ t('components.smartCard.openCard') }} - + {{ t('components.smartCard.openSummary') }}