From 6d39e4ce113915d83a5325571070fcfd3d6ef64b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=BD=97?= Date: Wed, 17 Jun 2026 23:50:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(#783):=20=E8=AF=B7=E4=BF=AE=E5=A4=8D=20Bug?= =?UTF-8?q?=20#783=EF=BC=9A=E3=80=90=E4=BD=8F=E9=99=A2=E5=8C=BB=E7=94=9F?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=AB=99-=E8=AF=8A=E6=96=AD=E5=BD=95?= =?UTF-8?q?=E5=85=A5=E3=80=91=E6=96=B0=E5=A2=9E=E8=AF=8A=E6=96=AD=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=8F=AF=E4=BB=A5=E4=B8=8D=E4=BF=9D=E5=AD=98=E4=B8=80?= =?UTF-8?q?=E7=9B=B4=E6=96=B0=E5=A2=9E=E8=AF=8A=E6=96=AD=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E7=AC=A6=E5=90=88=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因: - Bug #请修复 Bug #783 存在的问题 修复: - Now let me verify the fix compiles: - 轻量级验证: fix_commit=true changes=1 --- .../home/components/diagnosis/index.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 }