diff --git a/src/api/doctor/index.ts b/src/api/doctor/index.ts new file mode 100644 index 0000000..824bdf0 --- /dev/null +++ b/src/api/doctor/index.ts @@ -0,0 +1,49 @@ +import request from '@/config/axios' + +// 保存医生签名信息 VO +export interface DoctorVO { + id: number // 主键 + doctorid: string // 医生编号 + doctorname: string // 医生姓名 + doctorsign: string // 医生签名图片 + orgid: string // 机构ID + orgname: string // 机构名称 +} + +// 保存医生签名信息 API +export const DoctorApi = { + // 查询保存医生签名信息分页 + getDoctorPage: async (params: any) => { + return await request.get({ url: `/system/doctor/page`, params }) + }, + + // 查询保存医生签名信息详情 + getDoctor: async (id: number) => { + return await request.get({ url: `/system/doctor/get?id=` + id }) + }, + + // 新增保存医生签名信息 + createDoctor: async (data: DoctorVO) => { + return await request.post({ url: `/system/doctor/create`, data }) + }, + + // 修改保存医生签名信息 + updateDoctor: async (data: DoctorVO) => { + return await request.put({ url: `/system/doctor/update`, data }) + }, + + // 删除保存医生签名信息 + deleteDoctor: async (id: number) => { + return await request.delete({ url: `/system/doctor/delete?id=` + id }) + }, + + // 导出保存医生签名信息 Excel + exportDoctor: async (params) => { + return await request.download({ url: `/system/doctor/export-excel`, params }) + }, + + // 根据医生id查询医生信息 + getDoctorByDoctorId: async (doctorid: string) => { + return await request.get({ url: `/system/doctor/getDoctorByDoctorId?doctorid=` + doctorid }) + } +} diff --git a/src/views/doctor/DoctorForm.vue b/src/views/doctor/DoctorForm.vue new file mode 100644 index 0000000..b587c29 --- /dev/null +++ b/src/views/doctor/DoctorForm.vue @@ -0,0 +1,167 @@ + + + + diff --git a/src/views/doctor/index.vue b/src/views/doctor/index.vue new file mode 100644 index 0000000..6a51b9e --- /dev/null +++ b/src/views/doctor/index.vue @@ -0,0 +1,171 @@ + + + diff --git a/src/views/org/OrgForm.vue b/src/views/org/OrgForm.vue index 78adf93..546c9ac 100644 --- a/src/views/org/OrgForm.vue +++ b/src/views/org/OrgForm.vue @@ -88,8 +88,8 @@ const formRules = reactive>({ const formRef = ref() // 表单 Ref /** 处理机构属性变化 */ -const handleIsParentChange = async (value: string | undefined) => { - if (value === '0') { +const handleIsParentChange = async (value: number | undefined) => { + if (value === 0) { // 选择基层,显示上级机构选择框 showParentOrgSelect.value = true // 获取上级机构列表 @@ -142,7 +142,7 @@ const open = async (type: string, id?: number) => { try { formData.value = await OrgApi.getOrg(id) // 根据机构属性决定是否显示上级机构选择框 - if (formData.value.isParent == '0') { + if (formData.value.isParent === 0) { showParentOrgSelect.value = true await loadParentOrgList() formRules.parentOrgId = [{ required: true, message: '上级机构不能为空', trigger: 'change' }]