feat: 待办事项显示损失金额理由
后端 estimateRiskCost 返回 lossReason 字段,说明法律依据和计算方式 前端在损失金额下方显示理由,如'逾期缴纳社保/公积金将产生滞纳金,每日万分之五'
This commit is contained in:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user