Commit 6f971dfd by luoqi

fix(web): 召回池列表项有原始档案时隐藏假手机号(对齐详情页)

详情页已按 !originalArchiveUrl 隐藏手机号,召回池左侧列表项遗漏。
PatientRow 增 hidePhone,调用处传 hasPatientArchive(=VIEW_PATIENT 模板),
与详情页同条件:宿主配了原始档案入口时真号在宿主档案页看,PAC 侧为造数假号故隐藏。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
parent 3f0ac789
Pipeline #3373 failed in 0 seconds
......@@ -242,6 +242,7 @@ export function PatientPickerRail({
plan={p}
active={p.id === currentPlanId}
clinicName={p.targetClinicId ? String(clinicDict?.[p.targetClinicId] ?? '') : ''}
hidePhone={hasPatientArchive}
onClick={() => {
router.push(`/plans/${p.id}`);
onNavigated?.();
......@@ -473,12 +474,15 @@ function PatientRow({
plan: p,
active,
clinicName,
hidePhone,
onClick,
onClaim,
}: {
plan: PlanListItem;
active: boolean;
clinicName: string;
/** 宿主配了原始档案(VIEW_PATIENT)时隐藏手机号 —— 真号在宿主档案页,PAC 侧为造数假号。与详情页同条件。 */
hidePhone: boolean;
onClick: () => void;
onClaim?: () => void;
}) {
......@@ -516,12 +520,15 @@ function PatientRow({
</span>
</div>
<div className="mt-0.5 flex items-center gap-1.5">
{!hidePhone && (
<span className="flex-none font-mono text-[10.5px] tabular-nums text-slate-400">
{p.patient.phoneMasked ?? ''}
</span>
)}
{clinicName && (
<span className="min-w-0 flex-1 truncate text-[10px] text-slate-400" title={clinicName}>
· {clinicName}
{hidePhone ? '' : '· '}
{clinicName}
</span>
)}
<span className="ml-auto flex-none" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment