修改病历不能编辑问题

This commit is contained in:
Auora
2025-11-05 16:15:23 +08:00
parent 3deac74898
commit 3d4e4a8119

View File

@@ -54,26 +54,53 @@
<!-- 生命体征 -->
<div style="display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0; border-bottom: 1px solid #ebeef5;">
<div style="flex: 1; min-width: 120px; font-size: 14px; line-height: 24px;">
<strong>身高:</strong> {{ form.height ? form.height + ' cm' : '' }}
<strong>身高:</strong>
<el-input
v-model="form.height"
style="width: 80px; margin-left: 5px;"
/> cm
</div>
<div style="flex: 1; min-width: 120px; font-size: 14px; line-height: 24px;">
<strong>体重:</strong> {{ form.weight ? form.weight + ' kg' : '' }}
<strong>体重:</strong>
<el-input
v-model="form.weight"
style="width: 80px; margin-left: 5px;"
/> kg
</div>
<div style="flex: 1; min-width: 120px; font-size: 14px; line-height: 24px;">
<strong>体温:</strong> {{ form.temperature ? form.temperature + ' ℃' : '' }}
<strong>体温:</strong>
<el-input
v-model="form.temperature"
style="width: 80px; margin-left: 5px;"
:step="0.1"
/>
</div>
<div style="flex: 1; min-width: 120px; font-size: 14px; line-height: 24px;">
<strong>脉搏:</strong> {{ form.pulse ? form.pulse + ' 次/分' : '' }}
<strong>脉搏:</strong>
<el-input
v-model="form.pulse"
style="width: 80px; margin-left: 5px;"
/> /
</div>
</div>
<!-- 主诉 + 发病日期 -->
<div style="display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0; border-bottom: 1px solid #ebeef5;">
<div style="flex: 1; min-width: 300px; font-size: 14px; line-height: 24px;">
<strong>主诉:</strong> {{ form.chiefComplaint || '' }}
<strong>主诉:</strong>
<el-input
v-model="form.chiefComplaint"
style="width: calc(100% - 50px); margin-left: 5px;"
/>
</div>
<div style="flex: 1; min-width: 120px; font-size: 14px; line-height: 24px;">
<strong>发病日期:</strong> {{ formatDate(form.onsetDate) }}
<strong>发病日期:</strong>
<el-date-picker
v-model="form.onsetDate"
type="date"
style="width: calc(100% - 80px); margin-left: 5px;"
value-format="YYYY-MM-DD"
/>
</div>
</div>
@@ -82,9 +109,12 @@
<div style="font-size: 14px; margin-bottom: 5px;">
<strong>{{ field.label }}:</strong>
</div>
<div style="font-size: 14px; line-height: 1.5; white-space: pre-wrap;">
{{ form[field.key] || '' }}
</div>
<el-input
v-model="form[field.key]"
type="textarea"
:rows="4"
style="width: 100%; font-size: 14px; line-height: 1.5;"
/>
</div>
<!-- 弹窗 -->