eight
2024-11-26 3418a10025716ed4b14f96cb4c52b5ce0875e563
src/views/ecg/queue/index.vue
@@ -136,12 +136,16 @@
          {{scope.row.patName}} ({{genderFormat(scope.row.patGender)}})
        </template>
      </el-table-column>
      <el-table-column label="检查类型" align="center" prop="bookCheckType" >
      <el-table-column label="检查类型" align="center" prop="bookCheckType" min-width="100px">
        <template #default="scope">
          {{checkTypeStore.getCheckTypeName(scope.row.bookCheckType)}}
        </template>
      </el-table-column>
      <el-table-column label="患者详情" align="center" prop="patDetails" />
      <el-table-column label="患者详情" align="center" prop="patDetails" min-width="300px">
        <template #default="scope">
          <span>{{scope.row.patDetails?.mobile}} {{scope.row.patDetails?.wardDesc}} {{scope.row.patDetails?.bedNo}}</span>
        </template>
      </el-table-column>
      <el-table-column label="预约时段" align="center" prop="bookTimeslot" >
        <template #default="scope">
          <dict-tag :type="DICT_TYPE.ECG_BOOK_TIMESLOT" :value="scope.row.bookTimeslot" />
@@ -172,7 +176,7 @@
          <el-button
            link
            type="primary"
            @click="openAppointmentForm('preview', scope.row.patId)"
            @click="openAppointmentForm('preview', scope.row.patId, scope.row.bookCheckType)"
            v-hasPermi="['ecg:appointment:preview']"
          >
            查看
@@ -200,7 +204,7 @@
            link
            type="danger"
            @click="recall(scope.row)"
            v-if="scope.row.status === 5"
            v-if="scope.row.status === 5 || scope.row.status === 7"
            v-hasPermi="['ecg:queue:recall']"
          >
            召回
@@ -293,8 +297,8 @@
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 openAppointmentForm = (type: string, patId: string, checkType: number) => {
  formRef.value.openByQueue(type, patId, checkType)
}
/** 删除按钮操作 */
@@ -330,10 +334,18 @@
    roomId: item.roomId,
    bedNo: item.bedNo,
    patId: item.patId,
    jumpFlag: 0
    checkType: item.bookCheckType,
    //jumpFlag: 0,
    roomId_operator: item.roomId,  // 队列界面 召回操作时 保持原来的工位
    bedNo_operator: item.bedNo,    // 队列界面 召回操作时 保持原来的工位
  }
  const data = await DoctorApi.recallPatient(patientVO);
  let data = ""
  if (item.status === 5) // 常规、领用 过号
    data = await DoctorApi.recallPatient(patientVO);
  else if (item.status === 7)
    data = await DoctorApi.recallInstallPatient(patientVO);
  message.info(data)
  // 刷新列表
  await getList()