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