增加单位岁 增加项目编码字段

This commit is contained in:
叶锦涛
2025-10-23 10:52:34 +08:00
parent 1bba9e598a
commit be6d5c1ccc
11 changed files with 64 additions and 17 deletions

View File

@@ -200,6 +200,11 @@ const props = defineProps({
},
patientInfo: {
type: Object,
default: () => ({}),
},
encounterId: {
type: String,
default: '',
},
});
const emit = defineEmits(['close']);
@@ -284,14 +289,22 @@ function submit() {
...submitForm,
diagnosisYbNo: diagnosisYbNo,
diagnosisDefinitionId: diagnosisDefinitionId,
ambEncounterId: props.patientInfo.encounterId,
// 优先使用props.encounterId确保就诊ID正确传递
ambEncounterId: props.encounterId || props.patientInfo.encounterId,
patientId: props.patientInfo.patientId,
};
console.log('提交住院数据:', saveData);
handleHospitalization(saveData).then((res) => {
if (res.code == 200) {
proxy.$modal.msgSuccess('办理成功');
close();
} else {
console.error('办理失败:', res.msg);
proxy.$modal.msgError(res.msg || '办理失败,请检查数据后重试');
}
}).catch(error => {
console.error('提交出错:', error);
proxy.$modal.msgError('提交请求失败');
});
}
});