feat: changes

This commit is contained in:
Ron
2025-05-29 08:32:13 +03:00
parent 867ba7746d
commit b4313dd815
11 changed files with 797 additions and 46 deletions

View File

@@ -0,0 +1,44 @@
<template>
<v-chip :color="badgeColor" small>
{{ salesProcessLevel }}
</v-chip>
</template>
<script lang="ts" setup>
import { defineProps, computed } from "vue";
type InterestSalesProcessLevel =
| "General Qualified Interest"
| "Specific Qualified Interest"
| "LOI and NDA Sent"
| "Signed LOI and NDA"
| "Made Reservation"
| "Contract Negotiation"
| "Contract Negotiations Finalized"
| "Contract Signed";
const props = defineProps<{
salesProcessLevel: InterestSalesProcessLevel;
}>();
const colorMapping: Record<InterestSalesProcessLevel, string> = {
"General Qualified Interest": "blue",
"Specific Qualified Interest": "green",
"LOI and NDA Sent": "orange",
"Signed LOI and NDA": "purple",
"Made Reservation": "pink",
"Contract Negotiation": "brown",
"Contract Negotiations Finalized": "teal",
"Contract Signed": "indigo",
};
const badgeColor = computed(() => {
return colorMapping[props.salesProcessLevel] || "grey";
});
</script>
<style scoped>
.v-chip {
font-size: 0.8rem;
}
</style>

View File

@@ -0,0 +1,28 @@
<template>
<v-chip :color="badgeColor" small>
{{ leadCategory }}
</v-chip>
</template>
<script lang="ts" setup>
import { defineProps, computed } from 'vue';
const props = defineProps<{
leadCategory: string;
}>();
const colorMapping: Record<string, string> = {
"General": "cyan",
"Friends and Family": "light-green"
};
const badgeColor = computed(() => {
return colorMapping[props.leadCategory] || 'grey';
});
</script>
<style scoped>
.v-chip {
font-size: 0.8rem;
}
</style>