心电模块修改危急值功能
This commit is contained in:
parent
9d5073ef6a
commit
d4da28a879
@ -64,7 +64,7 @@
|
|||||||
<el-button type="primary" plain @click="openECGDialog" v-if="isshowwjz"
|
<el-button type="primary" plain @click="openECGDialog" v-if="isshowwjz"
|
||||||
><el-icon><Warning /></el-icon>危急值</el-button
|
><el-icon><Warning /></el-icon>危急值</el-button
|
||||||
>
|
>
|
||||||
<el-button type="primary" plain @click="openreprotdiag"
|
<el-button type="primary" plain @click="openreprotdiag" v-if="isshowysb"
|
||||||
><el-icon><Check /></el-icon>已上报</el-button
|
><el-icon><Check /></el-icon>已上报</el-button
|
||||||
>
|
>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
@ -593,6 +593,7 @@ const imagebase64 = ref('')
|
|||||||
const isprintimage = ref(false) //是否生成打印文件base64
|
const isprintimage = ref(false) //是否生成打印文件base64
|
||||||
const ECGDialog = ref() //危急值消息弹窗
|
const ECGDialog = ref() //危急值消息弹窗
|
||||||
const isshowwjz = ref(false)
|
const isshowwjz = ref(false)
|
||||||
|
const isshowysb=ref(false)
|
||||||
const ECGReportDialog = ref() //危急值消息弹窗
|
const ECGReportDialog = ref() //危急值消息弹窗
|
||||||
// 树配置项
|
// 树配置项
|
||||||
const treeDefaultProps = {
|
const treeDefaultProps = {
|
||||||
@ -621,7 +622,8 @@ const open = async (row: any) => {
|
|||||||
isChildVisible.value = true
|
isChildVisible.value = true
|
||||||
isshowwjz.value = true
|
isshowwjz.value = true
|
||||||
//判断是否显示危急值上报功能 条件是当前机构等于上级机构
|
//判断是否显示危急值上报功能 条件是当前机构等于上级机构
|
||||||
// isshowwjz.value=Profilevo.value.orgId===row.highLevelOrgId?true:false
|
isshowwjz.value=Profilevo.value.orgId===row.highLevelOrgId?true:false
|
||||||
|
isshowysb.value=Profilevo.value.orgId===row.orgId?true:false
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
/* 计算右侧诊断*/
|
/* 计算右侧诊断*/
|
||||||
const canvasContainer = document.getElementById('elform')
|
const canvasContainer = document.getElementById('elform')
|
||||||
|
@ -173,10 +173,11 @@ const opendiag = async (row) => {
|
|||||||
rowinfo.value = row
|
rowinfo.value = row
|
||||||
resetForm()
|
resetForm()
|
||||||
await getlogininfo() // 使用 ISO 格式的时间字符串
|
await getlogininfo() // 使用 ISO 格式的时间字符串
|
||||||
|
|
||||||
//查询当前患者的危急值相关信息
|
//查询当前患者的危急值相关信息
|
||||||
const data = await WarningApi.getexmidororgiddata(rowinfo.value.examId, rowinfo.value.orgId)
|
const data = await WarningApi.getexmidororgiddata(rowinfo.value.examId, rowinfo.value.orgId)
|
||||||
warintinfo.value = data
|
warintinfo.value = data
|
||||||
|
|
||||||
//处理时间轴相关
|
//处理时间轴相关
|
||||||
if (!data.readDateTime) {
|
if (!data.readDateTime) {
|
||||||
await updatereadDateTime(data.id)
|
await updatereadDateTime(data.id)
|
||||||
@ -266,6 +267,8 @@ const resetForm = () => {
|
|||||||
warningProcess: undefined,
|
warningProcess: undefined,
|
||||||
readremark: undefined
|
readremark: undefined
|
||||||
}
|
}
|
||||||
|
//重置一下数据
|
||||||
|
warintinfo.value=''
|
||||||
}
|
}
|
||||||
defineExpose({ opendiag }) // 提供 open 方法,用于打开弹窗
|
defineExpose({ opendiag }) // 提供 open 方法,用于打开弹窗
|
||||||
/** 提交表单 */
|
/** 提交表单 */
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="接报医生" prop="applyhighLevelname">
|
<el-form-item label="接报医生" prop="applyhighLevelname">
|
||||||
<el-input v-model="rowinfo.applyhighLevelname" disabled />
|
<el-input v-model="formData.receiveDoctor" disabled />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
@ -51,7 +51,7 @@
|
|||||||
<el-input v-model="formData.remark" type="textarea" :rows="5" />
|
<el-input v-model="formData.remark" type="textarea" :rows="5" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" @click="report">上报</el-button>
|
<el-button type="primary" @click="report" :disabled="isreportshow">上报</el-button>
|
||||||
<el-button @click="() => (dialogVisible = false)">取消</el-button>
|
<el-button @click="() => (dialogVisible = false)">取消</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -72,7 +72,7 @@ const formLoading = ref(false) // 表单的加载中:1)修改时的数据加
|
|||||||
const formRef = ref() // 表单 Ref
|
const formRef = ref() // 表单 Ref
|
||||||
const rowinfo = ref() //外面传递的患者信息
|
const rowinfo = ref() //外面传递的患者信息
|
||||||
const Profilevo = ref<ProfileVO>({} as ProfileVO) //当前登录人信息
|
const Profilevo = ref<ProfileVO>({} as ProfileVO) //当前登录人信息
|
||||||
|
const isreportshow = ref(false) //上报按钮是否可用
|
||||||
/** 打开弹窗 */
|
/** 打开弹窗 */
|
||||||
const opendiag = async (type, row) => {
|
const opendiag = async (type, row) => {
|
||||||
// const reportDate = await isdata(row.examId, row.orgId)
|
// const reportDate = await isdata(row.examId, row.orgId)
|
||||||
@ -80,14 +80,33 @@ const opendiag = async (type, row) => {
|
|||||||
// message.alertError('当前患者已上报')
|
// message.alertError('当前患者已上报')
|
||||||
// return
|
// return
|
||||||
// }
|
// }
|
||||||
|
|
||||||
formLoading.value = true
|
formLoading.value = true
|
||||||
dialogVisible.value = true
|
|
||||||
dialogTitle.value = t('action.' + type)
|
dialogTitle.value = t('action.' + type)
|
||||||
resetForm()
|
resetForm()
|
||||||
rowinfo.value = row
|
rowinfo.value = row
|
||||||
|
//查询当前患者的危急值相关信息
|
||||||
|
const data = await WarningApi.getexmidororgiddata(rowinfo.value.examId, rowinfo.value.orgId)
|
||||||
|
if (data) {
|
||||||
|
isreportshow.value = true
|
||||||
|
//赋值危急值内容
|
||||||
|
formData.value.warningContent = data.warningContent
|
||||||
|
//接报医生
|
||||||
|
formData.value.receiveDoctor = data.receiveDoctor
|
||||||
|
formData.value.reportDoctor = data.reportDoctor
|
||||||
|
formData.value.remark = data.remark
|
||||||
|
} else {
|
||||||
|
isreportshow.value = false
|
||||||
|
formData.value.receiveDoctor = rowinfo.value.applyhighLevelname
|
||||||
|
//上报医生
|
||||||
|
formData.value.reportDoctor = Profilevo.value.nickname
|
||||||
|
}
|
||||||
|
|
||||||
await getlogininfo()
|
await getlogininfo()
|
||||||
formData.value.reportDoctor = Profilevo.value.nickname
|
|
||||||
formLoading.value = false
|
formLoading.value = false
|
||||||
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
//判断患者是否已经 上报
|
//判断患者是否已经 上报
|
||||||
async function isdata(examId: String, orgId: String) {
|
async function isdata(examId: String, orgId: String) {
|
||||||
@ -106,11 +125,13 @@ async function report() {
|
|||||||
formData.value.reportOrgId = Profilevo.value.orgId
|
formData.value.reportOrgId = Profilevo.value.orgId
|
||||||
formData.value.reportorgName = orgInfo.value.orgName
|
formData.value.reportorgName = orgInfo.value.orgName
|
||||||
const data = formData.value as unknown as WarningVO
|
const data = formData.value as unknown as WarningVO
|
||||||
await WarningApi.createWarning(data)
|
const re = await WarningApi.createWarning(data)
|
||||||
|
if (re) {
|
||||||
|
message.alertSuccess('上报成功')
|
||||||
|
}
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const formData = ref({
|
const formData = ref({
|
||||||
id: undefined,
|
id: undefined,
|
||||||
orgId: undefined,
|
orgId: undefined,
|
||||||
|
Loading…
Reference in New Issue
Block a user