eight
2024-11-26 c771431b0402393fb432a2a8536768086c9fd09b
预约确认后清除
已修改2个文件
14 ■■■■ 文件已修改
src/views/ecg/appointment/AppointmentConfirm.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/appointment/CheckItemPanel.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/appointment/AppointmentConfirm.vue
@@ -7,7 +7,7 @@
  <div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px">
    <div v-for="_appointment in appointmentVOList" :key="_appointment.applyNo">
      <CheckItemPanel  :appointment="_appointment" />
      <CheckItemPanel  :appointment="_appointment"  @event_appoint_confirm="onEventAppointConfirm"/>
    </div>
  </div>
@@ -180,6 +180,10 @@
  formRef.value?.resetFields()
}
const onEventAppointConfirm = () => {
  queryParams.patId = ""
}
/** 初始化 **/
onMounted(() => {
  resetForm()
src/views/ecg/appointment/CheckItemPanel.vue
@@ -21,6 +21,8 @@
  }
})
const emit = defineEmits(['event_appoint_confirm']) // 定义 success 事件,用于操作成功后的回调
const checkTypeStore = useCheckTypeStore();
const checkTypeTimeslotList = ref<QueueSequenceVO>()
@@ -46,6 +48,8 @@
          }
          const data = await AppointmentApi.confirmAppointmentVip(tempAppointment)
          bookSeqNum.value = data
          // 发送操作成功的事件
          emit('event_appoint_confirm')
          _printNote()
          ElNotification({
            title: '温馨提示',
@@ -63,11 +67,13 @@
  } else {
    const data = await AppointmentApi.confirmAppointment(props.appointment)
    bookSeqNum.value = data
    // 发送操作成功的事件
    emit('event_appoint_confirm')
    _printNote()
    ElNotification({
      title: '温馨提示',
      message: data,
      type: 'warning'
      type: 'info'
    })
  }
}