Merge branch 'dev' of ssh://git.codelfi.com:2202/TelemedPro/hgh_admin into dev

This commit is contained in:
Inshal 2024-06-12 03:14:18 +05:00
commit 33b817aabe
8 changed files with 46 additions and 34 deletions

View File

@ -22,7 +22,7 @@ const hideTitleAndBadge = configStore.isVerticalNavMini()
<template>
<li
v-if="can(item.action, item.subject)"
class="nav-link 22"
class="nav-link"
:class="{ disabled: item.disable }"
>
<Component

View File

@ -47,7 +47,7 @@ export default [
},
{
title: 'Medicines',
title: 'Prodcuts',
icon: { icon: 'ri-medicine-bottle-line' },
to: 'admin-medicines',
},

View File

@ -74,10 +74,10 @@ const headers = [
title: 'Title',
key: 'title',
},
{
title: 'Slug',
key: 'slug',
},
// {
// title: 'Slug',
// key: 'slug',
// },
{
title: 'Price',
key: 'price',
@ -371,14 +371,14 @@ onMounted(() => {
<template>
<v-row>
<v-col cols="12" md="12" v-if="getmedicineList">
<VCard title="Medicines">
<VCard title="Products">
<VCardText >
<VRow>
<VCol cols="12" md="8" class="d-flex align-center">
<VBtn color="primary" prepend-icon="ri-add-line" @click="addDialog = true" style="display: none;">
New Medicine
New Product
</VBtn>
</VCol>
<VCol cols="12" md="4" class="d-flex justify-end">

View File

@ -47,7 +47,7 @@ const headers = [
{ key: 'start_time', title: 'Start Time' },
{ key: 'end_time', title: 'End Time' },
{ key: 'duration', title: 'Duration' },
{ title: 'ACTIONS', key: 'actions' },
// { title: 'ACTIONS', key: 'actions' },
];

View File

@ -1,4 +1,6 @@
<script setup>
const profile = ref(0)
const color = ref(0)
const props = defineProps({
userData: {
type: Object,
@ -66,7 +68,18 @@ const resolveUserRoleVariant = role => {
const lines = props.userData.plans.list_two_title.split(',')
return lines.slice(0, 3)
})
onMounted(async () => {
profile.value = props.userData.patient.profile_completion_Percentage
if (profile.value <= 50) {
color.value="rgb(var(--v-theme-error))"
}
if (profile.value >= 80) {
color.value="rgb(var(--v-theme-success))"
}
if (profile.value > 50 && profile.value < 80) {
color.value="rgb(var(--v-theme-warning))"
}
});
</script>
<template>
@ -100,25 +113,29 @@ const resolveUserRoleVariant = role => {
</h5>
<!-- 👉 Role chip -->
<VChip
:color="resolveUserRoleVariant('Patient').color"
size="small"
class="text-capitalize mt-4"
>
Patient
</VChip>
<VChip
size="small"
:color="resolveUserStatusVariant('active')"
class="text-capitalize mt-4"
>
Active
</VChip>
<div class="mt-3">
<span class="font-weight-medium" style="float: left;">
Profile Status:
</span>
<VProgressLinear
v-model="profile"
:color="color"
height="14"
striped
>
<template #default="{ value }">
<span>{{ Math.ceil(value) }}%</span>
</template>
</VProgressLinear>
</div>
</VCardText>
<!-- 👉 Details -->
<VCardText class="pb-6">
<h5 class="text-h5">
Details

View File

@ -95,20 +95,14 @@ const resolveUserRoleVariant = role => {
</h5>
<!-- 👉 Role chip -->
<VChip
:color="resolveUserRoleVariant('Provider').color"
size="small"
class="text-capitalize mt-4"
>
Provider
</VChip>
<VChip
<!-- <VChip
:color="resolveUserStatusVariant(props.userData.telemed.status==1?'Active':'InActive')"
size="small"
class="text-capitalize mt-4"
>
{{ props.userData.telemed.status==1?"Active":'InActive' }}
</VChip>
</VChip>-->
</VCardText>

View File

@ -109,7 +109,7 @@ export const routes = [
component: () => import('@/pages/labs/labs-kit.vue'),
},
{
path: '/admin/medicines',
path: '/admin/products',
name: 'admin-medicines',
component: () => import('@/pages/medicines/medicines.vue'),
},

View File

@ -157,6 +157,7 @@
"Fleet": "Fleet",
"Widgets": "Widgets",
"Patients": "Patients",
"Lab Kites": "Lab Kites",
"Providers": "Providers",
"Labs": "Labs",
"Medicines": "Medicines",