修改BUG
This commit is contained in:
parent
71be0f11ed
commit
37fc126c40
@ -245,16 +245,28 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 修改体检小结部分 -->
|
<!-- 修改体检小结部分 -->
|
||||||
<div v-if="['ultrasound', 'ecg'].includes(currentTab)" class="findings-diagnosis-container">
|
<div
|
||||||
|
v-if="['ultrasound', 'ecg'].includes(currentTab)"
|
||||||
|
class="findings-diagnosis-container"
|
||||||
|
>
|
||||||
<div class="findings-section">
|
<div class="findings-section">
|
||||||
<div class="section-title">
|
<div class="section-title">
|
||||||
<span class="title-text">
|
<span class="title-text">
|
||||||
检查所见
|
检查所见
|
||||||
<el-button type="text" @click="openTemplateDrawer('finding')" :disabled="isReadOnly">
|
<el-button
|
||||||
|
type="text"
|
||||||
|
@click="openTemplateDrawer('finding')"
|
||||||
|
:disabled="isReadOnly"
|
||||||
|
>
|
||||||
诊断模板
|
诊断模板
|
||||||
</el-button>
|
</el-button>
|
||||||
<span class="save-btn-container">
|
<span class="save-btn-container">
|
||||||
<el-button type="text" class="save-btn" @click="handleSaveCurrentTab" :disabled="isReadOnly">
|
<el-button
|
||||||
|
type="text"
|
||||||
|
class="save-btn"
|
||||||
|
@click="handleSaveCurrentTab"
|
||||||
|
:disabled="isReadOnly"
|
||||||
|
>
|
||||||
保存
|
保存
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
@ -272,7 +284,11 @@
|
|||||||
<div class="section-title">
|
<div class="section-title">
|
||||||
<span class="title-text">
|
<span class="title-text">
|
||||||
检查结果
|
检查结果
|
||||||
<el-button type="text" @click="openTemplateDrawer('diagnosis')" :disabled="isReadOnly">
|
<el-button
|
||||||
|
type="text"
|
||||||
|
@click="openTemplateDrawer('diagnosis')"
|
||||||
|
:disabled="isReadOnly"
|
||||||
|
>
|
||||||
诊断模板
|
诊断模板
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
@ -291,11 +307,20 @@
|
|||||||
<div class="section-title">
|
<div class="section-title">
|
||||||
<span class="title-text">
|
<span class="title-text">
|
||||||
体检小结
|
体检小结
|
||||||
<el-button type="text" @click="openTemplateDrawer('summary')" :disabled="isReadOnly">
|
<el-button
|
||||||
|
type="text"
|
||||||
|
@click="openTemplateDrawer('summary')"
|
||||||
|
:disabled="isReadOnly"
|
||||||
|
>
|
||||||
诊断模板
|
诊断模板
|
||||||
</el-button>
|
</el-button>
|
||||||
<span class="save-btn-container">
|
<span class="save-btn-container">
|
||||||
<el-button type="text" class="save-btn" @click="handleSaveCurrentTab" :disabled="isReadOnly">
|
<el-button
|
||||||
|
type="text"
|
||||||
|
class="save-btn"
|
||||||
|
@click="handleSaveCurrentTab"
|
||||||
|
:disabled="isReadOnly"
|
||||||
|
>
|
||||||
保存
|
保存
|
||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
@ -757,7 +782,16 @@ const handlePatientSelect = async (patient) => {
|
|||||||
// 清理当前数据
|
// 清理当前数据
|
||||||
examConclusion.value = ''
|
examConclusion.value = ''
|
||||||
examItems.value = {}
|
examItems.value = {}
|
||||||
|
// 重置体检小结数据,避免缓存问题
|
||||||
|
conclusionData.value = {
|
||||||
|
general: { summary: '未见异常' },
|
||||||
|
ultrasound: { finding: '未见异常', diagnosis: '未见异常' },
|
||||||
|
ecg: { finding: '未见异常', diagnosis: '未见异常' },
|
||||||
|
blood: { summary: '' },
|
||||||
|
urine: { summary: '' },
|
||||||
|
biochemical: { summary: '' },
|
||||||
|
summary: { summary: '' }
|
||||||
|
}
|
||||||
// 设置选中患者
|
// 设置选中患者
|
||||||
selectedPatient.value = patient
|
selectedPatient.value = patient
|
||||||
|
|
||||||
@ -2092,13 +2126,13 @@ const handleSaveCurrentTab = async () => {
|
|||||||
return {
|
return {
|
||||||
...baseFields,
|
...baseFields,
|
||||||
examDescription: finding,
|
examDescription: finding,
|
||||||
itemResult: diagnosis,
|
itemResult: diagnosis
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 其他类型的检查项目
|
// 其他类型的检查项目
|
||||||
return {
|
return {
|
||||||
...baseFields,
|
...baseFields,
|
||||||
analyse: conclusionData.value[currentTab.value]?.summary?.trim() || '',
|
analyse: conclusionData.value[currentTab.value]?.summary?.trim() || ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -2107,19 +2141,19 @@ const handleSaveCurrentTab = async () => {
|
|||||||
await PacsDataApi.updatePacsDataitem({
|
await PacsDataApi.updatePacsDataitem({
|
||||||
code: selectedPatient.value?.medicalSn,
|
code: selectedPatient.value?.medicalSn,
|
||||||
type: 'cbc',
|
type: 'cbc',
|
||||||
item: updatedItems[0].analyse,
|
item: updatedItems[0].analyse
|
||||||
})
|
})
|
||||||
} else if (currentTab.value === 'urine') {
|
} else if (currentTab.value === 'urine') {
|
||||||
await PacsDataApi.updatePacsDataitem({
|
await PacsDataApi.updatePacsDataitem({
|
||||||
code: selectedPatient.value?.medicalSn,
|
code: selectedPatient.value?.medicalSn,
|
||||||
type: 'urine',
|
type: 'urine',
|
||||||
item: updatedItems[0].analyse,
|
item: updatedItems[0].analyse
|
||||||
})
|
})
|
||||||
} else if (currentTab.value === 'biochemical') {
|
} else if (currentTab.value === 'biochemical') {
|
||||||
await PacsDataApi.updatePacsDataitem({
|
await PacsDataApi.updatePacsDataitem({
|
||||||
code: selectedPatient.value?.medicalSn,
|
code: selectedPatient.value?.medicalSn,
|
||||||
type: 'bt',
|
type: 'bt',
|
||||||
item: updatedItems[0].analyse,
|
item: updatedItems[0].analyse
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 批量更新检查项目
|
// 批量更新检查项目
|
||||||
|
Loading…
Reference in New Issue
Block a user