| | |
| | | class="!w-240px" |
| | | > |
| | | <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" |
| | |
| | | class="!w-240px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="创建时间" prop="createTime"> |
| | | <el-date-picker |
| | | v-model="queryParams.createTime" |
| | | value-format="YYYY-MM-DD HH:mm:ss" |
| | | type="daterange" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]" |
| | | class="!w-220px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button> |
| | | <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
| | |
| | | <el-table-column label="患者编号" align="center" prop="patId" /> |
| | | <el-table-column label="患者姓名" align="center" prop="patName" /> |
| | | <el-table-column label="患者性别" align="center" prop="patGender" /> |
| | | <el-table-column label="患者详情" align="center" prop="patDetails" /> |
| | | <el-table-column label="预约时段" align="center" prop="bookTimeslot" > |
| | | <template #default="scope"> |
| | | <dict-tag :type="DICT_TYPE.ECG_BOOK_TIMESLOT" :value="scope.row.bookTimeslot" /> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="检查类型" align="center" prop="bookCheckType" > |
| | | <template #default="scope"> |
| | | <dict-tag :type="DICT_TYPE.ECG_CHECK_TYPE" :value="scope.row.bookCheckType" /> |
| | | {{checkTypeStore.getCheckTypeName(scope.row.bookCheckType)}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="排队序号" align="center" prop="seqNum" /> |
| | |
| | | > |
| | | {{scope.row.jumpFlag === 0? "插队" : "取消插队"}} |
| | | </el-button> |
| | | <el-button |
| | | link |
| | | type="danger" |
| | | @click="recall(scope.row)" |
| | | v-if="scope.row.status === 5" |
| | | v-hasPermi="['ecg:queue:recall']" |
| | | > |
| | | 召回 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <script setup lang="ts"> |
| | | import { dateFormatter } from '@/utils/formatTime' |
| | | import download from '@/utils/download' |
| | | import { queueApi, queueVO } from '@/api/ecg/queue' |
| | | import queueForm from './queueForm.vue' |
| | | import { QueueApi, QueueVO } from '@/api/ecg/queue' |
| | | import queueForm from './QueueForm.vue' |
| | | import {DICT_TYPE, getIntDictOptions} from '@/utils/dict' |
| | | import {DoctorApi, PatientVO} from "@/api/ecg/doctor"; |
| | | import {useCheckTypeStore} from "@/store/modules/checkType"; |
| | | |
| | | /** 排队 列表 */ |
| | | defineOptions({ name: 'queue' }) |
| | |
| | | const message = useMessage() // 消息弹窗 |
| | | const { t } = useI18n() // 国际化 |
| | | |
| | | const checkTypeStore = useCheckTypeStore(); |
| | | |
| | | const loading = ref(true) // 列表的加载中 |
| | | const list = ref<queueVO[]>([]) // 列表的数据 |
| | | const list = ref<QueueVO[]>([]) // 列表的数据 |
| | | const total = ref(0) // 列表的总页数 |
| | | const queryParams = reactive({ |
| | | pageNo: 1, |
| | |
| | | patId: undefined, |
| | | patName: undefined, |
| | | patGender: undefined, |
| | | patDetails: undefined, |
| | | bookTimeslot: undefined, |
| | | bookCheckType: undefined, |
| | | seqNum: undefined, |
| | |
| | | expired: undefined, |
| | | roomId: undefined, |
| | | bedNo: undefined, |
| | | createTime: [] |
| | | }) |
| | | const queryFormRef = ref() // 搜索的表单 |
| | | const exportLoading = ref(false) // 导出的加载中 |
| | |
| | | const getList = async () => { |
| | | loading.value = true |
| | | try { |
| | | const data = await queueApi.getqueuePage(queryParams) |
| | | const data = await QueueApi.getqueuePage(queryParams) |
| | | list.value = data.list |
| | | total.value = data.total |
| | | } finally { |
| | |
| | | // 删除的二次确认 |
| | | await message.delConfirm() |
| | | // 发起删除 |
| | | await queueApi.deletequeue(id) |
| | | await QueueApi.deletequeue(id) |
| | | message.success(t('common.delSuccess')) |
| | | // 刷新列表 |
| | | await getList() |
| | |
| | | } |
| | | |
| | | /** 插队按钮操作 */ |
| | | const handleJump = async (item: queueVO ) => { |
| | | const handleJump = async (item: QueueVO ) => { |
| | | try { |
| | | if (item.jumpFlag === 0) |
| | | item.jumpFlag = 1 |
| | | else |
| | | item.jumpFlag = 0 |
| | | |
| | | const data = await queueApi.jumpQueue(item) |
| | | const data = await QueueApi.jumpQueue(item) |
| | | message.success(data) |
| | | // 刷新列表 |
| | | await getList() |
| | | } catch {} |
| | | } |
| | | |
| | | const recall = async (item: QueueVO) => { |
| | | const patientVO: PatientVO = { |
| | | roomId: item.roomId, |
| | | bedNo: item.bedNo, |
| | | patId: item.patId, |
| | | jumpFlag: 0 |
| | | } |
| | | |
| | | const data = await DoctorApi.recallPatient(patientVO); |
| | | message.info(data) |
| | | // 刷新列表 |
| | | await getList() |
| | | } |
| | | |
| | | /** 导出按钮操作 */ |
| | |
| | | await message.exportConfirm() |
| | | // 发起导出 |
| | | exportLoading.value = true |
| | | const data = await queueApi.exportqueue(queryParams) |
| | | const data = await QueueApi.exportqueue(queryParams) |
| | | download.excel(data, '排队.xls') |
| | | } catch { |
| | | } finally { |