From 774a3bd4737934dafa92169df41d13a27885c4d1 Mon Sep 17 00:00:00 2001 From: chenqi Date: Fri, 29 May 2026 13:12:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(diagnosis):=20=E4=BF=AE=E5=A4=8D=E8=AF=8A?= =?UTF-8?q?=E6=96=AD=E7=BB=84=E4=BB=B6=E4=B8=AD=E7=9A=84=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E5=92=8C=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在el-popconfirm中添加条件判断,仅在非常用和非历史节点显示删除确认 - 移除重复的按钮条件判断逻辑,统一删除确认按钮的显示条件 - 将diagSrtNo的默认值从字符串'1'改为数字1,保持数据类型一致性 - 修复订单状态标签的颜色配置,将停止状态从error类型改为danger类型 - 添加保存按钮的禁用条件计算,当没有患者信息或处方列表为空时禁用 - 移除调试用的console.log语句,清理生产环境代码 --- .../home/components/diagnosis/diagnosis.vue | 12 ++++++------ .../inpatientDoctor/home/components/order/index.vue | 7 ++++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue index e6b683115..501aa0ce3 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/diagnosis/diagnosis.vue @@ -46,6 +46,11 @@ @@ -489,6 +489,9 @@ const unitMap = ref({ const buttonDisabled = computed(() => { return !patientInfo.value; }); +const isSaveDisabled = computed(() => { + return !patientInfo.value || prescriptionList.value.length === 0; +}); const props = defineProps({ patientInfo: { type: Object, @@ -676,7 +679,6 @@ function getListInfo(addNewRow) { organization.value = res?.data?.records ?? res?.data ?? []; }); getPrescriptionList(patientInfo.value.encounterId).then((res) => { - console.log('getListInfo==========>', JSON.stringify(res.data)); // 等待科室树加载完成后再处理处方数据,确保 resolveOrgId 能正确匹配 orgTreePromise.then(() => { loadingInstance.close(); @@ -684,7 +686,6 @@ function getListInfo(addNewRow) { .map((item) => { const parsedContent = JSON.parse(item.contentJson); // 构造 unitCodeList,确保编辑时下拉框有正确的选项 - console.log('【DEBUG】unitCode:', parsedContent?.unitCode, typeof parsedContent?.unitCode, 'unitCodeList:', JSON.stringify(parsedContent?.unitCodeList)); const unitCodeListData = parsedContent?.unitCodeList || [ { value: String(parsedContent?.unitCode ?? item.unitCode ?? ''), label: parsedContent?.unitCode_dictText ?? item.unitCode_dictText ?? '', type: 'unit' }, { value: String(parsedContent?.doseUnitCode ?? ''), label: parsedContent?.doseUnitCode_dictText ?? '', type: 'dose' },