eight
2024-12-02 f085b0783327a460fd0b2802e9f1b7cdbee3cde9
预约确认 时段选择 开放
已修改1个文件
40 ■■■■■ 文件已修改
src/views/ecg/appointment/CheckItemPanel.vue 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/appointment/CheckItemPanel.vue
@@ -58,11 +58,48 @@
          })
        })
        .catch(() => {
/*
          ElNotification({
            title: '温馨提示',
            message: '确认失败',
            type: 'warning'
          })
*/
        })
  } else if (undefined !== bookTimeSlotVip.value && null !== bookTimeSlotVip.value && props.appointment.bookTimeslot !== bookTimeSlotVip.value) {
    ElMessageBox.confirm(
        '当天预约项,确定要走VIP吗?',
        'Warning',
        {
          confirmButtonText: '好的',
          cancelButtonText: '不用',
          type: 'warning',
        }
    )
        .then(async () => {
          const tempAppointment = cloneDeep(props.appointment)
          if (undefined !== bookTimeSlotVip.value && null !== bookTimeSlotVip.value) {
            tempAppointment.bookTimeslot = bookTimeSlotVip.value
          }
          const data = await AppointmentApi.confirmAppointmentVip(tempAppointment)
          bookSeqNum.value = data
          // 发送操作成功的事件
          emit('event_appoint_confirm')
          _printNote()
          ElNotification({
            title: '温馨提示',
            message: data,
            type: 'info'
          })
        })
        .catch(() => {
          /*
                    ElNotification({
                      title: '温馨提示',
                      message: '确认失败',
                      type: 'warning'
                    })
          */
        })
  } else {
    const data = await AppointmentApi.confirmAppointment(props.appointment)
@@ -135,7 +172,8 @@
    <div>{{formatDate(appointment.bookDate, 'YYYY-MM-DD')}}</div>
    <div>{{formatTimeslot(appointment.bookTimeslot)}}</div>
    <el-select v-if="!isCurrentDay(appointment.bookDate)" v-model="bookTimeSlotVip" placeholder="请选择预约时间段">
<!--    <el-select v-if="!isCurrentDay(appointment.bookDate)" v-model="bookTimeSlotVip" placeholder="请选择预约时间段">-->
    <el-select v-model="bookTimeSlotVip" clearable placeholder="请选择预约时间段">
      <el-option
          v-for="item in checkTypeTimeslotList"
          :key="item.id"