Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

summarySection.vue 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <div class="container pb-5">
  3. <div class="row">
  4. <div class="col">
  5. <div class="section-header">
  6. <!--<h2>{{ week ? week.resort.resortName : '' }}</h2> -->
  7. </div>
  8. </div>
  9. </div>
  10. <div class="row mt-5">
  11. <div class="col-md-12 col-lg-4">
  12. <gallerySection :images="resort.images" />
  13. </div>
  14. <div class="col-md-12 col-lg-8 summarySection">
  15. <h4>
  16. Unit {{ week ? week.unitNumber : '' }} |
  17. {{ week ? week.bedrooms : '' }} Bedroom/{{
  18. week ? week.maxSleep : ''
  19. }}
  20. Sleeper
  21. </h4>
  22. <p style="text-align: left;">Reference: #{{ week.id }}</p>
  23. <table class="table table-striped">
  24. <thead>
  25. <tr>
  26. <th scope="col">Unit</th>
  27. <th scope="col">Week / Module</th>
  28. <th scope="col">Arrival Date</th>
  29. <th scope="col">Bedrooms</th>
  30. <th scope="col">Season</th>
  31. <th scope="col">Current Year Levy</th>
  32. <th scope="col">Price Incl VAT</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <tr>
  37. <td>{{ week ? week.unitNumber : '' }}</td>
  38. <td>{{ week ? week.weekNumber : '' }}</td>
  39. <td
  40. v-if="
  41. week.arrivalDate === '0001-01-01T00:00:00' ||
  42. week.arrivalDate === '1753-01-01T00:00:00'
  43. "
  44. ></td>
  45. <td v-else>{{ week.arrivalDate | toDate }}</td>
  46. <td>{{ week ? week.bedrooms : '' }}</td>
  47. <td>{{ week ? week.season : '' }}</td>
  48. <td>{{ week ? week.levyAmount : '' | toCurrency }}</td>
  49. <td>{{ week ? week.sellPrice : '' | toCurrency }}</td>
  50. </tr>
  51. </tbody>
  52. </table>
  53. <div class="row mt-5">
  54. <div align="center" class="col-md-6">
  55. <a href="javascript:history.back()" class="btn-white-border">
  56. Back
  57. </a>
  58. </div>
  59. <div align="center" class="col-md-6">
  60. <button
  61. class="btn-white-border"
  62. style="color: white;"
  63. data-toggle="modal"
  64. data-target="#myModal"
  65. >
  66. Make an Offer
  67. </button>
  68. <div class="col-md-12">
  69. <div id="myModal" class="modal fade" role="dialog">
  70. <div class="modal-dialog modal-lg">
  71. <!-- Modal content-->
  72. <div class="modal-content">
  73. <div class="modal-header">
  74. <button type="button" class="close" data-dismiss="modal">
  75. &times;
  76. </button>
  77. </div>
  78. <div padding-left="20px">
  79. <makeOffer
  80. name="MakeOffer"
  81. :isMakeOffer="true"
  82. :isProperty="false"
  83. :item="week"
  84. />
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </template>
  96. <script>
  97. /* eslint-disable */
  98. import { mapState, mapActions, mapGetters } from 'vuex'
  99. import makeOffer from '../../../processFlow/makeOffer.vue'
  100. import gallerySection from '../gallerySection'
  101. export default {
  102. components: {
  103. makeOffer,
  104. gallerySection,
  105. },
  106. mounted() {
  107. this.getWeek(this.weekId)
  108. },
  109. computed: {
  110. ...mapState('resort', ['resort', 'description', 'images', 'layout']),
  111. ...mapState('weekList', ['week']),
  112. },
  113. props: {
  114. weekId: {},
  115. },
  116. methods: {
  117. ...mapActions('weekList', ['getWeek']),
  118. formatPrice(value) {
  119. if (value) {
  120. const val = (value / 1).toFixed(2)
  121. return val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ' ')
  122. }
  123. return ''
  124. },
  125. },
  126. }
  127. </script>
  128. <style lang="scss" scoped>
  129. .summarySection {
  130. margin-top: -50px;
  131. }
  132. </style>