|
@@ -20,7 +20,10 @@
|
20
|
20
|
<label class="custom-control-label" for="customSwitch1">
|
21
|
21
|
{{ refAgent ? "Yes" : "No" }}
|
22
|
22
|
</label>
|
23
|
|
- <div class="refbyAgent" :class="{ 'refbyAgent--clicked': refAgent }">
|
|
23
|
+ <div
|
|
24
|
+ class="refbyAgent"
|
|
25
|
+ :class="{ 'refbyAgent--clicked': refAgent }"
|
|
26
|
+ >
|
24
|
27
|
<div class="col-md-6" v-if="refAgent">
|
25
|
28
|
<label for="Name of Agency">Agency</label>
|
26
|
29
|
<select
|
|
@@ -29,9 +32,13 @@
|
29
|
32
|
name="agency"
|
30
|
33
|
v-model="sellItem.agencyId"
|
31
|
34
|
>
|
32
|
|
- <option v-for="(item, i) in agencies" :key="i" :value="item.id">{{
|
33
|
|
- item.agencyName
|
34
|
|
- }}</option>
|
|
35
|
+ <option
|
|
36
|
+ v-for="(item, i) in agencies"
|
|
37
|
+ :key="i"
|
|
38
|
+ :value="item.id"
|
|
39
|
+ >
|
|
40
|
+ {{ item.agencyName }}
|
|
41
|
+ </option>
|
35
|
42
|
</select>
|
36
|
43
|
</div>
|
37
|
44
|
<div class="col-md-6" v-if="refAgent">
|
|
@@ -63,10 +70,13 @@
|
63
|
70
|
<div class="form-row">
|
64
|
71
|
<div class="form-group col-md-6 mt-2">
|
65
|
72
|
<div class="input-group">
|
66
|
|
- <label v-if="!sellItem.region" class="uniSelectLabel" for="weekInfoRegionSelect"
|
|
73
|
+ <label
|
|
74
|
+ v-if="!sellItem.region"
|
|
75
|
+ class="uniSelectLabel"
|
|
76
|
+ for="weekInfoRegionSelect"
|
67
|
77
|
>REGION</label
|
68
|
78
|
>
|
69
|
|
- <float-label label="REGION" style="width:100%">
|
|
79
|
+ <float-label label="REGION" style="width: 100%">
|
70
|
80
|
<select
|
71
|
81
|
id="weekInfoRegionSelect"
|
72
|
82
|
class="form-control uniSelect"
|
|
@@ -74,7 +84,11 @@
|
74
|
84
|
@change="regionChange()"
|
75
|
85
|
style="font-size: 15px"
|
76
|
86
|
>
|
77
|
|
- <option v-for="(region, r) in regions" :key="r" :value="region">
|
|
87
|
+ <option
|
|
88
|
+ v-for="(region, r) in regions"
|
|
89
|
+ :key="r"
|
|
90
|
+ :value="region"
|
|
91
|
+ >
|
78
|
92
|
{{ region.regionName }}
|
79
|
93
|
</option>
|
80
|
94
|
</select>
|
|
@@ -94,10 +108,13 @@
|
94
|
108
|
</div>
|
95
|
109
|
<div class="form-group col-md-6 mt-2">
|
96
|
110
|
<div class="input-group">
|
97
|
|
- <label v-if="!sellItem.resort" class="uniSelectLabel" for="weekInfoResortSelect"
|
|
111
|
+ <label
|
|
112
|
+ v-if="!sellItem.resort"
|
|
113
|
+ class="uniSelectLabel"
|
|
114
|
+ for="weekInfoResortSelect"
|
98
|
115
|
>RESORT NAME</label
|
99
|
116
|
>
|
100
|
|
- <float-label label="RESORT NAME" style="width:100%">
|
|
117
|
+ <float-label label="RESORT NAME" style="width: 100%">
|
101
|
118
|
<select
|
102
|
119
|
id="weekInfoResortSelect"
|
103
|
120
|
class="form-control uniSelect"
|
|
@@ -105,7 +122,11 @@
|
105
|
122
|
@change="resortChange()"
|
106
|
123
|
>
|
107
|
124
|
<option value="Other">Other</option>
|
108
|
|
- <option v-for="(resort, r) in filteredResort" :key="r" :value="resort">
|
|
125
|
+ <option
|
|
126
|
+ v-for="(resort, r) in filteredResort"
|
|
127
|
+ :key="r"
|
|
128
|
+ :value="resort"
|
|
129
|
+ >
|
109
|
130
|
{{ resort.resortName }}
|
110
|
131
|
</option>
|
111
|
132
|
</select>
|
|
@@ -134,7 +155,12 @@
|
134
|
155
|
</div>
|
135
|
156
|
<div class="form-group col-md-6 mt-2">
|
136
|
157
|
<div v-if="sellItem.otherResort">
|
137
|
|
- <label v-if="!sellItem.region" class="uniSelectLabel" for="region">REGION</label>
|
|
158
|
+ <label
|
|
159
|
+ v-if="!sellItem.region"
|
|
160
|
+ class="uniSelectLabel"
|
|
161
|
+ for="region"
|
|
162
|
+ >REGION</label
|
|
163
|
+ >
|
138
|
164
|
</div>
|
139
|
165
|
|
140
|
166
|
<select
|
|
@@ -144,13 +170,15 @@
|
144
|
170
|
id="region"
|
145
|
171
|
v-model="sellItem.region"
|
146
|
172
|
>
|
147
|
|
- <option v-for="(region, r) in regions" :key="r">{{ region.regionName }}</option>
|
|
173
|
+ <option v-for="(region, r) in regions" :key="r">
|
|
174
|
+ {{ region.regionName }}
|
|
175
|
+ </option>
|
148
|
176
|
</select>
|
149
|
177
|
</div>
|
150
|
178
|
<div class="form-group col-md-6 mt-2">
|
151
|
179
|
<float-label>
|
152
|
180
|
<input
|
153
|
|
- type="number"
|
|
181
|
+ type="text"
|
154
|
182
|
class="form-control"
|
155
|
183
|
name="unitNumber"
|
156
|
184
|
id="unitNumber"
|
|
@@ -178,7 +206,12 @@
|
178
|
206
|
<div class="validation"></div>
|
179
|
207
|
</div>
|
180
|
208
|
<div class="form-group col-md-6 mt-2">
|
181
|
|
- <label v-if="!sellItem.season" class="uniSelectLabel" for="region">SEASON</label>
|
|
209
|
+ <label
|
|
210
|
+ v-if="!sellItem.season"
|
|
211
|
+ class="uniSelectLabel"
|
|
212
|
+ for="region"
|
|
213
|
+ >SEASON</label
|
|
214
|
+ >
|
182
|
215
|
<float-label label="SEASON">
|
183
|
216
|
<select
|
184
|
217
|
class="form-control uniSelect"
|
|
@@ -186,14 +219,19 @@
|
186
|
219
|
id="region"
|
187
|
220
|
v-model="sellItem.season"
|
188
|
221
|
>
|
189
|
|
- <option v-for="(season, r) in seasons" :key="r">{{ season.name }}</option>
|
|
222
|
+ <option v-for="(season, r) in seasons" :key="r">
|
|
223
|
+ {{ season.name }}
|
|
224
|
+ </option>
|
190
|
225
|
</select>
|
191
|
226
|
</float-label>
|
192
|
227
|
|
193
|
228
|
<div class="validation"></div>
|
194
|
229
|
</div>
|
195
|
230
|
<div class="form-group col-md-6 mt-2">
|
196
|
|
- <label v-if="!sellItem.bedrooms" class="uniSelectLabel" for="region"
|
|
231
|
+ <label
|
|
232
|
+ v-if="!sellItem.bedrooms"
|
|
233
|
+ class="uniSelectLabel"
|
|
234
|
+ for="region"
|
197
|
235
|
>BEDROOM/S</label
|
198
|
236
|
>
|
199
|
237
|
<float-label label="BEDROOM/S">
|
|
@@ -203,14 +241,19 @@
|
203
|
241
|
id="region"
|
204
|
242
|
v-model="sellItem.bedrooms"
|
205
|
243
|
>
|
206
|
|
- <option v-for="(item, i) in resortBedrooms" :key="i">{{ item }}</option>
|
|
244
|
+ <option v-for="(item, i) in resortBedrooms" :key="i">
|
|
245
|
+ {{ item }}
|
|
246
|
+ </option>
|
207
|
247
|
</select>
|
208
|
248
|
</float-label>
|
209
|
249
|
|
210
|
250
|
<div class="validation"></div>
|
211
|
251
|
</div>
|
212
|
252
|
<div class="form-group col-md-6 mt-2">
|
213
|
|
- <label v-if="!sellItem.maxSleep" class="uniSelectLabel" for="region"
|
|
253
|
+ <label
|
|
254
|
+ v-if="!sellItem.maxSleep"
|
|
255
|
+ class="uniSelectLabel"
|
|
256
|
+ for="region"
|
214
|
257
|
>SLEEP MAX</label
|
215
|
258
|
>
|
216
|
259
|
<float-label label="SLEEP MAX">
|
|
@@ -220,7 +263,9 @@
|
220
|
263
|
id="region"
|
221
|
264
|
v-model="sellItem.maxSleep"
|
222
|
265
|
>
|
223
|
|
- <option v-for="(item, i) in maxSleep" :key="i">{{ item }}</option>
|
|
266
|
+ <option v-for="(item, i) in maxSleep" :key="i">
|
|
267
|
+ {{ item }}
|
|
268
|
+ </option>
|
224
|
269
|
</select>
|
225
|
270
|
</float-label>
|
226
|
271
|
|
|
@@ -242,7 +287,10 @@
|
242
|
287
|
<div class="validation"></div>
|
243
|
288
|
</div>
|
244
|
289
|
<div class="form-group col-md-6 mt-2">
|
245
|
|
- <label v-if="!sellItem.weekType" class="uniSelectLabel" for="region"
|
|
290
|
+ <label
|
|
291
|
+ v-if="!sellItem.weekType"
|
|
292
|
+ class="uniSelectLabel"
|
|
293
|
+ for="region"
|
246
|
294
|
>WEEK TYPE</label
|
247
|
295
|
>
|
248
|
296
|
<float-label label="WEEK TYPE">
|
|
@@ -264,7 +312,9 @@
|
264
|
312
|
<div align="left" class="custom-control custom-switch mb-2">
|
265
|
313
|
<div class="row">
|
266
|
314
|
<div align="center" class="col">
|
267
|
|
- <label class="mr-5">Has your week been spacebanked for the current year?</label>
|
|
315
|
+ <label class="mr-5"
|
|
316
|
+ >Has your week been spacebanked for the current year?</label
|
|
317
|
+ >
|
268
|
318
|
<input
|
269
|
319
|
type="checkbox"
|
270
|
320
|
class="custom-control-input"
|
|
@@ -277,10 +327,14 @@
|
277
|
327
|
</label>
|
278
|
328
|
<div
|
279
|
329
|
class="spacebanked1"
|
280
|
|
- :class="{ 'spacebanked1--clicked': sellItem.currentYearBanked }"
|
|
330
|
+ :class="{
|
|
331
|
+ 'spacebanked1--clicked': sellItem.currentYearBanked,
|
|
332
|
+ }"
|
281
|
333
|
>
|
282
|
334
|
<div class="col-md-6">
|
283
|
|
- <label for="If yes, please confirm with whom" v-if="sellItem.currentYearBanked"
|
|
335
|
+ <label
|
|
336
|
+ for="If yes, please confirm with whom"
|
|
337
|
+ v-if="sellItem.currentYearBanked"
|
284
|
338
|
>Please confirm with whom</label
|
285
|
339
|
>
|
286
|
340
|
<select
|
|
@@ -289,7 +343,9 @@
|
289
|
343
|
v-if="sellItem.currentYearBanked"
|
290
|
344
|
v-model="sellItem.bankedWith"
|
291
|
345
|
>
|
292
|
|
- <option v-for="(item, i) in bankedEntities" :key="i">{{ item }}</option>
|
|
346
|
+ <option v-for="(item, i) in bankedEntities" :key="i">
|
|
347
|
+ {{ item }}
|
|
348
|
+ </option>
|
293
|
349
|
</select>
|
294
|
350
|
</div>
|
295
|
351
|
</div>
|
|
@@ -372,28 +428,37 @@
|
372
|
428
|
<div class="form-group col-md-6">
|
373
|
429
|
<div class="input-group">
|
374
|
430
|
<span v-if="!indiv.howMarried">
|
375
|
|
- <label v-if="indiv.howMarried === 'N/A'" for="howMarried" class="uniSelectLabel"
|
|
431
|
+ <label
|
|
432
|
+ v-if="indiv.howMarried === 'N/A'"
|
|
433
|
+ for="howMarried"
|
|
434
|
+ class="uniSelectLabel"
|
376
|
435
|
>Marital Status</label
|
377
|
436
|
>
|
378
|
437
|
</span>
|
379
|
438
|
|
380
|
|
- <float-label label="Marital Status" style="width:100%">
|
|
439
|
+ <float-label label="Marital Status" style="width: 100%">
|
381
|
440
|
<select
|
382
|
441
|
class="form-control uniSelect"
|
383
|
442
|
id="howMarried"
|
384
|
443
|
v-model="indiv.howMarried"
|
385
|
444
|
>
|
386
|
445
|
<option value="N/A">N/A</option>
|
387
|
|
- <option value="In Community Of Property">In Community Of Property</option>
|
388
|
|
- <option value="Out of Community Of Property"
|
389
|
|
- >Out of Community Of Property</option
|
390
|
|
- >
|
|
446
|
+ <option value="In Community Of Property">
|
|
447
|
+ In Community Of Property
|
|
448
|
+ </option>
|
|
449
|
+ <option value="Out of Community Of Property">
|
|
450
|
+ Out of Community Of Property
|
|
451
|
+ </option>
|
391
|
452
|
<option value="Other">Other</option>
|
392
|
|
- <option value="Traditional Wedding">Traditional Wedding</option>
|
|
453
|
+ <option value="Traditional Wedding">
|
|
454
|
+ Traditional Wedding
|
|
455
|
+ </option>
|
393
|
456
|
<option value="Single">Single</option>
|
394
|
457
|
<option value="Divorced">Divorced</option>
|
395
|
458
|
<option value="Widow">Widow</option>
|
396
|
|
- <option value="Committed Relationship">Committed Relationship</option>
|
|
459
|
+ <option value="Committed Relationship">
|
|
460
|
+ Committed Relationship
|
|
461
|
+ </option>
|
397
|
462
|
<option value="Partner">Partner</option>
|
398
|
463
|
</select>
|
399
|
464
|
</float-label>
|
|
@@ -450,10 +515,16 @@
|
450
|
515
|
</div>
|
451
|
516
|
</div>
|
452
|
517
|
</div>
|
453
|
|
- <div v-if="indiv.howMarried === 'In Community Of Property'" class="section-header">
|
|
518
|
+ <div
|
|
519
|
+ v-if="indiv.howMarried === 'In Community Of Property'"
|
|
520
|
+ class="section-header"
|
|
521
|
+ >
|
454
|
522
|
<h2>Spouse Details</h2>
|
455
|
523
|
</div>
|
456
|
|
- <div v-if="indiv.howMarried === 'In Community Of Property'" class="form">
|
|
524
|
+ <div
|
|
525
|
+ v-if="indiv.howMarried === 'In Community Of Property'"
|
|
526
|
+ class="form"
|
|
527
|
+ >
|
457
|
528
|
<div class="form-row mb-2">
|
458
|
529
|
<div class="form-group col-md-6 mt-2">
|
459
|
530
|
<float-label>
|
|
@@ -632,9 +703,14 @@
|
632
|
703
|
<div class="form-row">
|
633
|
704
|
<div
|
634
|
705
|
class="form-group col-md-12"
|
635
|
|
- style="border:solid;border-width:2px; border-color:rgb(27, 117, 187);border-radius: 3px"
|
|
706
|
+ style="
|
|
707
|
+ border: solid;
|
|
708
|
+ border-width: 2px;
|
|
709
|
+ border-color: rgb(27, 117, 187);
|
|
710
|
+ border-radius: 3px;
|
|
711
|
+ "
|
636
|
712
|
>
|
637
|
|
- <p style="text-align: left; margin:auto; padding:10px">
|
|
713
|
+ <p style="text-align: left; margin: auto; padding: 10px">
|
638
|
714
|
1. With respect to my timeshare module/week, I confirm that:
|
639
|
715
|
</p>
|
640
|
716
|
<div class="validation"></div>
|
|
@@ -643,7 +719,10 @@
|
643
|
719
|
|
644
|
720
|
<div class="form-row">
|
645
|
721
|
<div class="col-md-8">
|
646
|
|
- <p>1.1. All levy amounts for the current cycle have been paid in full</p>
|
|
722
|
+ <p>
|
|
723
|
+ 1.1. All levy amounts for the current cycle have been paid in
|
|
724
|
+ full
|
|
725
|
+ </p>
|
647
|
726
|
</div>
|
648
|
727
|
<div class="form-group col-md-2">
|
649
|
728
|
<div class="custom-control custom-switch">
|
|
@@ -685,7 +764,10 @@
|
685
|
764
|
|
686
|
765
|
<div class="form-row">
|
687
|
766
|
<div class="col-md-8">
|
688
|
|
- <p>1.3. I / We bought the timeshare module/week on the following date:</p>
|
|
767
|
+ <p>
|
|
768
|
+ 1.3. I / We bought the timeshare module/week on the following
|
|
769
|
+ date:
|
|
770
|
+ </p>
|
689
|
771
|
</div>
|
690
|
772
|
<div class="form-group col-md-2">
|
691
|
773
|
<input
|
|
@@ -700,7 +782,10 @@
|
700
|
782
|
|
701
|
783
|
<div class="form-row">
|
702
|
784
|
<div class="col-md-8">
|
703
|
|
- <p>1.4. The purchase price for which I / we bought timeshare module / week was:</p>
|
|
785
|
+ <p>
|
|
786
|
+ 1.4. The purchase price for which I / we bought timeshare
|
|
787
|
+ module / week was:
|
|
788
|
+ </p>
|
704
|
789
|
</div>
|
705
|
790
|
<div class="form-group col-md-2">
|
706
|
791
|
<input
|
|
@@ -718,8 +803,8 @@
|
718
|
803
|
<div class="form-row">
|
719
|
804
|
<div class="col-md-8">
|
720
|
805
|
<p>
|
721
|
|
- 1.5. I / We bought the timeshare module / week for the following dates for the
|
722
|
|
- current year:
|
|
806
|
+ 1.5. I / We bought the timeshare module / week for the
|
|
807
|
+ following dates for the current year:
|
723
|
808
|
</p>
|
724
|
809
|
</div>
|
725
|
810
|
<div class="form-group col-md-2">
|
|
@@ -747,8 +832,8 @@
|
747
|
832
|
<div class="form-row">
|
748
|
833
|
<div class="col-md-8">
|
749
|
834
|
<p>
|
750
|
|
- 1.6. The selling price for the timeshare module / week for which I / we want to
|
751
|
|
- sell is: (Incl. Vat)
|
|
835
|
+ 1.6. The selling price for the timeshare module / week for
|
|
836
|
+ which I / we want to sell is: (Incl. Vat)
|
752
|
837
|
</p>
|
753
|
838
|
</div>
|
754
|
839
|
<div class="form-group col-md-2">
|
|
@@ -766,7 +851,9 @@
|
766
|
851
|
|
767
|
852
|
<div class="form-row">
|
768
|
853
|
<div class="col-md-8">
|
769
|
|
- <p>1.7. Estate agent's commission agreed to (state Rand value)</p>
|
|
854
|
+ <p>
|
|
855
|
+ 1.7. Estate agent's commission agreed to (state Rand value)
|
|
856
|
+ </p>
|
770
|
857
|
</div>
|
771
|
858
|
<div class="form-group col-md-2">
|
772
|
859
|
<input
|
|
@@ -784,31 +871,44 @@
|
784
|
871
|
<div class="form-row">
|
785
|
872
|
<div class="col-md-8">
|
786
|
873
|
<p>
|
787
|
|
- 1.8. I hereby Mandate Uni-Vate properties to sell the timeshare listed above on my
|
788
|
|
- behalf
|
|
874
|
+ 1.8. I hereby Mandate Uni-Vate properties to sell the
|
|
875
|
+ timeshare listed above on my behalf
|
789
|
876
|
</p>
|
790
|
877
|
</div>
|
791
|
878
|
<div class="form-group col-md-4">
|
792
|
|
- <input type="checkbox" @change="SetMandateDate" v-model="sellItem.mandate" />
|
|
879
|
+ <input
|
|
880
|
+ type="checkbox"
|
|
881
|
+ @change="SetMandateDate"
|
|
882
|
+ v-model="sellItem.mandate"
|
|
883
|
+ />
|
793
|
884
|
</div>
|
794
|
885
|
</div>
|
795
|
886
|
<div class="form-row" v-if="!CanSave">
|
796
|
887
|
<div class="col-md-12">
|
797
|
|
- <p class="alert myError">Please ensure that you add spouse details.</p>
|
|
888
|
+ <p class="alert myError">
|
|
889
|
+ Please ensure that you add spouse details.
|
|
890
|
+ </p>
|
798
|
891
|
</div>
|
799
|
892
|
</div>
|
800
|
893
|
<div class="form-row" v-if="profileEmailError">
|
801
|
894
|
<div class="col-md-12">
|
802
|
895
|
<p class="alert myError">
|
803
|
|
- Please ensure that your email is correct before adding a timeshare week.
|
|
896
|
+ Please ensure that your email is correct before adding a
|
|
897
|
+ timeshare week.
|
804
|
898
|
</p>
|
805
|
899
|
</div>
|
806
|
900
|
</div>
|
807
|
901
|
<div class="text-center col-12" v-if="CanSave">
|
808
|
|
- <button class="btn-solid-blue" v-if="!sellItem.id" @click="submitSale()">
|
|
902
|
+ <button
|
|
903
|
+ class="btn-solid-blue"
|
|
904
|
+ v-if="!sellItem.id"
|
|
905
|
+ @click="submitSale()"
|
|
906
|
+ >
|
809
|
907
|
SUBMIT
|
810
|
908
|
</button>
|
811
|
|
- <button class="btn-solid-blue" v-else @click="newSale()">NEW WEEK</button>
|
|
909
|
+ <button class="btn-solid-blue" v-else @click="newSale()">
|
|
910
|
+ NEW WEEK
|
|
911
|
+ </button>
|
812
|
912
|
</div>
|
813
|
913
|
<!-- <div class="text-center col-12">
|
814
|
914
|
<button class="btn-solid-blue" @click="paygateRedirect()">PayGate</button>
|
|
@@ -838,19 +938,19 @@ export default {
|
838
|
938
|
name: "TimeshareToSell",
|
839
|
939
|
props: {
|
840
|
940
|
weekId: {
|
841
|
|
- default: 0
|
842
|
|
- }
|
|
941
|
+ default: 0,
|
|
942
|
+ },
|
843
|
943
|
},
|
844
|
944
|
data() {
|
845
|
945
|
return {
|
846
|
946
|
wait: false,
|
847
|
947
|
userLoggedIn: Log.isLoggedIn(),
|
848
|
|
- profileEmailError: false
|
|
948
|
+ profileEmailError: false,
|
849
|
949
|
};
|
850
|
950
|
},
|
851
|
951
|
components: {
|
852
|
952
|
addressAutoComplete,
|
853
|
|
- Alert
|
|
953
|
+ Alert,
|
854
|
954
|
},
|
855
|
955
|
mounted() {
|
856
|
956
|
if (this.sellItem.id) {
|
|
@@ -876,13 +976,13 @@ export default {
|
876
|
976
|
"sellItem",
|
877
|
977
|
"agencies",
|
878
|
978
|
"agents",
|
879
|
|
- "getTemplate"
|
|
979
|
+ "getTemplate",
|
880
|
980
|
]),
|
881
|
981
|
...mapState("individual", ["indiv"]),
|
882
|
982
|
...mapState("authentication", ["isLoggedIn"]),
|
883
|
983
|
...mapGetters({
|
884
|
984
|
user: "authentication/getUser",
|
885
|
|
- person: "authentication/getPerson"
|
|
985
|
+ person: "authentication/getPerson",
|
886
|
986
|
}),
|
887
|
987
|
...mapState("bank", ["banks"]),
|
888
|
988
|
refAgent() {
|
|
@@ -891,9 +991,14 @@ export default {
|
891
|
991
|
...mapGetters("fees", ["getListingFee"]),
|
892
|
992
|
filteredResort() {
|
893
|
993
|
let list = [];
|
894
|
|
- if (this.sellItem && this.sellItem.region && this.sellItem.region.regionCode) {
|
|
994
|
+ if (
|
|
995
|
+ this.sellItem &&
|
|
996
|
+ this.sellItem.region &&
|
|
997
|
+ this.sellItem.region.regionCode
|
|
998
|
+ ) {
|
895
|
999
|
const item = this.detailedRegion.find(
|
896
|
|
- region => region.region.regionCode === this.sellItem.region.regionCode
|
|
1000
|
+ (region) =>
|
|
1001
|
+ region.region.regionCode === this.sellItem.region.regionCode
|
897
|
1002
|
);
|
898
|
1003
|
if (item) {
|
899
|
1004
|
list = item.children;
|
|
@@ -901,14 +1006,14 @@ export default {
|
901
|
1006
|
} else {
|
902
|
1007
|
list = this.resorts;
|
903
|
1008
|
}
|
904
|
|
- return _.sortBy(list, x => x.resortName);
|
|
1009
|
+ return _.sortBy(list, (x) => x.resortName);
|
905
|
1010
|
},
|
906
|
1011
|
isLoggedIn() {
|
907
|
1012
|
return this.user && this.person;
|
908
|
1013
|
},
|
909
|
1014
|
displayNotDeletedAgents() {
|
910
|
1015
|
var notDeletedArr = [];
|
911
|
|
- this.agents.forEach(agent => {
|
|
1016
|
+ this.agents.forEach((agent) => {
|
912
|
1017
|
if (!agent.isDeleted) {
|
913
|
1018
|
if (agent.agencyId === this.sellItem.agencyId) {
|
914
|
1019
|
notDeletedArr.push(agent);
|
|
@@ -919,17 +1024,26 @@ export default {
|
919
|
1024
|
},
|
920
|
1025
|
CanSave() {
|
921
|
1026
|
if (this.indiv.howMarried === "In Community Of Property") {
|
922
|
|
- if (this.indiv.spouseName || this.indiv.spouseSurname || this.spouseEmail) {
|
|
1027
|
+ if (
|
|
1028
|
+ this.indiv.spouseName ||
|
|
1029
|
+ this.indiv.spouseSurname ||
|
|
1030
|
+ this.spouseEmail
|
|
1031
|
+ ) {
|
923
|
1032
|
return true;
|
924
|
1033
|
}
|
925
|
1034
|
return false;
|
926
|
1035
|
}
|
927
|
1036
|
return true;
|
928
|
|
- }
|
|
1037
|
+ },
|
929
|
1038
|
},
|
930
|
1039
|
methods: {
|
931
|
1040
|
...mapActions("individual", ["getIndividual"]),
|
932
|
|
- ...mapActions("timeshare", ["initTimeshare", "onResortChange", "saveWeek", "getBlankWeek"]),
|
|
1041
|
+ ...mapActions("timeshare", [
|
|
1042
|
+ "initTimeshare",
|
|
1043
|
+ "onResortChange",
|
|
1044
|
+ "saveWeek",
|
|
1045
|
+ "getBlankWeek",
|
|
1046
|
+ ]),
|
933
|
1047
|
...mapActions("payment", ["addPayment"]),
|
934
|
1048
|
...mapActions("bank", ["getBanks"]),
|
935
|
1049
|
newSale() {
|
|
@@ -941,12 +1055,15 @@ export default {
|
941
|
1055
|
this.sellItem.ownerObject = this.indiv;
|
942
|
1056
|
this.sellItem.weekStatus = "For Sale";
|
943
|
1057
|
this.saveWeek(this.sellItem)
|
944
|
|
- .then(fulfilled => {
|
|
1058
|
+ .then((fulfilled) => {
|
945
|
1059
|
console.log(fulfilled);
|
946
|
|
- this.$router.push({ name: "PaymentOption", params: { week: fulfilled } });
|
|
1060
|
+ this.$router.push({
|
|
1061
|
+ name: "PaymentOption",
|
|
1062
|
+ params: { week: fulfilled },
|
|
1063
|
+ });
|
947
|
1064
|
//this.paygateRedirect();
|
948
|
1065
|
})
|
949
|
|
- .catch(ex => {
|
|
1066
|
+ .catch((ex) => {
|
950
|
1067
|
this.profileEmailError = true;
|
951
|
1068
|
});
|
952
|
1069
|
} else {
|
|
@@ -961,16 +1078,16 @@ export default {
|
961
|
1078
|
creatydById: Log.getUser().id, //Log.getUser().id,
|
962
|
1079
|
amount: amount,
|
963
|
1080
|
paymentStatus: "",
|
964
|
|
- paymentToken: ""
|
|
1081
|
+ paymentToken: "",
|
965
|
1082
|
};
|
966
|
1083
|
|
967
|
|
- this.addPayment(paymentObj).then(res => {
|
|
1084
|
+ this.addPayment(paymentObj).then((res) => {
|
968
|
1085
|
this.$router.push({
|
969
|
1086
|
name: "PaymentGateway",
|
970
|
1087
|
params: {
|
971
|
1088
|
paymentReqId: res.PAY_REQUEST_ID,
|
972
|
|
- checksum: res.CHECKSUM
|
973
|
|
- }
|
|
1089
|
+ checksum: res.CHECKSUM,
|
|
1090
|
+ },
|
974
|
1091
|
});
|
975
|
1092
|
});
|
976
|
1093
|
},
|
|
@@ -995,7 +1112,7 @@ export default {
|
995
|
1112
|
resortChange() {
|
996
|
1113
|
this.onResortChange({
|
997
|
1114
|
resortName: this.sellItem.resort.resortName,
|
998
|
|
- resortCode: this.sellItem.resort.resortCode
|
|
1115
|
+ resortCode: this.sellItem.resort.resortCode,
|
999
|
1116
|
});
|
1000
|
1117
|
|
1001
|
1118
|
if (this.sellItem && this.sellItem.resort === "Other") {
|
|
@@ -1007,7 +1124,9 @@ export default {
|
1007
|
1124
|
}
|
1008
|
1125
|
},
|
1009
|
1126
|
regionChange() {
|
1010
|
|
- this.sellItem.regionId = this.sellItem.region ? this.sellItem.region.id : 1;
|
|
1127
|
+ this.sellItem.regionId = this.sellItem.region
|
|
1128
|
+ ? this.sellItem.region.id
|
|
1129
|
+ : 1;
|
1011
|
1130
|
},
|
1012
|
1131
|
UpdateAddress(address) {
|
1013
|
1132
|
this.indiv.address.streetNumber = address.streetNumber;
|
|
@@ -1023,8 +1142,8 @@ export default {
|
1023
|
1142
|
} else {
|
1024
|
1143
|
this.sellItem.mandateDate = undefined;
|
1025
|
1144
|
}
|
1026
|
|
- }
|
1027
|
|
- }
|
|
1145
|
+ },
|
|
1146
|
+ },
|
1028
|
1147
|
};
|
1029
|
1148
|
</script>
|
1030
|
1149
|
|