影像和超声增加收藏功能和查询收藏

This commit is contained in:
lxd 2024-09-03 15:25:38 +08:00
parent ef2c8e566e
commit 58fb9f6905
4 changed files with 77 additions and 29 deletions

View File

@ -33,6 +33,7 @@ export interface PatientexamlistVO {
notes:string//备注
billDoctorDepartment:string// 开单科室 送检科室
StudyInsta:string
isFavourite:string //是否收藏
}
// PACS检查列表 API
@ -100,4 +101,9 @@ export const PatientexamlistApi = {
GetDateYYZDYXCount: async () => {
return await request.get({ url: `/tblist/patientexamlist/GetDateYYZDYXCount`})
},
// 收藏功能
CollectAndCancellation: async (id: String,type:string) => {
return await request.get({ url: `/tblist/patientexamlist/CollectAndCancellation?id=${id}&&type=${type}`})
},
}

View File

@ -539,7 +539,7 @@ const open = async (
// 1iframe
setTimeout(() => {
dataLoaded.value= true; // iframe
}, 500);
}, 200);
} finally {
formLoading.value = false
}

View File

@ -141,6 +141,11 @@
style="background-color: rgb(28, 176, 117); font-size: 14; color: rgb(255, 255, 255)"
><Icon icon="ep:refresh" class="mr-5px" /> 刷新</el-button
>
<el-button
@click="selectcollect"
style="background-color: rgb(28, 176, 117); font-size: 14; color: rgb(255, 255, 255)"
><Icon icon="ep:search" class="mr-5px" /> 查询收藏</el-button
>
</el-form-item>
</ContentWrap>
<!-- 列表 -->
@ -265,14 +270,10 @@
>
申请
</el-button>
<!-- <el-button
link
type="danger"
@click="handleDelete(scope.row.id)"
v-hasPermi="['tblist:patientexamlist:delete']"
>
删除
</el-button> -->
<el-button link type="danger" @click="collect(scope.row.id, scope.row.isFavourite)">
<el-icon v-if="scope.row.isFavourite==='1'"><StarFilled /></el-icon>
<el-icon v-else><Star /></el-icon>
</el-button>
</template>
</el-table-column>
</el-table>
@ -330,7 +331,8 @@ const queryParams = reactive({
reviewDoctor: undefined,
reviewDate: [],
thumbnailImgUrl: undefined,
createTime: []
createTime: [],
isFavourite: ''
})
const queryFormRef = ref() //
const exportLoading = ref(false) //
@ -413,6 +415,18 @@ const getList = async () => {
loading.value = false
}
}
//
const collect = async (id: string, isFavourite: string) => {
if (isFavourite == '0') {
await PatientexamlistApi.CollectAndCancellation(id,"1")
message.success('收藏成功')
} else if (isFavourite == '1') {
await PatientexamlistApi.CollectAndCancellation(id,"0")
message.success('取消成功')
}
examDate_radio_change()
}
const dicomDataSync = async () => {
const data = await PatientexamlistApi.dicomDataSync()
@ -440,12 +454,19 @@ const dicomDataRefresh = async () => {
const handleQuery = () => {
queryParams.pageNo = 1
queryParams.deviceType = 'CT'
//
queryParams.orgId = ''
queryParams.highLevelOrgId = ''
queryParams.isFavourite=''
getList()
}
//
const selectcollect=()=>
{
queryFormRef.value.resetFields()
queryParams.pageNo = 1
queryParams.deviceType = 'CT'
queryParams.isFavourite='1'
getList()
}
/** 重置按钮操作 */
const resetQuery = () => {
queryFormRef.value.resetFields()
@ -531,6 +552,8 @@ onMounted(() => {
//
//getList();
})
</script>
<style>

View File

@ -143,6 +143,11 @@
style="background-color: rgb(28, 176, 117); font-size: 14; color: rgb(255, 255, 255)"
><Icon icon="ep:refresh" class="mr-5px" /> 同步</el-button
>
<el-button
@click="selectcollect"
style="background-color: rgb(28, 176, 117); font-size: 14; color: rgb(255, 255, 255)"
><Icon icon="ep:search" class="mr-5px" /> 查询收藏</el-button
>
</el-form-item>
</ContentWrap>
<!-- 列表 -->
@ -177,12 +182,11 @@
/>
<el-table-column label="设备类型" align="center" prop="deviceType" />
<el-table-column label="序列/数量" align="center" prop="seDc" width="100px" />
<el-table-column label="报告状态" align="center" prop="reportstatus" width="100px">
<template #default="scope">
<!-- 使用Flexbox布局将内容垂直排列 -->
<div style="display: flex; flex-direction: column; align-items: center">
<!-- 使用Flexbox布局将内容垂直排列 -->
<div style="display: flex; flex-direction: column; align-items: center">
<div>
<el-tag :type="scope.row.reportstatus === '已审核' ? 'danger' : 'success'">
<span style="">{{ scope.row.reportstatus }}</span>
@ -268,14 +272,10 @@
>
申请
</el-button>
<!-- <el-button
link
type="danger"
@click="handleDelete(scope.row.id)"
v-hasPermi="['tblist:patientexamlist:delete']"
>
删除
</el-button> -->
<el-button link type="danger" @click="collect(scope.row.id, scope.row.isFavourite)">
<el-icon v-if="scope.row.isFavourite === '1'"><StarFilled /></el-icon>
<el-icon v-else><Star /></el-icon>
</el-button>
</template>
</el-table-column>
</el-table>
@ -335,7 +335,8 @@ const queryParams = reactive({
reviewDoctor: undefined,
reviewDate: [],
thumbnailImgUrl: undefined,
createTime: []
createTime: [],
isFavourite: ''
})
const queryFormRef = ref() //
const exportLoading = ref(false) //
@ -416,6 +417,26 @@ const getList = async () => {
loading.value = false
}
}
//
const selectcollect = () => {
queryFormRef.value.resetFields()
queryParams.pageNo = 1
queryParams.deviceType = 'US'
queryParams.isFavourite = '1'
getList()
}
//
const collect = async (id: string, isFavourite: string) => {
if (isFavourite == '0') {
await PatientexamlistApi.CollectAndCancellation(id, '1')
message.success('收藏成功')
} else if (isFavourite == '1') {
await PatientexamlistApi.CollectAndCancellation(id, '0')
message.success('取消成功')
}
examDate_radio_change()
}
const dicomDataSync = async () => {
const data = await PatientexamlistApi.dicomDataSync()
@ -436,9 +457,7 @@ const dicomDataSync = async () => {
/** 搜索按钮操作 */
const handleQuery = () => {
queryParams.pageNo = 1
//
queryParams.orgId = ''
queryParams.highLevelOrgId = ''
queryParams.isFavourite = ''
queryParams.deviceType = 'US'
getList()
}
@ -467,7 +486,7 @@ const openForm = (type: string, id?: number) => {
const getuporghiorgid = async (id: number, orgId: string, reportstatus: string) => {
try {
await message.confirm('是否要进行申请?', '确认提示')
const data= await PatientexamlistApi.getuporghiid(id, orgId)
const data = await PatientexamlistApi.getuporghiid(id, orgId)
if (data == '申请成功') {
message.success(t('common.delSuccess'))
//