This commit is contained in:
ChenQiuYu 2025-05-28 11:01:10 +08:00
parent ba32259881
commit 4a10d74bb3
4 changed files with 7 additions and 31 deletions

View File

@ -77,7 +77,7 @@ import PopoverInput from "@/components/PopoverInput.vue";
import DiagnosisSearchInput from "@/components/outpatient/DiagnosisSearchInput.vue";
import PhysiqueExamInput from "@/components/outpatient/PhysiqueExamInput.vue";
import {apiConfig} from "@/assets/config/apiConfig.ts";
import {API} from "@/assets/config/API.ts";
const props = defineProps({
disabled: {
type: Boolean,

View File

@ -27,7 +27,7 @@ import DiseaseDetails from './DiseaseDetails.vue';
import {post} from "@/utils/request.ts";
import {ref} from "vue";
import {formatListTime} from "@/utils/dateUtils.ts";
import {API} from "@/assets/config/API.ts";
import {API, Base} from "@/assets/config/API.ts";
const props = defineProps({
status: {
@ -37,7 +37,7 @@ const props = defineProps({
})
const list = ref<any>([])
const init = (patientId: any) => {
post(API.Diagnosis.ListByPatient, {patientId: patientId}).then((res: any) => {
post(API.Diagnosis.Base.ListByPatient, {patientId: patientId}).then((res: any) => {
list.value = res
})
}

View File

@ -105,7 +105,7 @@ onMounted(() => {
}
//
refreshInterval = setInterval(() => {
initList()
init()
}, 60 * 1000); // 10001
})
onUnmounted(() => {
@ -115,30 +115,6 @@ onUnmounted(() => {
refreshInterval = null;
}
});
const initList = async () => {
selectedDateStr.value = setDateTip()
try {
let data: any = await post(API.Patient.Registration.AllList, {
query: {
status: curStatus.value,
beginTime: selectedDate.value,
endTime: getEndOfDay(new Date(selectedDate.value))
}
}, {catch_error: true});
list.value = data.list
if (itemId.value != null) {
list.value.forEach((item: any, index: any) => {
if (item.id == itemId.value && curStatus.value == 2) {
clickLi(item, false)
}
})
}
} catch (e) {
} finally {
}
initStatusList()
}
const loading = ref(true)
const init = async () => {
selectedDateStr.value = setDateTip()
@ -169,7 +145,7 @@ const init = async () => {
initStatusList()
}
const initStatusList = () => {
post(API.Patient.Registration.ChangeStatus, {
post(API.Statistics.Base.GetQueueCount, {
beginTime: selectedDate.value,
endTime: getEndOfDay(new Date(selectedDate.value))
}).then((res: any) => {

View File

@ -312,7 +312,7 @@ const save = () => {
}
if (edit_data.value.id) {
post(API.Patient.Base.Update, {
post(API.Patient.Registration.Edit, {
data: data, mdtrtCertNo: socialCard.value?.mdtrtCertNo,
mdtrtCertType: socialCard.value?.mdtrtCertType
}).then(() => {
@ -320,7 +320,7 @@ const save = () => {
close()
})
} else {
post(API.Patient.Base.Create, {
post(API.Patient.Registration.Add, {
data: data,
mdtrtCertNo: socialCard.value?.mdtrtCertNo,
mdtrtCertType: socialCard.value?.mdtrtCertType