style(flowable): 优化流程相关代码的import顺序和代码结构

This commit is contained in:
2025-12-30 15:34:43 +08:00
parent d1670b79a0
commit b567747901
6 changed files with 25 additions and 29 deletions

View File

@@ -587,18 +587,21 @@ function initData() {
formData.departmentName = props.patientInfo.departmentName || ''
formData.doctorName = props.patientInfo.doctorName || ''
}
getInspectionList()
// 只有在存在 encounterId 时才调用接口
if (queryParams.encounterId) {
getInspectionList()
}
}
// 获取检验申请单列表
function getInspectionList() {
loading.value = true
// 调用真实的API
getInspectionApplicationList(queryParams.value).then((res) => {
// 调用真实的API,只传递 encounterId 参数
getInspectionApplicationList({ encounterId: queryParams.encounterId }).then((res) => {
if (res.code === 200) {
inspectionList.value = res.data.records || []
total.value = res.data.total || 0
inspectionList.value = res.data || []
total.value = res.data?.length || 0
} else {
inspectionList.value = []
total.value = 0