From 6f9d054cec52bc4633e227f7b96c2881b0ef501a Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Tue, 23 Jul 2024 14:58:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=8C=BB=E7=94=9F=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/doctor/index.ts | 61 ++++++ src/views/system/doctor/Form.vue | 221 +++++++++++++++++++++ src/views/system/doctor/index.vue | 204 +++++++++++++++++++ src/views/ultrasoniccom/ultrasonicForm.vue | 1 + 4 files changed, 487 insertions(+) create mode 100644 src/api/system/doctor/index.ts create mode 100644 src/views/system/doctor/Form.vue create mode 100644 src/views/system/doctor/index.vue diff --git a/src/api/system/doctor/index.ts b/src/api/system/doctor/index.ts new file mode 100644 index 00000000..75b83065 --- /dev/null +++ b/src/api/system/doctor/index.ts @@ -0,0 +1,61 @@ +import request from '@/config/axios' + +// 医生管理 VO +export interface VO { + doctorID: string // 主键 + doctorName: string // 医生姓名 + gender: string // 性别 + birthday: Date // 出生日期 + departmentName: string // 科室名称 + doctorTel: string // 医生联系电话 + remark: string // 备注 + eSignatureUrl: string // 医生电子签名URL + doctorLevel: string // 医生级别:执业医师,主治医师,副主任医师,主任医师 + orgId: string // 机构ID + departmentCode: string // 科室代码 +} + +// 上传图片 + +export interface baseFile { + doctorID: string // 主键 + base: string // 图片base64 + imagefilename:string//名称 +} +// 医生管理 API +export const Api = { + // 查询医生管理分页 + getPage: async (params: any) => { + return await request.get({ url: `/doctor/page`, params }) + }, + + // 查询医生管理详情 + get: async (id: number) => { + return await request.get({ url: `/doctor/get?id=` + id }) + }, + + // 新增医生管理 + create: async (data: VO) => { + return await request.post({ url: `/doctor/create`, data }) + }, + + // 修改医生管理 + update: async (data: VO) => { + return await request.put({ url: `/doctor/update`, data }) + }, + + // 删除医生管理 + delete: async (id: number,name:string) => { + return await request.delete({ url: `/doctor/delete?id=${id}&&username=${name}` }) + }, + + // 导出医生管理 Excel + export: async (params) => { + return await request.download({ url: `/doctor/export-excel`, params }) + }, + // 上传图片 + upload: async (data:baseFile) => { + return await request.post({ url: `/doctor/upload`, data}) +}, + +} diff --git a/src/views/system/doctor/Form.vue b/src/views/system/doctor/Form.vue new file mode 100644 index 00000000..8cd20f7c --- /dev/null +++ b/src/views/system/doctor/Form.vue @@ -0,0 +1,221 @@ + + diff --git a/src/views/system/doctor/index.vue b/src/views/system/doctor/index.vue new file mode 100644 index 00000000..45acd0bf --- /dev/null +++ b/src/views/system/doctor/index.vue @@ -0,0 +1,204 @@ + + + \ No newline at end of file diff --git a/src/views/ultrasoniccom/ultrasonicForm.vue b/src/views/ultrasoniccom/ultrasonicForm.vue index a86161f8..6bd442cf 100644 --- a/src/views/ultrasoniccom/ultrasonicForm.vue +++ b/src/views/ultrasoniccom/ultrasonicForm.vue @@ -756,6 +756,7 @@ const getlogininfo = async () => { /** 重置表单 */ const resetForm = () => { + applyFormVO.value={} as PatientexamlistVO pid='' strzdjl= '' strsj = ''