diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V66__bug723_fix_duplicate_menu_doctor_enhanced.sql b/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V66__bug723_fix_duplicate_menu_doctor_enhanced.sql
new file mode 100644
index 000000000..e5e190a16
--- /dev/null
+++ b/healthlink-his-server/healthlink-his-application/src/main/resources/db/migration/V66__bug723_fix_duplicate_menu_doctor_enhanced.sql
@@ -0,0 +1,10 @@
+-- V66: 修复 Bug#723 — 删除 sys_menu 中重复的"住院医生增强"菜单条目
+-- 根因:sys_menu 表中存在两条 menu_name = '住院医生增强' 且 parent_id 相同的记录
+-- 修复:保留 menu_id 最小的一条(20171),删除其余重复记录
+DELETE FROM sys_menu
+WHERE menu_name = '住院医生增强'
+ AND menu_id NOT IN (
+ SELECT MIN(menu_id)
+ FROM sys_menu
+ WHERE menu_name = '住院医生增强'
+ );
diff --git a/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue b/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue
index 00bea6e24..cd8c78174 100755
--- a/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue
+++ b/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue
@@ -1160,13 +1160,20 @@ function handleNodeClick(data) {
form.value.diagnosisList.push({
ybNo: data.ybNo,
name: data.name,
+ showPopover: false,
+ diagnosisSystem: '西医',
+ tcmSyndromeCode: '',
+ tcmSyndromeName: '',
+ syndromeDefinitionId: '',
+ syndromeGroupNo: '',
verificationStatusEnum: 4,
medTypeCode: undefined,
diagSrtNo: form.value.diagnosisList.length + 1,
definitionId: data.definitionId,
+ iptDiseTypeCode: 2,
+ diagnosisDesc: '',
diagnosisDoctor: props.patientInfo.practitionerName || props.patientInfo.doctorName || props.patientInfo.physicianName || userStore.name,
diagnosisTime: new Date().toLocaleString('zh-CN'),
- // 添加 patientId
patientId: props.patientInfo.patientId
});
if (form.value.diagnosisList.length == 1) {
@@ -1202,12 +1209,4 @@ defineExpose({ getList, getDetail, handleSaveDiagnosis });
align-items: center;
gap: 4px;
}
-
-
-
- :disabled="hasUnsavedDiagnosis || isAdding"
-const isAdding = ref(false);
- if (isAdding.value) return;
- isAdding.value = true;
- isAdding.value = false;
- isAdding.value = false;
\ No newline at end of file
+
\ No newline at end of file
diff --git a/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/index.vue b/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/index.vue
index 903a20605..7c49515b3 100755
--- a/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/index.vue
+++ b/healthlink-his-ui/src/views/inpatientDoctor/home/components/diagnosis/index.vue
@@ -348,6 +348,12 @@ function getCurrentDate() {
}
function addNewDiagnosis() {
+ // Bug #783: 存在未保存的新诊断时,不允许继续新增
+ const hasUnsavedRow = diagnoseData.value.some(item => item.isNew && !item.conditionId)
+ if (hasUnsavedRow) {
+ ElMessage.warning('请先保存已新增的诊断,再添加新诊断')
+ return
+ }
const maxSortNo = diagnoseData.value.length > 0
? Math.max(...diagnoseData.value.map(item => item.sortNo || 0))
: 0
@@ -374,6 +380,12 @@ function addNewDiagnosis() {
}
function addNewChinese() {
+ // Bug #783: 存在未保存的新诊断时,不允许继续新增
+ const hasUnsavedRow = diagnoseData.value.some(item => item.isNew && !item.conditionId)
+ if (hasUnsavedRow) {
+ ElMessage.warning('请先保存已新增的诊断,再添加新诊断')
+ return
+ }
chineseMedicineDialogVisible.value = true
}
diff --git a/healthlink-his-ui/src/views/inpatientNurse/medicineReturn/index.vue b/healthlink-his-ui/src/views/inpatientNurse/medicineReturn/index.vue
index c2b80f9a0..edddd291d 100755
--- a/healthlink-his-ui/src/views/inpatientNurse/medicineReturn/index.vue
+++ b/healthlink-his-ui/src/views/inpatientNurse/medicineReturn/index.vue
@@ -1,31 +1,10 @@
-
+
-
-
\ No newline at end of file
+