工程师端可查看患者手机号

This commit is contained in:
EL 2026-03-24 17:00:38 +08:00
parent 7c4ba1e1a0
commit 6a3eb49ab6
3 changed files with 14 additions and 1 deletions

View File

@ -159,6 +159,7 @@ export class TaskService {
oldPressure: item.oldPressure,
targetPressure: item.targetPressure,
currentPressure: item.device.currentPressure,
patientPhone: item.device.patient.phone,
taskId: item.task.id,
status: item.task.status,
createdAt: item.task.createdAt,

View File

@ -268,8 +268,13 @@ describe('BTasksController (e2e)', () => {
(item: {
creator?: { id?: number; name?: string };
engineer?: { id?: number; name?: string } | null;
patient?: { phone?: string };
patientPhone?: string;
}) =>
Number.isInteger(item.creator?.id) && Boolean(item.creator?.name),
Number.isInteger(item.creator?.id) &&
Boolean(item.creator?.name) &&
Boolean(item.patient?.phone) &&
Boolean(item.patientPhone),
),
).toBe(true);

View File

@ -100,6 +100,13 @@
: '-'
}}
</div>
<div class="sub-text">
{{
row.patient?.phone || row.patientPhone
? `手机号 ${row.patient?.phone || row.patientPhone}`
: '手机号 -'
}}
</div>
</template>
</el-table-column>
<el-table-column label="手术名称" min-width="180" show-overflow-tooltip>