Compare commits
2 Commits
bugfix/518
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3beec42913 | ||
|
|
3df5c697dd |
@@ -54,9 +54,9 @@
|
|||||||
<el-col :span="7" class="form-item">
|
<el-col :span="7" class="form-item">
|
||||||
<span class="form-label required">性别</span>
|
<span class="form-label required">性别</span>
|
||||||
<el-radio-group v-model="form.sex" class="gender-radio-group">
|
<el-radio-group v-model="form.sex" class="gender-radio-group">
|
||||||
<el-radio value="男">男</el-radio>
|
<el-radio label="男">男</el-radio>
|
||||||
<el-radio value="女">女</el-radio>
|
<el-radio label="女">女</el-radio>
|
||||||
<el-radio value="未知">未知</el-radio>
|
<el-radio label="未知">未知</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10" class="form-item">
|
<el-col :span="10" class="form-item">
|
||||||
@@ -1044,8 +1044,9 @@ function normalizeSexFromPatientInfo(patientInfo) {
|
|||||||
if (patientInfo.genderName) return patientInfo.genderName;
|
if (patientInfo.genderName) return patientInfo.genderName;
|
||||||
if (patientInfo.sex) return normalizeSex(patientInfo.sex);
|
if (patientInfo.sex) return normalizeSex(patientInfo.sex);
|
||||||
// 使用数字枚举字段
|
// 使用数字枚举字段
|
||||||
if (patientInfo.genderEnum === 1) return '男';
|
if (patientInfo.genderEnum === 1 || patientInfo.genderEnum === '1') return '男';
|
||||||
if (patientInfo.genderEnum === 2) return '女';
|
if (patientInfo.genderEnum === 2 || patientInfo.genderEnum === '2') return '女';
|
||||||
|
if (patientInfo.genderEnum === 0 || patientInfo.genderEnum === '0') return '未知';
|
||||||
return '未知';
|
return '未知';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -499,17 +499,16 @@ const submit = () => {
|
|||||||
categoryEnum: '22',
|
categoryEnum: '22',
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
if (props.isEditMode) {
|
ElMessage.success(res.msg || (props.isEditMode ? '修改成功' : '保存成功'));
|
||||||
proxy.$message.success(res.msg || '修改成功');
|
|
||||||
} else {
|
|
||||||
proxy.$message.success(res.msg);
|
|
||||||
}
|
|
||||||
applicationList.value = [];
|
applicationList.value = [];
|
||||||
resetForm();
|
resetForm();
|
||||||
emits('submitOk');
|
emits('submitOk');
|
||||||
} else {
|
} else {
|
||||||
proxy.$message.error(res.message);
|
ElMessage.error(res.msg || '保存失败');
|
||||||
}
|
}
|
||||||
|
}).catch((error) => {
|
||||||
|
console.error('保存检查申请失败:', error);
|
||||||
|
ElMessage.error('保存失败,请稍后重试');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user