Fix Bug #476: 检查申请单详情界面缺失紧急程度、过敏史、检查目的等核心字段
在 examineApplication.vue 的 labelMap 中补充 urgencyLevel、allergyHistory、 examinationPurpose、expectedExaminationTime、medicalHistorySummary、allergyConfirmed 共6个缺失字段的中文标签映射,并新增 transformField 函数将 urgencyLevel 的 emergency/routine 转换为"急诊"/"普通"显示。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -137,7 +137,7 @@
|
||||
<el-descriptions title="申请单描述" :column="2">
|
||||
<template v-for="(value, key) in descJsonData" :key="key">
|
||||
<el-descriptions-item v-if="isFieldMatched(key)" :label="getFieldLabel(key)">
|
||||
{{ value || '-' }}
|
||||
{{ transformField(key, value) || '-' }}
|
||||
</el-descriptions-item>
|
||||
</template>
|
||||
</el-descriptions>
|
||||
@@ -270,6 +270,12 @@ const parseStatus = (status) => {
|
||||
const labelMap = {
|
||||
categoryType: '项目类别',
|
||||
targetDepartment: '发往科室',
|
||||
urgencyLevel: '紧急程度',
|
||||
allergyHistory: '过敏史',
|
||||
examinationPurpose: '检查目的',
|
||||
expectedExaminationTime: '期望检查时间',
|
||||
medicalHistorySummary: '病史摘要',
|
||||
allergyConfirmed: '过敏确认',
|
||||
symptom: '症状',
|
||||
sign: '体征',
|
||||
clinicalDiagnosis: '临床诊断',
|
||||
@@ -278,6 +284,17 @@ const labelMap = {
|
||||
attention: '注意事项',
|
||||
};
|
||||
|
||||
// Fields that need value transformation before display
|
||||
const transformField = (key, value) => {
|
||||
if (key === 'urgencyLevel') {
|
||||
return value === 'emergency' ? '急诊' : '普通';
|
||||
}
|
||||
if (key === 'allergyConfirmed') {
|
||||
return value === true || value === 'true' ? '已口头确认' : '未确认';
|
||||
}
|
||||
return value;
|
||||
};
|
||||
|
||||
const isFieldMatched = (key) => {
|
||||
return key in labelMap;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user