From 97d0011fc366044f3697f06c427d7cb148fa19d2 Mon Sep 17 00:00:00 2001 From: zhaoyun Date: Fri, 1 May 2026 00:08:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D#444=E8=AE=A1=E8=B4=B9?= =?UTF-8?q?=E8=8D=AF=E5=93=81=E5=88=97=E8=A1=A8=E6=9C=AA=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=8D=AF=E5=93=81=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加更多字段回退逻辑:chargeName, itemName等 - 确保即使contentJson中没有adviceName也能显示药品名称 - 添加默认值'未知药品'避免空显示 --- openhis-ui-vue3/src/views/surgicalschedule/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openhis-ui-vue3/src/views/surgicalschedule/index.vue b/openhis-ui-vue3/src/views/surgicalschedule/index.vue index 337d29b2..bb2ff7b9 100644 --- a/openhis-ui-vue3/src/views/surgicalschedule/index.vue +++ b/openhis-ui-vue3/src/views/surgicalschedule/index.vue @@ -1494,7 +1494,7 @@ function handleMedicalAdvice(row) { const jsonContent = item.contentJson || item.content_json; const contentData = jsonContent ? JSON.parse(jsonContent) : {}; return { - medicineName: contentData.adviceName || contentData.advice_name || item.adviceName || item.advice_name || '', + medicineName: contentData.adviceName || contentData.advice_name || item.adviceName || item.advice_name || item.chargeName || item.charge_name || contentData.itemName || contentData.item_name || '未知药品', specification: contentData.volume || contentData.specification || item.volume || item.specification || '', quantity: contentData.quantity || item.quantity || 0, batchNumber: contentData.lotNumber || contentData.lot_number || item.lotNumber || item.lot_number || '',