/** * 获取备注文本(同步纯函数) */ export function getNoteText(row: any, locale: string, userStore: any): string { if (!row) return '--'; if (row.remark) return row.remark; if (row.note) return row.note; if (row.approveDesc) { const option = userStore.reasonsOptions?.[row.approveDesc]; if (option) { return locale === 'cn' || locale === 'zhHant' ? option.content : option.enContent; }else { return row.approveDesc; } } return '--'; }