eight
2024-08-28 32af4c7211d1bf20a44ba1d96a9c7431f44ecfa8
src/views/ecg/queue/index.vue
@@ -26,33 +26,34 @@
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="患者性别" prop="patGender">
      <el-form-item label="预约时段" prop="bookTimeslot">
        <el-select
          v-model="queryParams.patGender"
          placeholder="请选择患者性别"
          v-model="queryParams.bookTimeslot"
          placeholder="请输入预约时段"
          clearable
          class="!w-240px"
        >
          <el-option label="请选择字典生成" value="" />
          <el-option
            v-for="dict in getIntDictOptions(DICT_TYPE.ECG_BOOK_TIMESLOT)"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="预约时间段" prop="bookTimeslot">
        <el-input
          v-model="queryParams.bookTimeslot"
          placeholder="请输入预约时间段"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="预约检查类型" prop="bookCheckType">
      <el-form-item label="检查类型" prop="bookCheckType">
        <el-select
          v-model="queryParams.bookCheckType"
          placeholder="请选择预约检查类型"
          placeholder="请选择检查类型"
          clearable
          class="!w-240px"
        >
          <el-option label="请选择字典生成" value="" />
          <el-option
            v-for="dict in getIntDictOptions(DICT_TYPE.ECG_CHECK_TYPE)"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="排队序号" prop="seqNum">
@@ -64,49 +65,34 @@
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="10:排队中 20:候诊准备 30:就诊中 40:就诊完成 50:过号 60:过期" prop="status">
      <el-form-item label="排队状态" prop="status">
        <el-select
          v-model="queryParams.status"
          placeholder="请选择10:排队中 20:候诊准备 30:就诊中 40:就诊完成 50:过号 60:过期"
          placeholder="请选择排队状态"
          clearable
          class="!w-240px"
        >
          <el-option label="请选择字典生成" value="" />
          <el-option
            v-for="dict in getIntDictOptions(DICT_TYPE.ECG_QUEUE_STATUS)"
            :key="dict.value"
            :label="dict.label"
            :value="dict.value"
          />
        </el-select>
      </el-form-item>
      <el-form-item label="过号标记" prop="passed">
        <el-select
          v-model="queryParams.passed"
          placeholder="请选择过号标记"
          clearable
          class="!w-240px"
        >
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="预约过期标记" prop="expired">
        <el-select
          v-model="queryParams.expired"
          placeholder="请选择预约过期标记"
          clearable
          class="!w-240px"
        >
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="诊室编号" prop="roomNum">
      <el-form-item label="诊室编号" prop="roomId">
        <el-input
          v-model="queryParams.roomNum"
          v-model="queryParams.roomId"
          placeholder="请输入诊室编号"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
        />
      </el-form-item>
      <el-form-item label="诊疗床编号" prop="bedNum">
      <el-form-item label="诊疗床号" prop="bedNo">
        <el-input
          v-model="queryParams.bedNum"
          placeholder="请输入诊疗床编号"
          v-model="queryParams.bedNo"
          placeholder="请输入诊疗床号"
          clearable
          @keyup.enter="handleQuery"
          class="!w-240px"
@@ -154,14 +140,27 @@
      <el-table-column label="患者编号" align="center" prop="patId" />
      <el-table-column label="患者姓名" align="center" prop="patName" />
      <el-table-column label="患者性别" align="center" prop="patGender" />
      <el-table-column label="预约时间段" align="center" prop="bookTimeslot" />
      <el-table-column label="预约检查类型" align="center" prop="bookCheckType" />
      <el-table-column label="排队序号" align="center" prop="seqNum" />
      <el-table-column label="10:排队中 20:候诊准备 30:就诊中 40:就诊完成 50:过号 60:过期" align="center" prop="status" />
      <el-table-column label="预约时段" align="center" prop="bookTimeslot" >
        <template #default="scope">
          <dict-tag :type="DICT_TYPE.ECG_BOOK_TIMESLOT" :value="scope.row.bookTimeslot" />
        </template>
      </el-table-column>
      <el-table-column label="检查类型" align="center" prop="bookCheckType" >
        <template #default="scope">
          <dict-tag :type="DICT_TYPE.ECG_CHECK_TYPE" :value="scope.row.bookCheckType" />
        </template>
      </el-table-column>
        <el-table-column label="排队序号" align="center" prop="seqNum" />
      <el-table-column label="状态" align="center" prop="status" >
        <template #default="scope">
          <dict-tag :type="DICT_TYPE.ECG_QUEUE_STATUS" :value="scope.row.status" />
        </template>
      </el-table-column>
      <el-table-column label="过号标记" align="center" prop="passed" />
      <el-table-column label="预约过期标记" align="center" prop="expired" />
      <el-table-column label="诊室编号" align="center" prop="roomNum" />
      <el-table-column label="诊疗床编号" align="center" prop="bedNum" />
      <el-table-column label="过期标记" align="center" prop="expired" />
      <el-table-column label="诊室编号" align="center" prop="roomId" />
      <el-table-column label="诊室名称" align="center" prop="roomName" />
      <el-table-column label="诊疗床号" align="center" prop="bedNo" />
      <el-table-column
        label="创建时间"
        align="center"
@@ -187,6 +186,15 @@
          >
            删除
          </el-button>
          <el-button
            link
            type="danger"
            @click="handleJump(scope.row)"
            v-if="scope.row.status === 10"
            v-hasPermi="['ecg:queue:jump']"
          >
            {{scope.row.jumpFlag === 0? "插队" : "取消插队"}}
          </el-button>
        </template>
      </el-table-column>
    </el-table>
@@ -208,6 +216,7 @@
import download from '@/utils/download'
import { queueApi, queueVO } from '@/api/ecg/queue'
import queueForm from './queueForm.vue'
import {DICT_TYPE, getIntDictOptions} from '@/utils/dict'
/** 排队 列表 */
defineOptions({ name: 'queue' })
@@ -230,8 +239,8 @@
  status: undefined,
  passed: undefined,
  expired: undefined,
  roomNum: undefined,
  bedNum: undefined,
  roomId: undefined,
  bedNo: undefined,
  createTime: []
})
const queryFormRef = ref() // 搜索的表单
@@ -280,6 +289,21 @@
  } catch {}
}
/** 插队按钮操作 */
const handleJump = async (item: queueVO ) => {
  try {
    if (item.jumpFlag === 0)
      item.jumpFlag = 1
    else
      item.jumpFlag = 0
    const data = await queueApi.jumpQueue(item)
    message.success(data)
    // 刷新列表
    await getList()
  } catch {}
}
/** 导出按钮操作 */
const handleExport = async () => {
  try {
@@ -299,4 +323,4 @@
onMounted(() => {
  getList()
})
</script>
</script>