diff --git a/src/components/assistant/AssistantResponseCard.vue b/src/components/assistant/AssistantResponseCard.vue
index 401f1ad..a220c22 100644
--- a/src/components/assistant/AssistantResponseCard.vue
+++ b/src/components/assistant/AssistantResponseCard.vue
@@ -15,11 +15,12 @@ import { computed, ref } from "vue";
import { useRouter } from "vue-router";
import type { AssistantResponseCard } from "@/types/conversation";
+import type { ReportCard } from "@/types/risk";
const props = defineProps<{ card: AssistantResponseCard }>();
const router = useRouter();
const emit = defineEmits<{
- generateReport: [card: AssistantResponseCard];
+ generateReport: [card: ReportCard];
}>();
interface CardData extends AssistantResponseCard {
name?: string;
@@ -119,7 +120,7 @@ function formatCount(value: unknown) {
}
function generateReport() {
- emit("generateReport", props.card);
+ emit("generateReport", JSON.parse(JSON.stringify(props.card)) as ReportCard);
}
@@ -389,8 +390,7 @@ function generateReport() {
-
- AI 案例推理方案明细(已追加)
-
-
- {{ solution.title || "AI 案例推理生成" }}
- 置信度:{{ solution.confidence }}
-
-
- 分析基础:{{ solution.analysisBase }}
-
-
- 风险项
-
- -
- {{ risk.level }} · {{ risk.title }}:{{ risk.detail }}
-
-
-
-
- 建议方案
-
- -
- {{ suggestion }}
-
-
-
-
- {{ solution.warning }}
-
-
-
-
七、标准判定结果
@@ -347,6 +324,41 @@ function dimensionConclusion(item: {
双引擎融合:历史异常经验引擎提供风险优先级,标准库提供可执行的检测阈值与验证任务。
+
+ 八、追加卡片分析
+
+ {{ card.title }}{{ card.type }}
+ 分析对象:{{ card.name || card.material || card.category }}
+ 对象类型:{{ card.partyType }}
+ 原始问题:{{ card.question }}
+ 历史异常:{{ card.anomalyCount }} 条
+ 合作次数:{{ card.cooperationCount }} 次
+ 数据口径:{{ card.frequencyBasis }}
+ 数据状态:{{ card.dataAvailable ? "有匹配数据" : "暂无匹配数据" }}
+ 频次系数:×{{ card.frequencyCoefficient.toFixed(2) }}
+ 供应商基础分:{{ card.supplierBaseScore.toFixed(2) }} 分
+ 供应商得分:{{ card.supplierScore.toFixed(2) }} 分
+ 层级:{{ card.tier }}
+ 匹配数量:{{ card.matchedCount }} 条
+ 分析基础:{{ card.analysisBase }}
+ 置信度:{{ card.confidence }}
+ 标准兜底校验:已启用(无直接历史案例)
+ 检测值:{{ card.detectedValues.map((item) => `${item.name}:${item.value}`).join("、") }}
+ 高频问题:{{ card.topProblems.map((item) => `${item.name}(${item.count}次)`).join("、") }}
+ 常见问题:{{ card.frequentProblems.map((item) => `${item.name}(${item.count}次)`).join("、") }}
+ 关联标准:
- {{ standard.category }} · {{ standard.riskPoint }}:{{ standard.rule }}({{ standard.source || "标准文件.xlsx" }})· {{ standard.status }}
+ 相似案例:
- {{ item.date || "日期未知" }} · {{ item.product || "未命名产品" }} · {{ item.problem || item.description || "异常问题未填写" }} → {{ item.solution || "解决方案未填写" }}(相似度 {{ Math.round(item.similarity * 100) }}%)
+ - {{ risk.level }} · {{ risk.title }}:{{ risk.detail }}
+ - {{ suggestion }}
+ 备注:{{ card.note }}
+ {{ card.warning }}
+
+
+