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 @@
- {{ scope.row.reportstatus }}
+
+ {{ scope.row.reportstatus }}
+
@@ -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();