From 20dade7bf0e603d412cdbee1643eddcff3594abc Mon Sep 17 00:00:00 2001 From: Ranyunqiao <2499115710@qq.com> Date: Wed, 24 Jun 2026 13:45:20 +0800 Subject: [PATCH 1/3] bug 800 802 803 804 805 --- .../migration/V20260624__fix_menu_parent_ids.sql | 9 +++++++++ .../MedicalDeviceDispenseMapper.xml | 2 +- .../pharmacymanage/MedicationDetailsMapper.xml | 2 +- .../PendingMedicationDetailsMapper.xml | 2 +- .../pharmacymanage/ReturnMedicineMapper.xml | 2 +- .../SummaryDispenseMedicineMapper.xml | 2 +- .../WesternMedicineDispenseMapper.xml | 2 +- .../home/components/order/index.vue | 15 ++++++++++++--- 8 files changed, 27 insertions(+), 9 deletions(-) create mode 100644 healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V20260624__fix_menu_parent_ids.sql diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V20260624__fix_menu_parent_ids.sql b/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V20260624__fix_menu_parent_ids.sql new file mode 100644 index 000000000..c4a7bf21f --- /dev/null +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V20260624__fix_menu_parent_ids.sql @@ -0,0 +1,9 @@ +-- 修复 电子健康卡 & 电子发票 的 parent_id 为 基础数据 (211) +UPDATE sys_menu +SET parent_id = (SELECT menu_id FROM sys_menu WHERE menu_name = '基础数据' AND menu_type = 'M' LIMIT 1) +WHERE menu_name IN ('电子健康卡', '电子发票') AND (parent_id IS NULL OR parent_id NOT IN (SELECT menu_id FROM sys_menu)); + +-- 修复 传染病报卡 的 parent_id 为 院感管理 (10001) +UPDATE sys_menu +SET parent_id = (SELECT menu_id FROM sys_menu WHERE menu_name = '院感管理' AND menu_type = 'M' LIMIT 1) +WHERE menu_name = '传染病报卡' AND (parent_id IS NULL OR parent_id NOT IN (SELECT menu_id FROM sys_menu)); diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/MedicalDeviceDispenseMapper.xml b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/MedicalDeviceDispenseMapper.xml index b8d839ecd..ca2277b8f 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/MedicalDeviceDispenseMapper.xml +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/MedicalDeviceDispenseMapper.xml @@ -1,6 +1,6 @@ - + select A.outpatient_no, diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/PendingMedicationDetailsMapper.xml b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/PendingMedicationDetailsMapper.xml index dda4c235b..d715776be 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/PendingMedicationDetailsMapper.xml +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/PendingMedicationDetailsMapper.xml @@ -1,6 +1,6 @@ - + SELECT ii.reception_time, ii.start_time, diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/SummaryDispenseMedicineMapper.xml b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/SummaryDispenseMedicineMapper.xml index bdda5bb22..25bf67f7e 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/SummaryDispenseMedicineMapper.xml +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/SummaryDispenseMedicineMapper.xml @@ -1,4 +1,4 @@ - + diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/WesternMedicineDispenseMapper.xml b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/WesternMedicineDispenseMapper.xml index b8c856fda..35237c4e6 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/WesternMedicineDispenseMapper.xml +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/pharmacymanage/WesternMedicineDispenseMapper.xml @@ -1,6 +1,6 @@ - + diff --git a/healthlink-his-ui/src/views/inpatientDoctor/home/components/order/index.vue b/healthlink-his-ui/src/views/inpatientDoctor/home/components/order/index.vue index 02e8e484c..b6ad77956 100755 --- a/healthlink-his-ui/src/views/inpatientDoctor/home/components/order/index.vue +++ b/healthlink-his-ui/src/views/inpatientDoctor/home/components/order/index.vue @@ -1529,13 +1529,17 @@ function getAdviceTableRef() { function handleBlur(row) { // 延迟关闭弹窗,等待 click 事件在弹出层内容上正常触发 // 原因:浏览器 blur 事件先于 click 触发;同步关闭会移除 DOM,导致 click 丢失 - // 如果用户在弹出层内点击药品行,selectAdviceBase 会在 150ms 内设 showPopover=false + // 如果用户在弹出层内点击药品行,selectAdviceBase 会在 200ms 内设 showPopover=false // 此处的赋值变为 no-op(false→false),弹窗正常关闭且数据正确填充 setTimeout(() => { - row.showPopover = false; + // 通过uniqueKey找到当前行,确保popover关闭 + const currentRow = prescriptionList.value.find(r => r.uniqueKey === row.uniqueKey); + if (currentRow) { + currentRow.showPopover = false; + } // Bug #587: 标记弹窗刚关闭,防止点击空白处时触发行展开 popoverJustClosedByKey.value = row.uniqueKey; - }, 150); + }, 200); } function handleChange(value, row, index) { @@ -1596,6 +1600,10 @@ function selectAdviceBase(key, row) { } catch (e) { console.warn('setValue error:', e); } + // 确保在 setValue 之后再次设置 showPopover 为 false,防止被覆盖 + if (prescriptionList.value[rowIndex.value]) { + prescriptionList.value[rowIndex.value].showPopover = false; + } // Bug #589: 出院带药选择药品后恢复类型标志 if (prescriptionList.value[rowIndex.value]?.dischargeFlag) { prescriptionList.value[rowIndex.value].adviceType = 7; @@ -2341,6 +2349,7 @@ function setValue(row) { const updatedRow = { ...prevRow, ...baseRow, + showPopover: false, // 确保选择药品后关闭弹窗 uniqueKey: currentUniqueKey, // 确保 uniqueKey 不被覆盖 // Bug #589: 出院带药在 baseRow 中被药品的 adviceType=1 覆盖,此处恢复 dischargeFlag: prevRow.dischargeFlag, // 显式保留,防止被 baseRow 中的 undefined/null/0 覆盖 From 1a6cd9af9b4a0594c9b59e928301d92f92ef2d81 Mon Sep 17 00:00:00 2001 From: wangjian963 <15215920+aprilry@user.noreply.gitee.com> Date: Wed, 24 Jun 2026 14:07:38 +0800 Subject: [PATCH 2/3] =?UTF-8?q?588=20[=E4=BD=8F=E9=99=A2=E5=8C=BB=E7=94=9F?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=AB=99-=E4=B8=B4=E5=BA=8A=E5=8C=BB?= =?UTF-8?q?=E5=98=B1]=20=E6=96=B0=E5=A2=9E=E6=97=A0=E2=80=9C=E6=96=87?= =?UTF-8?q?=E5=AD=97=E2=80=9D=E5=8C=BB=E5=98=B1=E7=B1=BB=E5=9E=8B=EF=BC=8C?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E8=A6=81=E5=AE=9E=E7=8E=B0=E8=81=94=E5=8A=A8?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E8=87=B3=E4=B8=93=E7=94=A8=E5=B1=95=E5=BC=80?= =?UTF-8?q?=E5=BC=8F=E5=A1=AB=E5=86=99=E9=9D=A2=E6=9D=BF=EF=BC=8C=E4=B8=94?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E9=A2=91=E6=AC=A1=E3=80=81=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E7=A7=91=E5=AE=A4=E3=80=81=E5=BC=80=E5=A7=8B=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E7=AD=89=E6=A0=B8=E5=BF=83=E5=AD=97=E6=AE=B5=E5=BD=95=E5=85=A5?= =?UTF-8?q?=20=E6=B6=88=E9=99=A4OrderForm=20ESLint/TS=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DoctorStationAdviceAppMapper.xml | 2 +- .../AdviceManageAppMapper.xml | 2 +- .../home/components/order/OrderForm.vue | 38 ++++++++++++------- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/doctorstation/DoctorStationAdviceAppMapper.xml b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/doctorstation/DoctorStationAdviceAppMapper.xml index 52762a086..a0d56029e 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/doctorstation/DoctorStationAdviceAppMapper.xml +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/doctorstation/DoctorStationAdviceAppMapper.xml @@ -748,7 +748,7 @@ T1.unit_code AS unit_code, T1.status_enum AS status_enum, '' AS method_code, - '' AS rate_code, + T1.rate_code AS rate_code, NULL AS dose, '' AS dose_unit_code, T3.id AS charge_item_id, diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/regdoctorstation/AdviceManageAppMapper.xml b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/regdoctorstation/AdviceManageAppMapper.xml index d21146f1d..7a85e67ce 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/regdoctorstation/AdviceManageAppMapper.xml +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/regdoctorstation/AdviceManageAppMapper.xml @@ -315,7 +315,7 @@ T1.unit_code AS unit_code, T1.status_enum AS status_enum, '' AS method_code, - '' AS rate_code, + T1.rate_code AS rate_code, NULL AS dose, '' AS dose_unit_code, T3.id AS charge_item_id, diff --git a/healthlink-his-ui/src/views/inpatientDoctor/home/components/order/OrderForm.vue b/healthlink-his-ui/src/views/inpatientDoctor/home/components/order/OrderForm.vue index bf364a764..e583f066b 100755 --- a/healthlink-his-ui/src/views/inpatientDoctor/home/components/order/OrderForm.vue +++ b/healthlink-his-ui/src/views/inpatientDoctor/home/components/order/OrderForm.vue @@ -1,6 +1,7 @@