Composable for contact (khách hàng) management: - List with filters, pagination - CRUD operations - CRM pipeline status /
/**
* Composable for contact (khách hàng) management:
* - List with filters, pagination
* - CRUD operations
* - CRM pipeline status
*/
import { ref, reactive } from 'vue';
import { api } from '@/api/index';
export interface Contact {
id: string;
fullName: string | null;
phone: string | null;
email?: string | null;
avatarUrl?: string | null;
source: string | null;
status: string | null;
nextAppointment: string | null;
notes: string | null;
tags: string[];
assignedUserId?: string | null;
assignedUser?: { fullName: string } | null;
createdAt?: string;
firstContactDate?: string | null;
}
export interface ContactFilters {
search: string;
source: string;
status: string;
}
export const SOURCE_OPTIONS = [
{ text: 'Facebook', value: 'FB' },
{ text: 'Tik
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key