update async dan interface

This commit is contained in:
bagus-arie05
2025-09-12 09:54:00 +07:00
parent 831cb0a4ea
commit edec5bb339
12 changed files with 1086 additions and 1354 deletions

119
components/QRISPayment.vue Normal file
View File

@@ -0,0 +1,119 @@
<template>
<div class="payment-step">
<v-card-text class="pa-8 text-center">
<div class="mb-4">
<v-img
src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/QRIS_logo.svg/1200px-QRIS_logo.svg.png"
height="35"
class="mx-auto"
contain
/>
</div>
<h2 class="text-h4 mb-6 font-weight-bold">PINDAI KODE QR</h2>
<div class="qr-container mb-6">
<v-card
class="qr-code mx-auto d-flex align-center justify-center"
width="280"
height="280"
elevation="0"
>
<NuxtQrcode
:value="paymentStore.qrData.qrvalue"
tag="svg"
:options="{ width: 280 }"
/>
</v-card>
</div>
<div class="payment-details">
<v-row dense class="mb-2">
<v-col cols="5" class="text-left">
<strong>NAMA PASIEN:</strong>
</v-col>
<v-col cols="7" class="text-left">
{{ paymentStore.patientInfo.name }}
</v-col>
</v-row>
<v-row dense class="mb-2">
<v-col cols="5" class="text-left">
<strong>NOMINAL:</strong>
</v-col>
<v-col cols="7" class="text-left">
{{ paymentStore.patientInfo.amount }}
</v-col>
</v-row>
<v-row dense class="mb-2">
<v-col cols="5" class="text-left">
<strong>NOMOR TAGIHAN:</strong>
</v-col>
<v-col cols="7" class="text-left">
{{ paymentStore.qrData.display_nobill }}
</v-col>
</v-row>
<v-row dense class="mb-4">
<v-col cols="5" class="text-left">
<strong>BERLAKU SAMPAI:</strong>
</v-col>
<v-col cols="7" class="text-left text-red">
N/A
</v-col>
</v-row>
</div>
<div class="d-flex gap-4 justify-center">
<v-btn color="grey" variant="outlined" @click="paymentStore.prevStep">
Kembali
</v-btn>
<v-btn color="primary" variant="flat" @click="paymentStore.nextStep">
Simulasi Pembayaran
</v-btn>
</div>
</v-card-text>
</div>
</template>
<script setup>
import { usePaymentStore } from "~/stores/payment";
const paymentStore = usePaymentStore();
</script>
<style scoped>
/* Style tetap sama */
.payment-step {
background: rgb(233, 233, 233);
}
.qr-container {
padding: 20px;
background: white;
border-radius: 16px;
display: inline-block;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.qr-code {
position: relative;
background: white;
padding: 20px;
}
.qr-label {
position: absolute;
bottom: 5px;
right: 10px;
font-size: 10px;
font-weight: bold;
}
.payment-details {
max-width: 350px;
margin: 0 auto;
}
@media (orientation: landscape) and (min-width: 768px) {
.qr-code {
width: 240px !important;
height: 240px !important;
}
}
</style>