修复北3服务看板面诊率显示

This commit is contained in:
xianyi
2025-12-26 16:17:36 +08:00
parent a4da36ec08
commit cfb7c0e492

View File

@@ -254,12 +254,7 @@ export const HomeSection = () => {
<td className='py-2 text-right'>{item.assigned_customer_count ?? '-'}</td>
<td className='py-2 text-right'>{item.face_to_face_count ?? '-'}</td>
<td className='py-2 text-right'>
{item.face_to_face_rate !== undefined
? `${(item.face_to_face_rate * 100).toFixed(2)}%`
: item.assigned_customer_count && item.assigned_customer_count > 0
? `${((item.face_to_face_count ?? 0) / item.assigned_customer_count * 100).toFixed(2)}%`
: '-'
}
{item.face_to_face_rate}%
</td>
</tr>
))}