export const TODO_EVENT_TYPE_LABELS = {
  followUpNoShow: '未到院回访',
  followUpNoDeal: '未成交回访',
  followUp: '诊后回访',
  followUpPostSurgery: '术后回访',
  followUpPostTreatment: '治疗后回访',
  appointmentReminder: '就诊提醒',
  followUpReminder: '复诊提醒',
  medicationReminder: '用药提醒',
  serviceSummary: '咨询服务',
  eventNotification: '活动通知',
  ContentReminder: '宣教发送',
  questionnaire: '问卷调查',
  followUpComplaint: '投诉回访',
  followUpActivity: '活动回访',
  other: '其他',
};

export function getTodoEventTypeLabel(value) {
  const v = String(value || '');
  return TODO_EVENT_TYPE_LABELS[v] || v || '其他';
}

export function getTodoEventTypeOptions() {
  return Object.keys(TODO_EVENT_TYPE_LABELS).map((key) => ({
    value: key,
    label: TODO_EVENT_TYPE_LABELS[key],
  }));
}

