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({ ...@@ -242,6 +242,7 @@ export function PatientPickerRail({
plan={p} plan={p}
active={p.id === currentPlanId} active={p.id === currentPlanId}
clinicName={p.targetClinicId ? String(clinicDict?.[p.targetClinicId] ?? '') : ''} clinicName={p.targetClinicId ? String(clinicDict?.[p.targetClinicId] ?? '') : ''}
hidePhone={hasPatientArchive}
onClick={() => { onClick={() => {
router.push(`/plans/${p.id}`); router.push(`/plans/${p.id}`);
onNavigated?.(); onNavigated?.();
...@@ -473,12 +474,15 @@ function PatientRow({ ...@@ -473,12 +474,15 @@ function PatientRow({
plan: p, plan: p,
active, active,
clinicName, clinicName,
hidePhone,
onClick, onClick,
onClaim, onClaim,
}: { }: {
plan: PlanListItem; plan: PlanListItem;
active: boolean; active: boolean;
clinicName: string; clinicName: string;
/** 宿主配了原始档案(VIEW_PATIENT)时隐藏手机号 —— 真号在宿主档案页,PAC 侧为造数假号。与详情页同条件。 */
hidePhone: boolean;
onClick: () => void; onClick: () => void;
onClaim?: () => void; onClaim?: () => void;
}) { }) {
...@@ -516,12 +520,15 @@ function PatientRow({ ...@@ -516,12 +520,15 @@ function PatientRow({
</span> </span>
</div> </div>
<div className="mt-0.5 flex items-center gap-1.5"> <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"> <span className="flex-none font-mono text-[10.5px] tabular-nums text-slate-400">
{p.patient.phoneMasked ?? ''} {p.patient.phoneMasked ?? ''}
</span> </span>
)}
{clinicName && ( {clinicName && (
<span className="min-w-0 flex-1 truncate text-[10px] text-slate-400" title={clinicName}> <span className="min-w-0 flex-1 truncate text-[10px] text-slate-400" title={clinicName}>
· {clinicName} {hidePhone ? '' : '· '}
{clinicName}
</span> </span>
)} )}
<span className="ml-auto flex-none" /> <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