krona-front/src/core/profiles/profiles.ts

635 lines
25 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { BusinessProfile } from './types';
export const BUSINESS_PROFILES: Record<string, BusinessProfile> = {
restaurant_hall_delivery: {
id: 'restaurant_hall_delivery',
name: 'Ресторан: Зал + Доставка',
label: 'Суши & Гёдза (Зал + Доставка)',
category: 'Общепит',
companyName: 'Суши & Гёдза',
locations: ['Горский 1/1', 'Красный пр-т 186а'],
capabilities: {
crm: true,
sales: true,
communications: true,
helpdesk: true,
tasks: true,
cms: true,
marketing: true,
analytics: true,
finance: true,
employees: true,
inventory: true,
purchasing: true,
delivery: true,
booking: true,
pos: true,
kds: true,
dining: true,
work_orders: false,
production: true,
automation: true,
ai: true,
},
operationsTabs: [
{ id: 'overview', label: 'Обзор', route: '/operations' },
{ id: 'orders', label: 'Заказы', route: '/operations/orders', badge: '14' },
{ id: 'pos', label: 'Касса (POS)', route: '/operations/pos', requiredCapability: 'pos' },
{ id: 'dining', label: 'Зал', route: '/operations/dining', requiredCapability: 'dining', badge: '82%' },
{ id: 'kds', label: 'Кухня (KDS)', route: '/operations/kds', requiredCapability: 'kds', badge: '6' },
{ id: 'catalog', label: 'Меню', route: '/operations/catalog' },
{ id: 'recipes', label: 'Техкарты', route: '/operations/recipes', requiredCapability: 'production' },
{ id: 'inventory', label: 'Склад', route: '/operations/inventory', requiredCapability: 'inventory' },
{ id: 'purchasing', label: 'Закупки', route: '/operations/purchasing', requiredCapability: 'purchasing' },
{ id: 'delivery', label: 'Доставка', route: '/operations/delivery', requiredCapability: 'delivery', badge: '5' },
{ id: 'booking', label: 'Бронирования', route: '/operations/booking', requiredCapability: 'booking' },
],
terminology: {
itemLabel: 'Блюдо',
itemsLabel: 'Меню и напитки',
bookingResourceLabel: 'Стол',
orderSourceLabel: 'Зал / Доставка / Навынос',
clientIdentifierLabel: 'Гость ресторана',
},
dashboardPreset: {
primaryKpis: ['revenue_today', 'orders_count', 'avg_check', 'hall_occupancy', 'food_cost'],
quickActionIds: ['new_order', 'book_table', 'create_task', 'new_client', 'new_expense', 'write_off'],
},
},
restaurant_delivery_only: {
id: 'restaurant_delivery_only',
name: 'Ресторан: Только Доставка / Dark Kitchen',
label: 'Суши & Гёдза Express (Dark Kitchen)',
category: 'Общепит / Dark Kitchen',
companyName: 'Суши & Гёдза Express',
locations: ['Красный пр-т 186а (Кухня 1)'],
capabilities: {
crm: true,
sales: true,
communications: true,
helpdesk: true,
tasks: true,
cms: true,
marketing: true,
analytics: true,
finance: true,
employees: true,
inventory: true,
purchasing: true,
delivery: true,
booking: false, // OFF for Delivery Only
pos: true,
kds: true,
dining: false, // OFF for Delivery Only
work_orders: false,
production: true,
automation: true,
ai: true,
},
operationsTabs: [
{ id: 'overview', label: 'Обзор', route: '/operations' },
{ id: 'orders', label: 'Заказы', route: '/operations/orders', badge: '19' },
{ id: 'pos', label: 'Касса (POS)', route: '/operations/pos', requiredCapability: 'pos' },
{ id: 'kds', label: 'Кухня (KDS)', route: '/operations/kds', requiredCapability: 'kds', badge: '9' },
{ id: 'catalog', label: 'Меню', route: '/operations/catalog' },
{ id: 'recipes', label: 'Техкарты', route: '/operations/recipes', requiredCapability: 'production' },
{ id: 'inventory', label: 'Склад', route: '/operations/inventory', requiredCapability: 'inventory' },
{ id: 'purchasing', label: 'Закупки', route: '/operations/purchasing', requiredCapability: 'purchasing' },
{ id: 'delivery', label: 'Доставка', route: '/operations/delivery', requiredCapability: 'delivery', badge: '12' },
],
terminology: {
itemLabel: 'Позиция доставки',
itemsLabel: 'Ассортимент Dark Kitchen',
bookingResourceLabel: 'Линия сборки',
orderSourceLabel: 'Доставка / Агрегаторы',
clientIdentifierLabel: 'Получатель заказа',
},
dashboardPreset: {
primaryKpis: ['revenue_today', 'orders_count', 'avg_check', 'delivery_avg_time', 'food_cost'],
quickActionIds: ['new_order', 'assign_courier', 'create_task', 'new_client', 'inventory_check'],
},
},
retail: {
id: 'retail',
name: 'Розничная торговля / Retail',
label: 'Krona Retail & Store',
category: 'Торговля',
companyName: 'Krona Concept Store',
locations: ['Флагманский магазин — Ленина 12', 'Островок в ТЦ'],
capabilities: {
crm: true,
sales: true,
communications: true,
helpdesk: false,
tasks: true,
cms: true,
marketing: true,
analytics: true,
finance: true,
employees: true,
inventory: true,
purchasing: true,
delivery: false,
booking: false,
pos: true,
kds: false,
dining: false,
work_orders: false,
production: false,
automation: true,
ai: true,
},
operationsTabs: [
{ id: 'overview', label: 'Обзор', route: '/operations' },
{ id: 'orders', label: 'Продажи', route: '/operations/orders', badge: '31' },
{ id: 'pos', label: 'Касса', route: '/operations/pos', requiredCapability: 'pos' },
{ id: 'catalog', label: 'Товары & Штрихкоды', route: '/operations/catalog' },
{ id: 'inventory', label: 'Склад & Остатки', route: '/operations/inventory', requiredCapability: 'inventory' },
{ id: 'purchasing', label: 'Закупки', route: '/operations/purchasing', requiredCapability: 'purchasing' },
{ id: 'suppliers', label: 'Поставщики', route: '/operations/purchasing?tab=suppliers' },
{ id: 'audit', label: 'Инвентаризация', route: '/operations/inventory?tab=audit' },
{ id: 'pricing', label: 'Цены & Скидки', route: '/operations/catalog?tab=pricing' },
],
terminology: {
itemLabel: 'Товар',
itemsLabel: 'Товары и SKU',
bookingResourceLabel: 'Торговая точка',
orderSourceLabel: 'Касса / Интернет-магазин',
clientIdentifierLabel: 'Покупатель',
},
dashboardPreset: {
primaryKpis: ['revenue_today', 'orders_count', 'avg_check', 'stock_turnover', 'margin_rate'],
quickActionIds: ['pos_sale', 'stock_intake', 'new_client', 'inventory_scan', 'create_task'],
},
},
car_wash: {
id: 'car_wash',
name: 'Автомойка',
label: 'Автомойка Крона',
category: 'Автоуслуги',
companyName: 'Автомойка Крона',
locations: ['Бокс 1-6 — ул. Станционная 42'],
capabilities: {
crm: true,
sales: true,
communications: true,
helpdesk: false,
tasks: true,
cms: false,
marketing: true,
analytics: true,
finance: true,
employees: true,
inventory: true,
purchasing: true,
delivery: false,
booking: true,
pos: true,
kds: false,
dining: false,
work_orders: true,
production: false,
automation: true,
ai: true,
},
operationsTabs: [
{ id: 'overview', label: 'Обзор', route: '/operations' },
{ id: 'booking', label: 'Запись & Очередь', route: '/operations/booking', requiredCapability: 'booking', badge: '7' },
{ id: 'work_orders', label: 'Заказ-наряды', route: '/operations/work-orders', requiredCapability: 'work_orders', badge: '3' },
{ id: 'vehicles', label: 'Автомобили', route: '/crm?tab=vehicles' },
{ id: 'pos', label: 'Касса & Оплата', route: '/operations/pos', requiredCapability: 'pos' },
{ id: 'bays', label: 'Боксы', route: '/operations/bays' },
{ id: 'catalog', label: 'Услуги & Прайс', route: '/operations/catalog' },
{ id: 'inventory', label: 'Материалы & Склад', route: '/operations/inventory', requiredCapability: 'inventory' },
],
terminology: {
itemLabel: 'Услуга',
itemsLabel: 'Услуги',
bookingResourceLabel: 'Бокс',
orderSourceLabel: 'Прямой заезд / Запись',
clientIdentifierLabel: 'Владелец (Госномер)',
},
dashboardPreset: {
primaryKpis: ['revenue_today', 'bay_load', 'avg_ticket', 'repeat_rate'],
quickActionIds: ['new_booking', 'new_vehicle', 'new_payment', 'create_task'],
},
},
beauty_services: {
id: 'beauty_services',
name: 'Салон красоты / Бьюти',
label: 'Студия Красоты Крона Эстетик',
category: 'Сфера услуг',
companyName: 'Студия Красоты Крона',
locations: ['Центр — Советская 25'],
capabilities: {
crm: true,
sales: true,
communications: true,
helpdesk: false,
tasks: true,
cms: true,
marketing: true,
analytics: true,
finance: true,
employees: true,
inventory: true,
purchasing: true,
delivery: false,
booking: true,
pos: true,
kds: false,
dining: false,
work_orders: false,
production: false,
automation: true,
ai: true,
},
operationsTabs: [
{ id: 'overview', label: 'Обзор', route: '/operations' },
{ id: 'booking', label: 'Запись клиентов', route: '/operations/booking', requiredCapability: 'booking', badge: '11' },
{ id: 'schedule', label: 'Расписание мастеров', route: '/employees?tab=schedule' },
{ id: 'pos', label: 'Касса & Визиты', route: '/operations/pos', requiredCapability: 'pos' },
{ id: 'masters', label: 'Специалисты', route: '/employees' },
{ id: 'catalog', label: 'Услуги салона', route: '/operations/catalog' },
{ id: 'resources', label: 'Рабочие места', route: '/operations/bays' },
{ id: 'inventory', label: 'Расходники', route: '/operations/inventory', requiredCapability: 'inventory' },
],
terminology: {
itemLabel: 'Услуга мастера',
itemsLabel: 'Услуги и уходовая косметика',
bookingResourceLabel: 'Мастер / Кресло',
orderSourceLabel: 'Онлайн-запись / Стойка',
clientIdentifierLabel: 'Клиент салона',
},
dashboardPreset: {
primaryKpis: ['revenue_today', 'appointments_today', 'master_load', 'avg_check', 'retention_rate'],
quickActionIds: ['new_booking', 'new_client', 'pos_sale', 'chat_message', 'create_task'],
},
},
wholesale_b2b: {
id: 'wholesale_b2b',
name: 'Оптовая торговля / B2B',
label: 'Торговый Дом Крона Опт',
category: 'Опт & Дистрибуция',
companyName: 'Торговый Дом Крона Опт',
locations: ['Центральный распределительный склад — Северный проезд 8'],
capabilities: {
crm: true,
sales: true,
communications: true,
helpdesk: true,
tasks: true,
cms: false,
marketing: true,
analytics: true,
finance: true,
employees: true,
inventory: true,
purchasing: true,
delivery: true,
booking: false,
pos: false,
kds: false,
dining: false,
work_orders: false,
production: false,
automation: true,
ai: true,
},
operationsTabs: [
{ id: 'overview', label: 'Обзор', route: '/operations' },
{ id: 'orders', label: 'B2B Заказы & Спецификации', route: '/operations/orders', badge: '18' },
{ id: 'companies', label: 'Компании & Договоры', route: '/crm?tab=companies' },
{ id: 'inventory', label: 'Оптовый склад & Партии', route: '/operations/inventory', requiredCapability: 'inventory' },
{ id: 'purchasing', label: 'Контракты & Закупки', route: '/operations/purchasing', requiredCapability: 'purchasing' },
{ id: 'suppliers', label: 'Поставщики', route: '/operations/purchasing?tab=suppliers' },
{ id: 'documents', label: 'УПД & Документы', route: '/finance?tab=docs' },
{ id: 'delivery', label: 'Логистика & Отгрузки', route: '/operations/delivery', requiredCapability: 'delivery' },
],
terminology: {
itemLabel: 'Товарная позиция',
itemsLabel: 'Номенклатурный каталог',
bookingResourceLabel: 'Складская зона',
orderSourceLabel: 'B2B Договор / EDI',
clientIdentifierLabel: 'Контрагент / ИНН',
},
dashboardPreset: {
primaryKpis: ['revenue_month', 'active_contracts', 'receivables', 'warehouse_capacity', 'b2b_avg_deal'],
quickActionIds: ['new_deal', 'new_contract', 'stock_receipt', 'create_invoice', 'create_task'],
},
},
auto_service: {
id: 'auto_service',
name: 'Автосервис / СТО',
label: 'СТО Крона',
category: 'Автоуслуги',
companyName: 'СТО Крона',
locations: ['Главный сервис'],
capabilities: {
crm: true,
sales: true,
communications: true,
helpdesk: false,
tasks: true,
cms: false,
marketing: true,
analytics: true,
finance: true,
employees: true,
inventory: true,
purchasing: true,
delivery: false,
booking: true,
pos: true,
kds: false,
dining: false,
work_orders: true,
production: false,
automation: true,
ai: true,
},
operationsTabs: [
{ id: 'overview', label: 'Обзор', route: '/operations' },
{ id: 'booking', label: 'Запись & Очередь', route: '/operations/booking', requiredCapability: 'booking', badge: '7' },
{ id: 'vehicles', label: 'Автомобили', route: '/crm?tab=vehicles' },
{ id: 'work_orders', label: 'Заказ-наряды', route: '/operations/work-orders', requiredCapability: 'work_orders', badge: '4' },
{ id: 'pos', label: 'Касса & Оплата', route: '/operations/pos', requiredCapability: 'pos' },
{ id: 'bays', label: 'Посты & Подъёмники', route: '/operations/bays' },
{ id: 'catalog', label: 'Услуги & Прайс', route: '/operations/catalog' },
{ id: 'inventory', label: 'Запчасти & Склад', route: '/operations/inventory', requiredCapability: 'inventory' },
],
terminology: {
itemLabel: 'Услуга / Деталь',
itemsLabel: 'Работы и запчасти',
bookingResourceLabel: 'Подъёмник',
orderSourceLabel: 'Заказ-наряд',
clientIdentifierLabel: 'Владелец ТС (Госномер)',
},
dashboardPreset: {
primaryKpis: ['revenue_today', 'work_orders_active', 'bay_load', 'avg_ticket', 'repeat_rate'],
quickActionIds: ['new_booking', 'new_work_order', 'new_vehicle', 'new_payment', 'create_task'],
},
},
fitness: {
id: 'fitness',
name: 'Фитнес-клуб',
label: 'Крона Фитнес',
category: 'Спорт и здоровье',
companyName: 'Крона Фитнес',
locations: ['Клуб на Ленина'],
capabilities: {
crm: true,
sales: true,
communications: true,
helpdesk: true,
tasks: true,
cms: true,
marketing: true,
analytics: true,
finance: true,
employees: true,
inventory: true,
purchasing: true,
delivery: false,
booking: true,
pos: true,
kds: false,
dining: false,
work_orders: false,
production: false,
automation: true,
ai: true,
},
operationsTabs: [
{ id: 'overview', label: 'Обзор', route: '/operations' },
{ id: 'booking', label: 'Расписание & Запись', route: '/operations/booking', requiredCapability: 'booking' },
{ id: 'pos', label: 'Касса & Ресепшн', route: '/operations/pos', requiredCapability: 'pos' },
{ id: 'trainers', label: 'Тренеры', route: '/employees' },
{ id: 'catalog', label: 'Абонементы & Услуги', route: '/operations/catalog' },
{ id: 'inventory', label: 'Склад (Бар/Мерч)', route: '/operations/inventory', requiredCapability: 'inventory' },
],
terminology: {
itemLabel: 'Абонемент / Тренировка',
itemsLabel: 'Прайс-лист',
bookingResourceLabel: 'Зал / Тренер',
orderSourceLabel: 'Онлайн / Ресепшн',
clientIdentifierLabel: 'Член клуба',
},
dashboardPreset: {
primaryKpis: ['revenue_today', 'active_memberships', 'visits_today', 'avg_check'],
quickActionIds: ['new_booking', 'new_client', 'pos_sale', 'create_task'],
},
},
clinic: {
id: 'clinic',
name: 'Медицинская клиника / Стоматология',
label: 'Крона Мед',
category: 'Здоровье',
companyName: 'Крона Мед',
locations: ['Главный филиал'],
capabilities: {
crm: true,
sales: true,
communications: true,
helpdesk: true,
tasks: true,
cms: true,
marketing: true,
analytics: true,
finance: true,
employees: true,
inventory: true,
purchasing: true,
delivery: false,
booking: true,
pos: true,
kds: false,
dining: false,
work_orders: false,
production: false,
automation: true,
ai: true,
},
operationsTabs: [
{ id: 'overview', label: 'Обзор', route: '/operations' },
{ id: 'booking', label: 'Приемы & Расписание', route: '/operations/booking', requiredCapability: 'booking' },
{ id: 'pos', label: 'Касса', route: '/operations/pos', requiredCapability: 'pos' },
{ id: 'doctors', label: 'Врачи', route: '/employees' },
{ id: 'catalog', label: 'Услуги', route: '/operations/catalog' },
{ id: 'inventory', label: 'Медикаменты & Расходники', route: '/operations/inventory', requiredCapability: 'inventory' },
],
terminology: {
itemLabel: 'Услуга',
itemsLabel: 'Услуги',
bookingResourceLabel: 'Врач / Кабинет',
orderSourceLabel: 'Запись',
clientIdentifierLabel: 'Пациент',
},
dashboardPreset: {
primaryKpis: ['revenue_today', 'visits_today', 'avg_check'],
quickActionIds: ['new_booking', 'new_client', 'pos_sale', 'create_task'],
},
},
coworking: {
id: 'coworking',
name: 'Коворкинг / Аренда пространств',
label: 'Крона Коворкинг',
category: 'Недвижимость',
companyName: 'Крона Коворкинг',
locations: ['Кампус'],
capabilities: {
crm: true,
sales: true,
communications: true,
helpdesk: true,
tasks: true,
cms: true,
marketing: true,
analytics: true,
finance: true,
employees: true,
inventory: true,
purchasing: true,
delivery: false,
booking: true,
pos: true,
kds: false,
dining: false,
work_orders: false,
production: false,
automation: true,
ai: true,
},
operationsTabs: [
{ id: 'overview', label: 'Обзор', route: '/operations' },
{ id: 'booking', label: 'Бронирование', route: '/operations/booking', requiredCapability: 'booking' },
{ id: 'pos', label: 'Оплата', route: '/operations/pos', requiredCapability: 'pos' },
{ id: 'catalog', label: 'Тарифы', route: '/operations/catalog' },
{ id: 'inventory', label: 'Склад', route: '/operations/inventory', requiredCapability: 'inventory' },
],
terminology: {
itemLabel: 'Тариф / Опция',
itemsLabel: 'Тарифы',
bookingResourceLabel: 'Переговорная / Стол',
orderSourceLabel: 'Онлайн / Ресепшн',
clientIdentifierLabel: 'Резидент',
},
dashboardPreset: {
primaryKpis: ['revenue_today', 'occupancy_rate', 'active_memberships'],
quickActionIds: ['new_booking', 'new_client', 'pos_sale', 'create_task'],
},
},
logistics: {
id: 'logistics',
name: 'Логистика / Курьерская служба',
label: 'Крона Доставка',
category: 'Логистика',
companyName: 'Крона Доставка',
locations: ['Сортировочный центр'],
capabilities: {
crm: true,
sales: true,
communications: true,
helpdesk: true,
tasks: true,
cms: true,
marketing: true,
analytics: true,
finance: true,
employees: true,
inventory: false,
purchasing: false,
delivery: true,
booking: false,
pos: true,
kds: false,
dining: false,
work_orders: false,
production: false,
automation: true,
ai: true,
},
operationsTabs: [
{ id: 'overview', label: 'Обзор', route: '/operations' },
{ id: 'delivery', label: 'Заказы & Маршруты', route: '/operations/delivery', requiredCapability: 'delivery' },
{ id: 'pos', label: 'Оплата', route: '/operations/pos', requiredCapability: 'pos' },
],
terminology: {
itemLabel: 'Услуга доставки',
itemsLabel: 'Тарифы',
bookingResourceLabel: 'Курьер / Машина',
orderSourceLabel: 'Заказ',
clientIdentifierLabel: 'Отправитель / Получатель',
},
dashboardPreset: {
primaryKpis: ['orders_today', 'avg_delivery_time', 'success_rate'],
quickActionIds: ['new_order', 'assign_courier', 'create_task'],
},
},
custom_meta: {
id: 'custom_meta',
name: 'Кастомный профиль / Meta-profile',
label: 'Универсальный Business OS (Все модули)',
category: 'Конфигурируемый',
companyName: 'Бизнес-экосистема Крона',
locations: ['Главный офис', 'Локация 2'],
capabilities: {
crm: true,
sales: true,
communications: true,
helpdesk: true,
tasks: true,
cms: true,
marketing: true,
analytics: true,
finance: true,
employees: true,
inventory: true,
purchasing: true,
delivery: true,
booking: true,
pos: true,
kds: true,
dining: true,
work_orders: true,
production: true,
automation: true,
ai: true,
},
operationsTabs: [
{ id: 'overview', label: 'Обзор', route: '/operations' },
{ id: 'orders', label: 'Заказы', route: '/operations/orders' },
{ id: 'pos', label: 'Касса (POS)', route: '/operations/pos' },
{ id: 'dining', label: 'Зал', route: '/operations/dining' },
{ id: 'kds', label: 'KDS', route: '/operations/kds' },
{ id: 'work_orders', label: 'Заказ-наряды', route: '/operations/work-orders' },
{ id: 'catalog', label: 'Каталог', route: '/operations/catalog' },
{ id: 'inventory', label: 'Склад', route: '/operations/inventory' },
{ id: 'purchasing', label: 'Закупки', route: '/operations/purchasing' },
{ id: 'delivery', label: 'Доставка', route: '/operations/delivery' },
{ id: 'booking', label: 'Бронирования', route: '/operations/booking' },
],
terminology: {
itemLabel: 'Единица продукции',
itemsLabel: 'Каталог сущностей',
bookingResourceLabel: 'Бизнес-ресурс',
orderSourceLabel: 'Канал продаж',
clientIdentifierLabel: 'Клиент / Субъект',
},
dashboardPreset: {
primaryKpis: ['revenue_today', 'orders_count', 'avg_check', 'tasks_open', 'ai_insights'],
quickActionIds: ['new_order', 'new_client', 'create_task', 'new_expense', 'chat_message'],
},
},
};