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

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//备注 notes:string//备注
billDoctorDepartment:string// 开单科室 送检科室 billDoctorDepartment:string// 开单科室 送检科室
StudyInsta:string StudyInsta:string
isFavourite:string //是否收藏
} }
// PACS检查列表 API // PACS检查列表 API
@ -100,4 +101,9 @@ export const PatientexamlistApi = {
GetDateYYZDYXCount: async () => { GetDateYYZDYXCount: async () => {
return await request.get({ url: `/tblist/patientexamlist/GetDateYYZDYXCount`}) 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 // 1iframe
setTimeout(() => { setTimeout(() => {
dataLoaded.value= true; // iframe dataLoaded.value= true; // iframe
}, 500); }, 200);
} finally { } finally {
formLoading.value = false formLoading.value = false
} }

View File

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

View File

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