eight
2024-10-31 812ffe6f989303514b45f8106f09ff902bbe0d8a
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) => {