增加列表显示危急值标识

This commit is contained in:
lxd 2024-12-05 16:40:25 +08:00
parent 3b8b2c1dcb
commit af72564534
6 changed files with 76 additions and 63 deletions

View File

@ -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"

View File

@ -22,7 +22,7 @@ export interface PatientexamlistVO {
diagResults: string // 诊断结论
diagDate: Date // 下诊断结论的时间:年月日时分秒
diagDoctor: string // 诊断医生
diagDoctorId:string
diagDoctorId: string
reviewDoctor: string // 审核医生
reviewDate: Date // 审核日期:年月日时分秒
thumbnailImgUrl: string // 缩略图oss url, httP:oss url
@ -30,20 +30,20 @@ export interface PatientexamlistVO {
regId: string // 登记单号
diagFlag: string // 阴性阳性标记
deviceName: string // 影像设备名称
notes:string//备注
billDoctorDepartment:string// 开单科室 送检科室
StudyInsta:string
isFavourite:string //是否收藏
pdfurl:String//pdf地址
warning:String//是否有危急值
applyhighLevelname:String//申请上级机构医生
notes: string//备注
billDoctorDepartment: string// 开单科室 送检科室
StudyInsta: string
isFavourite: string //是否收藏
pdfurl: String//pdf地址
warning: String//是否有危急值
applyhighLevelname: String//申请上级机构医生
}
export interface inspdfscreenshotVO {
id: string // 主键
imagebase: string // 图片
model:string//类型 0 接口 1ftp
folderPath:string //
model: string//类型 0 接口 1ftp
folderPath: string //
}
// PACS检查列表 API
export const PatientexamlistApi = {
@ -77,46 +77,51 @@ export const PatientexamlistApi = {
return await request.download({ url: `/tblist/patientexamlist/export-excel`, params })
},
getuporghiid: async (id: number,orgId:String) => {
return await request.get({ url: `/tblist/patientexamlist/UPDATEHigOrg?id=${id}&&orgId=${orgId}` })
},
// 超声保存修改
examineupdatelist: async (data: PatientexamlistVO) => {
getuporghiid: async (id: number, orgId: String) => {
return await request.get({ url: `/tblist/patientexamlist/UPDATEHigOrg?id=${id}&&orgId=${orgId}` })
},
// 超声保存修改
examineupdatelist: async (data: PatientexamlistVO) => {
return await request.put({ url: `/tblist/patientexamlist/examineupdate`, data })
},
// 超声审核
examine: async (id: String) => {
return await request.get({ url: `/tblist/patientexamlist/examine?id=` + id })
},
return await request.get({ url: `/tblist/patientexamlist/examine?id=` + id })
},
// dicom数据同步
dicomDataSync: async () => {
// dicom数据同步
dicomDataSync: async () => {
return await request.get({ url: `/tblist/patientexamlist/dicomDataSync` })
},
// 分检数据刷新
dicomDataRefresh: async () => {
return await request.get({ url: `/tblist/patientexamlist/dicomDataRefresh` })
},
// 获取已检查全部的阴性阳性重大阳性统计
WholeDiagFlagCount: async () => {
return await request.get({ url: `/tblist/patientexamlist/WholeDiagFlagCount` })
},
// 获取一周已检查全部的阴性阳性重大阳性统计
GetDateYYZDYXCount: async () => {
return await request.get({ url: `/tblist/patientexamlist/GetDateYYZDYXCount` })
},
// 收藏功能
CollectAndCancellation: async (id: String, type: string) => {
return await request.get({ url: `/tblist/patientexamlist/CollectAndCancellation?id=${id}&&type=${type}` })
},
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}` })
},
// 分检数据刷新
dicomDataRefresh: async () => {
return await request.get({ url: `/tblist/patientexamlist/dicomDataRefresh` })
},
// 获取已检查全部的阴性阳性重大阳性统计
WholeDiagFlagCount: async () => {
return await request.get({ url: `/tblist/patientexamlist/WholeDiagFlagCount`})
},
// 获取一周已检查全部的阴性阳性重大阳性统计
GetDateYYZDYXCount: async () => {
return await request.get({ url: `/tblist/patientexamlist/GetDateYYZDYXCount`})
},
// 收藏功能
CollectAndCancellation: async (id: String,type:string) => {
return await request.get({ url: `/tblist/patientexamlist/CollectAndCancellation?id=${id}&&type=${type}`})
},
ftppdf: async (data:inspdfscreenshotVO) => {
return await request.post({ url: `/tblist/patientexamlist/ftppdf`,data})
},
}

View File

@ -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
@ -593,7 +594,7 @@ const imagebase64 = ref('')
const isprintimage = ref(false) //base64
const ECGDialog = ref() //
const isshowwjz = ref(false)
const isshowysb=ref(false)
const isshowysb = ref(false)
const ECGReportDialog = ref() //
//
const treeDefaultProps = {
@ -636,9 +637,13 @@ const open = async (row: any) => {
eltextrow.value = integer
}
})
//
isshowwjz.value=Profilevo.value.orgId===row.highLevelOrgId?true:false
isshowysb.value=Profilevo.value.orgId===row.orgId?true:false
//
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
}
}
//

View File

@ -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">
@ -164,7 +159,7 @@ const warintinfo = ref()
const rowinfo = ref() //
const conreadDateTime = ref() //
const Profilevo = ref<ProfileVO>({} as ProfileVO) //
const issaveshow=ref(false)//
const issaveshow = ref(false) //
const receivename = ref() //
const dealname = ref() //
const isshowwjztime = ref(false) //
@ -173,11 +168,10 @@ const opendiag = async (row) => {
rowinfo.value = row
resetForm()
await getlogininfo() // 使 ISO
//
const data = await WarningApi.getexmidororgiddata(rowinfo.value.examId, rowinfo.value.orgId)
warintinfo.value = data
//
if (!data.readDateTime) {
await updatereadDateTime(data.id)
@ -188,11 +182,11 @@ const opendiag = async (row) => {
if (data.checkDateTime) {
formData.value.checkDateTime = formattedDate(data.checkDateTime)
isshowwjztime.value = true
issaveshow.value=true
issaveshow.value = true
} else {
formData.value.checkDateTime = new Date().toLocaleString().replace(/\//g, '-')
isshowwjztime.value = false
issaveshow.value=false
issaveshow.value = false
}
receivename.value = Profilevo.value.nickname
@ -209,7 +203,7 @@ async function save() {
const data = await WarningApi.SaveupdateWarning(savedata)
if (data) {
isshowwjztime.value = true
issaveshow.value=true
issaveshow.value = true
message.alertSuccess('确认成功')
}
}
@ -267,8 +261,8 @@ const resetForm = () => {
warningProcess: undefined,
readremark: undefined
}
//
warintinfo.value=''
//
warintinfo.value = ''
}
defineExpose({ opendiag }) // open
/** 提交表单 */

View File

@ -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>('')
@ -103,7 +104,7 @@ const opendiag = async (type, row) => {
//
formData.value.reportDoctor = Profilevo.value.nickname
}
formLoading.value = false
dialogVisible.value = true
}
@ -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

View File

@ -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>