eight
2024-10-15 1d08de208c93dba281f39cbbc59bdc336841a3e4
src/views/ecg/appointment/AppointmentConfirm.vue
@@ -126,7 +126,7 @@
    patId: undefined
})
const formData = ref({
const formData = ref<AppointmentVO>({
  id: 0,
  patId: "",
  patName: "",
@@ -144,7 +144,7 @@
  bookId: "",
  bookTime: new Date(),
  bookDate: new Date(),
  bookTimeslot: 10001015,
  bookTimeslot: 9000930,
  bookCheckType: 10
})
const formRef = ref() // 表单 Ref
@@ -176,9 +176,12 @@
const _confirmAppointment = async () => {
    const data = await AppointmentApi.confirmAppointment(formData.value)
    message.info(data)
    ElNotification({
      title: '温馨提示',
      message: data,
      type: 'warning'
    })
}
/** 重置表单 */
const resetForm = () => {
@@ -200,7 +203,7 @@
    bookId: "",
    bookTime: new Date(),
    bookDate: new Date(),
    bookTimeslot: 10001015,
    bookTimeslot: 9000930,
    bookCheckType: 10
  }
  formRef.value?.resetFields()