影像和超声增加收藏功能和查询收藏
This commit is contained in:
parent
ef2c8e566e
commit
58fb9f6905
@ -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}`})
|
||||
},
|
||||
}
|
||||
|
@ -539,7 +539,7 @@ const open = async (
|
||||
// 延迟1秒后加载iframe
|
||||
setTimeout(() => {
|
||||
dataLoaded.value= true; // 确保iframe只在弹窗打开时加载
|
||||
}, 500);
|
||||
}, 200);
|
||||
} finally {
|
||||
formLoading.value = false
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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'))
|
||||
// 刷新列表
|
||||
|
Loading…
Reference in New Issue
Block a user