From aa14e004d234689926e57a60fd9f7c0efa9c6e79 Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Wed, 10 Jul 2024 17:35:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0PACS=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E5=8A=9F=E8=83=BD=E6=8E=A5=E5=8F=A3=20?= =?UTF-8?q?=E5=92=8C=E4=BF=AE=E6=94=B9=E7=95=8C=E9=9D=A2=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tblist/patientexamlist/index.ts | 5 +++ src/views/tblist/patientexamlist/index.vue | 39 +++++++++++++++++++--- 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/src/api/tblist/patientexamlist/index.ts b/src/api/tblist/patientexamlist/index.ts index cec975bd..efeed4f3 100644 --- a/src/api/tblist/patientexamlist/index.ts +++ b/src/api/tblist/patientexamlist/index.ts @@ -58,4 +58,9 @@ export const PatientexamlistApi = { exportPatientexamlist: async (params) => { return await request.download({ url: `/tblist/patientexamlist/export-excel`, params }) }, + + + getuporghiid: async (id: number,orgId:String) => { + return await request.download({ url: `/tblist/patientexamlist/UPDATEHigOrg?id=${id}&&orgId=${orgId}` }) + }, } diff --git a/src/views/tblist/patientexamlist/index.vue b/src/views/tblist/patientexamlist/index.vue index 06ad8ba3..9386880e 100644 --- a/src/views/tblist/patientexamlist/index.vue +++ b/src/views/tblist/patientexamlist/index.vue @@ -106,6 +106,7 @@ > + @@ -290,7 +291,9 @@ @@ -353,8 +356,8 @@ size="small" type="primary" - @click="openForm('update', scope.row.id)" - v-hasPermi="['tblist:patientexamlist:update']" + @click="getuporghiorgid(scope.row.id, scope.row.orgId,scope.row.reportstatus)" + v-hasPermi="['tblist:patientexamlist:query']" > 申请 @@ -412,8 +415,8 @@ const queryParams = reactive({ applicationDate: [], uploadDate: [], orgName: undefined, - orgId: undefined, - highLevelOrgId: undefined, + orgId: "", + highLevelOrgId: "", createDate: [], examDescription: undefined, diagResults: undefined, @@ -495,6 +498,9 @@ const getList = async () => { /** 搜索按钮操作 */ const handleQuery = () => { queryParams.pageNo = 1 + //获取到当前登陆用户的机构时 要进行赋值 + queryParams.orgId="" + queryParams.highLevelOrgId="" getList() } @@ -518,6 +524,27 @@ const openForm = (type: string, id?: number) => { formRef.value.open(type, id) } +/** 申请后更新上级机构字段*/ +const getuporghiorgid=async (id: number,orgId:string,reportstatus:string) => { + try { + if(reportstatus=="未申请") + { + await message.confirm("是否要进行申请?","确认提示") + await PatientexamlistApi.getuporghiid(id,orgId) + message.success(t('common.delSuccess')) + // 刷新列表 + await getList() + } + else + { + await message. info("只有未申请才可以进行操作") + } + + } catch {} +} + + + /** 删除按钮操作 */ const handleDelete = async (id: number) => { try { @@ -559,6 +586,8 @@ const handleExport = async () => { /** 初始化 **/ onMounted(() => { + + //在初始化的时候查询到当前登陆用户的机构 和上级机构 /** aaaaa **/ //新代码 examDate_radio_change();