feat: 待办事项显示损失金额理由

后端 estimateRiskCost 返回 lossReason 字段,说明法律依据和计算方式
前端在损失金额下方显示理由,如'逾期缴纳社保/公积金将产生滞纳金,每日万分之五'
This commit is contained in:
freedakgmail
2026-08-17 20:57:45 +08:00
parent a1a0b22e95
commit 03e9e83483
2 changed files with 18 additions and 1 deletions
+6
View File
@@ -1193,6 +1193,9 @@ export default function Dashboard() {
)}
</div>
<span className="text-xs text-gray-500 flex items-center gap-1"><Clock className="w-3 h-3" />{todo.description}</span>
{todo.estimatedLoss > 0 && todo.lossReason && (
<span className="text-[11px] text-gray-400">{todo.lossReason}</span>
)}
</div>
</Link>
) : (
@@ -1220,6 +1223,9 @@ export default function Dashboard() {
)}
</div>
<span className="text-xs text-gray-500 flex items-center gap-1"><Clock className="w-3 h-3" />{todo.description}</span>
{todo.estimatedLoss > 0 && todo.lossReason && (
<span className="text-[11px] text-gray-400">{todo.lossReason}</span>
)}
</div>
</div>
)}