|
@@ -1,13 +1,20 @@
|
|
|
<template>
|
|
|
<div class="layout_container">
|
|
|
<header>
|
|
|
+ <el-input
|
|
|
+ v-model="inputContent"
|
|
|
+ style="width: 120px;margin-right: 12px"
|
|
|
+ placeholder="姓名/门诊ID"
|
|
|
+ clearable
|
|
|
+ suffix-icon="Search"
|
|
|
+ />
|
|
|
<el-button type="primary" icon="Refresh" @click="fetchUnTriagedPatient">刷新未分诊数据</el-button>
|
|
|
<el-button type="primary" icon="Refresh" @click="refreshBigScreen">刷新候诊大屏数据</el-button>
|
|
|
<el-button type="primary" @click="openCardDiag" class="m-r_8px">重新绑卡</el-button>
|
|
|
<ReadElectronicSiCard pat-no="triage" biztype="01101" @success="afterReadCard"/>
|
|
|
</header>
|
|
|
<div class="layout_main layout_el-table">
|
|
|
- <el-table :data="patients" stripe highlight-current-row>
|
|
|
+ <el-table :data="cptPatient" stripe highlight-current-row>
|
|
|
<el-table-column fixed prop="ghNo" label="队列号" sortable width="100"></el-table-column>
|
|
|
<el-table-column prop="patientId" label="id号" width="100"></el-table-column>
|
|
|
<el-table-column prop="name" label="姓名" width="100"></el-table-column>
|
|
@@ -29,15 +36,6 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-pagination
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :current-page="currentPage"
|
|
|
- :page-sizes="[15, 30, 45, 70, 100]"
|
|
|
- :page-size="pageSize"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="totalSize"
|
|
|
- ></el-pagination>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -123,23 +121,18 @@ import ReadElectronicSiCard from '@/components/medical-insurance/read-electronic
|
|
|
import {xcMessage} from "@/utils/xiaochan-element-plus";
|
|
|
import VitalSign from "@/views/clinic/triage/components/VitalSign.vue";
|
|
|
|
|
|
+const inputContent = ref('')
|
|
|
const patients = ref([])
|
|
|
-const totalSize = ref(0)
|
|
|
|
|
|
-const pageSize = ref(30)
|
|
|
-const currentPage = ref(1)
|
|
|
-const handleSizeChange = (val) => {
|
|
|
- pageSize.value = val
|
|
|
- fetchUnTriagedPatient()
|
|
|
-}
|
|
|
-const handleCurrentChange = (val) => {
|
|
|
- currentPage.value = val
|
|
|
- fetchUnTriagedPatient()
|
|
|
-}
|
|
|
+const cptPatient = computed(() => {
|
|
|
+ return patients.value.filter((item) => {
|
|
|
+ return item.patientId.indexOf(inputContent.value) > -1
|
|
|
+ || item.name.indexOf(inputContent.value) > -1
|
|
|
+ })
|
|
|
+})
|
|
|
|
|
|
const fetchUnTriagedPatient = () => {
|
|
|
- getUnTriagedPatient(currentPage.value, pageSize.value).then((res) => {
|
|
|
- totalSize.value = res.totalSize
|
|
|
+ getUnTriagedPatient().then((res) => {
|
|
|
patients.value = res.list
|
|
|
})
|
|
|
}
|
|
@@ -250,7 +243,6 @@ const showTriageDialog = ref(false)
|
|
|
const fetchInteval = ref(null)
|
|
|
|
|
|
onActivated(() => {
|
|
|
- console.log('untriage.vue - activated')
|
|
|
fetchUnTriagedPatient()
|
|
|
fetchInteval.value = setInterval(() => {
|
|
|
fetchUnTriagedPatient()
|
|
@@ -258,7 +250,6 @@ onActivated(() => {
|
|
|
})
|
|
|
|
|
|
onDeactivated(() => {
|
|
|
- console.log('untriage.vue - deactivated')
|
|
|
clearInterval(fetchInteval.value)
|
|
|
})
|
|
|
|