diff --git a/openhis-ui-vue3/src/views/charge/outpatientregistration/components/patientAddDialog.vue b/openhis-ui-vue3/src/views/charge/outpatientregistration/components/patientAddDialog.vue index d5b18088..d1c0e1cc 100644 --- a/openhis-ui-vue3/src/views/charge/outpatientregistration/components/patientAddDialog.vue +++ b/openhis-ui-vue3/src/views/charge/outpatientregistration/components/patientAddDialog.vue @@ -379,7 +379,7 @@ function handleBirthDateChange() { age--; } - form.value.age = age + '岁'; + form.value.age = age; } } @@ -390,7 +390,7 @@ function handleAgeInput() { if (ageMatch) { const age = parseInt(ageMatch[0]); // 移除非数字字符,保留数字和可能的单位 - form.value.age = age + '岁'; + form.value.age = age ; // 计算出生日期 const today = new Date(); @@ -429,7 +429,7 @@ watch( age--; } - form.value.age = age + '岁'; + form.value.age = age ; } } );