fix(mobile): 患者列表默认显示所有患者

This commit is contained in:
2026-06-19 23:48:10 +08:00
parent 39c68a3361
commit 618c069aaa
2 changed files with 5 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ export const nursingApi = {
completeTask: (id, data) => service.post(`/nurse-station/advice-process/execute`, data),
getPatientInfo: (id) => service.get('/inpatientmanage/inhospitalregister/' + id),
getPatientList: (params) => service.get('/administration/practitioner-patient/list', { params }),
getPatientsByPractitioner: (practitionerId) => service.get('/administration/practitioner-patient/practitioner/' + practitionerId + '/patients'),
getOrders: (encounterId) => service.get('/nurse-station/advice-process/page', { params: { encounterId } }),
getVitalSigns: (patientId) => service.get('/nursing/vital-signs/' + patientId),
submitVitalSign: (data) => service.post('/nursing/vital-sign', data),

View File

@@ -26,7 +26,10 @@ const displayPatients = computed(() => searchText.value ? patients.value.filter(
const loadPatients = async () => {
loading.value = true
try { const res = await nursingApi.getPatientList({}); patients.value = res.data || [] } catch (e) { ElMessage.error('加载失败') } finally { loading.value = false }
try {
const res = await nursingApi.getPatientList({ pageSize: 100 })
patients.value = res.data?.records || res.data?.rows || res.data || []
} catch (e) { ElMessage.error('加载患者列表失败') } finally { loading.value = false }
}
onMounted(loadPatients)