门诊挂号-》新增患者:监护人信息录入控制,当患者的年龄小于等于维护的监护人规定年龄时,则需要登记患者监护人的相关信息,反之无需填写。

This commit is contained in:
2025-12-08 10:20:26 +08:00
parent 46c9787216
commit 00e1c62de0
2 changed files with 27 additions and 7 deletions

View File

@@ -620,7 +620,7 @@
:searchInfo="form.searchKey"
@submit="setForm"
/>
<patient-add-dialog ref="patientAddRef" @submit="setForm" />
<patient-add-dialog ref="patientAddRef" @submit="setForm" :guardian-age="guardianAgeConfig" />
<ChargeDialog
:open="openDialog"
@close="handleClose"
@@ -696,8 +696,11 @@ import ReprintDialog from './components/reprintDialog.vue';
import { handleColor } from '@/utils/his';
import useUserStore from '@/store/modules/user';
import { formatDate, formatDateStr } from '@/utils/index';
import { getConfigKey } from '@/api/system/config';
const patientInfo = ref({});
// 监护人规定年龄配置
const guardianAgeConfig = ref(null);
// 跳转到患者档案管理页面
const goToPatientRecord = () => {
@@ -1581,6 +1584,19 @@ getList();
getContract();
// getConditionDefinition();
getLocationInfo();
// 获取监护人规定年龄配置
async function loadGuardianAgeConfig() {
try {
const response = await getConfigKey('guardianAge');
if (response.code === 200) {
guardianAgeConfig.value = response.data;
}
} catch (error) {
console.error('获取监护人规定年龄配置失败:', error);
}
}
// 组件加载时获取配置
loadGuardianAgeConfig();
</script>
<style scoped>
.el-form--inline .el-form-item {