显示团客标签
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user