修复Bug131 【入出转管理】-》入院病区下拉框无数据,后面的相应联动框应该也有数据
This commit is contained in:
@@ -145,3 +145,14 @@ export function terminalCleaning(encounterId) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取病区列表(与病区管理页面相同的接口)
|
||||||
|
*/
|
||||||
|
export function getWardList(queryParams) {
|
||||||
|
return request({
|
||||||
|
url: '/base-data-manage/location/location-page',
|
||||||
|
method: 'get',
|
||||||
|
params: queryParams,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ import Filter from '@/components/TableLayout/Filter.vue';
|
|||||||
import {computed, onBeforeMount, onMounted, reactive, ref} from 'vue';
|
import {computed, onBeforeMount, onMounted, reactive, ref} from 'vue';
|
||||||
import TransferInDialog from './transferInDialog.vue';
|
import TransferInDialog from './transferInDialog.vue';
|
||||||
import SignEntryDialog from './signEntryDialog.vue';
|
import SignEntryDialog from './signEntryDialog.vue';
|
||||||
import {childLocationList, getBedInfo, getInit, getPendingInfo, getPractitionerWard} from './api';
|
import {childLocationList, getBedInfo, getInit, getPendingInfo, getWardList} from './api';
|
||||||
import {ElLoading, ElMessage, ElMessageBox} from 'element-plus';
|
import {ElLoading, ElMessage, ElMessageBox} from 'element-plus';
|
||||||
import PendingPatientList from '@/components/PendingPatientList/index.vue';
|
import PendingPatientList from '@/components/PendingPatientList/index.vue';
|
||||||
|
|
||||||
@@ -232,15 +232,16 @@ const ininData = async () => {
|
|||||||
initInfoOptions.value = initRes.data;
|
initInfoOptions.value = initRes.data;
|
||||||
priorityOptions.value = initRes.data.priorityOptions || [];
|
priorityOptions.value = initRes.data.priorityOptions || [];
|
||||||
|
|
||||||
// 然后获取科室数据
|
// 然后获取病区数据(使用与病区管理页面相同的接口)
|
||||||
const wardRes = await getPractitionerWard();
|
const wardRes = await getWardList({ pageNum: 1, pageSize: 50, formEnum: 4 });
|
||||||
|
const wardList = wardRes.data?.records || [];
|
||||||
selectHosLoding.value = false;
|
selectHosLoding.value = false;
|
||||||
queryParams.value.wardId = wardRes[0]?.id || '';
|
queryParams.value.wardId = wardList[0]?.id || '';
|
||||||
initInfoOptions.value.wardListOptions = wardRes;
|
initInfoOptions.value.wardListOptions = wardList;
|
||||||
|
|
||||||
// 获取病房数据
|
// 获取病房数据
|
||||||
if (wardRes[0]?.id) {
|
if (wardList[0]?.id) {
|
||||||
await changeWardLocationId(wardRes[0].id, true); // 传入 true 表示初始化阶段,不调用 getList
|
await changeWardLocationId(wardList[0].id, true); // 传入 true 表示初始化阶段,不调用 getList
|
||||||
}
|
}
|
||||||
|
|
||||||
// 最后获取列表数据
|
// 最后获取列表数据
|
||||||
|
|||||||
Reference in New Issue
Block a user