eight
2024-10-28 a7d0cd5b5c09bd3f4a92076a5bd59b38358b4b6d
src/views/ecg/appointment/AppointmentConfirm.vue
@@ -53,7 +53,7 @@
      <el-form-item label="预约检查类型" prop="bookCheckType">
        <el-select v-model="formData.bookCheckType" placeholder="请选择预约检查类型">
          <el-option
            v-for="dict in getIntDictOptions(DICT_TYPE.ECG_CHECK_TYPE)"
            v-for="dict in checkTypeStore.getCheckTypeOptions()"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
@@ -111,9 +111,12 @@
<script setup lang="ts">
import {DICT_TYPE, getIntDictOptions} from '@/utils/dict'
import { AppointmentApi, AppointmentVO } from '@/api/ecg/appointment'
import {useCheckTypeStore} from "@/store/modules/checkType";
/** 预约确认 表单 */
defineOptions({ name: 'AppointmentConfirm' })
const checkTypeStore = useCheckTypeStore();
const message = useMessage() // 消息弹窗
@@ -145,7 +148,7 @@
  bookTime: new Date(),
  bookDate: new Date(),
  bookTimeslot: 9000930,
  bookCheckType: 10
  bookCheckType: checkTypeStore.getCheckTypeName(100)
})
const formRef = ref() // 表单 Ref
@@ -176,9 +179,12 @@
const _confirmAppointment = async () => {
    const data = await AppointmentApi.confirmAppointment(formData.value)
    message.info(data)
    ElNotification({
      title: '温馨提示',
      message: data,
      type: 'warning'
    })
}
/** 重置表单 */
const resetForm = () => {