/** * 地址库注意事项 → 装/送货注意事项回填。 * 仅当库内有非空 notes 且当前表单 notes 为空(trim)时返回待写入值;否则 undefined(不改动)。 */ export function resolveAddressNotesFill( currentNotes: string | null | undefined, libraryNotes: string | null | undefined ): string | undefined { const lib = (libraryNotes || '').trim() if (!lib) return undefined if ((currentNotes || '').trim()) return undefined return lib }