feat: 员工规避损失明细添加规避方式列

This commit is contained in:
selfrelease
2026-07-31 10:41:22 +08:00
parent 7d7f39fd30
commit abbba82f25
2 changed files with 29 additions and 3 deletions
+10 -2
View File
@@ -231,7 +231,8 @@ export default function AnnualValueReport() {
<th className="text-left py-2 px-2 font-medium"></th>
<th className="text-left py-2 px-2 font-medium"></th>
<th className="text-center py-2 px-2 font-medium"></th>
<th className="text-right py-2 px-2 font-medium"></th>
<th className="text-left py-2 px-2 font-medium"></th>
<th className="text-left py-2 px-2 font-medium"></th>
<th className="text-left py-2 px-2 font-medium"></th>
</tr>
</thead>
@@ -242,6 +243,13 @@ export default function AnnualValueReport() {
<td className="py-2 px-2 text-gray-600">{emp.department}</td>
<td className="py-2 px-2 text-center">{emp.riskCount}</td>
<td className="py-2 px-2 text-right font-bold text-safe">¥{emp.adjustedLoss.toLocaleString()}</td>
<td className="py-2 px-2">
<div className="space-y-0.5">
{emp.details.map((d: any, i: number) => (
<div key={i} className="text-safe font-medium">{d.resolutionMethod}</div>
))}
</div>
</td>
<td className="py-2 px-2">
<div className="space-y-0.5">
{emp.details.map((d: any, i: number) => (
@@ -260,7 +268,7 @@ export default function AnnualValueReport() {
</tbody>
<tfoot>
<tr className="border-t-2 border-gray-200 font-bold">
<td className="py-2 px-2" colSpan={2}></td>
<td className="py-2 px-2" colSpan={3}></td>
<td className="py-2 px-2 text-right text-safe">¥{(report.adjustedLossAvoided || 0).toLocaleString()}</td>
<td className="py-2 px-2"></td>
</tr>