"use strict"; const APPOINTMENT_STATUS_TEXT = { new: "待确认", doing: "服务中", done: "已完成", cancel: "已取消" }; const getAppointmentStatusText = (status) => APPOINTMENT_STATUS_TEXT[status] || APPOINTMENT_STATUS_TEXT.new; const getAppointmentTagType = (status) => { const map = { new: "warning", doing: "primary", done: "success", cancel: "default" }; return map[status] || "default"; }; const getAppointmentTagClass = (status) => { const map = { new: "tag-warning", doing: "tag-primary", done: "tag-success", cancel: "tag-default" }; return map[status] || "tag-default"; }; exports.getAppointmentStatusText = getAppointmentStatusText; exports.getAppointmentTagClass = getAppointmentTagClass; exports.getAppointmentTagType = getAppointmentTagType;