From da7fcbeed12e28f22a41610cb1014f308fc0bd9c Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期四, 10 十月 2024 17:58:02 +0800 Subject: [PATCH] 检查类型 (准备人数 + 是否需要领用) 配置 --- src/views/ecg/queue/index.vue | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/src/views/ecg/queue/index.vue b/src/views/ecg/queue/index.vue index c226d11..7841c12 100644 --- a/src/views/ecg/queue/index.vue +++ b/src/views/ecg/queue/index.vue @@ -184,6 +184,15 @@ > {{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> @@ -206,6 +215,7 @@ 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' }) @@ -292,6 +302,20 @@ } 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 { -- Gitblit v1.9.3