yxh
10 天以前 bd3f4b0a9b9207b647de0f0d8c52600a2742fd56
src/views/ecg/doctor/components/QueuePanel.vue
@@ -10,7 +10,7 @@
  name: 'QueuePanel'
})
const emit = defineEmits(['event_RecallFinish', 'event_PullWaiting', 'event_HurryUp']) // 定义 success 事件,用于操作成功后的回调
const emit = defineEmits(['event_RecallFinish', 'event_PullWaiting', 'event_HurryUp', 'event_Examine']) // 定义 success 事件,用于操作成功后的回调
const message = useMessage() // 消息弹窗
const  props = defineProps({
@@ -52,6 +52,17 @@
/** 立即补人(父页面负责调接口并把"结论"展示出来) */
const hurryUp = () => {
  emit('event_HurryUp')
}
/**
 * 【需求·不叫号直接检查】把这行患者加载进表单直接做检查。
 *
 * 语义与「紧急加做」完全相同(输入申请单号/就诊号/患者编号后回车查到的效果):
 * 不排队、不取号、不叫号,**也不改他的队列状态** —— 大屏/诊间屏上看不到"就诊中",
 * 避免其他病人误以为有人插队。父页面负责调接口与刷新。
 */
const examine = (item: any) => {
  emit('event_Examine', item)
}
const recall = async (item) => {
@@ -145,6 +156,19 @@
    {{getCheckTypeName(item.bookCheckType)}}
    <dict-tag :type="DICT_TYPE.ECG_QUEUE_STATUS" :value="item.status" />
    <el-button v-if="item.status === 5 || item.status === 7" size="small" @click="recall(item)"> 召回 </el-button>
    <!--
      【需求·优先检查】不叫号,直接把这位患者加载去做检查。
      只对"准备中(20) / 已召回(15)"显示:就诊中(30) 已经在做,过号(3/5) 请先召回。
    -->
    <el-button
      v-if="canOperate && (item.status === 15 || item.status === 20)"
      size="small"
      type="success"
      plain
      @click="examine(item)"
    >
      检查
    </el-button>
  </div>
  <!--
@@ -155,7 +179,7 @@
  -->
  <div v-if="waitingList && waitingList.length > 0" class="room-waiting">
    <div class="room-waiting__title">
      本诊室排队中(未分配工位){{ waitingList.length }} 人
      候诊区(未分配工位:准备中 / 排队中){{ waitingList.length }} 人
    </div>
    <div v-for="(item, index) in waitingList" :key="'w' + index" class="room-waiting__row">
      <span class="col-seq">
@@ -166,6 +190,8 @@
      {{ getCheckTypeName(item.bookCheckType) }}
      <template v-if="canOperate">
        <el-button size="small" type="primary" plain @click="pullWaiting(item)"> 拉入 </el-button>
        <!-- 【需求·优先检查】还没分配工位也可以直接做(不叫号、不上屏、完成时按本人排队行收尾) -->
        <el-button size="small" type="success" plain @click="examine(item)"> 检查 </el-button>
      </template>
      <span v-else class="room-waiting__readonly">(只读)</span>
    </div>
@@ -189,13 +215,13 @@
  text-align: center;
  &__title {
    font-size: 15px;
    font-size: 16px;
    color: var(--el-text-color-secondary);
  }
  &__meta {
    margin-top: 6px;
    font-size: 13px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--el-text-color-placeholder);
  }
@@ -212,7 +238,7 @@
  &__title {
    margin-bottom: 4px;
    font-size: 13px;
    font-size: 14px;
    font-weight: 600;
    color: var(--el-color-primary);
  }
@@ -224,7 +250,7 @@
  }
  &__readonly {
    font-size: 12px;
    font-size: 13px;
    color: var(--el-text-color-placeholder);
  }
}
@@ -290,7 +316,7 @@
  border-radius: 2px;
  background-color: var(--el-color-danger);
  color: #fff;
  font-size: 11px;
  font-size: 12px;
  line-height: 15px;
  vertical-align: 1px;
}