首页报错和门诊医生站报错
This commit is contained in:
@@ -362,18 +362,27 @@ const shortcuts = [
|
||||
// const eprescriptionRef = ref();
|
||||
onMounted(() => {
|
||||
getWaitPatient();
|
||||
getPatientList();
|
||||
});
|
||||
getPatientList();
|
||||
// 获取现诊患者列表
|
||||
function getPatientList() {
|
||||
queryParams.value.statusEnum = 2;
|
||||
console.log('调用getPatientList,参数:', queryParams.value);
|
||||
getList(queryParams.value).then((res) => {
|
||||
patientList.value = res.data.records.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
active: currentEncounterId.value ? item.encounterId == currentEncounterId.value : false,
|
||||
};
|
||||
});
|
||||
console.log('getPatientList返回结果:', res);
|
||||
if (res.data && res.data.records) {
|
||||
patientList.value = res.data.records.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
active: currentEncounterId.value ? item.encounterId == currentEncounterId.value : false,
|
||||
};
|
||||
});
|
||||
console.log('患者列表数据:', patientList.value);
|
||||
} else {
|
||||
console.error('API返回的数据格式不正确:', res);
|
||||
}
|
||||
}).catch(error => {
|
||||
console.error('获取患者列表失败:', error);
|
||||
});
|
||||
}
|
||||
function setVisitType(type) {
|
||||
|
||||
Reference in New Issue
Block a user