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