增加影像报告和调图功能
This commit is contained in:
parent
9e8d3b6a9a
commit
fe52240b74
@ -6,7 +6,7 @@
|
|||||||
:fullscreen="true"
|
:fullscreen="true"
|
||||||
>
|
>
|
||||||
<el-tabs v-model="activeName" type="card">
|
<el-tabs v-model="activeName" type="card">
|
||||||
<el-tab-pane label="影像" name="first">
|
<el-tab-pane v-if="tagLoaded" label="影像" name="first">
|
||||||
<iframe
|
<iframe
|
||||||
v-if="dataLoaded"
|
v-if="dataLoaded"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
@ -19,7 +19,7 @@
|
|||||||
<!-- 外层 Flex 容器 -->
|
<!-- 外层 Flex 容器 -->
|
||||||
<div style="display: flex; height: 100%">
|
<div style="display: flex; height: 100%">
|
||||||
<!-- 模版区域 -->
|
<!-- 模版区域 -->
|
||||||
<div style="flex: 1; min-width: 0;overflow: auto;">
|
<div style="flex: 1; min-width: 0; overflow: auto">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="fordevicemValue"
|
v-model="fordevicemValue"
|
||||||
placeholder="请选择模版类别"
|
placeholder="请选择模版类别"
|
||||||
@ -133,7 +133,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
|
|
||||||
<el-col :span="7">
|
<el-col :span="7">
|
||||||
<el-form-item label="申请时间" style="font-weight: bold" label-width="110px">
|
<el-form-item label="申请时间" style="font-weight: bold" label-width="110px">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
@ -166,7 +165,7 @@
|
|||||||
<el-divider />
|
<el-divider />
|
||||||
<el-input
|
<el-input
|
||||||
v-model="applyFormVO.examItemName"
|
v-model="applyFormVO.examItemName"
|
||||||
style="width: 95%; font-size: 20px; margin-left: 40px; margin-bottom: 6px; "
|
style="width: 95%; font-size: 20px; margin-left: 40px; margin-bottom: 6px"
|
||||||
:rows="1"
|
:rows="1"
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
/>
|
/>
|
||||||
@ -239,7 +238,15 @@
|
|||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
plain
|
plain
|
||||||
style="width: 80px; float: right; margin-right: 15px; margin-top: 30px ;background-color: rgba(56, 119, 246, 1);font-size: 14; color: rgb(255, 255, 255);"
|
style="
|
||||||
|
width: 80px;
|
||||||
|
float: right;
|
||||||
|
margin-right: 15px;
|
||||||
|
margin-top: 30px;
|
||||||
|
background-color: rgba(56, 119, 246, 1);
|
||||||
|
font-size: 14;
|
||||||
|
color: rgb(255, 255, 255);
|
||||||
|
"
|
||||||
@click="save"
|
@click="save"
|
||||||
:disabled="savedisabled"
|
:disabled="savedisabled"
|
||||||
>保存</el-button
|
>保存</el-button
|
||||||
@ -249,7 +256,15 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
plain
|
plain
|
||||||
v-show="examinedisabled"
|
v-show="examinedisabled"
|
||||||
style="width: 80px; float: right; margin-right: 15px; margin-top: 30px ;background-color: rgba(56, 119, 246, 1);font-size: 14; color: rgb(255, 255, 255);"
|
style="
|
||||||
|
width: 80px;
|
||||||
|
float: right;
|
||||||
|
margin-right: 15px;
|
||||||
|
margin-top: 30px;
|
||||||
|
background-color: rgba(56, 119, 246, 1);
|
||||||
|
font-size: 14;
|
||||||
|
color: rgb(255, 255, 255);
|
||||||
|
"
|
||||||
@click="examine"
|
@click="examine"
|
||||||
>审核</el-button
|
>审核</el-button
|
||||||
>
|
>
|
||||||
@ -297,6 +312,7 @@ const examineFormVO = ref<PatientexamlistVO>({} as PatientexamlistVO)
|
|||||||
const savedisabled = ref(true) //保存按钮是否可用
|
const savedisabled = ref(true) //保存按钮是否可用
|
||||||
const examinedisabled = ref(false) //审核按钮是否可见
|
const examinedisabled = ref(false) //审核按钮是否可见
|
||||||
const dataLoaded = ref(false) //是否加载网页
|
const dataLoaded = ref(false) //是否加载网页
|
||||||
|
const tagLoaded = ref(true) //是否加载影像标签
|
||||||
|
|
||||||
//点击节点更新使用时间
|
//点击节点更新使用时间
|
||||||
const clickuptime = async (pid: string) => {
|
const clickuptime = async (pid: string) => {
|
||||||
@ -497,15 +513,19 @@ const examid = ref('')
|
|||||||
const newSrc = ref('')
|
const newSrc = ref('')
|
||||||
|
|
||||||
/** 打开弹窗 */
|
/** 打开弹窗 */
|
||||||
const open = async (
|
const open = async (id: number, orgid: string, regid: string, examId: string, isLoaded: string) => {
|
||||||
id: number,
|
|
||||||
orgid: string,
|
|
||||||
regid: string,
|
|
||||||
examId: string
|
|
||||||
) => {
|
|
||||||
resetForm()
|
resetForm()
|
||||||
|
|
||||||
|
//判断是否隐藏影像标签
|
||||||
|
if (isLoaded == '1') {
|
||||||
|
tagLoaded.value = false
|
||||||
|
activeName.value='second'
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tagLoaded.value = true
|
||||||
|
activeName.value='first'
|
||||||
|
}
|
||||||
console.log('orgid' + orgid)
|
console.log('orgid' + orgid)
|
||||||
console.log('regid' + regid)
|
console.log('regid' + regid)
|
||||||
console.log('id' + id)
|
console.log('id' + id)
|
||||||
@ -538,8 +558,8 @@ const open = async (
|
|||||||
iframeData()
|
iframeData()
|
||||||
// 延迟1秒后加载iframe
|
// 延迟1秒后加载iframe
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
dataLoaded.value= true; // 确保iframe只在弹窗打开时加载
|
dataLoaded.value = true // 确保iframe只在弹窗打开时加载
|
||||||
}, 200);
|
}, 200)
|
||||||
} finally {
|
} finally {
|
||||||
formLoading.value = false
|
formLoading.value = false
|
||||||
}
|
}
|
||||||
@ -553,12 +573,12 @@ const iframeData = async () => {
|
|||||||
var localData = {
|
var localData = {
|
||||||
regid: '', // 这里的 'someNumber' 应该替换为实际的数值
|
regid: '', // 这里的 'someNumber' 应该替换为实际的数值
|
||||||
orgId: '', // 这里的 'someOrgId' 应该替换为实际的组织ID
|
orgId: '', // 这里的 'someOrgId' 应该替换为实际的组织ID
|
||||||
maxSize:10,
|
maxSize: 10,
|
||||||
do: response
|
do: response
|
||||||
}
|
}
|
||||||
|
|
||||||
// 在存入新数据之前,先删除原有的'data'项
|
// 在存入新数据之前,先删除原有的'data'项
|
||||||
localStorage.removeItem("data");
|
localStorage.removeItem('data')
|
||||||
// 将对象转换为JSON字符串
|
// 将对象转换为JSON字符串
|
||||||
var localStorageData = JSON.stringify(localData)
|
var localStorageData = JSON.stringify(localData)
|
||||||
localStorage.setItem('data', localStorageData)
|
localStorage.setItem('data', localStorageData)
|
||||||
@ -567,7 +587,6 @@ const iframeData = async () => {
|
|||||||
} else {
|
} else {
|
||||||
// 如果status不是success,可以根据需要处理错误情况
|
// 如果status不是success,可以根据需要处理错误情况
|
||||||
console.error('Request did not succeed:', response.data)
|
console.error('Request did not succeed:', response.data)
|
||||||
|
|
||||||
}
|
}
|
||||||
// dataLoaded.value = true // 请求完成后,无论成功与否,都设置dataLoaded为true
|
// dataLoaded.value = true // 请求完成后,无论成功与否,都设置dataLoaded为true
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -258,7 +258,7 @@
|
|||||||
width="180px"
|
width="180px"
|
||||||
v-if="false"
|
v-if="false"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="操作" align="center" fixed="right">
|
<el-table-column label="操作" align="center" fixed="right" width="180px">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
@ -274,6 +274,25 @@
|
|||||||
<el-icon v-if="scope.row.isFavourite==='1'"><StarFilled /></el-icon>
|
<el-icon v-if="scope.row.isFavourite==='1'"><StarFilled /></el-icon>
|
||||||
<el-icon v-else><Star /></el-icon>
|
<el-icon v-else><Star /></el-icon>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
link
|
||||||
|
style="color: rgb(56, 119, 246)"
|
||||||
|
size="small"
|
||||||
|
type="primary"
|
||||||
|
@click="openexe(scope.row.id,scope.row.orgId,scope.row.regId,scope.row.examId)"
|
||||||
|
>
|
||||||
|
调图
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
link
|
||||||
|
style="color: rgb(56, 119, 246)"
|
||||||
|
size="small"
|
||||||
|
type="primary"
|
||||||
|
@click=" handleEdit(scope.row,'1')"
|
||||||
|
>
|
||||||
|
报告
|
||||||
|
</el-button>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -296,6 +315,7 @@ import download from '@/utils/download'
|
|||||||
import { PatientexamlistApi, PatientexamlistVO } from '@/api/tblist/patientexamlist'
|
import { PatientexamlistApi, PatientexamlistVO } from '@/api/tblist/patientexamlist'
|
||||||
import PatientexamlistForm from './PatientexamlistForm.vue'
|
import PatientexamlistForm from './PatientexamlistForm.vue'
|
||||||
import DicomViewForm from '/src/views/dicomForm/dicomViewForm.vue'
|
import DicomViewForm from '/src/views/dicomForm/dicomViewForm.vue'
|
||||||
|
import { ultrasoniccomApi } from '@/api/ultrasoniccom'
|
||||||
|
|
||||||
/** PACS检查列表 列表 */
|
/** PACS检查列表 列表 */
|
||||||
defineOptions({ name: 'Patientexamlist' })
|
defineOptions({ name: 'Patientexamlist' })
|
||||||
@ -340,17 +360,17 @@ const exportLoading = ref(false) // 导出的加载中
|
|||||||
/** 影像组件 */
|
/** 影像组件 */
|
||||||
const dicomViewRef = ref()
|
const dicomViewRef = ref()
|
||||||
|
|
||||||
const opendicomViewFrom = (id: number, orgid: string, regid: string, examId: string) => {
|
const opendicomViewFrom = (id: number, orgid: string, regid: string, examId: string,isLoaded:string) => {
|
||||||
dicomViewRef.value.open(id, orgid, regid, examId)
|
dicomViewRef.value.open(id, orgid, regid, examId,isLoaded)
|
||||||
}
|
}
|
||||||
/** 表格行点击 */
|
/** 表格行点击 */
|
||||||
const clickNumber = ref(0)
|
const clickNumber = ref(0)
|
||||||
function handleEdit(row) {
|
function handleEdit(row,isLoaded:string) {
|
||||||
console.log(111111121212)
|
console.log(111111121212)
|
||||||
|
|
||||||
if (!row.deviceType.includes('US')) {
|
if (!row.deviceType.includes('US')) {
|
||||||
//US是超声类
|
//US是超声类
|
||||||
opendicomViewFrom(row.id, row.orgId, row.regId, row.examId)
|
opendicomViewFrom(row.id, row.orgId, row.regId, row.examId,isLoaded)
|
||||||
|
|
||||||
/* clickNumber.value++;
|
/* clickNumber.value++;
|
||||||
if (clickNumber.value == 2) {
|
if (clickNumber.value == 2) {
|
||||||
@ -501,6 +521,22 @@ const getuporghiorgid = async (id: number, orgId: string, reportstatus: string)
|
|||||||
}
|
}
|
||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
|
// 打开本地exe 通过注册表
|
||||||
|
const openexe= (id: number, orgid: string, regid: string, examId: string)=>
|
||||||
|
{
|
||||||
|
console.log(orgid)
|
||||||
|
// 先查询数据
|
||||||
|
try {
|
||||||
|
const url = `f1://${examId+','+orgid+','+regid}`;
|
||||||
|
console.log(url)
|
||||||
|
window.location.href = url
|
||||||
|
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error fetching data:', error)
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
const handleDelete = async (id: number) => {
|
const handleDelete = async (id: number) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user