From 8913b2215f1be482cff01771da001dc944428b5a Mon Sep 17 00:00:00 2001 From: sonjinyon <2476687577@qq.com> Date: Fri, 9 Aug 2024 15:06:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A2=84=E7=BA=A6=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/subscribe/organization/index.ts | 52 +++ .../src/api/subscribe/staff/index.ts | 57 +++ .../api/subscribe/subscribemanage/index.ts | 45 +++ .../level/components/MemberLevelSelect.vue | 1 + .../organization/OrganizationForm.vue | 130 ++++++ .../views/subscribe/organization/index.vue | 264 +++++++++++++ .../src/views/subscribe/staff/StaffForm.vue | 242 ++++++++++++ .../src/views/subscribe/staff/index.vue | 372 ++++++++++++++++++ .../subscribe/subscribemanage/ManageForm.vue | 138 +++++++ .../views/subscribe/subscribemanage/index.vue | 273 +++++++++++++ 10 files changed, 1574 insertions(+) create mode 100644 yudao-admin-vue3/src/api/subscribe/organization/index.ts create mode 100644 yudao-admin-vue3/src/api/subscribe/staff/index.ts create mode 100644 yudao-admin-vue3/src/api/subscribe/subscribemanage/index.ts create mode 100644 yudao-admin-vue3/src/views/subscribe/organization/OrganizationForm.vue create mode 100644 yudao-admin-vue3/src/views/subscribe/organization/index.vue create mode 100644 yudao-admin-vue3/src/views/subscribe/staff/StaffForm.vue create mode 100644 yudao-admin-vue3/src/views/subscribe/staff/index.vue create mode 100644 yudao-admin-vue3/src/views/subscribe/subscribemanage/ManageForm.vue create mode 100644 yudao-admin-vue3/src/views/subscribe/subscribemanage/index.vue diff --git a/yudao-admin-vue3/src/api/subscribe/organization/index.ts b/yudao-admin-vue3/src/api/subscribe/organization/index.ts new file mode 100644 index 0000000..01ab6f5 --- /dev/null +++ b/yudao-admin-vue3/src/api/subscribe/organization/index.ts @@ -0,0 +1,52 @@ +import request from '@/config/axios' + +// 机构 VO +export interface OrganizationVO { + id: number // 机构id + name: string // 机构名称 + phone: string // 机构电话 + email: string // 机构邮箱 + picture: string // 机构图片 + address: string // 机构地址 + depict: string // 机构简介 + status: number // 状态 +} + +// 机构 API +export const OrganizationApi = { + // 查询机构分页 + getOrganizationPage: async (params: any) => { + return await request.get({ url: `/subscribe/organization/page`, params }) + }, + + // 查询机构详情 + getOrganization: async (id: number) => { + return await request.get({ url: `/subscribe/organization/get?id=` + id }) + }, + + // 新增机构 + createOrganization: async (data: OrganizationVO) => { + return await request.post({ url: `/subscribe/organization/create`, data }) + }, + + // 修改机构 + updateOrganization: async (data: OrganizationVO) => { + return await request.put({ url: `/subscribe/organization/update`, data }) + }, + + // 删除机构 + deleteOrganization: async (id: number) => { + return await request.delete({ url: `/subscribe/organization/delete?id=` + id }) + }, + + // 导出机构 Excel + exportOrganization: async (params) => { + return await request.download({ url: `/subscribe/organization/export-excel`, params }) + }, + + // 查询机构名称数据 + getOrganizations: async () => { + return await request.get({ url: `/subscribe/organization/getOrganization`}) + }, + +} \ No newline at end of file diff --git a/yudao-admin-vue3/src/api/subscribe/staff/index.ts b/yudao-admin-vue3/src/api/subscribe/staff/index.ts new file mode 100644 index 0000000..edb03b0 --- /dev/null +++ b/yudao-admin-vue3/src/api/subscribe/staff/index.ts @@ -0,0 +1,57 @@ +import request from '@/config/axios' + +// 预约人员 VO +export interface StaffVO { + id: number // id + organizationId: number // 机构id + organizationName: string + serialNumber: string // 编号 + type: number // 类型 + name: string // 名称 + sex: number // 性别 + photo: string // 照片 + phone: string // 手机号 + serviceTime: string // 服务时间段 + serviceStartTime: string + serviceEndTime: string + serviceScope: string // 服务范围 + sign: number // 约满标记 + status: number // 状态 + content: string // 介绍 +} + +// 预约人员 API +export const StaffApi = { + // 查询预约人员分页 + getStaffPage: async (params: any) => { + return await request.get({ url: `/subscribe/staff/page`, params }) + }, + + // 查询预约人员详情 + getStaff: async (id: number) => { + return await request.get({ url: `/subscribe/staff/get?id=` + id }) + }, + + // 新增预约人员 + createStaff: async (data: StaffVO) => { + return await request.post({ url: `/subscribe/staff/create`, data }) + }, + + // 修改预约人员 + updateStaff: async (data: StaffVO) => { + return await request.put({ url: `/subscribe/staff/update`, data }) + }, + + // 删除预约人员 + deleteStaff: async (id: number) => { + return await request.delete({ url: `/subscribe/staff/delete?id=` + id }) + }, + + // 导出预约人员 Excel + exportStaff: async (params) => { + return await request.download({ url: `/subscribe/staff/export-excel`, params }) + }, + + + +} \ No newline at end of file diff --git a/yudao-admin-vue3/src/api/subscribe/subscribemanage/index.ts b/yudao-admin-vue3/src/api/subscribe/subscribemanage/index.ts new file mode 100644 index 0000000..e788781 --- /dev/null +++ b/yudao-admin-vue3/src/api/subscribe/subscribemanage/index.ts @@ -0,0 +1,45 @@ +import request from '@/config/axios' + +// 预约 VO +export interface ManageVO { + id: number // 表id + userId: number // 用户id + type: number // 预约类型 + staffId: number // 预约人员id + subscribeTime: Date // 预约时间 + subscribeStatus: string // 预约状态 + checkStatus: number // 审核状态 +} + +// 预约 API +export const ManageApi = { + // 查询预约分页 + getManagePage: async (params: any) => { + return await request.get({ url: `/subscribe/manage/page`, params }) + }, + + // 查询预约详情 + getManage: async (id: number) => { + return await request.get({ url: `/subscribe/manage/get?id=` + id }) + }, + + // 新增预约 + createManage: async (data: ManageVO) => { + return await request.post({ url: `/subscribe/manage/create`, data }) + }, + + // 修改预约 + updateManage: async (data: ManageVO) => { + return await request.put({ url: `/subscribe/manage/update`, data }) + }, + + // 删除预约 + deleteManage: async (id: number) => { + return await request.delete({ url: `/subscribe/manage/delete?id=` + id }) + }, + + // 导出预约 Excel + exportManage: async (params) => { + return await request.download({ url: `/subscribe/manage/export-excel`, params }) + }, +} \ No newline at end of file diff --git a/yudao-admin-vue3/src/views/member/level/components/MemberLevelSelect.vue b/yudao-admin-vue3/src/views/member/level/components/MemberLevelSelect.vue index 2a603e6..e885da3 100644 --- a/yudao-admin-vue3/src/views/member/level/components/MemberLevelSelect.vue +++ b/yudao-admin-vue3/src/views/member/level/components/MemberLevelSelect.vue @@ -36,6 +36,7 @@ const levelOptions = ref([]) const getList = async () => { levelOptions.value = await LevelApi.getSimpleLevelList() + console.log('2222222',levelOptions.value) } /** 初始化 */ diff --git a/yudao-admin-vue3/src/views/subscribe/organization/OrganizationForm.vue b/yudao-admin-vue3/src/views/subscribe/organization/OrganizationForm.vue new file mode 100644 index 0000000..b37de29 --- /dev/null +++ b/yudao-admin-vue3/src/views/subscribe/organization/OrganizationForm.vue @@ -0,0 +1,130 @@ + + \ No newline at end of file diff --git a/yudao-admin-vue3/src/views/subscribe/organization/index.vue b/yudao-admin-vue3/src/views/subscribe/organization/index.vue new file mode 100644 index 0000000..61b54c7 --- /dev/null +++ b/yudao-admin-vue3/src/views/subscribe/organization/index.vue @@ -0,0 +1,264 @@ + + + \ No newline at end of file diff --git a/yudao-admin-vue3/src/views/subscribe/staff/StaffForm.vue b/yudao-admin-vue3/src/views/subscribe/staff/StaffForm.vue new file mode 100644 index 0000000..e65669d --- /dev/null +++ b/yudao-admin-vue3/src/views/subscribe/staff/StaffForm.vue @@ -0,0 +1,242 @@ + + \ No newline at end of file diff --git a/yudao-admin-vue3/src/views/subscribe/staff/index.vue b/yudao-admin-vue3/src/views/subscribe/staff/index.vue new file mode 100644 index 0000000..8df95db --- /dev/null +++ b/yudao-admin-vue3/src/views/subscribe/staff/index.vue @@ -0,0 +1,372 @@ + + + diff --git a/yudao-admin-vue3/src/views/subscribe/subscribemanage/ManageForm.vue b/yudao-admin-vue3/src/views/subscribe/subscribemanage/ManageForm.vue new file mode 100644 index 0000000..970864c --- /dev/null +++ b/yudao-admin-vue3/src/views/subscribe/subscribemanage/ManageForm.vue @@ -0,0 +1,138 @@ + + \ No newline at end of file diff --git a/yudao-admin-vue3/src/views/subscribe/subscribemanage/index.vue b/yudao-admin-vue3/src/views/subscribe/subscribemanage/index.vue new file mode 100644 index 0000000..cdb6ce8 --- /dev/null +++ b/yudao-admin-vue3/src/views/subscribe/subscribemanage/index.vue @@ -0,0 +1,273 @@ + + + \ No newline at end of file