From 5a5f8ed4135ccc0efe4c40ddeca7ab7d6c28f130 Mon Sep 17 00:00:00 2001 From: Travis Semple Date: Wed, 11 Sep 2024 14:40:27 -0700 Subject: [PATCH] 23072 - EFT - Consolidated invoices / unlock - frontend changes (#3005) --- auth-web/package-lock.json | 4 +- auth-web/package.json | 2 +- .../auth/account-freeze/AccountOverview.vue | 19 ++++++++-- .../auth/account-freeze/MakePayment.vue | 15 +++++++- .../account-settings/statement/Statements.vue | 21 +++------- .../components/auth/common/PaymentMethods.vue | 18 +++------ .../components/pay/OutstandingBalances.vue | 16 +------- auth-web/src/composables/downloader.ts | 38 +++++++++++++++++++ auth-web/src/util/constants.ts | 3 +- .../views/auth/AccountLoginOptionsChooser.vue | 4 ++ .../AccountFreezeUnlockView.vue | 32 ++++++++++++++-- .../auth/account-freeze/AccountHoldView.vue | 17 +++++++-- 12 files changed, 130 insertions(+), 59 deletions(-) create mode 100644 auth-web/src/composables/downloader.ts diff --git a/auth-web/package-lock.json b/auth-web/package-lock.json index 1a03e752f9..68bd8269e0 100644 --- a/auth-web/package-lock.json +++ b/auth-web/package-lock.json @@ -1,12 +1,12 @@ { "name": "auth-web", - "version": "2.6.84", + "version": "2.6.85", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "auth-web", - "version": "2.6.84", + "version": "2.6.85", "dependencies": { "@bcrs-shared-components/base-address": "2.0.3", "@bcrs-shared-components/bread-crumb": "1.0.8", diff --git a/auth-web/package.json b/auth-web/package.json index 6e8eeba8fd..ad17fb4094 100644 --- a/auth-web/package.json +++ b/auth-web/package.json @@ -1,6 +1,6 @@ { "name": "auth-web", - "version": "2.6.84", + "version": "2.6.85", "appName": "Auth Web", "sbcName": "SBC Common Components", "private": true, diff --git a/auth-web/src/components/auth/account-freeze/AccountOverview.vue b/auth-web/src/components/auth/account-freeze/AccountOverview.vue index 1f9dae1954..8d60e1f323 100644 --- a/auth-web/src/components/auth/account-freeze/AccountOverview.vue +++ b/auth-web/src/components/auth/account-freeze/AccountOverview.vue @@ -15,6 +15,7 @@ outlined flat class="suspended-info-card mb-12" + :loading="loading" > @@ -36,9 +37,12 @@ :key="statement.id" > - + @@ -79,6 +83,7 @@ import { computed, defineComponent, onMounted, reactive, toRefs } from '@vue/composition-api' import CommonUtils from '@/util/common-util' import { FailedInvoice } from '@/models/invoice' +import { useDownloader } from '@/composables/downloader' import { useOrgStore } from '@/stores/org' export default defineComponent({ @@ -93,11 +98,12 @@ export default defineComponent({ const formatDate = CommonUtils.formatDisplayDate const formatDateRange = CommonUtils.formatDateRange const suspendedDate = (currentOrganization.value?.suspendedOn) ? formatDate(new Date(currentOrganization.value.suspendedOn)) : '' - const state = reactive({ statements: [], - totalAmountDue: 0 + totalAmountDue: 0, + loading: false }) + const { downloadStatement } = useDownloader(orgStore, state) const goNext = () => { emit('step-forward') @@ -113,6 +119,7 @@ export default defineComponent({ ...toRefs(state), currentOrganization, currentMembership, + downloadStatement, suspendedDate, downloadNSFInvoicesPDF, goNext, @@ -126,6 +133,10 @@ export default defineComponent({