You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sellPage.vue 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  1. <template>
  2. <!-- eslint-disable max-len -->
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-md-12">
  6. <div class="col-sm-12">
  7. <div class="about-img-box">
  8. <img
  9. src="img/sell3.jpg"
  10. alt="Timeshare To Sell"
  11. class="img-fluid"
  12. style="width:800px;height:400px; border-radius:10px"
  13. />
  14. </div>
  15. <div class="sinse-box" style="opacity:0.7; border: white solid 3px; border-radius: 15px">
  16. <h3 class="sinse-title">Timeshare To Sell</h3>
  17. </div>
  18. </div>
  19. <div>
  20. <div class="container col-md-10">
  21. <div style="float: right;" class="btn btn-link color-b"></div>
  22. </div>
  23. <br />
  24. <br />
  25. <p>* You need to be logged in to submit your listing. Please register and log in if you have not done so already.</p>
  26. <hr />
  27. <div class="form-group row">
  28. <div class="col-md-4">
  29. <label>Were you referred by an agent?</label>
  30. <br />
  31. <div class="form-check form-check-inline">
  32. <input
  33. class="form-check-input radiogroup"
  34. type="radio"
  35. value="true"
  36. :checked="refAgent"
  37. @change="changeRef"
  38. />
  39. <label class="form-check-label" for="referedBy">Yes</label>
  40. </div>
  41. <div class="form-check form-check-inline">
  42. <input
  43. class="form-check-input radiogroup"
  44. type="radio"
  45. value="false"
  46. :checked="!refAgent"
  47. @change="changeRef"
  48. />
  49. <label class="form-check-label" for="referedBy">No</label>
  50. </div>
  51. </div>
  52. <div class="col-md-4" v-if="refAgent">
  53. <label for="Name of Agency">Agency</label>
  54. <select class="form-control" id="Agency" name="agency" v-model="sellItem.agencyId">
  55. <option v-for="(item, i) in agencies" :key="i" :value="item.id">{{item.agencyName}}</option>
  56. </select>
  57. </div>
  58. <div class="col-md-4" v-if="refAgent">
  59. <label for="Name of Agent">Agent</label>
  60. <select class="form-control" id="agent" name="agent" v-model="sellItem.agentId">
  61. <option
  62. v-for="(item, i) in agents"
  63. :key="i"
  64. :value="item.id"
  65. >{{item.name + ' ' + item.surname}}</option>
  66. </select>
  67. </div>
  68. </div>
  69. <hr />
  70. <div class="container col-md-10">
  71. <div class="myWell">
  72. <h4>Week Information</h4>
  73. </div>
  74. <!-- <div style="float: right;" class="btn btn-link color-b">
  75. <router-link to="LinkToBeSelected">
  76. Bulk Weeks Upload
  77. <span class="ion-ios-arrow-forward" style="color:#60CBEB"></span>
  78. </router-link>
  79. </div>-->
  80. </div>
  81. <br />
  82. <br />
  83. </div>
  84. </div>
  85. </div>
  86. <div class="row mb-4">
  87. <div class="container col-md-10">
  88. <form
  89. id="mainForm"
  90. method="POST"
  91. action="/to-sell"
  92. accept-charset="UTF-8"
  93. enctype="multipart/form-data"
  94. >
  95. <div class="container">
  96. <div class="col-md-12" style="text-align:left">
  97. <div class="form-group row">
  98. <div class="col-md-6">
  99. <label>Region *</label>
  100. <div class="input-group mb-3">
  101. <div class="input-group-prepend">
  102. <span class="input-group-text" style="color: #60CBEB">
  103. <b>R</b>
  104. </span>
  105. </div>
  106. <select class="form-control" v-model="sellItem.region" @change="regionChange()">
  107. <option
  108. v-for="(region, r) in regions"
  109. :key="r"
  110. :value="region"
  111. >{{region.regionName}}</option>
  112. </select>
  113. </div>
  114. </div>
  115. <div class="col-md-6">
  116. <label for="Resort Name">Resort Name *</label>
  117. <div class="input-group mb-3">
  118. <div class="input-group-prepend">
  119. <span class="input-group-text" style="color: #60CBEB">
  120. <b>RN</b>
  121. </span>
  122. </div>
  123. <select
  124. class="form-control"
  125. id="resort"
  126. name="resort"
  127. v-model="sellItem.resort"
  128. @change="resortChange()"
  129. >
  130. <option value="Other">Other</option>
  131. <option
  132. v-for="(resort, r) in resorts"
  133. :key="r"
  134. :value="resort"
  135. >{{resort.resortName}}</option>
  136. </select>
  137. </div>
  138. </div>
  139. <div class="col-md-6">
  140. <label for="* If other" v-if="sellItem.otherResort">Name of resort</label>
  141. <div class="input-group mb-3">
  142. <div class="input-group-prepend">
  143. <span
  144. class="input-group-text"
  145. style="color: #60CBEB"
  146. v-if="sellItem.otherResort"
  147. >
  148. <b>RN</b>
  149. </span>
  150. </div>
  151. <input
  152. class="form-control"
  153. v-if="sellItem.otherResort"
  154. placeholder="* If other"
  155. type="text"
  156. name="other"
  157. v-model="sellItem.otherResortName"
  158. />
  159. </div>
  160. <label for="Region" v-if="sellItem.otherResort">Province</label>
  161. <div class="input-group mb-3">
  162. <div class="input-group-prepend">
  163. <span
  164. class="input-group-text"
  165. style="color: #60CBEB"
  166. v-if="sellItem.otherResort"
  167. >
  168. <b>P</b>
  169. </span>
  170. </div>
  171. <select
  172. class="form-control"
  173. v-if="sellItem.otherResort"
  174. name="region"
  175. id="region"
  176. v-model="sellItem.region"
  177. >
  178. <option v-for="(region, r) in regions" :key="r">{{region.regionName}}</option>
  179. </select>
  180. </div>
  181. </div>
  182. </div>
  183. <div class="form-group row">
  184. <div class="col-md-6">
  185. <label for="Unit number">Unit Number *</label>
  186. <div class="input-group mb-3">
  187. <div class="input-group-prepend">
  188. <span class="input-group-text" style="color: #60CBEB">
  189. <b>U#</b>
  190. </span>
  191. </div>
  192. <input
  193. class="form-control"
  194. type="text"
  195. name="unit"
  196. v-model="sellItem.unitNumber"
  197. />
  198. </div>
  199. </div>
  200. <div class="col-md-6">
  201. <label for="Module">Module / Week Number *</label>
  202. <div class="input-group mb-3">
  203. <div class="input-group-prepend">
  204. <span class="input-group-text" style="color: #60CBEB">
  205. <b>M</b>
  206. </span>
  207. </div>
  208. <input class="form-control" type="text" name="module" v-model="sellItem.module" />
  209. </div>
  210. </div>
  211. </div>
  212. <div class="form-group row">
  213. <div class="col-md-6">
  214. <label for="Season">Season</label>
  215. <div class="input-group mb-3">
  216. <div class="input-group-prepend">
  217. <span class="input-group-text" style="color: #60CBEB">
  218. <b>S</b>
  219. </span>
  220. </div>
  221. <select class="form-control" name="season" v-model="sellItem.season">
  222. <option v-for="(season, r) in seasons" :key="r">{{season.name}}</option>
  223. </select>
  224. </div>
  225. </div>
  226. <div class="col-md-6">
  227. <label for="Bedrooms">Bedrooms</label>
  228. <div class="input-group mb-3">
  229. <div class="input-group-prepend">
  230. <span class="input-group-text" style="color: #60CBEB">
  231. <b>Bed</b>
  232. </span>
  233. </div>
  234. <select class="form-control" name="bedrooms" v-model="sellItem.bedrooms">
  235. <option v-for="(item, i) in resortBedrooms" :key="i">{{item}}</option>
  236. </select>
  237. </div>
  238. </div>
  239. <div class="col-md-6">
  240. <label for="Sleeps maximum">Sleep max</label>
  241. <div class="input-group mb-3">
  242. <div class="input-group-prepend">
  243. <span class="input-group-text" style="color: #60CBEB">
  244. <b>Max</b>
  245. </span>
  246. </div>
  247. <select class="form-control" name="sleeps" v-model="sellItem.maxSleep">
  248. <option v-for="(item, i) in maxSleep" :key="i">{{item}}</option>
  249. </select>
  250. </div>
  251. </div>
  252. <div class="col-md-6">
  253. <label for="Levy">Levy Amount *</label>
  254. <div class="input-group mb-3">
  255. <div class="input-group-prepend">
  256. <span class="input-group-text" style="color: #60CBEB">
  257. <b>R</b>
  258. </span>
  259. </div>
  260. <input
  261. class="form-control"
  262. type="number"
  263. step="any"
  264. name="levy"
  265. v-model="sellItem.levyAmount"
  266. />
  267. </div>
  268. </div>
  269. </div>
  270. <div class="form-group row">
  271. <div class="col-md-6">
  272. <p>Has your week been spacebanked for the current year?</p>
  273. <div class="form-check">
  274. <input
  275. class="form-check-input"
  276. type="radio"
  277. name="spacebankedyear"
  278. id="spacebankedyearyes"
  279. value="Yes"
  280. @change="changeCurrentBanked"
  281. :checked="sellItem.currentYearBanked"
  282. />
  283. <label class="form-check-label" for="spacebankedyearyes">Yes</label>
  284. </div>
  285. <div class="form-check">
  286. <input
  287. class="form-check-input"
  288. type="radio"
  289. name="spacebankedyear"
  290. id="spacebankedyearno"
  291. value="No"
  292. :checked="!sellItem.currentYearBanked"
  293. @change="changeCurrentBanked"
  294. />
  295. <label class="form-check-label" for="spacebankedyearno">No</label>
  296. </div>
  297. </div>
  298. <div class="col-md-6">
  299. <label
  300. for="If yes, please confirm with whom"
  301. v-if="sellItem.currentYearBanked"
  302. >Please confirm with whom</label>
  303. <select
  304. class="form-control"
  305. name="spacebankOwner"
  306. v-if="sellItem.currentYearBanked"
  307. v-model="sellItem.bankedWith"
  308. >
  309. <option v-for="(item, i) in bankedEntities" :key="i">{{item}}</option>
  310. </select>
  311. </div>
  312. </div>
  313. </div>
  314. <DetailIndividual :owner="sellItem.owner" />
  315. <hr />
  316. <Address :address="sellItem.owner.address" />
  317. <hr />
  318. <BankDetails :bankingDetails="sellItem.owner.bankingDetails" />
  319. <hr />
  320. </div>
  321. <hr />
  322. <br />
  323. <div class="myWell">
  324. <h4>Share transfer information</h4>
  325. </div>
  326. <br />
  327. <tr>
  328. <td>1. With respect to my timeshare module/week, I confirm that:</td>
  329. </tr>
  330. <div class="form-group row" style="text-align:left">
  331. <label
  332. for="name"
  333. class="col-form-label col-md-8"
  334. >1.1 All levy amounts for the current cycle have been paid in full</label>
  335. <div class="col-md-4">
  336. <div class="form-check form-check-inline">
  337. <input
  338. class="form-check-input"
  339. type="radio"
  340. name="paid"
  341. value="Yes"
  342. :checked="sellItem.leviesPaidInFull"
  343. @change="changeLeviesPaidInFull()"
  344. />
  345. <label class="form-check-label" for="paid">Yes</label>
  346. </div>
  347. <div class="form-check form-check-inline">
  348. <input
  349. class="form-check-input"
  350. type="radio"
  351. name="paid"
  352. value="No"
  353. :checked="!sellItem.leviesPaidInFull"
  354. @change="changeLeviesPaidInFull()"
  355. />
  356. <label class="form-check-label" for="paid">No</label>
  357. </div>
  358. </div>
  359. </div>
  360. <hr />
  361. <div class="form-group row" style="text-align:left">
  362. <label
  363. for="name"
  364. class="col-form-label col-md-8"
  365. >1.2 My week is placed for rental this year</label>
  366. <div class="col-md-4">
  367. <div class="form-check form-check-inline">
  368. <input
  369. class="form-check-input"
  370. type="radio"
  371. name="rental"
  372. value="Yes"
  373. :checked="sellItem.weekPlacedForRental"
  374. @change="changeWeekPlacedForRental()"
  375. />
  376. <label class="form-check-label" for="paidyes">Yes</label>
  377. </div>
  378. <div class="form-check form-check-inline">
  379. <input
  380. class="form-check-input"
  381. type="radio"
  382. name="rental"
  383. value="No"
  384. :checked="!sellItem.weekPlacedForRental"
  385. @change="changeWeekPlacedForRental()"
  386. />
  387. <label class="form-check-label" for="paidno">No</label>
  388. </div>
  389. </div>
  390. </div>
  391. <hr />
  392. <div class="form-group row" style="text-align:left">
  393. <label
  394. for="name"
  395. class="col-form-label col-md-8"
  396. >1.3 I/We bought the timeshare module/week on the following date:</label>
  397. <div class="col-md-4">
  398. <input
  399. type="date"
  400. class="form-control"
  401. name="date"
  402. v-model="sellItem.originalPurchaseDate"
  403. />
  404. </div>
  405. </div>
  406. <hr />
  407. <div class="form-group row" style="text-align:left">
  408. <label
  409. for="name"
  410. class="col-form-label col-md-8"
  411. >1.4 The purchase price for which I/we bought timeshare module/week was:</label>
  412. <div class="col-md-4">
  413. <div class="input-group mb-3">
  414. <div class="input-group-prepend">
  415. <span class="input-group-text" style="color: #60CBEB">
  416. <b>R</b>
  417. </span>
  418. </div>
  419. <input
  420. class="form-control"
  421. type="number"
  422. step="any"
  423. name="purchasePrice"
  424. v-model="sellItem.originalPurchasePrice"
  425. />
  426. </div>
  427. </div>
  428. </div>
  429. <hr />
  430. <div class="form-group row" style="text-align:left">
  431. <label
  432. for="name"
  433. class="col-form-label col-md-8"
  434. >1.5 I/We bought the timeshare module/week for the following dates for the current year:</label>
  435. <div class="col-md-4">
  436. Arrival Date :
  437. <input
  438. type="date"
  439. class="form-control"
  440. name="occupationDate1"
  441. v-model="sellItem.arrivalDate"
  442. />
  443. Departure Date :
  444. <input
  445. type="date"
  446. class="form-control"
  447. name="occupationDate2"
  448. v-model="sellItem.departureDate"
  449. />
  450. </div>
  451. </div>
  452. <hr />
  453. <div class="form-group row" style="text-align:left">
  454. <label
  455. for="name"
  456. class="col-form-label col-md-8"
  457. >1.6 The selling price for the timeshare module/week for which I/we want to sell is: (Including Vat)</label>
  458. <div class="col-md-4">
  459. <div class="input-group mb-3">
  460. <div class="input-group-prepend">
  461. <span class="input-group-text" style="color: #60CBEB">
  462. <b>R</b>
  463. </span>
  464. </div>
  465. <input
  466. class="form-control"
  467. type="number"
  468. step="any"
  469. name="sellingPrice"
  470. v-model="sellItem.sellPrice"
  471. />
  472. </div>
  473. </div>
  474. </div>
  475. <hr />
  476. <div class="form-group row" style="text-align:left">
  477. <label
  478. for="name"
  479. class="col-form-label col-md-8"
  480. >1.7 Estate agent’s commission agreed to (state Rand value)</label>
  481. <div class="col-md-4">
  482. <div class="input-group mb-3">
  483. <div class="input-group-prepend">
  484. <span class="input-group-text" style="color: #60CBEB">
  485. <b>R</b>
  486. </span>
  487. </div>
  488. <input
  489. class="form-control"
  490. type="number"
  491. step="any"
  492. name="commission"
  493. v-model="sellItem.agentCommission"
  494. />
  495. </div>
  496. </div>
  497. </div>
  498. <hr />
  499. <div class="form-group row" style="text-align:left">
  500. <label for="name" class="col-form-label col-md-8">1.8 Mandate to sell timeshare</label>
  501. <div class="col-md-4">
  502. <input class="btn btn-b-n" type="file" name="mandate" />
  503. </div>
  504. </div>
  505. <div class="btn btn-b-n btn-lg" @click="submitSale()">Submit</div>
  506. <hr />
  507. <h1>{{result}}</h1>
  508. <hr />
  509. <p>* A listing fee of R380 including VAT is payable to list your timeshare week/module on the Uni-Vate website</p>
  510. <br />
  511. <br />
  512. <p style="text-align:center;">
  513. To rent your week out
  514. <a href="https://www.tradeunipoint.com/" target="_blank">click here</a>
  515. </p>
  516. </form>
  517. </div>
  518. </div>
  519. </div>
  520. </template>
  521. <script>
  522. import { mapState, mapActions } from 'vuex';
  523. import DetailIndividual from '../../user/timeshareIndividual.vue';
  524. import BankDetails from '../../shared/bankAccount.vue';
  525. import Address from '../../misc/address.vue';
  526. export default {
  527. name: 'TimeshareToSell',
  528. components: { DetailIndividual, BankDetails, Address },
  529. created() {
  530. this.initTimeshare();
  531. },
  532. computed: {
  533. ...mapState('timeshare', [
  534. 'resorts',
  535. 'regions',
  536. 'detailedRegion',
  537. 'seasons',
  538. 'result',
  539. 'resortBedrooms',
  540. 'maxSleep',
  541. 'bankedEntities',
  542. 'sellItem',
  543. 'agencies',
  544. 'agents',
  545. ]),
  546. refAgent() {
  547. return this.sellItem && this.sellItem.referedByAgent;
  548. },
  549. },
  550. methods: {
  551. submitSale() {
  552. this.saveWeek(this.sellItem);
  553. },
  554. previewFiles(event) {
  555. console.log(event.target.files);
  556. },
  557. changeRef() {
  558. this.sellItem.agent = undefined;
  559. this.sellItem.agency = undefined;
  560. this.sellItem.referedByAgent = !this.sellItem.referedByAgent;
  561. },
  562. changeLeviesPaidInFull() {
  563. this.sellItem.leviesPaidInFull = !this.sellItem.leviesPaidInFull;
  564. },
  565. changeWeekPlacedForRental() {
  566. this.sellItem.weekPlacedForRental = !this.sellItem.weekPlacedForRental;
  567. },
  568. changeCurrentBanked() {
  569. this.sellItem.bankedWith = undefined;
  570. this.sellItem.currentYearBanked = !this.sellItem.currentYearBanked;
  571. },
  572. resortChange() {
  573. this.onResortChange({
  574. resortName: this.sellItem.resort.resortName,
  575. resortCode: this.sellItem.resort.resortCode,
  576. });
  577. if (this.sellItem && this.sellItem.resort === 'Other') {
  578. this.sellItem.otherResortName = undefined;
  579. this.sellItem.otherResort = true;
  580. } else {
  581. this.sellItem.otherResortName = undefined;
  582. this.sellItem.otherResort = false;
  583. }
  584. },
  585. regionChange() {
  586. this.sellItem.regionId = this.sellItem.region
  587. ? this.sellItem.region.id
  588. : 1;
  589. },
  590. ...mapActions('timeshare', ['initTimeshare', 'onResortChange', 'saveWeek']),
  591. },
  592. };
  593. </script>
  594. <style>
  595. .myWell {
  596. width: 100%;
  597. background-color: #60cbeb;
  598. border-radius: 6px;
  599. padding: 5px;
  600. margin: 3px;
  601. }
  602. </style>