增加单位岁 增加项目编码字段
This commit is contained in:
@@ -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('提交请求失败');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user