Skip to content

Commit 70abbcb

Browse files
authored
Merge pull request #562 from bcgov/ccfri-3816-ece-we-update-family
Ccfri 3816 ece we update family
2 parents 4152b45 + feb4f1b commit 70abbcb

30 files changed

+640
-586
lines changed

backend/src/components/application.js

+197-201
Large diffs are not rendered by default.

frontend/src/components/LandingPage.vue

+15-13
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
<div v-else-if="ccofStatus === CCOF_STATUS_CONTINUE">
6060
<p class="text-h5 blueText">Status: Incomplete</p>
61-
<v-btn theme="dark" class="blueButton" @click="continueApplication()"> Continue Application </v-btn>
61+
<v-btn theme="dark" class="blueButton" @click="goToCCOFOrganizationInfo()"> Continue Application </v-btn>
6262
<p class="mt-4">Fiscal year runs April 1 to March 31</p>
6363
<v-btn v-if="isCancelPcfButtonEnabled" theme="dark" class="redButton" @click="openDialog()">
6464
Cancel Application
@@ -348,7 +348,13 @@ import { useMessageStore } from '@/store/message.js';
348348
import SmallCard from '@/components/guiComponents/SmallCard.vue';
349349
import MessagesToolbar from '@/components/guiComponents/MessagesToolbar.vue';
350350
import FiscalYearSlider from '@/components/guiComponents/FiscalYearSlider.vue';
351-
import { PATHS, pcfUrl, pcfUrlGuid, CHANGE_REQUEST_EXTERNAL_STATUS } from '@/utils/constants.js';
351+
import {
352+
PATHS,
353+
pcfUrl,
354+
pcfUrlGuid,
355+
CHANGE_REQUEST_EXTERNAL_STATUS,
356+
ORGANIZATION_PROVIDER_TYPES,
357+
} from '@/utils/constants.js';
352358
import alertMixin from '@/mixins/alertMixin.js';
353359
import { checkApplicationUnlocked } from '@/utils/common.js';
354360

@@ -660,19 +666,13 @@ export default {
660666
this.setIsRenewal(false);
661667
this.$router.push(pcfUrl(PATHS.SELECT_APPLICATION_TYPE, this.programYearList.newApp.programYearId));
662668
},
663-
continueApplication() {
664-
this.setIsRenewal(false);
665-
this.$router.push(
666-
pcfUrl(
667-
this.organizationProviderType === 'GROUP' ? PATHS.CCOF_GROUP_ORG : PATHS.CCOF_FAMILY_ORG,
668-
this.programYearId,
669-
),
670-
);
671-
},
672669
goToCCOFOrganizationInfo() {
670+
this.setIsRenewal(false);
673671
this.$router.push(
674672
pcfUrl(
675-
this.organizationProviderType === 'GROUP' ? PATHS.CCOF_GROUP_ORG : PATHS.CCOF_FAMILY_ORG,
673+
this.organizationProviderType === ORGANIZATION_PROVIDER_TYPES.GROUP
674+
? PATHS.CCOF_GROUP_ORG
675+
: PATHS.CCOF_FAMILY_ORG,
676676
this.programYearId,
677677
),
678678
);
@@ -683,7 +683,9 @@ export default {
683683
if (ccofBaseFundingId && programYearId) {
684684
this.$router.push(
685685
pcfUrlGuid(
686-
this.organizationProviderType === 'GROUP' ? PATHS.CCOF_GROUP_FUNDING : PATHS.CCOF_FAMILY_FUNDING,
686+
this.organizationProviderType === ORGANIZATION_PROVIDER_TYPES.GROUP
687+
? PATHS.CCOF_GROUP_FUNDING
688+
: PATHS.CCOF_FAMILY_FUNDING,
687689
programYearId,
688690
ccofBaseFundingId,
689691
),

frontend/src/components/SummaryDeclaration.vue

+12-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@
125125
<div v-if="!facility.funding || isRenewal" />
126126
<div v-else>
127127
<CCOFSummaryFamily
128-
v-if="summaryModel?.application?.organizationProviderType == 'FAMILY'"
128+
v-if="
129+
summaryModel?.application?.organizationProviderType === ORGANIZATION_PROVIDER_TYPES.FAMILY
130+
"
129131
:funding="facility.funding"
130132
:facility-id="facility.facilityId"
131133
:program-year-id="summaryModel?.application?.programYearId"
@@ -433,7 +435,12 @@ import { useSummaryDeclarationStore } from '@/store/summaryDeclaration.js';
433435
import { useApplicationStore } from '@/store/application.js';
434436
import { useReportChangesStore } from '@/store/reportChanges.js';
435437
436-
import { PATHS, CHANGE_REQUEST_TYPES, PROGRAM_YEAR_LANGUAGE_TYPES } from '@/utils/constants.js';
438+
import {
439+
PATHS,
440+
CHANGE_REQUEST_TYPES,
441+
PROGRAM_YEAR_LANGUAGE_TYPES,
442+
ORGANIZATION_PROVIDER_TYPES,
443+
} from '@/utils/constants.js';
437444
import alertMixin from '@/mixins/alertMixin.js';
438445
import NavButton from '@/components/util/NavButton.vue';
439446
import FacilityInformationSummary from '@/components/summary/group/FacilityInformationSummary.vue';
@@ -663,6 +670,9 @@ export default {
663670
this.expandAllPanels();
664671
}
665672
},
673+
created() {
674+
this.ORGANIZATION_PROVIDER_TYPES = ORGANIZATION_PROVIDER_TYPES;
675+
},
666676
methods: {
667677
...mapActions(useSummaryDeclarationStore, [
668678
'loadDeclaration',

frontend/src/components/ccofApplication/CcofApplicationTypeSelector.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import { useAppStore } from '../../store/app.js';
4848
import { useOrganizationStore } from '../../store/ccof/organization.js';
4949
5050
import LargeCard from '../../components/guiComponents/LargeCard.vue';
51-
import { PATHS, pcfUrl } from '../../utils/constants.js';
51+
import { PATHS, pcfUrl, ORGANIZATION_PROVIDER_TYPES } from '@/utils/constants.js';
5252
import NavButton from '../../components/util/NavButton.vue';
5353
5454
export default {
@@ -63,11 +63,11 @@ export default {
6363
this.$router.push(PATHS.ROOT.HOME);
6464
},
6565
toGroup() {
66-
this.setOrganizationProviderType('GROUP');
66+
this.setOrganizationProviderType(ORGANIZATION_PROVIDER_TYPES.GROUP);
6767
this.$router.push(pcfUrl(PATHS.CCOF_GROUP_ORG, this.programYearList.newApp.programYearId));
6868
},
6969
toFamily() {
70-
this.setOrganizationProviderType('FAMILY');
70+
this.setOrganizationProviderType(ORGANIZATION_PROVIDER_TYPES.FAMILY);
7171
this.$router.push(pcfUrl(PATHS.CCOF_FAMILY_ORG, this.programYearList.newApp.programYearId));
7272
},
7373
},

frontend/src/components/ccofApplication/family/Eligibility.vue

-6
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,10 @@
9494
<script>
9595
import AppDateInput from '@/components/guiComponents/AppDateInput.vue';
9696
import facilityMixin from '@/mixins/facilityMixin.js';
97-
import { ORGANIZATION_PROVIDER_TYPES } from '@/utils/constants.js';
9897
9998
export default {
10099
name: 'EligibilityComponent',
101100
components: { AppDateInput },
102101
mixins: [facilityMixin],
103-
data() {
104-
return {
105-
providerType: ORGANIZATION_PROVIDER_TYPES.FAMILY,
106-
};
107-
},
108102
};
109103
</script>

frontend/src/components/ccofApplication/family/FamilyFunding.vue

-6
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ import AppTimeInput from '@/components/guiComponents/AppTimeInput.vue';
413413
414414
import fundMixing from '@/mixins/fundMixing.js';
415415
import globalMixin from '@/mixins/globalMixin.js';
416-
import { ORGANIZATION_PROVIDER_TYPES } from '@/utils/constants.js';
417416
418417
export default {
419418
components: { AppTimeInput },
@@ -422,11 +421,6 @@ export default {
422421
await this.save(false);
423422
next();
424423
},
425-
data() {
426-
return {
427-
providerType: ORGANIZATION_PROVIDER_TYPES.FAMILY,
428-
};
429-
},
430424
};
431425
</script>
432426
<style scoped>

frontend/src/components/ccofApplication/family/FamilyOrganization.vue

+2-6
Original file line numberDiff line numberDiff line change
@@ -239,19 +239,15 @@
239239
<script>
240240
import organizationMixin from '@/mixins/organizationMixin.js';
241241
import globalMixin from '@/mixins/globalMixin.js';
242-
import { ORGANIZATION_PROVIDER_TYPES, PROVINCES } from '@/utils/constants.js';
242+
import { PROVINCES } from '@/utils/constants.js';
243243
244244
export default {
245245
mixins: [organizationMixin, globalMixin],
246246
async beforeRouteLeave(_to, _from, next) {
247247
await this.save(false);
248248
next();
249249
},
250-
data() {
251-
return {
252-
providerType: ORGANIZATION_PROVIDER_TYPES.FAMILY,
253-
};
254-
},
250+
255251
computed: {
256252
filteredOrganizationList() {
257253
return this.organizationTypeList.filter((fac) => fac.id == 100000002 || fac.id == 100000005);

frontend/src/components/ccofApplication/group/FacilityInformation.vue

-6
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@
187187
import AppDateInput from '@/components/guiComponents/AppDateInput.vue';
188188
189189
import facilityMixin from '@/mixins/facilityMixin.js';
190-
import { ORGANIZATION_PROVIDER_TYPES } from '@/utils/constants.js';
191190
192191
export default {
193192
components: { AppDateInput },
@@ -198,10 +197,5 @@ export default {
198197
}
199198
next();
200199
},
201-
data() {
202-
return {
203-
providerType: ORGANIZATION_PROVIDER_TYPES.GROUP,
204-
};
205-
},
206200
};
207201
</script>

frontend/src/components/ccofApplication/group/FundAmount.vue

-6
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,6 @@ import AppTimeInput from '@/components/guiComponents/AppTimeInput.vue';
567567
568568
import fundMixing from '@/mixins/fundMixing.js';
569569
import globalMixin from '@/mixins/globalMixin.js';
570-
import { ORGANIZATION_PROVIDER_TYPES } from '@/utils/constants.js';
571570
572571
export default {
573572
components: { AppTimeInput },
@@ -576,11 +575,6 @@ export default {
576575
await this.save(false);
577576
next();
578577
},
579-
data() {
580-
return {
581-
providerType: ORGANIZATION_PROVIDER_TYPES.GROUP,
582-
};
583-
},
584578
};
585579
</script>
586580

frontend/src/components/ccofApplication/group/OrganizationInformation.vue

+2-6
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ import { useAppStore } from '@/store/app.js';
256256
import { useReportChangesStore } from '@/store/reportChanges.js';
257257
258258
import organizationMixin from '@/mixins/organizationMixin.js';
259-
import { ORGANIZATION_PROVIDER_TYPES, PROVINCES } from '@/utils/constants.js';
259+
import { PROVINCES } from '@/utils/constants.js';
260260
import { isAnyChangeRequestActive } from '@/utils/common.js';
261261
262262
export default {
@@ -265,11 +265,7 @@ export default {
265265
await this.save(false);
266266
next();
267267
},
268-
data() {
269-
return {
270-
providerType: ORGANIZATION_PROVIDER_TYPES.GROUP,
271-
};
272-
},
268+
273269
computed: {
274270
...mapState(useAppStore, ['renewalYearLabel', 'currentYearLabel']),
275271
...mapState(useReportChangesStore, ['changeRequestStore']),

0 commit comments

Comments
 (0)