From 2d55387ba94f263057e82986651fa1e0e02146d8 Mon Sep 17 00:00:00 2001 From: liubei Date: Thu, 23 Apr 2026 22:05:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Bug=20#412=20=E9=97=A8=E8=AF=8A=E5=8C=BB?= =?UTF-8?q?=E7=94=9F=E7=AB=99=E4=BC=A0=E6=9F=93=E7=97=85=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E5=8D=A1=E4=BF=9D=E5=AD=98=E5=A4=B1=E8=B4=A5=EF=BC=88=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=B4=E6=97=B6=E5=8D=A1=E5=8F=B7=E7=94=9F=E6=88=90?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E7=A9=BA=E5=80=BC=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../doctorstation/components/infectiousReport/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openhis-ui-vue3/src/views/doctorstation/components/infectiousReport/index.vue b/openhis-ui-vue3/src/views/doctorstation/components/infectiousReport/index.vue index e777f337..2fd94a39 100644 --- a/openhis-ui-vue3/src/views/doctorstation/components/infectiousReport/index.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/infectiousReport/index.vue @@ -813,9 +813,14 @@ async function initForm() { const res = await getNextCardNo(orgCode); if (res.code === 200 && res.data) { cardNo = res.data; + } else { + // 🔧 BugFix#412: 如果API返回失败,生成临时卡号避免保存失败 + cardNo = 'TEMP_' + Date.now(); } } catch (err) { console.error('获取卡片编号失败:', err); + // 🔧 BugFix#412: 如果API调用异常,生成临时卡号 + cardNo = 'TEMP_' + Date.now(); } form.value = {