feat: 员工规避损失明细添加规避方式列
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user