修复北3服务看板面诊率显示
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user