From 38400a392451a596517dadb93aaad249013dbf4d Mon Sep 17 00:00:00 2001 From: Euni4U <958079825@qq.com> Date: Tue, 25 Mar 2025 10:46:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=83=E6=A3=80=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Medical-examination-vehicle.vue | 45 ++++++++++++++++--- 1 file changed, 38 insertions(+), 7 deletions(-) diff --git a/src/views/Department-entry/Medical-examination-vehicle.vue b/src/views/Department-entry/Medical-examination-vehicle.vue index 01e7afa..c8e850a 100644 --- a/src/views/Department-entry/Medical-examination-vehicle.vue +++ b/src/views/Department-entry/Medical-examination-vehicle.vue @@ -420,6 +420,7 @@ import { PacsDataApi } from '@/api/inspect/inspectpacsdata' // 导入PacsDataApi import { getStrDictOptions } from '@/utils/dict' //导入字典 import Summary from './summary.vue' // 导入Summary组件用于汇总页面 import TemplateDrawer from './Drawer-Template.vue' +import { updateItemsAnalyse } from '@/api/summary' const dialogTitle = ref('体检报告') const { t } = useI18n() // 国际化 @@ -2221,13 +2222,28 @@ const handleAbandonExam = async () => { } // 准备更新的数据 - const updatedItems = currentItems.map(item => ({ - id: item.id, - medicalSn: selectedPatient.value?.medicalSn, - itemStatus: '2', // 设置为弃检状态 - inspectdoctor: inspectDoctor.value || user.value?.nickname || '', - inspecttime: Date.now() // 使用当前时间戳 - })) + const updatedItems = currentItems.map(item => { + const baseFields = { + id: item.id, + medicalSn: selectedPatient.value?.medicalSn, + itemStatus: '2' // 设置为弃检状态 + } + + // 根据当前标签页类型添加不同的弃检信息 + if (currentTab.value === 'ultrasound' || currentTab.value === 'ecg') { + return { + ...baseFields, + examDescription: '已弃检', + itemResult: '已弃检', + analyse: '检查所见:已弃检\n检查结果:已弃检' + } + } else { + return { + ...baseFields, + analyse: '该项目已弃检' + } + } + }) // 批量更新检查项目 await PatientitemsApi.updatePatientitemsBatch(updatedItems) @@ -2235,6 +2251,21 @@ const handleAbandonExam = async () => { // 更新本地检查项目状态 currentItems.forEach(item => { item.itemStatus = '2' + + if (currentTab.value === 'ultrasound' || currentTab.value === 'ecg') { + item.value = '已弃检' + + // 同时更新小结数据 + if (currentTab.value === 'ultrasound') { + conclusionData.value.ultrasound.finding = '已弃检' + conclusionData.value.ultrasound.diagnosis = '已弃检' + } else if (currentTab.value === 'ecg') { + conclusionData.value.ecg.finding = '已弃检' + conclusionData.value.ecg.diagnosis = '已弃检' + } + } else { + item.analyse = '该项目已弃检' + } }) loading.close()