优化客户列表数据,上午下午
This commit is contained in:
@@ -9,7 +9,6 @@ export interface ExamClient {
|
|||||||
elapsed: string;
|
elapsed: string;
|
||||||
checkedItems: string[];
|
checkedItems: string[];
|
||||||
pendingItems: string[];
|
pendingItems: string[];
|
||||||
timeSlot: '上午' | '下午';
|
|
||||||
channel: string;
|
channel: string;
|
||||||
vipType: '高客' | '普客';
|
vipType: '高客' | '普客';
|
||||||
signStatus: '已登记' | '未登记';
|
signStatus: '已登记' | '未登记';
|
||||||
|
|||||||
@@ -133,10 +133,6 @@ export const ExamPage = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 粗略判断上午/下午
|
|
||||||
const timeSlot: ExamClient['timeSlot'] =
|
|
||||||
(item.physical_exam_time || '').includes('下午') ? '下午' : '上午';
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: String(item.physical_exam_id ?? ''),
|
id: String(item.physical_exam_id ?? ''),
|
||||||
name: item.customer_name || '未知客户',
|
name: item.customer_name || '未知客户',
|
||||||
@@ -148,7 +144,6 @@ export const ExamPage = () => {
|
|||||||
elapsed,
|
elapsed,
|
||||||
checkedItems: [],
|
checkedItems: [],
|
||||||
pendingItems: [],
|
pendingItems: [],
|
||||||
timeSlot,
|
|
||||||
channel: item.channel || '',
|
channel: item.channel || '',
|
||||||
vipType,
|
vipType,
|
||||||
signStatus,
|
signStatus,
|
||||||
|
|||||||
Reference in New Issue
Block a user