| | |
| | | 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> |
| | |
| | | > |
| | | {{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> |
| | |
| | | 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"; |
| | | |
| | | /** 排队 列表 */ |
| | | defineOptions({ name: 'queue' }) |
| | |
| | | expired: undefined, |
| | | roomId: undefined, |
| | | bedNo: undefined, |
| | | createTime: [] |
| | | }) |
| | | const queryFormRef = ref() // 搜索的表单 |
| | | const exportLoading = ref(false) // 导出的加载中 |
| | |
| | | } 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() |
| | | } |
| | | |
| | | /** 导出按钮操作 */ |
| | | const handleExport = async () => { |
| | | try { |