From 3a61d18928ab591f8cc89fc998907bf88d0dcaf8 Mon Sep 17 00:00:00 2001 From: yangkexiang <1677036288@qq.com> Date: Thu, 14 May 2026 16:47:21 +0800 Subject: [PATCH] bug516 --- .../components/order/applicationForm/laboratoryTests.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 617a0a905..e68a5f4c6 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 @@ -325,7 +325,12 @@ const projectWithDepartment = (selectProjectIds, type) => { } } if (findItem && isRelease) { - form.targetDepartment = findItem.id; + // 提交时若用户已选「发往科室」,不得用项目默认执行科室覆盖 + if (type === 2 && manualDept) { + form.targetDepartment = manualDept; + } else { + form.targetDepartment = findItem.id; + } } } return isRelease; @@ -392,7 +397,7 @@ const submit = () => { unitCode: item.priceList[0].unitCode /** 请求单位编码 */, unitPrice: item.priceList[0].price /** 单价 */, totalPrice: item.priceList[0].price /** 总价 */, - positionId: item.positionId || form.targetDepartment, //执行科室id,未配置时使用用户手动选择的科室 + positionId: form.targetDepartment || item.positionId, // 用户指定发往科室优先于项目默认执行科室 ybClassEnum: item.ybClassEnum, //类别医保编码 conditionId: item.conditionId, //诊断ID encounterDiagnosisId: item.encounterDiagnosisId, //就诊诊断id