From 812ffe6f989303514b45f8106f09ff902bbe0d8a Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期四, 31 十月 2024 16:19:56 +0800 Subject: [PATCH] update --- src/views/ecg/queue/index.vue | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/views/ecg/queue/index.vue b/src/views/ecg/queue/index.vue index 32f3639..d682321 100644 --- a/src/views/ecg/queue/index.vue +++ b/src/views/ecg/queue/index.vue @@ -101,6 +101,7 @@ <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-button type="primary" plain @@ -109,6 +110,8 @@ > <Icon icon="ep:plus" class="mr-5px" /> 鏂板 </el-button> +--> +<!-- <el-button type="success" plain @@ -118,6 +121,7 @@ > <Icon icon="ep:download" class="mr-5px" /> 瀵煎嚭 </el-button> +--> </el-form-item> </el-form> </ContentWrap> @@ -163,11 +167,12 @@ <el-button link type="primary" - @click="openForm('update', scope.row.id)" - v-hasPermi="['ecg:queue:update']" + @click="openAppointmentForm('preview', scope.row.patId)" + v-hasPermi="['ecg:appointment:preview']" > - 缂栬緫 + 鏌ョ湅 </el-button> +<!-- <el-button link type="danger" @@ -176,6 +181,7 @@ > 鍒犻櫎 </el-button> +--> <el-button link type="danger" @@ -183,7 +189,7 @@ v-if="scope.row.status === 10" v-hasPermi="['ecg:queue:jump']" > - {{scope.row.jumpFlag === 0? "鎻掗槦" : "鍙栨秷鎻掗槦"}} + {{scope.row.jumpFlag === 0? "鍔犳��" : "鍙栨秷鍔犳��"}} </el-button> <el-button link @@ -207,7 +213,10 @@ </ContentWrap> <!-- 琛ㄥ崟寮圭獥锛氭坊鍔�/淇敼 --> - <queueForm ref="formRef" @success="getList" /> + <!-- <queueForm ref="formRef" @success="getList" />--> + + <!-- 琛ㄥ崟寮圭獥锛氭坊鍔�/淇敼 --> + <AppointmentForm ref="formRef" @event_appointment_success="getList" /> </template> <script setup lang="ts"> @@ -218,6 +227,7 @@ import {DICT_TYPE, getIntDictOptions} from '@/utils/dict' import {DoctorApi, PatientVO} from "@/api/ecg/doctor"; import {useCheckTypeStore} from "@/store/modules/checkType"; +import AppointmentForm from "@/views/ecg/appointment/AppointmentForm.vue"; /** 鎺掗槦 鍒楄〃 */ defineOptions({ name: 'queue' }) @@ -278,6 +288,9 @@ const openForm = (type: string, id?: number) => { formRef.value.open(type, id) } +const openAppointmentForm = (type: string, patId: string, status: number) => { + formRef.value.openByQueue(type, patId, status) +} /** 鍒犻櫎鎸夐挳鎿嶄綔 */ const handleDelete = async (id: number) => { -- Gitblit v1.9.3