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 = ''