import React from 'react'; import { ScoreBar } from './ScoreBar'; import { FieldResultList } from './FieldResultList'; interface ScoredResultCardProps { result: { evaluation_point_id: number; code: string; name: string; passed: boolean; machine_score: number; // e.g., 3 score: number; // e.g., 5 (full score from evaluation_points) percentage: number; total_score: number; // e.g., 60 total_weight: number; // e.g., 100 field_results: Array<{ field_path: string; evaluation_as: string; weight: number; scored: number; status: string; value: string; page?: string; ai_feedback?: string; }>; missing_fields?: string[]; ai_suggestion?: string; }; } export function ScoredResultCard({ result }: ScoredResultCardProps) { return (
{result.code} {result.name}
{result.ai_suggestion && (
💡 建议: {result.ai_suggestion}
)}
); }