From e51828fc980ecb815822977b160067cd4b3eeda2 Mon Sep 17 00:00:00 2001 From: LiJianZhao Date: Tue, 27 May 2025 17:03:17 +0800 Subject: [PATCH] dev --- src/components/registration/CardDefault.vue | 2 +- src/components/registration/Edit.vue | 6 +++--- src/components/registration/List.vue | 5 +++-- src/views/registration/index.vue | 1 - 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/registration/CardDefault.vue b/src/components/registration/CardDefault.vue index a9669fb..0acbb48 100644 --- a/src/components/registration/CardDefault.vue +++ b/src/components/registration/CardDefault.vue @@ -12,7 +12,7 @@ const socialCard: any = defineModel(); const ReadSocialCard = async (readType: string) => { emit("changeLoading", true) isReading.value = true; - let config_db: any = await post('common/config/getall'); + let config_db: any = await post(API.Common.Config.GetAll); let config: any = {} config.ACCESS_KEY = config_db.social_ACCESS_KEY; config.SECRETKEY = config_db.social_SECRETKEY; diff --git a/src/components/registration/Edit.vue b/src/components/registration/Edit.vue index 2012588..e3d9a01 100644 --- a/src/components/registration/Edit.vue +++ b/src/components/registration/Edit.vue @@ -352,7 +352,7 @@ const getDoctorList = () => { let query = { role: 1 } - post('organization/member/search', {query: query}).then((res: any) => { + post(API.Organization.Member.Search, {query: query}).then((res: any) => { doctorList.value = res }) } @@ -373,7 +373,7 @@ const init = (doctorId: any = "", id: any = null, show: any = false) => { edit_data.value.type = 1 isBtnShow.value = dateName.value == '现在'; if (id) { - post('registration/getById', {id: id}).then((res: any) => { + post(API.Patient.Registration.Get, {id: id}).then((res: any) => { edit_data.value = res time.value = edit_data.value.timeList[edit_data.value.timeList.length - 1] }) @@ -396,7 +396,7 @@ const socialCardUpdate = (e: any) => { tableData.value = e.data.insuinfo edit_data.value.type = 2 if (!edit_data.value.certNo) return; - post('vip/vip/list', { + post(API.Patient.Base.List, { keyword: edit_data.value.certNo, page: 1, pageSize: 50 diff --git a/src/components/registration/List.vue b/src/components/registration/List.vue index e4820b4..75e5c40 100644 --- a/src/components/registration/List.vue +++ b/src/components/registration/List.vue @@ -56,6 +56,7 @@ import {defineProps, onMounted, ref} from 'vue' import {formatDate} from "@/utils/dateUtils.ts"; import {post} from "@/utils/request.ts"; +import {API} from "@/assets/config/API.ts"; const props = defineProps({ patientList: { @@ -78,7 +79,7 @@ const initDoctor = () => { keyword: null, role: 1 } - post('organization/member/search', {query: query}).then((res: any) => { + post(API.Organization.Member.Search, {query: query}).then((res: any) => { roleList.value = res }) } @@ -87,7 +88,7 @@ const rowClick = (row: any) => { emit('rowClick', row) } const initSection = () => { - post('organization/section/allList').then((res: any) => { + post(API.Organization.Section.AllList).then((res: any) => { sectionList.value = res }) } diff --git a/src/views/registration/index.vue b/src/views/registration/index.vue index a797f24..a410d20 100644 --- a/src/views/registration/index.vue +++ b/src/views/registration/index.vue @@ -97,7 +97,6 @@ import {post} from "@/utils/request"; import {getEndOfDay, getToday, formatDateArray, getPrevious30Days} from "@/utils/dateUtils.ts"; import Calendar from "@/components/common/Calendar.vue"; import Panel from "@/components/common/Panel.vue"; -import {apiConfig} from "@/assets/config/apiConfig.ts"; import {Search} from "@element-plus/icons-vue"; import {API} from "@/assets/config/API.ts";