diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/laboratoryTests.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/laboratoryTests.vue index 72a5eff38..0441d7497 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/laboratoryTests.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/laboratoryTests.vue @@ -256,12 +256,16 @@ const projectWithDepartment = (selectProjectIds, type) => { if (type === 2 && manualDept) { form.targetDepartment = manualDept; isRelease = true; - } else { + } else if (type === 2 && !manualDept) { + // 提交时用户未手动选择科室,才提示错误 isRelease = false; ElMessage({ type: 'error', message: '未找到项目执行的科室', }); + } else { + // type=1(选择项目变化)时,不弹窗,仅清空科室让用户自行选择 + isRelease = false; } } if (findItem && isRelease) {