346 患者列表:修改患者信息时,必填项“就诊卡号”数据未回填/显示为空
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
<el-row :gutter="10">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="就诊卡号" prop="identifierNo">
|
||||
<el-input v-model="form.identifierNo" clearable :disabled="isViewMode" />
|
||||
<el-input v-model="form.identifierNo" clearable :disabled="isEditMode || isViewMode" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
@@ -1421,6 +1421,11 @@ function setFormData(rowData) {
|
||||
// 深拷贝数据以避免引用问题
|
||||
form.value = JSON.parse(JSON.stringify(rowData));
|
||||
|
||||
// 从 patientIdInfoList 中获取 identifierNo(就诊卡号实际存储在此处)
|
||||
if (rowData.patientIdInfoList && rowData.patientIdInfoList.length > 0) {
|
||||
form.value.identifierNo = rowData.patientIdInfoList[0].identifierNo;
|
||||
}
|
||||
|
||||
// 确保性别值为字符串类型,以便与下拉框选项匹配
|
||||
if (form.value.genderEnum !== undefined && form.value.genderEnum !== null) {
|
||||
form.value.genderEnum = String(form.value.genderEnum);
|
||||
|
||||
Reference in New Issue
Block a user