This commit is contained in:
ChenQiuYu 2025-05-07 17:27:12 +08:00
parent 067499bb03
commit e86b0b920a
3 changed files with 35 additions and 30 deletions

View File

@ -1,5 +1,6 @@
<template> <template>
<Panel :title="'就诊队列'"> <Panel :title="'就诊队列'" style="height: 100%">
<div class="panel-content" style="display: flex;flex-direction: column;height: 100%">
<div class="tabs"> <div class="tabs">
<span v-for="(item,index) in statusList" :class="props.status == index+1 ? 'tabs-item' : ''" <span v-for="(item,index) in statusList" :class="props.status == index+1 ? 'tabs-item' : ''"
@click="tab(item)">{{ item.label }}&nbsp;{{ item.num }}</span> @click="tab(item)">{{ item.label }}&nbsp;{{ item.num }}</span>
@ -9,8 +10,8 @@
<input class="search-input" v-model="search" placeholder="搜索门诊单" style="font-size: 16px"> <input class="search-input" v-model="search" placeholder="搜索门诊单" style="font-size: 16px">
</div> </div>
<div class="list"> <div class="list">
<el-scrollbar> <ul style="height: 100%">
<ul v-loading="loading"> <el-scrollbar style="height: 100%">
<li class="list-item" :class="curItem.id == item.id ? 'active' : ''" v-for="(item, index) in list" <li class="list-item" :class="curItem.id == item.id ? 'active' : ''" v-for="(item, index) in list"
:key="index" @click="clickLi(item)"> :key="index" @click="clickLi(item)">
<span> <span>
@ -25,8 +26,9 @@
{{ formatListTime(item.createDatetime) || '-' }} {{ formatListTime(item.createDatetime) || '-' }}
</span> </span>
</li> </li>
</ul>
</el-scrollbar> </el-scrollbar>
</ul>
</div>
</div> </div>
</Panel> </Panel>
</template> </template>
@ -34,7 +36,7 @@
import {nextTick, onMounted, ref, watch} from "vue"; import {nextTick, onMounted, ref, watch} from "vue";
import Panel from "@/components/common/Panel.vue"; import Panel from "@/components/common/Panel.vue";
import {post} from "@/utils/request.ts"; import {post} from "@/utils/request.ts";
import {formatListTime, getToday} from "@/utils/dateUtils.ts"; import {formatListTime, getToday, getThisMonth} from "@/utils/dateUtils.ts";
import {apiConfig} from "@/assets/config/apiConfig.ts"; import {apiConfig} from "@/assets/config/apiConfig.ts";
import {ElMessageBox} from "element-plus"; import {ElMessageBox} from "element-plus";
@ -48,7 +50,7 @@ const search = ref('')
const curItem = ref<any>('') const curItem = ref<any>('')
const emit = defineEmits(['getId', 'changeDetail', 'getStatus']) const emit = defineEmits(['getId', 'changeDetail', 'getStatus'])
const tab = (item: any) => { const tab = (item: any) => {
nextTick(()=>{ nextTick(() => {
emit('getStatus', item.value) emit('getStatus', item.value)
init() init()
if (item.value == 3) { if (item.value == 3) {
@ -79,9 +81,9 @@ const statusList = ref<any>([
]) ])
const itemId = defineModel() const itemId = defineModel()
onMounted(() => { onMounted(() => {
curItem.value = itemId
initStatusList() initStatusList()
init() curItem.value = itemId
// init()
}) })
const loading = ref(true) const loading = ref(true)
const init = () => { const init = () => {
@ -89,18 +91,20 @@ const init = () => {
post(apiConfig.DoctorList, { post(apiConfig.DoctorList, {
query: { query: {
status: props.status, status: props.status,
beginTime: '2024-05-07 23:59:59',
endTime: data.value.end
} }
}).then((res: any) => { }).then((res: any) => {
loading.value = false loading.value = false
list.value = res.list list.value = res.list
}) })
} }
const data=ref<any>(getToday()) const data = ref<any>(getToday())
const initStatusList = () => { const initStatusList = () => {
post('statistics/getTipCount',{beginTime:data.value.start,endTime:data.value.end}).then((res:any)=>{ post('statistics/getTipCount', {beginTime: '2024-05-07 23:59:59', endTime: data.value.end}).then((res: any) => {
list.value[0].num=res.waitDiagnosisCount statusList.value[0].num = res.waitDiagnosisCount
list.value[1].num=res.diagnosingCount statusList.value[1].num = res.diagnosingCount
list.value[2].num=res.completeDiaCount statusList.value[2].num = res.completeDiaCount
}) })
} }
const clickLi = (item: any) => { const clickLi = (item: any) => {
@ -109,7 +113,6 @@ const clickLi = (item: any) => {
} }
watch(() => props.status, () => { watch(() => props.status, () => {
initStatusList()
init() // init() //
}) })
</script> </script>
@ -168,6 +171,7 @@ watch(() => props.status, () => {
} }
.list { .list {
flex: 1;
display: flex; display: flex;
min-height: 0; min-height: 0;
flex-direction: column; flex-direction: column;

View File

@ -135,8 +135,8 @@
<el-dropdown v-if="isShowCard" placement="top-start" @show="showCardBtn" @hide="hide"> <el-dropdown v-if="isShowCard" placement="top-start" @show="showCardBtn" @hide="hide">
<div class="left" style="outline: none;"> <div class="left" style="outline: none;">
<span class="btnCard" type="primary"> <span class="btnCard" type="primary">
<img class="image" src="/public/static/images/registration/card.png" alt="" srcset="">进行读卡 <img class="image" src="/static/images/registration/card.png" alt="" srcset="">进行读卡
<img class="image1" :src="'/public/static/images/registration/'+(showBtn?2:1)+'.png'" alt="" srcset=""> <img class="image1" :src="'/static/images/registration/'+(showBtn?2:1)+'.png'" alt="" srcset="">
</span> </span>
</div> </div>
<template #dropdown> <template #dropdown>
@ -145,7 +145,7 @@
</template> </template>
</el-dropdown> </el-dropdown>
<div class="closeBtn" v-else @click="deleteCard" style="outline: none;"> <div class="closeBtn" v-else @click="deleteCard" style="outline: none;">
<img class="image" src="/public/static/images/registration/card.png" alt="" srcset=""> <img class="image" src="/static/images/registration/card.png" alt="" srcset="">
退出医保 退出医保
</div> </div>
<div class="bottom-right"> <div class="bottom-right">
@ -228,6 +228,7 @@ const emit = defineEmits(['close'])
const close = () => { const close = () => {
isShow.value = false isShow.value = false
edit_data.value = {} edit_data.value = {}
isShowCard.value=true
emit('close') emit('close')
} }
const form = ref() const form = ref()
@ -293,7 +294,7 @@ const socialCardUpdate = (e: any) => {
if (e) { if (e) {
isShowCard.value = false isShowCard.value = false
edit_data.value = e.data.baseinfo edit_data.value = e.data.baseinfo
edit_data.value.gender = e.data.baseinfo.gend edit_data.value.gender = Number(e.data.baseinfo.gend)
edit_data.value.name = e.data.baseinfo.psn_name edit_data.value.name = e.data.baseinfo.psn_name
edit_data.value.certType = e.data.baseinfo.psn_cert_type edit_data.value.certType = e.data.baseinfo.psn_cert_type
edit_data.value.certNo = e.data.baseinfo.certno edit_data.value.certNo = e.data.baseinfo.certno

View File

@ -9,7 +9,7 @@
<template #default="scope"> <template #default="scope">
<div style="display: flex;align-items: center;"> <div style="display: flex;align-items: center;">
<img style="width: 25px;height: 25px;margin-right: 10px" <img style="width: 25px;height: 25px;margin-right: 10px"
:src="scope.row.gender === 1 ? '/public/static/images/member/man.png' :scope.row.gender === 2 ? '/public/static/images/member/women.png':'无'" :src="scope.row.gender === 1 ? '/static/images/member/man.png' :scope.row.gender === 2 ? '/static/images/member/women.png':'无'"
alt="" srcset=""> alt="" srcset="">
<span> {{ scope.row.name }}</span> <span> {{ scope.row.name }}</span>
</div> </div>