This commit is contained in:
ChenQiuYu 2025-05-23 10:48:09 +08:00
parent 11e7998911
commit 16b5fec12a
2 changed files with 8 additions and 1 deletions

View File

@ -234,7 +234,10 @@ const setDateTip = () => {
}
watch(() => selectedDate.value, (newValue, oldValue) => {
curItem.value=null
emit('clickItem', curItem.value)
if (newValue == oldValue) {
init()
return;
}
if (newValue == null) {

View File

@ -107,7 +107,11 @@ const medicalHistoryRef = ref()
const patientCardRef = ref()
const patientRegistration = ref<any>({})//
const clickItem = (item: any) => {
if (!item) return
if (!item){
initFormData()
medicalHistoryRef.value?.clearList();
return
}
curRegister.value = item
registerId.value = item.id
itemId.value = item.id