增加列表显示危急值标识
This commit is contained in:
parent
3b8b2c1dcb
commit
af72564534
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -62,7 +62,7 @@
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[typescript]": {
|
||||
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
|
||||
"editor.defaultFormatter": "vscode.typescript-language-features"
|
||||
},
|
||||
"[typescriptreact]": {
|
||||
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
|
||||
|
@ -119,4 +119,9 @@ CollectAndCancellation: async (id: String,type:string) => {
|
||||
ftppdf: async (data: inspdfscreenshotVO) => {
|
||||
return await request.post({ url: `/tblist/patientexamlist/ftppdf`, data })
|
||||
},
|
||||
// 更新危急值标识
|
||||
Updatetblistwarning: async (id: String, type: string) => {
|
||||
return await request.get({ url: `/tblist/patientexamlist/Updatetblistwarning?id=${id}&&type=${type}` })
|
||||
},
|
||||
|
||||
}
|
||||
|
@ -64,7 +64,7 @@
|
||||
<el-button type="primary" plain @click="openECGDialog" v-if="isshowwjz"
|
||||
><el-icon><Warning /></el-icon>危急值</el-button
|
||||
>
|
||||
<el-button type="primary" plain @click="openreprotdiag" v-if="isshowysb"
|
||||
<el-button type="danger" plain @click="openreprotdiag" v-if="isshowysb"
|
||||
><el-icon><Check /></el-icon>已上报</el-button
|
||||
>
|
||||
</el-button-group>
|
||||
@ -559,6 +559,7 @@ import ReportInfoECG from '@/views/applyregistration/reportPrintStatistics/Repor
|
||||
import htmlToPdf from '@/utils/htmlPdf'
|
||||
import ECGWarningDialog from '@/views/ECG/ECGWaring/ECGWarningDialog.vue'
|
||||
import ECGReport from '@/views/ECG/ECGWaring/ECGReport.vue'
|
||||
import { WarningApi, WarningVO } from '@/api/system/warning'
|
||||
|
||||
/** 提交表单 */
|
||||
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
|
||||
@ -636,10 +637,14 @@ const open = async (row: any) => {
|
||||
eltextrow.value = integer
|
||||
}
|
||||
})
|
||||
//查询当前患者的危急值相关信息
|
||||
const warningdata = await WarningApi.getexmidororgiddata(row.examId, row.orgId)
|
||||
//判断是否显示危急值上报功能 条件是当前机构等于上级机构
|
||||
isshowwjz.value = Profilevo.value.orgId === row.highLevelOrgId ? true : false
|
||||
if (warningdata.reportDate) {
|
||||
isshowysb.value = Profilevo.value.orgId === row.orgId ? true : false
|
||||
}
|
||||
}
|
||||
|
||||
// 返回的列表的数据
|
||||
const queryParams = ref({
|
||||
|
@ -1,10 +1,5 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
title="危急值上报详情"
|
||||
width="1000px"
|
||||
style="height: 720px"
|
||||
>
|
||||
<el-dialog v-model="dialogVisible" title="危急值上报详情" width="1000px" style="height: 720px">
|
||||
<div class="modal">
|
||||
<div class="modal-content">
|
||||
<div class="left-side">
|
||||
@ -177,7 +172,6 @@ const opendiag = async (row) => {
|
||||
//查询当前患者的危急值相关信息
|
||||
const data = await WarningApi.getexmidororgiddata(rowinfo.value.examId, rowinfo.value.orgId)
|
||||
warintinfo.value = data
|
||||
|
||||
//处理时间轴相关
|
||||
if (!data.readDateTime) {
|
||||
await updatereadDateTime(data.id)
|
||||
|
@ -63,6 +63,7 @@ import { ref } from 'vue'
|
||||
import { getUserProfile, ProfileVO } from '@/api/system/user/profile'
|
||||
import { WarningApi, WarningVO } from '@/api/system/warning'
|
||||
import { ReportPrintStatisticsApi } from '@/api/applyregistration/reportPrintStatistics'
|
||||
import { PatientexamlistApi, PatientexamlistVO } from '@/api/tblist/patientexamlist'
|
||||
const { t } = useI18n() // 国际化
|
||||
const message = useMessage() // 消息弹窗
|
||||
const orgInfo = ref<any>('')
|
||||
@ -126,6 +127,8 @@ async function report() {
|
||||
const data = formData.value as unknown as WarningVO
|
||||
const re = await WarningApi.createWarning(data)
|
||||
if (re) {
|
||||
//更新数据列表的危急值状态
|
||||
await PatientexamlistApi.Updatetblistwarning(rowinfo.value.id, '1')
|
||||
message.alertSuccess('上报成功')
|
||||
}
|
||||
dialogVisible.value = false
|
||||
|
@ -198,6 +198,12 @@
|
||||
<span>已申请</span>
|
||||
</el-tag>
|
||||
</div>
|
||||
<!--如果有危急值显示红心-->
|
||||
<div v-if="scope.row.warning===1">
|
||||
<el-tag>
|
||||
<span> <el-icon><Star /></el-icon></span>
|
||||
</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
Loading…
Reference in New Issue
Block a user