From e86b0b920a5ef29425b71d224c80e3d7c9dc4c5f Mon Sep 17 00:00:00 2001 From: ChenQiuYu Date: Wed, 7 May 2025 17:27:12 +0800 Subject: [PATCH] dev --- src/components/outpatient/MedicalQueue.vue | 54 ++++++++++++---------- src/components/registration/Edit.vue | 9 ++-- src/components/registration/List.vue | 2 +- 3 files changed, 35 insertions(+), 30 deletions(-) diff --git a/src/components/outpatient/MedicalQueue.vue b/src/components/outpatient/MedicalQueue.vue index 69b0f9d..b43fc1a 100644 --- a/src/components/outpatient/MedicalQueue.vue +++ b/src/components/outpatient/MedicalQueue.vue @@ -1,18 +1,19 @@ @@ -34,7 +36,7 @@ import {nextTick, onMounted, ref, watch} from "vue"; import Panel from "@/components/common/Panel.vue"; 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 {ElMessageBox} from "element-plus"; @@ -48,7 +50,7 @@ const search = ref('') const curItem = ref('') const emit = defineEmits(['getId', 'changeDetail', 'getStatus']) const tab = (item: any) => { - nextTick(()=>{ + nextTick(() => { emit('getStatus', item.value) init() if (item.value == 3) { @@ -79,9 +81,9 @@ const statusList = ref([ ]) const itemId = defineModel() onMounted(() => { - curItem.value = itemId initStatusList() - init() + curItem.value = itemId + // init() }) const loading = ref(true) const init = () => { @@ -89,18 +91,20 @@ const init = () => { post(apiConfig.DoctorList, { query: { status: props.status, + beginTime: '2024-05-07 23:59:59', + endTime: data.value.end } }).then((res: any) => { loading.value = false list.value = res.list }) } -const data=ref(getToday()) +const data = ref(getToday()) const initStatusList = () => { - post('statistics/getTipCount',{beginTime:data.value.start,endTime:data.value.end}).then((res:any)=>{ - list.value[0].num=res.waitDiagnosisCount - list.value[1].num=res.diagnosingCount - list.value[2].num=res.completeDiaCount + post('statistics/getTipCount', {beginTime: '2024-05-07 23:59:59', endTime: data.value.end}).then((res: any) => { + statusList.value[0].num = res.waitDiagnosisCount + statusList.value[1].num = res.diagnosingCount + statusList.value[2].num = res.completeDiaCount }) } const clickLi = (item: any) => { @@ -109,7 +113,6 @@ const clickLi = (item: any) => { } watch(() => props.status, () => { - initStatusList() init() // 重新初始化数据 }) @@ -168,6 +171,7 @@ watch(() => props.status, () => { } .list { + flex: 1; display: flex; min-height: 0; flex-direction: column; diff --git a/src/components/registration/Edit.vue b/src/components/registration/Edit.vue index 3e79bf2..dbccdd3 100644 --- a/src/components/registration/Edit.vue +++ b/src/components/registration/Edit.vue @@ -135,8 +135,8 @@
- 进行读卡 - + 进行读卡 +
- + 退出医保
@@ -228,6 +228,7 @@ const emit = defineEmits(['close']) const close = () => { isShow.value = false edit_data.value = {} + isShowCard.value=true emit('close') } const form = ref() @@ -293,7 +294,7 @@ const socialCardUpdate = (e: any) => { if (e) { isShowCard.value = false 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.certType = e.data.baseinfo.psn_cert_type edit_data.value.certNo = e.data.baseinfo.certno diff --git a/src/components/registration/List.vue b/src/components/registration/List.vue index 46591ab..fc9c37c 100644 --- a/src/components/registration/List.vue +++ b/src/components/registration/List.vue @@ -9,7 +9,7 @@