update admin loket dan tampilan status fast track
This commit is contained in:
@@ -16,6 +16,7 @@ $primary-400: #7898EC;
|
||||
$primary-300: #9AB2F1;
|
||||
$primary-200: #BBCBF5;
|
||||
$primary-100: #DDE5FA;
|
||||
$primary-50: #EFF3FD;
|
||||
|
||||
$secondary-700: #E65A0D;
|
||||
$secondary-600: #F16F29;
|
||||
@@ -24,6 +25,7 @@ $secondary-400: #FF9D67;
|
||||
$secondary-300: #FFB58D;
|
||||
$secondary-200: #FFCEB3;
|
||||
$secondary-100: #FFE6D9;
|
||||
$secondary-50: #FFF3EC;
|
||||
|
||||
$success-700: #008D65;
|
||||
$success-600: #33A484;
|
||||
@@ -61,6 +63,7 @@ $danger-100: #FBE9E8;
|
||||
--color-primary-300: #{$primary-300};
|
||||
--color-primary-200: #{$primary-200};
|
||||
--color-primary-100: #{$primary-100};
|
||||
--color-primary-50: #{$primary-50};
|
||||
|
||||
// Secondary
|
||||
--color-secondary-700: #{$secondary-700};
|
||||
@@ -70,6 +73,7 @@ $danger-100: #FBE9E8;
|
||||
--color-secondary-300: #{$secondary-300};
|
||||
--color-secondary-200: #{$secondary-200};
|
||||
--color-secondary-100: #{$secondary-100};
|
||||
--color-secondary-50: #{$secondary-50};
|
||||
|
||||
// Success
|
||||
--color-success-700: #{$success-700};
|
||||
@@ -142,6 +146,7 @@ $colors: (
|
||||
'primary-300': $primary-300,
|
||||
'primary-200': $primary-200,
|
||||
'primary-100': $primary-100,
|
||||
'primary-50': $primary-50,
|
||||
'secondary-700': $secondary-700,
|
||||
'secondary-600': $secondary-600,
|
||||
'secondary-500': $secondary-500,
|
||||
@@ -149,6 +154,7 @@ $colors: (
|
||||
'secondary-300': $secondary-300,
|
||||
'secondary-200': $secondary-200,
|
||||
'secondary-100': $secondary-100,
|
||||
'secondary-50': $secondary-50,
|
||||
'success-700': $success-700,
|
||||
'success-600': $success-600,
|
||||
'success-500': $success-500,
|
||||
|
||||
@@ -60,17 +60,6 @@ defineEmits(['add-click']);
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
$neutral-100: #FFFFFF;
|
||||
$primary-600: #FFA532;
|
||||
$primary-700: #FF9B1B;
|
||||
$secondary-600: #0671E0;
|
||||
$secondary-700: #0053AD;
|
||||
$success-600: #009262;
|
||||
$success-700: #1B6E53;
|
||||
$accent-600: #8B5CF6;
|
||||
$accent-700: #7C3AED;
|
||||
$warning-600: #FF9800;
|
||||
$warning-700: #F57C00;
|
||||
$font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
$font-weight-regular: 400;
|
||||
$font-weight-semibold: 600;
|
||||
@@ -80,28 +69,30 @@ $font-weight-semibold: 600;
|
||||
}
|
||||
|
||||
.page-header-primary {
|
||||
background: linear-gradient(135deg, $primary-600 0%, $primary-700 100%);
|
||||
box-shadow: 0 4px 16px rgba(255, 165, 50, 0.2);
|
||||
background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
|
||||
box-shadow: 0 4px 16px rgba(58, 97, 201, 0.2);
|
||||
}
|
||||
|
||||
.page-header-secondary {
|
||||
background: linear-gradient(135deg, $secondary-600 0%, $secondary-700 100%);
|
||||
box-shadow: 0 4px 16px rgba(6, 113, 224, 0.2);
|
||||
background: linear-gradient(135deg, var(--color-secondary-600) 0%, var(--color-secondary-700) 100%);
|
||||
box-shadow: 0 4px 16px rgba(241, 111, 41, 0.2);
|
||||
}
|
||||
|
||||
.page-header-success {
|
||||
background: linear-gradient(135deg, $success-600 0%, $success-700 100%);
|
||||
box-shadow: 0 4px 16px rgba(0, 146, 98, 0.2);
|
||||
background: linear-gradient(135deg, var(--color-success-600) 0%, var(--color-success-700) 100%);
|
||||
box-shadow: 0 4px 16px rgba(51, 164, 132, 0.2);
|
||||
}
|
||||
|
||||
.page-header-accent {
|
||||
background: linear-gradient(135deg, $accent-600 0%, $accent-700 100%);
|
||||
box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
|
||||
// Accent tidak ada di design system, menggunakan secondary sebagai fallback
|
||||
background: linear-gradient(135deg, var(--color-secondary-500) 0%, var(--color-secondary-600) 100%);
|
||||
box-shadow: 0 4px 16px rgba(255, 132, 65, 0.2);
|
||||
}
|
||||
|
||||
.page-header-warning {
|
||||
background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
|
||||
box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
|
||||
// Warning tidak ada di design system, menggunakan secondary (orange) sebagai fallback
|
||||
background: linear-gradient(135deg, var(--color-secondary-600) 0%, var(--color-secondary-700) 100%);
|
||||
box-shadow: 0 4px 16px rgba(241, 111, 41, 0.2);
|
||||
}
|
||||
|
||||
.header-content {
|
||||
@@ -109,7 +100,7 @@ $font-weight-semibold: 600;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20px 28px;
|
||||
color: $neutral-100;
|
||||
color: var(--color-neutral-100);
|
||||
}
|
||||
|
||||
.header-left {
|
||||
@@ -130,7 +121,7 @@ $font-weight-semibold: 600;
|
||||
line-height: 40px;
|
||||
font-weight: $font-weight-semibold;
|
||||
margin: 0;
|
||||
color: $neutral-100;
|
||||
color: var(--color-neutral-100);
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
@@ -140,7 +131,7 @@ $font-weight-semibold: 600;
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
font-weight: $font-weight-regular;
|
||||
color: $neutral-100;
|
||||
color: var(--color-neutral-100);
|
||||
}
|
||||
|
||||
.add-btn {
|
||||
@@ -152,22 +143,24 @@ $font-weight-semibold: 600;
|
||||
}
|
||||
|
||||
.add-btn-primary {
|
||||
color: $primary-600 !important;
|
||||
color: var(--color-primary-600) !important;
|
||||
}
|
||||
|
||||
.add-btn-secondary {
|
||||
color: $secondary-600 !important;
|
||||
color: var(--color-secondary-600) !important;
|
||||
}
|
||||
|
||||
.add-btn-success {
|
||||
color: $success-600 !important;
|
||||
color: var(--color-success-600) !important;
|
||||
}
|
||||
|
||||
.add-btn-accent {
|
||||
color: $accent-600 !important;
|
||||
// Accent tidak ada di design system, menggunakan secondary sebagai fallback
|
||||
color: var(--color-secondary-500) !important;
|
||||
}
|
||||
|
||||
.add-btn-warning {
|
||||
color: $warning-600 !important;
|
||||
// Warning tidak ada di design system, menggunakan secondary (orange) sebagai fallback
|
||||
color: var(--color-secondary-600) !important;
|
||||
}
|
||||
</style>
|
||||
@@ -5,8 +5,8 @@
|
||||
<div class="section-label">SEDANG DIPROSES</div>
|
||||
<v-btn
|
||||
v-if="patient"
|
||||
class="call-button"
|
||||
color="primary-600"
|
||||
class="call-button text-white"
|
||||
color="primary-500"
|
||||
variant="flat"
|
||||
size="small"
|
||||
@click="$emit('call')"
|
||||
@@ -17,29 +17,107 @@
|
||||
</div>
|
||||
|
||||
<div v-if="patient" class="patient-details" :class="`patient-details-${theme}`">
|
||||
<div class="patient-number mb-2">{{ patient.noAntrian.split(" |")[0] }}</div>
|
||||
<div class="patient-info-text mb-3">
|
||||
<div>{{ patient.barcode }}</div>
|
||||
<div>{{ patient.klinik }} | {{ patient.pembayaran }}</div>
|
||||
<div class="patient-header">
|
||||
<div class="patient-number-wrapper">
|
||||
<div class="patient-number">{{ patient.noAntrian.split(" |")[0] }}</div>
|
||||
<div
|
||||
v-if="isFastTrack"
|
||||
class="fast-track-icon-wrapper"
|
||||
>
|
||||
<v-icon
|
||||
color="#E53935"
|
||||
size="18"
|
||||
class="fast-track-icon"
|
||||
>
|
||||
mdi-flash
|
||||
</v-icon>
|
||||
</div>
|
||||
</div>
|
||||
<div class="action-icons">
|
||||
<v-tooltip :text="changeButtonText" location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
v-bind="props"
|
||||
class="action-icon-btn text-white"
|
||||
color="secondary-600"
|
||||
variant="flat"
|
||||
size="small"
|
||||
@click="$emit('change-klinik')"
|
||||
>
|
||||
<v-icon size="18">mdi-swap-horizontal</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
</v-tooltip>
|
||||
<v-tooltip text="Terlambat" location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
v-bind="props"
|
||||
class="action-icon-btn text-white"
|
||||
color="primary-600"
|
||||
variant="flat"
|
||||
size="small"
|
||||
@click="$emit('action', 'terlambat')"
|
||||
>
|
||||
<v-icon size="18">mdi-clock-alert</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
</v-tooltip>
|
||||
<v-tooltip text="Pending" location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
v-bind="props"
|
||||
class="action-icon-btn text-white"
|
||||
color="danger-600"
|
||||
variant="flat"
|
||||
size="small"
|
||||
@click="$emit('action', 'pending')"
|
||||
>
|
||||
<v-icon size="18">mdi-pause</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
</v-tooltip>
|
||||
<v-tooltip text="Selesai" location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
v-bind="props"
|
||||
class="action-icon-btn text-white"
|
||||
color="success-600"
|
||||
variant="flat"
|
||||
size="small"
|
||||
@click="$emit('action', 'check-in')"
|
||||
>
|
||||
<v-icon size="18">mdi-check</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
</v-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
<div class="patient-info-text">
|
||||
<div class="patient-barcode">{{ patient.barcode }}</div>
|
||||
<div class="patient-klinik-pembayaran">{{ patient.klinik }} | {{ patient.pembayaran }}</div>
|
||||
</div>
|
||||
|
||||
<div class="action-grid">
|
||||
<v-btn class="text-white" color="success-600" variant="flat" block size="large" @click="$emit('action', 'check-in')">
|
||||
<v-icon start size="20">mdi-check</v-icon>
|
||||
Selesai
|
||||
</v-btn>
|
||||
<v-btn class="text-white" color="primary-600" variant="flat" block size="large" @click="$emit('action', 'terlambat')">
|
||||
<v-icon start size="20">mdi-clock-alert</v-icon>
|
||||
Terlambat
|
||||
</v-btn>
|
||||
<v-btn class="text-white" color="danger-600" variant="flat" block size="large" @click="$emit('action', 'pending')">
|
||||
<v-icon start size="20">mdi-pause</v-icon>
|
||||
Pending
|
||||
</v-btn>
|
||||
<v-btn class="text-white" color="secondary-600" variant="flat" block size="large" @click="$emit('change-klinik')">
|
||||
<v-icon start size="20">mdi-swap-horizontal</v-icon>
|
||||
{{ changeButtonText }}
|
||||
</v-btn>
|
||||
<div class="create-queue-buttons mt-4">
|
||||
<div class="create-buttons-container">
|
||||
<v-btn
|
||||
class="create-btn-ruang py-6 text-white"
|
||||
color="primary-600"
|
||||
:disabled="!patient"
|
||||
@click="$emit('open-klinik-ruang')"
|
||||
>
|
||||
<v-icon size="20" class="mr-2">mdi-door</v-icon>
|
||||
Buat Antrean Ruang
|
||||
</v-btn>
|
||||
<v-btn
|
||||
class="create-btn-penunjang py-6 text-white"
|
||||
color="secondary-600"
|
||||
:disabled="!patient"
|
||||
@click="$emit('open-penunjang')"
|
||||
>
|
||||
<v-icon size="20" class="mr-2">mdi-clipboard-pulse</v-icon>
|
||||
Buat Antrean Penunjang
|
||||
</v-btn>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -69,7 +147,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
defineProps({
|
||||
import { computed } from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
patient: {
|
||||
type: Object,
|
||||
default: null
|
||||
@@ -93,7 +173,13 @@ defineProps({
|
||||
}
|
||||
});
|
||||
|
||||
defineEmits(['action', 'change-klinik', 'process-next', 'call']);
|
||||
const isFastTrack = computed(() => {
|
||||
if (!props.patient) return false;
|
||||
const fastTrack = (props.patient.fastTrack ?? "").toString().trim().toUpperCase();
|
||||
return fastTrack === 'YA';
|
||||
});
|
||||
|
||||
defineEmits(['action', 'change-klinik', 'process-next', 'call', 'open-klinik-ruang', 'open-penunjang']);
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@@ -138,11 +224,11 @@ defineEmits(['action', 'change-klinik', 'process-next', 'call']);
|
||||
|
||||
.patient-details {
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.patient-details-primary {
|
||||
background: linear-gradient(135deg, var(--color-primary-200) 0%, var(--color-primary-300) 100%);
|
||||
background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-primary-100) 100%);
|
||||
}
|
||||
|
||||
.patient-details-secondary {
|
||||
@@ -153,6 +239,20 @@ defineEmits(['action', 'change-klinik', 'process-next', 'call']);
|
||||
background: linear-gradient(135deg, var(--color-accent-200) 0%, var(--color-accent-300) 100%);
|
||||
}
|
||||
|
||||
.patient-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 24px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.patient-number-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.patient-number {
|
||||
font-size: 28px;
|
||||
line-height: 36px;
|
||||
@@ -161,40 +261,154 @@ defineEmits(['action', 'change-klinik', 'process-next', 'call']);
|
||||
color: var(--color-neutral-900);
|
||||
}
|
||||
|
||||
.patient-info-text {
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
color: var(--color-neutral-700);
|
||||
.fast-track-icon-wrapper {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(239, 83, 80, 0.15);
|
||||
border: 2px solid rgba(229, 57, 53, 0.4);
|
||||
transition: all 0.2s ease;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 2px 8px rgba(229, 57, 53, 0.2);
|
||||
}
|
||||
|
||||
.action-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
.fast-track-icon-wrapper:hover {
|
||||
background: #E53935;
|
||||
border-color: #E53935;
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
|
||||
}
|
||||
|
||||
.action-grid .v-btn {
|
||||
text-transform: none;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
.fast-track-icon-wrapper .fast-track-icon {
|
||||
color: #E53935 !important;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.action-grid .v-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
||||
.fast-track-icon-wrapper:hover .fast-track-icon {
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
.action-grid .v-btn:active {
|
||||
.action-icons {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.action-icon-btn {
|
||||
min-width: 48px !important;
|
||||
width: 48px !important;
|
||||
height: 36px !important;
|
||||
padding: 0 !important;
|
||||
border-radius: 18px !important;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.action-icon-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
|
||||
.action-icon-btn:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.action-grid .v-btn:disabled {
|
||||
opacity: 0.6;
|
||||
.patient-info-text {
|
||||
font-size: 14px;
|
||||
line-height: 24px;
|
||||
color: var(--color-neutral-700);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.patient-barcode {
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
color: var(--color-neutral-700);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.patient-klinik-pembayaran {
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
color: var(--color-neutral-800);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.create-queue-buttons {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.create-buttons-container {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.create-queue-buttons .v-btn {
|
||||
flex: 1;
|
||||
text-transform: none;
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
|
||||
transition: all 0.2s ease;
|
||||
border-radius: 8px;
|
||||
justify-content: center !important;
|
||||
text-align: center;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
|
||||
.create-queue-buttons .v-btn :deep(.v-btn__content) {
|
||||
justify-content: center !important;
|
||||
width: 100%;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.create-queue-buttons .v-btn :deep(.v-icon) {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.create-btn-ruang {
|
||||
background-color: var(--color-primary-600) !important;
|
||||
color: var(--color-neutral-100) !important;
|
||||
}
|
||||
|
||||
.create-btn-ruang:hover:not(:disabled) {
|
||||
background-color: var(--color-primary-700) !important;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 10px rgba(58, 97, 201, 0.25);
|
||||
}
|
||||
|
||||
.create-btn-penunjang {
|
||||
background-color: var(--color-secondary-600) !important;
|
||||
color: var(--color-neutral-100) !important;
|
||||
}
|
||||
|
||||
.create-btn-penunjang:hover:not(:disabled) {
|
||||
background-color: var(--color-secondary-700) !important;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 10px rgba(241, 111, 41, 0.25);
|
||||
}
|
||||
|
||||
.create-queue-buttons .v-btn:active:not(:disabled) {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
.create-queue-buttons .v-btn:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
@@ -247,8 +461,29 @@ defineEmits(['action', 'change-klinik', 'process-next', 'call']);
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.action-grid {
|
||||
grid-template-columns: 1fr;
|
||||
.patient-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.action-icons {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.action-icon-btn {
|
||||
flex: 1 1 calc(50% - 3px);
|
||||
min-width: 0 !important;
|
||||
max-width: calc(50% - 3px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.create-buttons-container {
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -20,14 +20,18 @@
|
||||
<div class="card-header">
|
||||
<div class="header-left">
|
||||
<div class="queue-number">{{ patient.noAntrian.split(" |")[0] }}</div>
|
||||
<v-icon
|
||||
<div
|
||||
v-if="isFastTrack"
|
||||
color="warning"
|
||||
size="20"
|
||||
class="fast-track-icon"
|
||||
class="fast-track-icon-wrapper"
|
||||
>
|
||||
mdi-flash
|
||||
</v-icon>
|
||||
<v-icon
|
||||
color="#E53935"
|
||||
size="14"
|
||||
class="fast-track-icon"
|
||||
>
|
||||
mdi-flash
|
||||
</v-icon>
|
||||
</div>
|
||||
</div>
|
||||
<v-chip
|
||||
:color="getStatusColor(patient.status)"
|
||||
@@ -38,39 +42,31 @@
|
||||
</v-chip>
|
||||
</div>
|
||||
|
||||
<!-- Patient Info Grid - Simplified -->
|
||||
<!-- Patient Info - Compact Single Row -->
|
||||
<div class="patient-info mt-3">
|
||||
<div class="info-row">
|
||||
<span class="info-label">Jam Panggil:</span>
|
||||
<span class="info-value">{{ patient.jamPanggil }}</span>
|
||||
</div>
|
||||
|
||||
<div class="info-row">
|
||||
<span class="info-label">Klinik:</span>
|
||||
<v-chip size="small" variant="outlined" class="klinik-chip">
|
||||
{{ patient.klinik }}
|
||||
</v-chip>
|
||||
</div>
|
||||
|
||||
<div v-if="patient.tipeLayanan" class="info-row">
|
||||
<span class="info-label">Tipe Layanan:</span>
|
||||
<div class="info-chips-row">
|
||||
<v-chip
|
||||
size="small"
|
||||
:color="patient.tipeLayanan === 'Pemeriksaan Awal' ? 'primary' : 'secondary'"
|
||||
class="text-white"
|
||||
variant="outlined"
|
||||
class="klinik-chip"
|
||||
>
|
||||
{{ patient.tipeLayanan }}
|
||||
{{ patient.klinik }}
|
||||
</v-chip>
|
||||
<!-- Tipe Layanan atau Jenis Pasien -->
|
||||
<v-chip
|
||||
v-if="displayJenisPasien"
|
||||
size="small"
|
||||
:color="getJenisPasienColor(displayJenisPasien)"
|
||||
:variant="getJenisPasienVariant(displayJenisPasien)"
|
||||
:class="getJenisPasienClass(displayJenisPasien)"
|
||||
>
|
||||
{{ displayJenisPasien }}
|
||||
</v-chip>
|
||||
</div>
|
||||
|
||||
<div v-if="patient.ruang" class="info-row">
|
||||
<span class="info-label">Ruang:</span>
|
||||
<span class="info-value">{{ patient.ruang }}</span>
|
||||
</div>
|
||||
|
||||
<div class="info-row">
|
||||
<span class="info-label">Pembayaran:</span>
|
||||
<span class="info-value">{{ patient.pembayaran }}</span>
|
||||
<!-- Nama Dokter untuk Pasien Eksekutif -->
|
||||
<div v-if="isEksekutif && patient.namaDokter" class="doctor-info mt-2">
|
||||
<v-icon size="16" color="primary" class="doctor-icon">mdi-doctor</v-icon>
|
||||
<span class="doctor-name">{{ patient.namaDokter }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -115,6 +111,53 @@ const isFastTrack = computed(() => {
|
||||
return fastTrack === 'YA';
|
||||
});
|
||||
|
||||
const isEksekutif = computed(() => {
|
||||
const pembayaran = (props.patient.pembayaran ?? "").toString().trim().toUpperCase();
|
||||
return pembayaran === 'EKSEKUTIF';
|
||||
});
|
||||
|
||||
// Computed untuk menentukan jenis pasien yang ditampilkan
|
||||
const displayJenisPasien = computed(() => {
|
||||
// Prioritas 1: Tipe Layanan jika ada
|
||||
if (props.patient.tipeLayanan) {
|
||||
return props.patient.tipeLayanan;
|
||||
}
|
||||
// Prioritas 2: Eksekutif jika pasien eksekutif
|
||||
if (isEksekutif.value) {
|
||||
return 'Eksekutif';
|
||||
}
|
||||
// Prioritas 3: Tampilkan pembayaran sebagai fallback
|
||||
if (props.patient.pembayaran) {
|
||||
return props.patient.pembayaran;
|
||||
}
|
||||
return null;
|
||||
});
|
||||
|
||||
// Fungsi untuk menentukan color chip berdasarkan jenis pasien
|
||||
const getJenisPasienColor = (jenis) => {
|
||||
if (jenis === 'Pemeriksaan Awal') return 'primary';
|
||||
if (jenis === 'Tindakan') return 'secondary';
|
||||
if (jenis === 'Eksekutif') return 'warning';
|
||||
if (jenis === 'Fast Track') return 'warning';
|
||||
// Untuk pembayaran biasa (BPJS, UMUM), gunakan neutral-600 untuk kontras
|
||||
return 'success-500';
|
||||
};
|
||||
|
||||
// Fungsi untuk menentukan variant chip berdasarkan jenis pasien
|
||||
const getJenisPasienVariant = (jenis) => {
|
||||
// Semua jenis pasien menggunakan flat (filled) untuk kontras dengan klinik (outlined)
|
||||
return 'flat';
|
||||
};
|
||||
|
||||
// Fungsi untuk menentukan class chip berdasarkan jenis pasien
|
||||
const getJenisPasienClass = (jenis) => {
|
||||
if (jenis === 'Pemeriksaan Awal' || jenis === 'Tindakan' || jenis === 'Eksekutif' || jenis === 'Fast Track') {
|
||||
return 'text-white layanan-chip';
|
||||
}
|
||||
// Untuk pembayaran biasa (BPJS, UMUM), gunakan text putih untuk kontras dengan background
|
||||
return 'text-white layanan-chip';
|
||||
};
|
||||
|
||||
const handleCardClick = () => {
|
||||
if (isClickable.value) {
|
||||
emit('action', props.patient, 'proses');
|
||||
@@ -171,12 +214,12 @@ const getStatusLabel = (status) => {
|
||||
}
|
||||
|
||||
&.fast-track-card {
|
||||
background: rgba(255, 230, 198, 0.35) !important;
|
||||
border-color: rgba(255, 185, 95, 0.4);
|
||||
background: #FBE9E8 !important;
|
||||
border-color: rgba(255, 132, 65, 0.5);
|
||||
|
||||
&:hover {
|
||||
background: rgba(255, 230, 198, 0.45) !important;
|
||||
border-color: rgba(255, 185, 95, 0.5);
|
||||
background: #F1B3AE !important;
|
||||
border-color: rgba(255, 132, 65, 0.6);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -201,17 +244,24 @@ const getStatusLabel = (status) => {
|
||||
color: var(--color-neutral-900);
|
||||
}
|
||||
|
||||
.fast-track-icon {
|
||||
animation: pulse 2s ease-in-out infinite;
|
||||
.fast-track-icon-wrapper {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(239, 83, 80, 0.15);
|
||||
border: 2px solid rgba(229, 57, 53, 0.4);
|
||||
transition: all 0.2s ease;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 2px 8px rgba(229, 57, 53, 0.2);
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% {
|
||||
opacity: 1;
|
||||
}
|
||||
50% {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.fast-track-icon-wrapper .fast-track-icon {
|
||||
color: #E53935 !important;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.status-chip {
|
||||
@@ -223,46 +273,45 @@ const getStatusLabel = (status) => {
|
||||
.patient-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
/* Tinggi dinamis berdasarkan konten - card tanpa dokter akan lebih compact */
|
||||
}
|
||||
|
||||
.info-row {
|
||||
.info-chips-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 13px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.payment-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.fast-track-badge {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
height: 20px;
|
||||
padding: 0 6px;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
color: var(--color-neutral-600);
|
||||
font-weight: 500;
|
||||
min-width: 90px;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
color: var(--color-neutral-900);
|
||||
font-weight: 600;
|
||||
text-align: right;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.klinik-chip {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
border: 1.5px solid currentColor;
|
||||
height: 24px;
|
||||
border-color: var(--color-neutral-600) !important;
|
||||
color: var(--color-neutral-900) !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.layanan-chip {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.doctor-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.doctor-icon {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.doctor-name {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--color-primary-600);
|
||||
}
|
||||
|
||||
.card-actions .v-btn {
|
||||
|
||||
@@ -200,7 +200,7 @@ const props = defineProps({
|
||||
},
|
||||
itemsPerPage: {
|
||||
type: Number,
|
||||
default: 9
|
||||
default: 12
|
||||
},
|
||||
statusLabels: {
|
||||
type: Object,
|
||||
|
||||
@@ -157,8 +157,36 @@
|
||||
>
|
||||
<!-- Left Section: Number and Status -->
|
||||
<div class="patient-card-left">
|
||||
<div class="patient-queue-number">
|
||||
{{ patient.noAntrian?.split(" |")[0] || patient.barcode || '-' }}
|
||||
<div class="patient-queue-number-wrapper">
|
||||
<div class="patient-queue-number">
|
||||
{{ patient.noAntrian?.split(" |")[0] || patient.barcode || '-' }}
|
||||
</div>
|
||||
<div class="patient-status-icons">
|
||||
<div
|
||||
v-if="patient.status === 'pending'"
|
||||
class="status-icon-wrapper status-icon-pending"
|
||||
>
|
||||
<v-icon
|
||||
color="var(--color-danger-600)"
|
||||
size="14"
|
||||
class="status-icon"
|
||||
>
|
||||
mdi-pause
|
||||
</v-icon>
|
||||
</div>
|
||||
<div
|
||||
v-if="(patient.fastTrack ?? '').toString().trim().toUpperCase() === 'YA'"
|
||||
class="status-icon-wrapper status-icon-fast-track"
|
||||
>
|
||||
<v-icon
|
||||
color="#E53935"
|
||||
size="14"
|
||||
class="status-icon"
|
||||
>
|
||||
mdi-flash
|
||||
</v-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="patient-queue-status-chips">
|
||||
<!-- Compact status indicators - only show icons if called -->
|
||||
@@ -584,7 +612,7 @@
|
||||
<span class="detail-label">Fast Track</span>
|
||||
<v-chip
|
||||
size="small"
|
||||
:color="selectedPatientDetail.fastTrack === 'YA' ? 'warning-600' : 'neutral-500'"
|
||||
:color="selectedPatientDetail.fastTrack === 'YA' ? 'danger-600' : 'neutral-500'"
|
||||
variant="flat"
|
||||
class="detail-chip"
|
||||
>
|
||||
@@ -1571,16 +1599,18 @@ const paginatedAllPatients = (ruang) => {
|
||||
// Helper untuk menentukan class card berdasarkan status pasien
|
||||
const getPatientCardClass = (patient) => {
|
||||
const baseClass = 'patient-queue-item';
|
||||
// Pasien dengan status pending: warna merah
|
||||
if (patient.status === 'pending') {
|
||||
return `${baseClass} patient-queue-item-pending-status`;
|
||||
}
|
||||
const isFastTrack = (patient.fastTrack ?? '').toString().trim().toUpperCase() === 'YA';
|
||||
|
||||
// Pasien yang sudah digenerate/diproses: warna berbeda
|
||||
if (patient.tipeLayanan || patient.calledPemeriksaanAwal || patient.calledTindakan) {
|
||||
return `${baseClass} patient-queue-item-processed`;
|
||||
return isFastTrack
|
||||
? `${baseClass} patient-queue-item-processed patient-queue-item-fast-track`
|
||||
: `${baseClass} patient-queue-item-processed`;
|
||||
}
|
||||
// Pasien yang perlu digenerate: warna default
|
||||
return `${baseClass} patient-queue-item-default`;
|
||||
// Pasien yang perlu digenerate: warna default atau fast track
|
||||
return isFastTrack
|
||||
? `${baseClass} patient-queue-item-default patient-queue-item-fast-track`
|
||||
: `${baseClass} patient-queue-item-default`;
|
||||
};
|
||||
|
||||
|
||||
@@ -2111,20 +2141,6 @@ onMounted(() => {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Pasien dengan status pending: warna merah soft */
|
||||
.patient-queue-item-pending-status {
|
||||
background: var(--color-danger-200) !important;
|
||||
border: 1px solid var(--color-danger-300) !important;
|
||||
cursor: default;
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
.patient-queue-item-pending-status:hover {
|
||||
background: var(--color-danger-200) !important;
|
||||
border-color: var(--color-danger-300) !important;
|
||||
transform: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
/* Pasien yang sudah digenerate/diproses */
|
||||
.patient-queue-item-processed {
|
||||
@@ -2148,6 +2164,39 @@ onMounted(() => {
|
||||
border-color: var(--color-neutral-400);
|
||||
}
|
||||
|
||||
/* Pasien fast track - harus setelah processed dan default agar bisa override */
|
||||
.patient-queue-item-fast-track {
|
||||
background: #FBE9E8 !important;
|
||||
border-color: rgba(255, 132, 65, 0.5) !important;
|
||||
}
|
||||
|
||||
.patient-queue-item-fast-track:hover {
|
||||
background: #F1B3AE !important;
|
||||
border-color: rgba(255, 132, 65, 0.6) !important;
|
||||
}
|
||||
|
||||
/* Fast track dengan processed - override processed styling */
|
||||
.patient-queue-item-processed.patient-queue-item-fast-track {
|
||||
background: #FBE9E8 !important;
|
||||
border-color: rgba(255, 132, 65, 0.5) !important;
|
||||
}
|
||||
|
||||
.patient-queue-item-processed.patient-queue-item-fast-track:hover {
|
||||
background: #F1B3AE !important;
|
||||
border-color: rgba(255, 132, 65, 0.6) !important;
|
||||
}
|
||||
|
||||
/* Fast track dengan default - override default styling */
|
||||
.patient-queue-item-default.patient-queue-item-fast-track {
|
||||
background: #FBE9E8 !important;
|
||||
border-color: rgba(255, 132, 65, 0.5) !important;
|
||||
}
|
||||
|
||||
.patient-queue-item-default.patient-queue-item-fast-track:hover {
|
||||
background: #F1B3AE !important;
|
||||
border-color: rgba(255, 132, 65, 0.6) !important;
|
||||
}
|
||||
|
||||
/* Left Section: Number and Status */
|
||||
.patient-card-left {
|
||||
display: flex;
|
||||
@@ -2159,6 +2208,12 @@ onMounted(() => {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.patient-queue-number-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.patient-queue-number {
|
||||
font-size: 20px;
|
||||
line-height: 28px;
|
||||
@@ -2170,6 +2225,50 @@ onMounted(() => {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.patient-status-icons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.status-icon-wrapper {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s ease;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.status-icon-wrapper .status-icon {
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
/* Fast Track Icon Styling */
|
||||
.status-icon-fast-track {
|
||||
background: rgba(239, 83, 80, 0.15);
|
||||
border: 2px solid rgba(229, 57, 53, 0.4);
|
||||
box-shadow: 0 2px 8px rgba(229, 57, 53, 0.2);
|
||||
}
|
||||
|
||||
.status-icon-fast-track .status-icon {
|
||||
color: #E53935 !important;
|
||||
}
|
||||
|
||||
/* Pending Icon Styling */
|
||||
.status-icon-pending {
|
||||
background: rgba(222, 71, 59, 0.15);
|
||||
border: 2px solid rgba(216, 39, 25, 0.4);
|
||||
box-shadow: 0 2px 8px rgba(216, 39, 25, 0.2);
|
||||
}
|
||||
|
||||
.status-icon-pending .status-icon {
|
||||
color: var(--color-danger-600) !important;
|
||||
}
|
||||
|
||||
.patient-queue-status-chips {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
|
||||
+2
-79
@@ -23,6 +23,8 @@
|
||||
@change-klinik="showChangeKlinikDialog = true"
|
||||
@process-next="handleProcessNext"
|
||||
@call="handleCallPatient"
|
||||
@open-klinik-ruang="openKlinikRuangDialog"
|
||||
@open-penunjang="openPenunjangDialog"
|
||||
/>
|
||||
|
||||
<!-- Queue Actions Card -->
|
||||
@@ -34,37 +36,6 @@
|
||||
:has-next="!!nextPatient"
|
||||
@call="handleCall"
|
||||
/>
|
||||
|
||||
<!-- Create Queue Buttons -->
|
||||
<div class="create-buttons mt-3">
|
||||
<v-row no-gutters>
|
||||
<v-col cols="6" class="pr-2">
|
||||
<v-btn
|
||||
block
|
||||
class="py-6"
|
||||
color="warning"
|
||||
:disabled="!currentProcessingPatient"
|
||||
@click="openKlinikRuangDialog()"
|
||||
>
|
||||
<v-icon start>mdi-door</v-icon>
|
||||
Buat Antrean Ruang
|
||||
</v-btn>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="6" class="pl-2">
|
||||
<v-btn
|
||||
block
|
||||
class="py-6 text-white"
|
||||
color="secondary-600"
|
||||
:disabled="!currentProcessingPatient"
|
||||
@click="openPenunjangDialog()"
|
||||
>
|
||||
<v-icon start>mdi-clipboard-pulse</v-icon>
|
||||
Buat Antrean Penunjang
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</div>
|
||||
</v-col>
|
||||
|
||||
@@ -536,54 +507,6 @@ const buatAntreanKlinikRuang = async (klinikRuang, ruang) => {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.create-buttons {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.create-buttons :deep(.v-row) {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.create-buttons :deep(.v-col) {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.create-buttons :deep(.v-col:first-child) {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.create-buttons :deep(.v-col:last-child) {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.create-buttons .v-btn {
|
||||
text-transform: none;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
min-width: 0;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.create-buttons .v-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.create-buttons .v-btn:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.sticky-wrapper {
|
||||
position: sticky;
|
||||
top: 16px;
|
||||
|
||||
Reference in New Issue
Block a user