| | |
| | | <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" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-form-item label="已付款标记" prop="paid"> |
| | | <el-checkbox v-model="formData.paid" :true-label=1 :false-label=0> |
| | | 已付款 |
| | | </el-checkbox> |
| | | </el-form-item> |
| | | </el-form> |
| | | <template #footer> |
| | | <el-button @click="submitForm" type="primary" :disabled="formLoading">确 定</el-button> |
| | |
| | | <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: 'AppointmentForm' }) |
| | | |
| | | const checkTypeStore = useCheckTypeStore(); |
| | | |
| | | const { t } = useI18n() // 国际化 |
| | | const message = useMessage() // 消息弹窗 |
| | |
| | | bookTime: undefined, |
| | | bookDate: new Date().getTime(), |
| | | bookTimeslot: 9000930, |
| | | bookCheckType: 10 |
| | | bookCheckType: 100, //常规检查 |
| | | paid: 0, |
| | | }) |
| | | const formRules = reactive({ |
| | | patId: [{ required: true, message: '患者编号不能为空', trigger: 'blur' }], |
| | |
| | | bookTime: undefined, |
| | | bookDate: new Date().getTime(), |
| | | bookTimeslot: 9000930, |
| | | bookCheckType: 10 |
| | | bookCheckType: checkTypeStore.getCheckTypeName(100) |
| | | } |
| | | formRef.value?.resetFields() |
| | | } |