Explorar el Código

Added EFT Page

master
30117125 hace 4 años
padre
commit
2ef728b1fe

+ 0
- 3
src/components/admin/status/editTimeShareAdminPage.vue Ver fichero

@@ -415,9 +415,6 @@
415 415
               <div class="form">
416 416
                 <div class="row">
417 417
                   <div class="form-group col-md-6">
418
-                    <label v-if="!weekParam.weekStatus" class="uniSelectLabel" for="status"
419
-                      >STATUS</label
420
-                    >
421 418
                     <float-label label="STATUS" fixed>
422 419
                       <select
423 420
                         class="form-control uniSelect"

+ 125
- 0
src/components/financial/eftPage.vue Ver fichero

@@ -0,0 +1,125 @@
1
+<template>
2
+  <main id="main" style="padding-bottom:150px">
3
+    <div class="container">
4
+      <div class="row">
5
+        <div class="col">
6
+          <div class="section-header">
7
+            <h2>Thank you</h2>
8
+          </div>
9
+        </div>
10
+      </div>
11
+      <div class="row">
12
+        <div class="col">
13
+          <p>
14
+            Thank you for placing a listing with Uni-Vate, as soon as we receive payment your
15
+            listing will be published.
16
+          </p>
17
+        </div>
18
+      </div>
19
+      <div class="row mt-2">
20
+        <div class="col">
21
+          <div class="section-header">
22
+            <h2>EFT Information</h2>
23
+          </div>
24
+        </div>
25
+      </div>
26
+      <div class="row">
27
+        <div class="col">
28
+          <table id="bankDetail" class="table table-striped">
29
+            <tr>
30
+              <strong>Banking Details:</strong>
31
+            </tr>
32
+            <tr>
33
+              <td><strong>Bank:</strong></td>
34
+              <td>First National Bank ("FNB")</td>
35
+            </tr>
36
+            <tr>
37
+              <td><strong>Account Type:</strong></td>
38
+              <td>Current</td>
39
+            </tr>
40
+            <tr>
41
+              <td><strong>Account Number:</strong></td>
42
+              <td>62460572152</td>
43
+            </tr>
44
+            <tr>
45
+              <td><strong>Branch:</strong></td>
46
+              <td>Centurion 261550</td>
47
+            </tr>
48
+            <tr>
49
+              <td><strong>Amount:</strong></td>
50
+              <td>R{{ getListingFee.amount }}</td>
51
+            </tr>
52
+            <tr>
53
+              <td><strong>Reference: </strong></td>
54
+              <td>{{ week.id }}</td>
55
+            </tr>
56
+          </table>
57
+        </div>
58
+      </div>
59
+      <div class="row mt-5">
60
+        <div class="col">
61
+          <button class="btn-solid-blue" @click="saveBankDetails">SAVE</button>
62
+        </div>
63
+      </div>
64
+    </div>
65
+  </main>
66
+</template>
67
+
68
+<script>
69
+/* eslint-disable */
70
+import { mapGetters } from "vuex";
71
+import jsPDF from "jspdf";
72
+import "jspdf-autotable";
73
+export default {
74
+  props: {
75
+    week: {}
76
+  },
77
+  computed: {
78
+    ...mapGetters("fees", ["getListingFee"])
79
+  },
80
+  methods: {
81
+    saveBankDetails() {
82
+      const doc = new jsPDF();
83
+      var today = new Date();
84
+      var dd = String(today.getDate()).padStart(2, "0");
85
+      var mm = String(today.getMonth() + 1).padStart(2, "0"); //January is 0!
86
+      var yyyy = today.getFullYear();
87
+
88
+      today = dd + "/" + mm + "/" + yyyy;
89
+
90
+      doc.setDrawColor(186, 186, 186);
91
+      doc.line(15, 62, 195, 62);
92
+      doc.setFontSize(20);
93
+      doc.text(115, 25, "Date:");
94
+      doc.setFontSize(9);
95
+      doc.text(115, 30, "As of date " + today);
96
+      doc.addImage("/img/logos/UVProp.png", "PNG", 15, 10, 75, 25);
97
+      doc.setFontSize(12);
98
+      doc.autoTable({
99
+        html: "#bankDetail",
100
+        startY: 47,
101
+        headStyles: {
102
+          fillColor: [255, 255, 255],
103
+          textColor: [0, 0, 0]
104
+        }
105
+      });
106
+
107
+      doc.setFontSize(10);
108
+      const pages = doc.internal.getNumberOfPages();
109
+      const pageWidth = doc.internal.pageSize.width;
110
+      const pageHeight = doc.internal.pageSize.height;
111
+      for (let j = 1; j < pages + 1; j++) {
112
+        let horizontalPos = pageWidth / 2;
113
+        let verticalPos = pageHeight - 10;
114
+        doc.setPage(j);
115
+        doc.text(`${j} of ${pages}`, horizontalPos, verticalPos, {
116
+          align: "center"
117
+        });
118
+      }
119
+      doc.save("Uni-Vate EFT" + dd + "-" + mm + "-" + yyyy + ".pdf");
120
+    }
121
+  }
122
+};
123
+</script>
124
+
125
+<style lang="scss" scoped></style>

+ 2
- 2
src/components/financial/paymentOption.vue Ver fichero

@@ -69,8 +69,8 @@ export default {
69 69
           delete this.week.owner.telephone;
70 70
         }
71 71
         console.log(JSON.stringify(this.week));
72
-        this.editSave(this.week).then(ex => {
73
-          console.log("It was here");
72
+        this.editSave(this.week).then(() => {
73
+          this.$router.push({ name: "EFTPage", params: { week: this.week } });
74 74
         });
75 75
       }
76 76
     },

+ 0
- 1
src/components/timeshare/sell/contentSection.vue Ver fichero

@@ -6,7 +6,6 @@
6 6
           <div class="section-header">
7 7
             <h2>Week Information</h2>
8 8
           </div>
9
-
10 9
           <div align="left" class="custom-control custom-switch mb-2">
11 10
             <div class="row">
12 11
               <div align="center" class="col">

+ 9
- 0
src/router/index.js Ver fichero

@@ -88,6 +88,7 @@ import Payments from "../components/financial/payments.vue";
88 88
 import PaymentSuccess from "../components/financial/OrderThankYou.vue";
89 89
 import PaymentError from '../components/financial/paymentError.vue';
90 90
 import PaymentOption from '../components/financial/paymentOption.vue'
91
+import EFTPage from '../components/financial/eftPage.vue'
91 92
 
92 93
 import LandingPages from "../components/marketing/landingPages.vue";
93 94
 import LandingPage from "../components/marketing/landingPage.vue";
@@ -543,5 +544,13 @@ export default new Router({
543 544
       name: "statusEdit",
544 545
       component: StatusEdit,
545 546
     },
547
+    {
548
+      path: "/financial/eftPage",
549
+      name: "EFTPage",
550
+      props: route => ({
551
+        ...route.params
552
+      }),
553
+      component: EFTPage,
554
+    },
546 555
   ]
547 556
 });

Loading…
Cancelar
Guardar