显示团客标签

This commit is contained in:
xianyi
2025-12-24 14:58:57 +08:00
parent a531f0131e
commit e5ea1ab45e

View File

@@ -66,14 +66,11 @@ export const ExamDetailPanel = ({
}
}, [customerInfo, maritalEditing]);
const customerChannel = client.customerType === '团客' ? '团体客户' : '散客客户';
// const customerChannel = client.customerType === '团客' ? '团体客户' : '散客客户';
// 等待接口返回后再显示,如果接口已返回但数据为空才显示 '—'
const familyDoctor = loading
? ''
: (customerInfo?.family_doctor_name || (client['familyDoctor' as keyof ExamClient] as string | undefined) || '—');
const groupTag = loading
? ''
: (client['groupTag' as keyof ExamClient] || (client.customerType === '团客' ? '团检' : '—'));
const bookingTime = loading
? ''
: (appointmentInfo?.appointment_time || (client['bookingTime' as keyof ExamClient] || '—'));
@@ -252,9 +249,9 @@ export const ExamDetailPanel = ({
<div>
<span className='text-gray-900'>{client.level}</span>
</div>
<div>
{/* <div>
所属渠道:<span className='text-gray-900'>{customerChannel}</span>
</div>
</div> */}
<div className='flex items-center'>
<span></span>
{!maritalEditing ? (
@@ -315,7 +312,7 @@ export const ExamDetailPanel = ({
<span className='text-gray-900'>{familyDoctor}</span>
</div>
<div>
<span className='text-gray-900'>{groupTag as string}</span>
<span className='text-gray-900'>{loading ? '' : ((customerInfo?.customer_type ?? 0) === 1 ? '团客' : '散客')}</span>
</div>
</div>
</div>