影像修改
This commit is contained in:
parent
8645ec03f9
commit
4df8d76a42
@ -271,17 +271,17 @@
|
|||||||
申请
|
申请
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button link type="danger" @click.stop="collect(scope.row.id, scope.row.isFavourite)">
|
<el-button link type="danger" @click.stop="collect(scope.row.id, scope.row.isFavourite)">
|
||||||
<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
|
<el-button
|
||||||
link
|
link
|
||||||
@dblclick.stop
|
@dblclick.stop
|
||||||
style="color: rgb(56, 119, 246)"
|
style="color: rgb(56, 119, 246)"
|
||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click.stop="openexe(scope.row.id,scope.row.orgId,scope.row.regId,scope.row.examId)"
|
@click.stop="openexe(scope.row.id, scope.row.orgId, scope.row.regId, scope.row.examId)"
|
||||||
>
|
>
|
||||||
调图
|
调图
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -291,11 +291,10 @@
|
|||||||
style="color: rgb(56, 119, 246)"
|
style="color: rgb(56, 119, 246)"
|
||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click.stop=" handleEdit(scope.row,'1')"
|
@click.stop="handleEdit(scope.row, '1')"
|
||||||
>
|
>
|
||||||
报告
|
报告
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -313,7 +312,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { dateFormatter } from '@/utils/formatTime'
|
import { dateFormatter, beginOfDay } from '@/utils/formatTime'
|
||||||
import download from '@/utils/download'
|
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'
|
||||||
@ -336,7 +335,7 @@ const queryParams = reactive({
|
|||||||
pname: undefined,
|
pname: undefined,
|
||||||
gender: undefined,
|
gender: undefined,
|
||||||
birthday: undefined,
|
birthday: undefined,
|
||||||
examDate: [],
|
examDate: [] as any[],
|
||||||
deviceType: '',
|
deviceType: '',
|
||||||
seDc: undefined,
|
seDc: undefined,
|
||||||
examItemName: undefined,
|
examItemName: undefined,
|
||||||
@ -363,17 +362,23 @@ const exportLoading = ref(false) // 导出的加载中
|
|||||||
/** 影像组件 */
|
/** 影像组件 */
|
||||||
const dicomViewRef = ref()
|
const dicomViewRef = ref()
|
||||||
|
|
||||||
const opendicomViewFrom = (id: number, orgid: string, regid: string, examId: string,isLoaded:string) => {
|
const opendicomViewFrom = (
|
||||||
dicomViewRef.value.open(id, orgid, regid, examId,isLoaded)
|
id: number,
|
||||||
|
orgid: string,
|
||||||
|
regid: string,
|
||||||
|
examId: string,
|
||||||
|
isLoaded: string
|
||||||
|
) => {
|
||||||
|
dicomViewRef.value.open(id, orgid, regid, examId, isLoaded)
|
||||||
}
|
}
|
||||||
/** 表格行点击 */
|
/** 表格行点击 */
|
||||||
const clickNumber = ref(0)
|
const clickNumber = ref(0)
|
||||||
function handleEdit(row,isLoaded:string) {
|
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,isLoaded)
|
opendicomViewFrom(row.id, row.orgId, row.regId, row.examId, isLoaded)
|
||||||
|
|
||||||
/* clickNumber.value++;
|
/* clickNumber.value++;
|
||||||
if (clickNumber.value == 2) {
|
if (clickNumber.value == 2) {
|
||||||
@ -390,22 +395,23 @@ const examDate_radio_value = ref(3)
|
|||||||
|
|
||||||
const examDate_radio_change = () => {
|
const examDate_radio_change = () => {
|
||||||
if ([1, 2, 3, 4].includes(examDate_radio_value.value)) {
|
if ([1, 2, 3, 4].includes(examDate_radio_value.value)) {
|
||||||
let timesta = new Date()
|
let timesta = beginOfDay(new Date())
|
||||||
let timeend = new Date()
|
let timeend = beginOfDay(new Date())
|
||||||
|
timeend.setDate(timeend.getDate() + 1)
|
||||||
//判断当前选择的是那个时间
|
//判断当前选择的是那个时间
|
||||||
if (examDate_radio_value.value === 1) {
|
if (examDate_radio_value.value === 1) {
|
||||||
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
||||||
} else if (examDate_radio_value.value === 2) {
|
} else if (examDate_radio_value.value === 2) {
|
||||||
timesta.setDate(timesta.getDate() - 1)
|
timesta.setDate(timesta.getDate() - 1)
|
||||||
|
timeend.setDate(timeend.getDate() - 1)
|
||||||
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
||||||
} else if (examDate_radio_value.value === 3) {
|
} else if (examDate_radio_value.value === 3) {
|
||||||
timesta.setDate(timesta.getDate() - 3)
|
timesta.setDate(timesta.getDate() - 2)
|
||||||
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
||||||
} else if (examDate_radio_value.value === 4) {
|
} else if (examDate_radio_value.value === 4) {
|
||||||
timesta.setDate(timesta.getDate() - 7)
|
timesta.setDate(timesta.getDate() - 6)
|
||||||
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
||||||
}
|
}
|
||||||
|
|
||||||
handleQuery()
|
handleQuery()
|
||||||
} else if (5 === examDate_radio_value.value) {
|
} else if (5 === examDate_radio_value.value) {
|
||||||
queryParams.examDate = []
|
queryParams.examDate = []
|
||||||
@ -441,11 +447,10 @@ const getList = async () => {
|
|||||||
// 收藏功能
|
// 收藏功能
|
||||||
const collect = async (id: string, isFavourite: string) => {
|
const collect = async (id: string, isFavourite: string) => {
|
||||||
if (isFavourite == '0') {
|
if (isFavourite == '0') {
|
||||||
await PatientexamlistApi.CollectAndCancellation(id,"1")
|
await PatientexamlistApi.CollectAndCancellation(id, '1')
|
||||||
message.success('收藏成功')
|
message.success('收藏成功')
|
||||||
|
|
||||||
} else if (isFavourite == '1') {
|
} else if (isFavourite == '1') {
|
||||||
await PatientexamlistApi.CollectAndCancellation(id,"0")
|
await PatientexamlistApi.CollectAndCancellation(id, '0')
|
||||||
message.success('取消成功')
|
message.success('取消成功')
|
||||||
}
|
}
|
||||||
examDate_radio_change()
|
examDate_radio_change()
|
||||||
@ -477,17 +482,16 @@ const dicomDataRefresh = async () => {
|
|||||||
const handleQuery = () => {
|
const handleQuery = () => {
|
||||||
queryParams.pageNo = 1
|
queryParams.pageNo = 1
|
||||||
queryParams.deviceType = 'CT'
|
queryParams.deviceType = 'CT'
|
||||||
queryParams.isFavourite=''
|
queryParams.isFavourite = ''
|
||||||
getList()
|
getList()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 只查询收藏的数据
|
// 只查询收藏的数据
|
||||||
const selectcollect=()=>
|
const selectcollect = () => {
|
||||||
{
|
|
||||||
queryFormRef.value.resetFields()
|
queryFormRef.value.resetFields()
|
||||||
queryParams.pageNo = 1
|
queryParams.pageNo = 1
|
||||||
queryParams.deviceType = 'CT'
|
queryParams.deviceType = 'CT'
|
||||||
queryParams.isFavourite='1'
|
queryParams.isFavourite = '1'
|
||||||
getList()
|
getList()
|
||||||
}
|
}
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
@ -525,21 +529,17 @@ const getuporghiorgid = async (id: number, orgId: string, reportstatus: string)
|
|||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
// 打开本地exe 通过注册表
|
// 打开本地exe 通过注册表
|
||||||
const openexe= (id: number, orgid: string, regid: string, examId: string)=>
|
const openexe = (id: number, orgid: string, regid: string, examId: string) => {
|
||||||
{
|
|
||||||
// 先查询数据
|
// 先查询数据
|
||||||
try {
|
try {
|
||||||
const url = `f1://${examId+','+orgid+','+regid}`;
|
const url = `f1://${examId + ',' + orgid + ',' + regid}`
|
||||||
console.log(url)
|
console.log(url)
|
||||||
window.location.href = url
|
window.location.href = url
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error fetching data:', error)
|
console.error('Error fetching data:', error)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
const handleDelete = async (id: number) => {
|
const handleDelete = async (id: number) => {
|
||||||
try {
|
try {
|
||||||
@ -590,8 +590,6 @@ onMounted(() => {
|
|||||||
//老代码
|
//老代码
|
||||||
//getList();
|
//getList();
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -312,7 +312,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { dateFormatter } from '@/utils/formatTime'
|
import { dateFormatter, beginOfDay } from '@/utils/formatTime'
|
||||||
import download from '@/utils/download'
|
import download from '@/utils/download'
|
||||||
import { PatientexamlistApi } from '@/api/tblist/patientexamlist'
|
import { PatientexamlistApi } from '@/api/tblist/patientexamlist'
|
||||||
import DicomViewForm from '/src/views/dicomPathologyForm/dicomPathologyViewForm.vue'
|
import DicomViewForm from '/src/views/dicomPathologyForm/dicomPathologyViewForm.vue'
|
||||||
@ -397,19 +397,21 @@ const handleQuery = () => {
|
|||||||
|
|
||||||
const examDate_radio_change = () => {
|
const examDate_radio_change = () => {
|
||||||
if ([1, 2, 3, 4].includes(examDate_radio_value.value)) {
|
if ([1, 2, 3, 4].includes(examDate_radio_value.value)) {
|
||||||
let timesta = new Date()
|
let timesta = beginOfDay(new Date())
|
||||||
let timeend = new Date()
|
let timeend = beginOfDay(new Date())
|
||||||
|
timeend.setDate(timeend.getDate() + 1)
|
||||||
//判断当前选择的是那个时间
|
//判断当前选择的是那个时间
|
||||||
if (examDate_radio_value.value === 1) {
|
if (examDate_radio_value.value === 1) {
|
||||||
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
||||||
} else if (examDate_radio_value.value === 2) {
|
} else if (examDate_radio_value.value === 2) {
|
||||||
timesta.setDate(timesta.getDate() - 1)
|
timesta.setDate(timesta.getDate() - 1)
|
||||||
|
timeend.setDate(timeend.getDate() - 1)
|
||||||
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
||||||
} else if (examDate_radio_value.value === 3) {
|
} else if (examDate_radio_value.value === 3) {
|
||||||
timesta.setDate(timesta.getDate() - 3)
|
timesta.setDate(timesta.getDate() - 2)
|
||||||
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
||||||
} else if (examDate_radio_value.value === 4) {
|
} else if (examDate_radio_value.value === 4) {
|
||||||
timesta.setDate(timesta.getDate() - 7)
|
timesta.setDate(timesta.getDate() - 6)
|
||||||
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
||||||
}
|
}
|
||||||
handleQuery()
|
handleQuery()
|
||||||
|
@ -295,7 +295,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { dateFormatter } from '@/utils/formatTime'
|
import { dateFormatter, beginOfDay } from '@/utils/formatTime'
|
||||||
import download from '@/utils/download'
|
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'
|
||||||
@ -317,7 +317,7 @@ const queryParams = reactive({
|
|||||||
pname: undefined,
|
pname: undefined,
|
||||||
gender: undefined,
|
gender: undefined,
|
||||||
birthday: undefined,
|
birthday: undefined,
|
||||||
examDate: [],
|
examDate: [] as any[],
|
||||||
deviceType: '',
|
deviceType: '',
|
||||||
seDc: undefined,
|
seDc: undefined,
|
||||||
examItemName: undefined,
|
examItemName: undefined,
|
||||||
@ -369,19 +369,21 @@ const examDate_radio_value = ref(1)
|
|||||||
|
|
||||||
const examDate_radio_change = () => {
|
const examDate_radio_change = () => {
|
||||||
if ([1, 2, 3, 4].includes(examDate_radio_value.value)) {
|
if ([1, 2, 3, 4].includes(examDate_radio_value.value)) {
|
||||||
let timesta = new Date()
|
let timesta = beginOfDay(new Date())
|
||||||
let timeend = new Date()
|
let timeend = beginOfDay(new Date())
|
||||||
|
timeend.setDate(timeend.getDate() + 1)
|
||||||
//判断当前选择的是那个时间
|
//判断当前选择的是那个时间
|
||||||
if (examDate_radio_value.value === 1) {
|
if (examDate_radio_value.value === 1) {
|
||||||
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
||||||
} else if (examDate_radio_value.value === 2) {
|
} else if (examDate_radio_value.value === 2) {
|
||||||
timesta.setDate(timesta.getDate() - 1)
|
timesta.setDate(timesta.getDate() - 1)
|
||||||
|
timeend.setDate(timeend.getDate() - 1)
|
||||||
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
||||||
} else if (examDate_radio_value.value === 3) {
|
} else if (examDate_radio_value.value === 3) {
|
||||||
timesta.setDate(timesta.getDate() - 3)
|
timesta.setDate(timesta.getDate() - 2)
|
||||||
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
||||||
} else if (examDate_radio_value.value === 4) {
|
} else if (examDate_radio_value.value === 4) {
|
||||||
timesta.setDate(timesta.getDate() - 7)
|
timesta.setDate(timesta.getDate() - 6)
|
||||||
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
queryParams.examDate = [nowDate(timesta), nowDate(timeend)]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user