選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

timeshareIndividual.vue 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <template>
  2. <!-- eslint-disable max-len -->
  3. <div class="reg-page">
  4. <hr />
  5. <div class="form-group row"></div>
  6. <div class="col-md-12" style="text-align:centre">
  7. <h4>Detailed Individual Information</h4>
  8. <div class="form-group row"></div>
  9. <div class="row" style="text-align:left">
  10. <div class="col-md-6">
  11. <label>Name</label>
  12. <div class="input-group-prepend">
  13. <span class="input-group-text">
  14. <eva-icon name="person-outline" fill="#60CBEB"></eva-icon>
  15. </span>
  16. <input class="form-control" type="text" name="name" v-model="registerIndividual.name" />
  17. </div>
  18. </div>
  19. <div class="col-md-6" style="margin-bottom: 1em">
  20. <label>Surname</label>
  21. <div class="input-group-prepend">
  22. <span class="input-group-text">
  23. <eva-icon name="book-outline" fill="#60CBEB"></eva-icon>
  24. </span>
  25. <input
  26. class="form-control"
  27. type="text"
  28. name="surname"
  29. v-model="registerIndividual.surname"
  30. />
  31. </div>
  32. </div>
  33. <div class="col-md-6" style="margin-bottom: 1em">
  34. <label>ID Number</label>
  35. <div class="input-group-prepend">
  36. <span class="input-group-text">
  37. <eva-icon name="archive" fill="#60CBEB"></eva-icon>
  38. </span>
  39. <input class="form-control" type="text" name="idnumber" />
  40. </div>
  41. </div>
  42. <div class="col-md-6" style="margin-bottom: 1em">
  43. <label>Company Reg Number</label>
  44. <div class="input-group-prepend">
  45. <span class="input-group-text">
  46. <eva-icon name="npm-outline" fill="#60CBEB"></eva-icon>
  47. </span>
  48. <input class="form-control" type="text" name="companyregnumber" />
  49. </div>
  50. </div>
  51. <div class="col-md-6" style="margin-bottom: 1em">
  52. <label>Marital Status</label>
  53. <div class="input-group-prepend">
  54. <span class="input-group-text">
  55. <eva-icon name="people-outline" fill="#60CBEB"></eva-icon>
  56. </span>
  57. <input class="form-control" type="text" name="maritalstatus" />
  58. </div>
  59. </div>
  60. <div class="col-md-6" style="margin-bottom: 1em">
  61. <label>Email Address</label>
  62. <div class="input-group-prepend">
  63. <span class="input-group-text">
  64. <eva-icon name="email-outline" fill="#60CBEB"></eva-icon>
  65. </span>
  66. <input class="form-control" type="text" name="email" v-model="registerIndividual.email" />
  67. </div>
  68. </div>
  69. <div class="col-md-6" style="margin-bottom: 1em">
  70. <label>Cell Number</label>
  71. <div class="input-group-prepend">
  72. <span class="input-group-text">
  73. <eva-icon name="smartphone-outline" fill="#60CBEB"></eva-icon>
  74. </span>
  75. <input
  76. class="form-control"
  77. type="text"
  78. name="cellnumber"
  79. v-model="registerIndividual.cellNumber"
  80. />
  81. </div>
  82. </div>
  83. <div class="col-md-6" style="margin-bottom: 1em">
  84. <label>Landline Number</label>
  85. <div class="input-group-prepend">
  86. <span class="input-group-text">
  87. <eva-icon name="phone-outline" fill="#60CBEB"></eva-icon>
  88. </span>
  89. <input
  90. class="form-control"
  91. type="text"
  92. name="landline"
  93. v-model="registerIndividual.telephone"
  94. />
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </template>
  101. <script>
  102. import { mapState, mapActions } from "vuex";
  103. export default {
  104. props: {
  105. RegisterHeader: { type: String, default: undefined }
  106. },
  107. name: "PrivateIndividual",
  108. data() {
  109. return {
  110. user: null,
  111. isPasswordShown: "password",
  112. selectItems: [{ text: "password", value: 0 }],
  113. selectErrors: "Some error with the field",
  114. select: null,
  115. textErrors: "Some error with the field",
  116. text: "",
  117. showPassword: false
  118. };
  119. },
  120. computed: {
  121. ...mapState("registerIndividual", ["registerIndividual"]),
  122. Header() {
  123. return this.RegisterHeader
  124. ? "Agency Administrator Details"
  125. : "Private Individual";
  126. }
  127. },
  128. methods: {
  129. ...mapActions("registerIndividual", [
  130. "getIndividual",
  131. "saveIndividual",
  132. "updateIndividual",
  133. "clearIndividual"
  134. ]),
  135. togglePassword() {
  136. this.showPassword = true;
  137. this.isPasswordShown = "text";
  138. },
  139. passwordToggled() {
  140. this.showPassword = false;
  141. this.isPasswordShown = "password";
  142. },
  143. SubmitData() {
  144. this.saveIndividual(this.registerIndividual);
  145. this.$router.push("/registerIndividual/");
  146. },
  147. Close() {
  148. this.$router.push("/registerIndividual/");
  149. }
  150. }
  151. };
  152. </script>
  153. <style>
  154. .goDown {
  155. margin-top: 150px;
  156. }
  157. </style>