ykt-wxapp/utils/todo-const.js

57 lines
1.7 KiB
JavaScript
Raw Permalink Normal View History

2026-01-26 15:39:14 +08:00
export const TODO_EVENT_TYPE_LABELS = {
2026-09-01 15:33:31 +08:00
followUpNoShow: "未到院回访",
followUpNoDeal: "未成交回访",
followUp: "诊后回访",
followUpPostSurgery: "术后回访",
followUpPostTreatment: "治疗后回访",
appointmentReminder: "就诊提醒",
followUpReminder: "复诊提醒",
medicationReminder: "用药提醒",
serviceSummary: "咨询服务",
eventNotification: "活动通知",
ContentReminder: "宣教发送",
questionnaire: "问卷调查",
followUpComplaint: "投诉回访",
followUpActivity: "活动回访",
other: "其他",
Feedback: "意见反馈",
// 预约相关服务类型
treatmentAppointment: "治疗预约",
followupAppointment: "复诊预约",
confirmArrival: "确认到院",
prenatalFollowUp: "孕期回访",
childHealthFollowUp: "儿童保健回访",
benefitExecution: "权益执行",
}
// {
// benefitExecution: '权益执行',
// followUpNoShow: '未到院回访',
// followUpNoDeal: '未成交回访',
// followUp: '诊后回访',
// followUpPostSurgery: '术后回访',
// followUpPostTreatment: '治疗后回访',
// appointmentReminder: '就诊提醒',
// followUpReminder: '复诊提醒',
// medicationReminder: '用药提醒',
// serviceSummary: '咨询服务',
// eventNotification: '活动通知',
// ContentReminder: '宣教发送',
// questionnaire: '问卷调查',
// followUpComplaint: '投诉回访',
// followUpActivity: '活动回访',
// other: '其他',
// };
2026-01-26 15:39:14 +08:00
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],
}));
}