eight
2024-09-18 a08a69f4e91d74540a0b4b071bbbff683721643f
护士 召回患者 功能
已修改1个文件
24 ■■■■■ 文件已修改
src/views/ecg/queue/index.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 === 50"
            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 {