dev
This commit is contained in:
parent
8c6e84d856
commit
ba32259881
|
|
@ -350,7 +350,8 @@ const registrationCancel = () => {
|
||||||
const doctorList = ref<any>([])
|
const doctorList = ref<any>([])
|
||||||
const getDoctorList = () => {
|
const getDoctorList = () => {
|
||||||
let query = {
|
let query = {
|
||||||
role: 1
|
role: 1,
|
||||||
|
keyword: '',
|
||||||
}
|
}
|
||||||
post(API.Organization.Member.Search, {query: query}).then((res: any) => {
|
post(API.Organization.Member.Search, {query: query}).then((res: any) => {
|
||||||
doctorList.value = res
|
doctorList.value = res
|
||||||
|
|
@ -442,7 +443,7 @@ const hide = () => {
|
||||||
const sectionList = ref<any>([])
|
const sectionList = ref<any>([])
|
||||||
const getSectionList = () => {
|
const getSectionList = () => {
|
||||||
if (!edit_data.value.organizationDoctorId) return
|
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
|
sectionList.value = res
|
||||||
if (res.length > 0) {
|
if (res.length > 0) {
|
||||||
edit_data.value.organizationSectionId = res[0].id
|
edit_data.value.organizationSectionId = res[0].id
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ import {nextTick, onMounted, ref} from 'vue'
|
||||||
import Edit from "@/components/registration/Edit.vue";
|
import Edit from "@/components/registration/Edit.vue";
|
||||||
import List from "@/components/registration/List.vue";
|
import List from "@/components/registration/List.vue";
|
||||||
import {post} from "@/utils/request";
|
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 Calendar from "@/components/common/Calendar.vue";
|
||||||
import Panel from "@/components/common/Panel.vue";
|
import Panel from "@/components/common/Panel.vue";
|
||||||
import {Search} from "@element-plus/icons-vue";
|
import {Search} from "@element-plus/icons-vue";
|
||||||
|
|
@ -128,7 +128,7 @@ const isShowNum = ref(-1)
|
||||||
const roleList = ref<any>([])
|
const roleList = ref<any>([])
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
selectedDate.value = [getPrevious30Days(), getToday().end]
|
selectedDate.value = [getPrevious30Days(), getCurrentDate()]
|
||||||
initDoctor()
|
initDoctor()
|
||||||
getPatientList()
|
getPatientList()
|
||||||
doctorId.value = null
|
doctorId.value = null
|
||||||
|
|
@ -140,7 +140,7 @@ const initDoctor = () => {
|
||||||
keyword: keyword.value,
|
keyword: keyword.value,
|
||||||
role: 1
|
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
|
roleList.value = res
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue