diff --git a/src/components/outpatient/MedicalQueue.vue b/src/components/outpatient/MedicalQueue.vue index 3a7db4e..b27a30a 100644 --- a/src/components/outpatient/MedicalQueue.vue +++ b/src/components/outpatient/MedicalQueue.vue @@ -38,7 +38,7 @@ {{ item.name }} - {{ formatListTime(item.createDatetime)}} + {{ formatListTime(item.createDatetime) }} {{ item.type == 2 ? '医保' : '自费' }} @@ -104,7 +104,7 @@ onMounted(() => { // 启动定时器,每秒更新一次 refreshInterval = setInterval(() => { initList() - }, 60*1000); // 每1000毫秒(即1秒)执行一次 + }, 60 * 1000); // 每1000毫秒(即1秒)执行一次 }) onUnmounted(() => { // 组件卸载时清除定时器 @@ -206,11 +206,8 @@ const clickLi = (item: any, showBox: any = true) => { } const changeCurItemOrStatus = (item: any, status: any) => { - clickLi(item, false) - if (curStatus != null) { - curStatus.value = status - init() - } + curStatus.value = status + init() } defineExpose({changeCurItemOrStatus}) watch(() => curStatus.value, () => { @@ -234,7 +231,7 @@ const setDateTip = () => { } watch(() => selectedDate.value, (newValue, oldValue) => { - curItem.value=null + curItem.value = null emit('clickItem', curItem.value) if (newValue == oldValue) { init() diff --git a/src/components/registration/Edit.vue b/src/components/registration/Edit.vue index 5514d87..4bd6957 100644 --- a/src/components/registration/Edit.vue +++ b/src/components/registration/Edit.vue @@ -377,7 +377,6 @@ const init = (doctorId: any = "", id: any = null, show: any = false) => { if (id) { post('registration/getById', {id: id}).then((res: any) => { edit_data.value = res - edit_data.value.certType = Number(edit_data.value.certType) time.value = edit_data.value.timeList[edit_data.value.timeList.length - 1] }) } @@ -393,7 +392,7 @@ const socialCardUpdate = (e: any) => { isShowCard.value = false edit_data.value.gender = Number(e.data.baseinfo.gend) edit_data.value.name = e.data.baseinfo.psn_name - edit_data.value.certType = Number(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.age = Math.floor(e.data.baseinfo.age) tableData.value = e.data.insuinfo @@ -407,7 +406,7 @@ const socialCardUpdate = (e: any) => { edit_data.value.name = res.list[0].name edit_data.value.gender = res.list[0].sex edit_data.value.phone = res.list[0].phone - edit_data.value.certType = Number(res.list[0].certType) + edit_data.value.certType =res.list[0].certType edit_data.value.certNo = res.list[0].certNo edit_data.value.memo = res.list[0].remark edit_data.value.visitType = 1 diff --git a/src/views/outpatient/index.vue b/src/views/outpatient/index.vue index 9be6da0..cbc4d46 100644 --- a/src/views/outpatient/index.vue +++ b/src/views/outpatient/index.vue @@ -104,7 +104,7 @@ const save = () => { } else { post('medical/record/save', {data: data}).then((res: any) => { ElMessage.success("接诊完毕,请到收费页面收费") - medicalQueueRef.value?.changeCurItemOrStatus(null, 2); + medicalQueueRef.value?.changeCurItemOrStatus(registerId.value, 3); }) } }