|
55 | 55 | {{ texts[status].text }} |
56 | 56 | </div> |
57 | 57 | </div> |
| 58 | + <v-row class="justify-center"> |
| 59 | + {{ invoice }} |
| 60 | + <v-col> |
| 61 | + <v-img |
| 62 | + class="mt-8" |
| 63 | + max-height="80" |
| 64 | + max-width="80" |
| 65 | + contain |
| 66 | + :src="`${STATIC_PATH}/icon.svg`" |
| 67 | + /> |
| 68 | + <v-card-title class="subheading font-weight-bold"> |
| 69 | + Bitcart AI |
| 70 | + </v-card-title> |
| 71 | + |
| 72 | + <v-divider></v-divider> |
| 73 | + |
| 74 | + <v-list dense> |
| 75 | + <v-list-item> |
| 76 | + <v-list-item-content class="grey--text text--darken" |
| 77 | + ><strong>Invoice ID</strong></v-list-item-content |
| 78 | + > |
| 79 | + <v-list-item-content class="align-end"> |
| 80 | + {{ invoice.id }} |
| 81 | + </v-list-item-content> |
| 82 | + </v-list-item> |
| 83 | + |
| 84 | + <v-list-item> |
| 85 | + <v-list-item-content class="grey--text text--darken" |
| 86 | + ><strong>Order ID</strong></v-list-item-content |
| 87 | + > |
| 88 | + <v-list-item-content class="align-end"> |
| 89 | + {{ invoice.order_id }} |
| 90 | + </v-list-item-content> |
| 91 | + </v-list-item> |
| 92 | + |
| 93 | + <v-list-item> |
| 94 | + <v-list-item-content class="grey--text text--darken" |
| 95 | + ><strong>Store ID</strong></v-list-item-content |
| 96 | + > |
| 97 | + <v-list-item-content class="align-end"> |
| 98 | + {{ invoice.store_id }} |
| 99 | + </v-list-item-content> |
| 100 | + </v-list-item> |
| 101 | + |
| 102 | + <v-list-item> |
| 103 | + <v-list-item-content class="grey--text text--darken" |
| 104 | + ><strong>Total Price</strong></v-list-item-content |
| 105 | + > |
| 106 | + <v-list-item-content class="align-end"> |
| 107 | + {{ invoice.order_id }} |
| 108 | + </v-list-item-content> |
| 109 | + </v-list-item> |
| 110 | + <v-list-item> |
| 111 | + <v-list-item-content class="grey--text text--darken" |
| 112 | + ><strong>Sent Amount</strong></v-list-item-content |
| 113 | + > |
| 114 | + <v-list-item-content class="align-end"> |
| 115 | + {{ invoice.sent_amount + " " + invoice.paid_currency }} |
| 116 | + </v-list-item-content> |
| 117 | + </v-list-item> |
| 118 | + <v-list-item> |
| 119 | + <v-list-item-content class="grey--text text--darken" |
| 120 | + ><strong>Total Fiat</strong></v-list-item-content |
| 121 | + > |
| 122 | + <v-list-item-content class="align-end"> |
| 123 | + {{ invoice.price + " " + invoice.currency }} |
| 124 | + </v-list-item-content> |
| 125 | + </v-list-item> |
| 126 | + <v-list-item> |
| 127 | + <v-list-item-content class="grey--text text--darken" |
| 128 | + ><strong>Exchange Rate</strong></v-list-item-content |
| 129 | + > |
| 130 | + <v-list-item-content class="align-end"> |
| 131 | + {{ calculateTotalPrice() }} |
| 132 | + </v-list-item-content> |
| 133 | + </v-list-item> |
| 134 | + <v-list-item> |
| 135 | + <v-list-item-content class="grey--text text--darken" |
| 136 | + ><strong>Amount Due</strong></v-list-item-content |
| 137 | + > |
| 138 | + <v-list-item-content class="align-end"> |
| 139 | + {{ invoice.sent_amount }} |
| 140 | + </v-list-item-content> |
| 141 | + </v-list-item> |
| 142 | + |
| 143 | + <v-list-item> |
| 144 | + <v-list-item-content class="grey--text text--darken" |
| 145 | + ><strong>Date</strong></v-list-item-content |
| 146 | + > |
| 147 | + <v-list-item-content class="align-end"> |
| 148 | + <!-- {{ invoice.paid_date.substring(0, 19).replace("T", " ") }} --> |
| 149 | + </v-list-item-content> |
| 150 | + </v-list-item> |
| 151 | + </v-list> |
| 152 | + </v-col> |
| 153 | + </v-row> |
58 | 154 | </v-card-text> |
59 | 155 | </div> |
60 | 156 | </v-card> |
@@ -211,6 +307,9 @@ export default { |
211 | 307 | ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") |
212 | 308 | : baseURL |
213 | 309 | }, |
| 310 | + calculateTotalPrice() { |
| 311 | + return this.invoice.payments |
| 312 | + }, |
214 | 313 | }, |
215 | 314 | } |
216 | 315 | </script> |
|
0 commit comments