Добавлено логирование для отладки черновиков

- Добавлены логи в frontend (ClaimForm.tsx) для отслеживания unified_id и запросов к API
- Добавлены логи в backend (claims.py) для отладки SQL запросов
- Создан лог сессии с описанием проблемы и текущего состояния
- Проблема: API возвращает 0 черновиков, хотя в БД есть данные
This commit is contained in:
AI Assistant
2025-11-19 18:46:48 +03:00
parent cbab1c0fe6
commit 4c8fda5f55
57 changed files with 6574 additions and 304 deletions

View File

@@ -1,6 +1,6 @@
# 🚀 ERV Insurance Platform
# 🚀 Ticket Form Intake Platform
**Современная платформа для страховых обращений**
**Платформа цифровой приёмки обращений для other.clientright.ru**
- **Backend**: Python FastAPI (async)
- **Frontend**: React 18 + TypeScript
@@ -18,13 +18,13 @@
```
Frontend (форма):
http://147.45.146.17:5173/
http://147.45.146.17:5175/
Backend API:
http://147.45.146.17:8100/
http://147.45.146.17:8200/
API Документация (Swagger UI):
http://147.45.146.17:8100/docs ← Интерактивная!
http://147.45.146.17:8200/docs ← Интерактивная!
Gitea (Git репозиторий):
http://147.45.146.17:3002/
@@ -47,7 +47,7 @@ source venv/bin/activate
pip install -r requirements.txt
# Запускаем сервер
uvicorn app.main:app --reload --host 0.0.0.0 --port 8100
uvicorn app.main:app --reload --host 0.0.0.0 --port 8200
```
### **Frontend (React):**
@@ -59,7 +59,7 @@ cd frontend
npm install
# Запускаем dev сервер
npm run dev -- --host 0.0.0.0 --port 5173
npm run dev -- --host 0.0.0.0 --port 5175
```
---
@@ -69,7 +69,7 @@ npm run dev -- --host 0.0.0.0 --port 5173
### **Поток данных:**
```
React (5173) → FastAPI (8100) → [Redis, RabbitMQ, PostgreSQL]
React (5175) → FastAPI (8200) → [Redis, RabbitMQ, PostgreSQL]
OCR Service (8001)
OpenRouter AI
@@ -99,7 +99,7 @@ React (5173) → FastAPI (8100) → [Redis, RabbitMQ, PostgreSQL]
## 📁 Структура проекта
```
erv_platform/
ticket_form/
├─ backend/ ← Python FastAPI
│ ├─ app/
│ │ ├─ main.py