ecg申请诊断判断

This commit is contained in:
旺仔 2024-12-31 10:21:39 +08:00
parent 41007a5040
commit c77ae94875
2 changed files with 9 additions and 0 deletions

View File

@ -103,5 +103,8 @@ export const EcganalysisparasApi = {
}, },
getDoctorBydoctorID: async (doctorID: any) => { getDoctorBydoctorID: async (doctorID: any) => {
return await request.get({ url: `/doctor/getBydoctorID?doctorID=` + doctorID }) return await request.get({ url: `/doctor/getBydoctorID?doctorID=` + doctorID })
},
getOrg: async (orgID: any) => {
return await request.get({ url: `/org/org/getone?orgID=` + orgID })
} }
} }

View File

@ -1012,6 +1012,12 @@ function touchCopy() {
/** 申请后更新上级机构字段*/ /** 申请后更新上级机构字段*/
const getuporghiorgid = async (id: number, orgId: string) => { const getuporghiorgid = async (id: number, orgId: string) => {
try { try {
let orgInfo: any = null
if (Profilevo.value.orgId) orgInfo = await EcganalysisparasApi.getOrg(Profilevo.value.orgId)
if (!orgInfo || !orgInfo.highLevelOrgID) {
message.alertWarning('请先设置当前用户的上级机构')
return
}
if (applyFormVO.value.highLevelOrgId) { if (applyFormVO.value.highLevelOrgId) {
message.alertWarning('已提交申请') message.alertWarning('已提交申请')
return return