影像修改

This commit is contained in:
旺仔 2024-11-13 12:04:33 +08:00
parent 8645ec03f9
commit 4df8d76a42
3 changed files with 46 additions and 44 deletions

View File

@ -271,31 +271,30 @@
申请 申请
</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>
<el-button <el-button
link link
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>

View File

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

View File

@ -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)]
} }