工程师端可查看患者手机号
This commit is contained in:
parent
7c4ba1e1a0
commit
6a3eb49ab6
@ -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,
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user