This commit is contained in:
ChenQiuYu 2025-05-28 10:46:03 +08:00
parent 8c6e84d856
commit ba32259881
2 changed files with 6 additions and 5 deletions

View File

@ -350,7 +350,8 @@ const registrationCancel = () => {
const doctorList = ref<any>([])
const getDoctorList = () => {
let query = {
role: 1
role: 1,
keyword: '',
}
post(API.Organization.Member.Search, {query: query}).then((res: any) => {
doctorList.value = res
@ -442,7 +443,7 @@ const hide = () => {
const sectionList = ref<any>([])
const getSectionList = () => {
if (!edit_data.value.organizationDoctorId) return
post(API.Organization.Member.List, {memberId: edit_data.value.organizationDoctorId}).then((res: any) => {
post(API.Organization.Section.ListByMemberId, {memberId: edit_data.value.organizationDoctorId}).then((res: any) => {
sectionList.value = res
if (res.length > 0) {
edit_data.value.organizationSectionId = res[0].id

View File

@ -94,7 +94,7 @@ import {nextTick, onMounted, ref} from 'vue'
import Edit from "@/components/registration/Edit.vue";
import List from "@/components/registration/List.vue";
import {post} from "@/utils/request";
import {getEndOfDay, getToday, formatDateArray, getPrevious30Days} from "@/utils/dateUtils.ts";
import {getEndOfDay, getToday, formatDateArray, getPrevious30Days, getCurrentDate} from "@/utils/dateUtils.ts";
import Calendar from "@/components/common/Calendar.vue";
import Panel from "@/components/common/Panel.vue";
import {Search} from "@element-plus/icons-vue";
@ -128,7 +128,7 @@ const isShowNum = ref(-1)
const roleList = ref<any>([])
onMounted(() => {
selectedDate.value = [getPrevious30Days(), getToday().end]
selectedDate.value = [getPrevious30Days(), getCurrentDate()]
initDoctor()
getPatientList()
doctorId.value = null
@ -140,7 +140,7 @@ const initDoctor = () => {
keyword: keyword.value,
role: 1
}
post(API.Patient.Registration.List, {query: query}).then((res: any) => {
post(API.Organization.Member.Search, {query: query}).then((res: any) => {
roleList.value = res
})
}