| | |
| | | import request from '@/config/axios' |
| | | |
| | | // 排队 VO |
| | | export interface queueVO { |
| | | export interface QueueVO { |
| | | id: number // id |
| | | patId: string // 患者编号 |
| | | patName: string // 患者姓名 |
| | |
| | | }, |
| | | |
| | | // 新增排队 |
| | | createqueue: async (data: queueVO) => { |
| | | createqueue: async (data: QueueVO) => { |
| | | return await request.post({ url: `/ecg/queue/create`, data }) |
| | | }, |
| | | |
| | | // 修改排队 |
| | | updatequeue: async (data: queueVO) => { |
| | | updatequeue: async (data: QueueVO) => { |
| | | return await request.put({ url: `/ecg/queue/update`, data }) |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | // 插队排队 |
| | | jumpQueue: async (params: queueVO) => { |
| | | jumpQueue: async (params: QueueVO) => { |
| | | return await request.get({ url: `/ecg/queue/patient-jump`, params }) |
| | | }, |
| | | |
| | |
| | | <template #header>{{title}}</template> |
| | | <div v-for="(bedItem, index) in bedList" :key="index"> |
| | | <div class="deskwarp"> |
| | | <img v-if="bedItem.status === 0 || bedItem.status === 1" |
| | | <img |
| | | v-if="bedItem.status === 0 || bedItem.status === 1" |
| | | src="@/assets/room/close.jpg" |
| | | style="width: 100%" |
| | | @click = openBed(bedItem) |
| | | alt="工位已关闭" |
| | | /> |
| | | <img v-else-if="bedItem.status === 10" |
| | | <img |
| | | v-else-if="bedItem.status === 10" |
| | | src="@/assets/room/open.jpg" |
| | | style="width: 100%" |
| | | @click = closeBed(bedItem) |
| | | alt="工位开放中" |
| | | /> |
| | | <img v-else-if="bedItem.status === 20 || bedItem.status === 30" |
| | | src="@/assets/room/doctor.png" |
| | |
| | | <script setup lang="ts"> |
| | | import {defineComponent, PropType} from "vue"; |
| | | import { queueVO } from '@/api/ecg/queue' |
| | | import { QueueVO } from '@/api/ecg/queue' |
| | | import {DICT_TYPE} from "@/utils/dict"; |
| | | import {PatientVO, DoctorApi} from "@/api/ecg/doctor"; |
| | | |
| | |
| | | |
| | | const props = defineProps({ |
| | | queue: { |
| | | type: Array as PropType<queueVO[]>, |
| | | type: Array as PropType<QueueVO[]>, |
| | | required: true |
| | | } |
| | | /*, |
| | |
| | | import QueuePanel from "@/views/ecg/doctor/components/QueuePanel.vue"; |
| | | import {DoctorApi, PatientStatisticVO, RoomBedVO} from '@/api/ecg/doctor'; |
| | | import {useUserStore} from "@/store/modules/user"; |
| | | import {queueApi, queueVO} from "@/api/ecg/queue"; |
| | | import {queueApi, QueueVO} from "@/api/ecg/queue"; |
| | | |
| | | const userStore = useUserStore(); |
| | | |
| | |
| | | |
| | | const state = ref<boolean>() |
| | | |
| | | const list = ref<queueVO[]>([]) |
| | | const list = ref<QueueVO[]>([]) |
| | | |
| | | const bedControlFlag = ref<boolean>(true); |
| | | const finishFlag = ref<boolean>(true); |
| | |
| | | <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' |
| | | |
| | | /** 排队 列表 */ |
| | |
| | | const { t } = useI18n() // 国际化 |
| | | |
| | | const loading = ref(true) // 列表的加载中 |
| | | const list = ref<queueVO[]>([]) // 列表的数据 |
| | | const list = ref<QueueVO[]>([]) // 列表的数据 |
| | | const total = ref(0) // 列表的总页数 |
| | | const queryParams = reactive({ |
| | | pageNo: 1, |
| | |
| | | } |
| | | |
| | | /** 插队按钮操作 */ |
| | | const handleJump = async (item: queueVO ) => { |
| | | const handleJump = async (item: QueueVO ) => { |
| | | try { |
| | | if (item.jumpFlag === 0) |
| | | item.jumpFlag = 1 |
| | |
| | | </Dialog> |
| | | </template> |
| | | <script setup lang="ts"> |
| | | import { queueApi, queueVO } from '@/api/ecg/queue' |
| | | import { queueApi, QueueVO } from '@/api/ecg/queue' |
| | | |
| | | /** 排队 表单 */ |
| | | defineOptions({ name: 'queueForm' }) |
| | |
| | | // 提交请求 |
| | | formLoading.value = true |
| | | try { |
| | | const data = formData.value as unknown as queueVO |
| | | const data = formData.value as unknown as QueueVO |
| | | if (formType.value === 'create') { |
| | | await queueApi.createqueue(data) |
| | | message.success(t('common.createSuccess')) |
| | |
| | | <script setup lang="ts"> |
| | | import {RoomStatus} from "@/components/RoomStatus" |
| | | import { RoomApi, RoomVO } from '@/api/ecg/room' |
| | | import { queueApi, queueVO } from '@/api/ecg/queue' |
| | | import { queueApi, QueueVO } from '@/api/ecg/queue' |
| | | |
| | | defineOptions({ name: 'RoomStatusSetting' }) |
| | | |