style(flowable): 优化流程相关代码的import顺序和代码结构
This commit is contained in:
@@ -802,7 +802,7 @@ export function getTestResult(queryParams) {
|
||||
*/
|
||||
export function getInspectionApplicationList(queryParams) {
|
||||
return request({
|
||||
url: '/doctor-station/inspection/application-list',
|
||||
url: '/reg-doctorstation/request-form/get-inspection',
|
||||
method: 'get',
|
||||
params: queryParams,
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1106,7 +1106,7 @@ onMounted(() => {
|
||||
document.addEventListener('keydown', escKeyListener);
|
||||
// 初始化时自动创建第一个西药处方
|
||||
if (westernPrescriptions.value.length === 0) {
|
||||
handleAddWesternPrescription();
|
||||
handleAddPrescription();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user