56
56
</v-card >
57
57
58
58
<template v-if =" organizationProviderType === ORGANIZATION_PROVIDER_TYPES .GROUP " >
59
- <v-card v-if =" model.optInECEWE == 1" elevation =" 4" class =" py-2 px-5 my-10 rounded-lg" >
59
+ <v-card v-if =" model.optInECEWE === 1" elevation =" 4" class =" py-2 px-5 my-10 rounded-lg" >
60
60
<v-container >
61
61
<v-row class =" justify-center" >
62
62
<v-col align-self =" start" >
80
80
</v-container >
81
81
</v-card >
82
82
83
- <div v-if =" languageYearLabel != programYearTypes.HISTORICAL" >
84
- <v-card v-if =" model.optInECEWE == 1" elevation =" 4" class =" py-2 px-5 my-10 rounded-lg" >
83
+ <div v-if =" languageYearLabel !== programYearTypes.HISTORICAL" >
84
+ <v-card v-if =" model.optInECEWE === 1" elevation =" 4" class =" py-2 px-5 my-10 rounded-lg" >
85
85
<v-container >
86
86
<v-row class =" justify-left" >
87
87
<v-col align-self =" start" >
188
188
</v-radio-group >
189
189
</v-col >
190
190
</v-row >
191
- <v-card v-if =" model.fundingModel == fundingModelTypeList[0].id" width =" 100%" >
191
+ <v-card v-if =" model.fundingModel === fundingModelTypeList[0].id" width =" 100%" >
192
192
<v-row >
193
193
<v-col class =" py-0" >
194
194
<v-card-title class =" py-0 noticeAlert" >
203
203
Government's Low-Wage Redress Funding supports ECE wage adjustments
204
204
</v-row >
205
205
</v-card >
206
- <div v-else-if =" model.fundingModel == fundingModelTypeList[1].id" >
206
+ <div v-else-if =" model.fundingModel === fundingModelTypeList[1].id" >
207
207
<v-card width =" 100%" class =" mb-4" >
208
208
<v-row >
209
209
<v-col class =" py-0" >
@@ -285,6 +285,7 @@ import {
285
285
pcfUrl ,
286
286
PROGRAM_YEAR_LANGUAGE_TYPES ,
287
287
ORGANIZATION_PROVIDER_TYPES ,
288
+ ECEWE_SECTOR_TYPES ,
288
289
} from ' @/utils/constants.js' ;
289
290
import alertMixin from ' @/mixins/alertMixin.js' ;
290
291
import rules from ' @/utils/rules.js' ;
@@ -337,28 +338,32 @@ export default {
337
338
... mapState (useReportChangesStore, [' loadedChangeRequest' , ' isEceweUnlocked' , ' changeRequestStatus' ]),
338
339
showApplicableSectorQuestion () {
339
340
return (
340
- (this .model .belongsToUnion == 1 &&
341
- this .model .optInECEWE == 1 &&
342
- this .languageYearLabel != this .programYearTypes .HISTORICAL ) ||
343
- (this .model .belongsToUnion == 1 &&
344
- this .model .optInECEWE == 1 &&
345
- this .languageYearLabel == this .programYearTypes .HISTORICAL )
341
+ (this .model .belongsToUnion === 1 &&
342
+ this .model .optInECEWE === 1 &&
343
+ this .languageYearLabel !== this .programYearTypes .HISTORICAL ) ||
344
+ (this .model .belongsToUnion === 1 &&
345
+ this .model .optInECEWE === 1 &&
346
+ this .languageYearLabel === this .programYearTypes .HISTORICAL )
346
347
);
347
348
},
348
349
showConfirmationQuestion () {
349
350
return (
350
- (this .model .applicableSector == 100000001 &&
351
- this .model .belongsToUnion == 1 &&
352
- this .model .optInECEWE == 1 &&
353
- this .languageYearLabel != this .programYearTypes .HISTORICAL ) ||
354
- (this .model .applicableSector == 100000001 &&
355
- this .model .belongsToUnion == 1 &&
356
- this .model .optInECEWE == 1 &&
357
- this .languageYearLabel == this .programYearTypes .HISTORICAL )
351
+ (this .model .applicableSector === ECEWE_SECTOR_TYPES . OTHER_UNION &&
352
+ this .model .belongsToUnion === 1 &&
353
+ this .model .optInECEWE === 1 &&
354
+ this .languageYearLabel !== this .programYearTypes .HISTORICAL ) ||
355
+ (this .model .applicableSector === ECEWE_SECTOR_TYPES . OTHER_UNION &&
356
+ this .model .belongsToUnion === 1 &&
357
+ this .model .optInECEWE === 1 &&
358
+ this .languageYearLabel === this .programYearTypes .HISTORICAL )
358
359
);
359
360
},
360
361
showFundingModelQuestion () {
361
- return this .model .applicableSector == 100000000 && this .model .belongsToUnion == 1 && this .model .optInECEWE == 1 ;
362
+ return (
363
+ this .model .applicableSector === ECEWE_SECTOR_TYPES .CSSEA &&
364
+ this .model .belongsToUnion === 1 &&
365
+ this .model .optInECEWE === 1
366
+ );
362
367
},
363
368
showJJEPQuestion () {
364
369
return (
@@ -440,15 +445,15 @@ export default {
440
445
if (this .isChangeRequest ) {
441
446
if (this .isEceweUnlocked || ! this .changeRequestStatus )
442
447
return (
443
- (question == ' optInECEWE' && this .optinECEWEChangeRequestReadonly ) ||
444
- (question == ' belongsToUnion' && this .belongsToUnionChangeRequestReadonly )
448
+ (question === ' optInECEWE' && this .optinECEWEChangeRequestReadonly ) ||
449
+ (question === ' belongsToUnion' && this .belongsToUnionChangeRequestReadonly )
445
450
);
446
451
else if (this .changeRequestStatus !== ' INCOMPLETE' ) {
447
452
return true ;
448
453
}
449
454
return (
450
- (question == ' optInECEWE' && this .optinECEWEChangeRequestReadonly ) ||
451
- (question == ' belongsToUnion' && this .belongsToUnionChangeRequestReadonly )
455
+ (question === ' optInECEWE' && this .optinECEWEChangeRequestReadonly ) ||
456
+ (question === ' belongsToUnion' && this .belongsToUnionChangeRequestReadonly )
452
457
);
453
458
}
454
459
if (this .unlockEcewe ) {
@@ -463,26 +468,25 @@ export default {
463
468
},
464
469
async next () {
465
470
if (this .isChangeRequest ) {
466
- if (this .model .optInECEWE == 0 ) {
471
+ if (this .model .optInECEWE === 0 ) {
467
472
this .$router .push (changeUrl (PATHS .SUPPORTING_DOCS , this .$route .params .changeRecGuid ));
468
473
} else {
469
474
this .$router .push (changeUrl (PATHS .ECEWE_FACILITITES , this .$route .params .changeRecGuid ));
470
475
}
476
+ } else if (this .model .optInECEWE === 0 ) {
477
+ this .$router .push (pcfUrl (PATHS .SUPPORTING_DOCS , this .programYearId ));
471
478
} else {
472
- if (this .model .optInECEWE == 0 ) {
473
- this .$router .push (pcfUrl (PATHS .SUPPORTING_DOCS , this .programYearId ));
474
- } else {
475
- this .$router .push (pcfUrl (PATHS .ECEWE_FACILITITES , this .programYearId ));
476
- }
479
+ this .$router .push (pcfUrl (PATHS .ECEWE_FACILITITES , this .programYearId ));
477
480
}
478
481
},
482
+
479
483
validateForm () {
480
484
this .$refs .isValidForm ? .validate ();
481
485
},
482
486
/* Determines if all facilites are currently opted out. */
483
487
allFacilitiesOptedOut () {
484
488
for (let facility of this .facilities ) {
485
- if (facility .optInOrOut == 1 || facility .optInOrOut == null ) {
489
+ if (facility .optInOrOut === 1 || facility .optInOrOut = == null ) {
486
490
return false ;
487
491
}
488
492
}
@@ -494,27 +498,23 @@ export default {
494
498
this .model .belongsToUnion = null ;
495
499
this .model .fundingModel = null ;
496
500
this .model .confirmation = null ;
497
- } else {
498
- if (this .model .belongsToUnion === 0 || this .model .belongsToUnion === null ) {
499
- this .model .fundingModel = null ;
500
- this .model .confirmation = null ;
501
- } else {
502
- if (this .model .applicableSector == 100000001 ) {
503
- this .model .fundingModel = null ;
504
- } else if (
505
- this .model .applicableSector == 100000000 &&
506
- this .model .fundingModel === this .fundingModelTypeList [0 ].id
507
- ) {
508
- this .model .confirmation = null ;
509
- }
510
- }
501
+ } else if (this .model .belongsToUnion === 0 || this .model .belongsToUnion === null ) {
502
+ this .model .fundingModel = null ;
503
+ this .model .confirmation = null ;
504
+ } else if (this .model .applicableSector === ECEWE_SECTOR_TYPES .OTHER_UNION ) {
505
+ this .model .fundingModel = null ;
506
+ } else if (
507
+ this .model .applicableSector === ECEWE_SECTOR_TYPES .CSSEA &&
508
+ this .model .fundingModel === this .fundingModelTypeList [0 ].id
509
+ ) {
510
+ this .model .confirmation = null ;
511
511
}
512
512
},
513
513
async loadData () {
514
514
if (
515
515
this .isStarted &&
516
516
this .facilities ? .length > 0 &&
517
- this .facilities [0 ].changeRequestId == this .$route .params .changeRecGuid
517
+ this .facilities [0 ].changeRequestId === this .$route .params .changeRecGuid
518
518
) {
519
519
return true ;
520
520
}
0 commit comments