新增pacs列表查询模块
This commit is contained in:
parent
774769be7c
commit
fc9010db2a
61
src/api/tblist/patientexamlist/index.ts
Normal file
61
src/api/tblist/patientexamlist/index.ts
Normal file
@ -0,0 +1,61 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// PACS检查列表 VO
|
||||
export interface PatientexamlistVO {
|
||||
id: string // 主键
|
||||
examId: string // 检查ID:体检编号、住院号、门诊号等
|
||||
pname: string // 患者姓名
|
||||
gender: string // 性别
|
||||
birthday: Date // 出生日期
|
||||
examDate: Date // 检查日期:年月日时分秒
|
||||
deviceType: string // 设备类型:CT DR MR B超 彩超等
|
||||
seDc: string // seri_dicomCount:序列数量/dicom数量
|
||||
examItemName: string // 检查项目名称
|
||||
reportstatus: string // 报告状态
|
||||
applicationDate: Date // 申请日期:年月日时分秒
|
||||
uploadDate: Date // dicom文件上传时间
|
||||
orgName: string // 机构名称
|
||||
orgId: string // 机构ID
|
||||
highLevelOrgId: string // 上级判读机构id列表:orgid1,orgid2,orgid3
|
||||
createDate: Date // 创建时间:年月日时分秒
|
||||
examDescription: string // 检查所见
|
||||
diagResults: string // 诊断结论
|
||||
diagDate: Date // 下诊断结论的时间:年月日时分秒
|
||||
diagDoctor: string // 诊断医生
|
||||
reviewDoctor: string // 审核医生
|
||||
reviewDate: Date // 审核日期:年月日时分秒
|
||||
thumbnailImgUrl: string // 缩略图oss url, httP:oss url
|
||||
}
|
||||
|
||||
// PACS检查列表 API
|
||||
export const PatientexamlistApi = {
|
||||
// 查询PACS检查列表分页
|
||||
getPatientexamlistPage: async (params: any) => {
|
||||
return await request.get({ url: `/tblist/patientexamlist/page`, params })
|
||||
},
|
||||
|
||||
// 查询PACS检查列表详情
|
||||
getPatientexamlist: async (id: number) => {
|
||||
return await request.get({ url: `/tblist/patientexamlist/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增PACS检查列表
|
||||
createPatientexamlist: async (data: PatientexamlistVO) => {
|
||||
return await request.post({ url: `/tblist/patientexamlist/create`, data })
|
||||
},
|
||||
|
||||
// 修改PACS检查列表
|
||||
updatePatientexamlist: async (data: PatientexamlistVO) => {
|
||||
return await request.put({ url: `/tblist/patientexamlist/update`, data })
|
||||
},
|
||||
|
||||
// 删除PACS检查列表
|
||||
deletePatientexamlist: async (id: number) => {
|
||||
return await request.delete({ url: `/tblist/patientexamlist/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出PACS检查列表 Excel
|
||||
exportPatientexamlist: async (params) => {
|
||||
return await request.download({ url: `/tblist/patientexamlist/export-excel`, params })
|
||||
},
|
||||
}
|
230
src/views/tblist/patientexamlist/PatientexamlistForm.vue
Normal file
230
src/views/tblist/patientexamlist/PatientexamlistForm.vue
Normal file
@ -0,0 +1,230 @@
|
||||
<template>
|
||||
<Dialog :title="dialogTitle" v-model="dialogVisible">
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="formData"
|
||||
:rules="formRules"
|
||||
label-width="100px"
|
||||
v-loading="formLoading"
|
||||
>
|
||||
<el-form-item label="检查ID:体检编号、住院号、门诊号等" prop="examId">
|
||||
<el-input v-model="formData.examId" placeholder="请输入检查ID:体检编号、住院号、门诊号等" />
|
||||
</el-form-item>
|
||||
<el-form-item label="患者姓名" prop="pname">
|
||||
<el-input v-model="formData.pname" placeholder="请输入患者姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="性别" prop="gender">
|
||||
<el-input v-model="formData.gender" placeholder="请输入性别" />
|
||||
</el-form-item>
|
||||
<el-form-item label="出生日期" prop="birthday">
|
||||
<el-input v-model="formData.birthday" placeholder="请输入出生日期" />
|
||||
</el-form-item>
|
||||
<el-form-item label="检查日期:年月日时分秒" prop="examDate">
|
||||
<el-date-picker
|
||||
v-model="formData.examDate"
|
||||
type="date"
|
||||
value-format="x"
|
||||
placeholder="选择检查日期:年月日时分秒"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="设备类型:CT DR MR B超 彩超等" prop="deviceType">
|
||||
<el-select v-model="formData.deviceType" placeholder="请选择设备类型:CT DR MR B超 彩超等">
|
||||
<el-option label="请选择字典生成" value="" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="seri_dicomCount:序列数量/dicom数量" prop="seDc">
|
||||
<el-input v-model="formData.seDc" placeholder="请输入seri_dicomCount:序列数量/dicom数量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="检查项目名称" prop="examItemName">
|
||||
<el-input v-model="formData.examItemName" placeholder="请输入检查项目名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="报告状态" prop="reportstatus">
|
||||
<el-radio-group v-model="formData.reportstatus">
|
||||
<el-radio label="1">请选择字典生成</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="申请日期:年月日时分秒" prop="applicationDate">
|
||||
<el-date-picker
|
||||
v-model="formData.applicationDate"
|
||||
type="date"
|
||||
value-format="x"
|
||||
placeholder="选择申请日期:年月日时分秒"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="dicom文件上传时间" prop="uploadDate">
|
||||
<el-date-picker
|
||||
v-model="formData.uploadDate"
|
||||
type="date"
|
||||
value-format="x"
|
||||
placeholder="选择dicom文件上传时间"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="机构名称" prop="orgName">
|
||||
<el-input v-model="formData.orgName" placeholder="请输入机构名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="机构ID" prop="orgId">
|
||||
<el-input v-model="formData.orgId" placeholder="请输入机构ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="上级判读机构id列表:orgid1,orgid2,orgid3" prop="highLevelOrgId">
|
||||
<el-input v-model="formData.highLevelOrgId" placeholder="请输入上级判读机构id列表:orgid1,orgid2,orgid3" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间:年月日时分秒" prop="createDate">
|
||||
<el-date-picker
|
||||
v-model="formData.createDate"
|
||||
type="date"
|
||||
value-format="x"
|
||||
placeholder="选择创建时间:年月日时分秒"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="检查所见" prop="examDescription">
|
||||
<Editor v-model="formData.examDescription" height="150px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="诊断结论" prop="diagResults">
|
||||
<el-input v-model="formData.diagResults" placeholder="请输入诊断结论" />
|
||||
</el-form-item>
|
||||
<el-form-item label="下诊断结论的时间:年月日时分秒" prop="diagDate">
|
||||
<el-date-picker
|
||||
v-model="formData.diagDate"
|
||||
type="date"
|
||||
value-format="x"
|
||||
placeholder="选择下诊断结论的时间:年月日时分秒"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="诊断医生" prop="diagDoctor">
|
||||
<el-input v-model="formData.diagDoctor" placeholder="请输入诊断医生" />
|
||||
</el-form-item>
|
||||
<el-form-item label="审核医生" prop="reviewDoctor">
|
||||
<el-input v-model="formData.reviewDoctor" placeholder="请输入审核医生" />
|
||||
</el-form-item>
|
||||
<el-form-item label="审核日期:年月日时分秒" prop="reviewDate">
|
||||
<el-date-picker
|
||||
v-model="formData.reviewDate"
|
||||
type="date"
|
||||
value-format="x"
|
||||
placeholder="选择审核日期:年月日时分秒"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="缩略图oss url, httP:oss url" prop="thumbnailImgUrl">
|
||||
<el-input v-model="formData.thumbnailImgUrl" placeholder="请输入缩略图oss url, httP:oss url" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button @click="submitForm" type="primary" :disabled="formLoading">确 定</el-button>
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
</template>
|
||||
</Dialog>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { PatientexamlistApi, PatientexamlistVO } from '@/api/tblist/patientexamlist'
|
||||
|
||||
/** PACS检查列表 表单 */
|
||||
defineOptions({ name: 'PatientexamlistForm' })
|
||||
|
||||
const { t } = useI18n() // 国际化
|
||||
const message = useMessage() // 消息弹窗
|
||||
|
||||
const dialogVisible = ref(false) // 弹窗的是否展示
|
||||
const dialogTitle = ref('') // 弹窗的标题
|
||||
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
|
||||
const formType = ref('') // 表单的类型:create - 新增;update - 修改
|
||||
const formData = ref({
|
||||
id: undefined,
|
||||
examId: undefined,
|
||||
pname: undefined,
|
||||
gender: undefined,
|
||||
birthday: undefined,
|
||||
examDate: undefined,
|
||||
deviceType: undefined,
|
||||
seDc: undefined,
|
||||
examItemName: undefined,
|
||||
reportstatus: undefined,
|
||||
applicationDate: undefined,
|
||||
uploadDate: undefined,
|
||||
orgName: undefined,
|
||||
orgId: undefined,
|
||||
highLevelOrgId: undefined,
|
||||
createDate: undefined,
|
||||
examDescription: undefined,
|
||||
diagResults: undefined,
|
||||
diagDate: undefined,
|
||||
diagDoctor: undefined,
|
||||
reviewDoctor: undefined,
|
||||
reviewDate: undefined,
|
||||
thumbnailImgUrl: undefined,
|
||||
})
|
||||
const formRules = reactive({
|
||||
})
|
||||
const formRef = ref() // 表单 Ref
|
||||
|
||||
/** 打开弹窗 */
|
||||
const open = async (type: string, id?: number) => {
|
||||
dialogVisible.value = true
|
||||
dialogTitle.value = t('action.' + type)
|
||||
formType.value = type
|
||||
resetForm()
|
||||
// 修改时,设置数据
|
||||
if (id) {
|
||||
formLoading.value = true
|
||||
try {
|
||||
formData.value = await PatientexamlistApi.getPatientexamlist(id)
|
||||
} finally {
|
||||
formLoading.value = false
|
||||
}
|
||||
}
|
||||
}
|
||||
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
||||
|
||||
/** 提交表单 */
|
||||
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
|
||||
const submitForm = async () => {
|
||||
// 校验表单
|
||||
await formRef.value.validate()
|
||||
// 提交请求
|
||||
formLoading.value = true
|
||||
try {
|
||||
const data = formData.value as unknown as PatientexamlistVO
|
||||
if (formType.value === 'create') {
|
||||
await PatientexamlistApi.createPatientexamlist(data)
|
||||
message.success(t('common.createSuccess'))
|
||||
} else {
|
||||
await PatientexamlistApi.updatePatientexamlist(data)
|
||||
message.success(t('common.updateSuccess'))
|
||||
}
|
||||
dialogVisible.value = false
|
||||
// 发送操作成功的事件
|
||||
emit('success')
|
||||
} finally {
|
||||
formLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
/** 重置表单 */
|
||||
const resetForm = () => {
|
||||
formData.value = {
|
||||
id: undefined,
|
||||
examId: undefined,
|
||||
pname: undefined,
|
||||
gender: undefined,
|
||||
birthday: undefined,
|
||||
examDate: undefined,
|
||||
deviceType: undefined,
|
||||
seDc: undefined,
|
||||
examItemName: undefined,
|
||||
reportstatus: undefined,
|
||||
applicationDate: undefined,
|
||||
uploadDate: undefined,
|
||||
orgName: undefined,
|
||||
orgId: undefined,
|
||||
highLevelOrgId: undefined,
|
||||
createDate: undefined,
|
||||
examDescription: undefined,
|
||||
diagResults: undefined,
|
||||
diagDate: undefined,
|
||||
diagDoctor: undefined,
|
||||
reviewDoctor: undefined,
|
||||
reviewDate: undefined,
|
||||
thumbnailImgUrl: undefined,
|
||||
}
|
||||
formRef.value?.resetFields()
|
||||
}
|
||||
</script>
|
540
src/views/tblist/patientexamlist/index.vue
Normal file
540
src/views/tblist/patientexamlist/index.vue
Normal file
@ -0,0 +1,540 @@
|
||||
<template>
|
||||
<ContentWrap>
|
||||
<!-- 搜索工作栏 -->
|
||||
<el-form
|
||||
class="-mb-15px"
|
||||
:model="queryParams"
|
||||
ref="queryFormRef"
|
||||
:inline="true"
|
||||
label-width="68px"
|
||||
>
|
||||
<el-form-item label="检查ID" prop="examId">
|
||||
<el-input
|
||||
v-model="queryParams.examId"
|
||||
placeholder="请输入检查ID:体检编号、住院号、门诊号等"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="患者姓名" prop="pName">
|
||||
<el-input
|
||||
v-model="queryParams.pName"
|
||||
placeholder="请输入患者姓名"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="性别" prop="gender">
|
||||
<el-input
|
||||
v-model="queryParams.gender"
|
||||
placeholder="请输入性别"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="出生日期" prop="birthday">
|
||||
<el-input
|
||||
v-model="queryParams.birthday"
|
||||
placeholder="请输入出生日期"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="检查日期" prop="examDate" size="mini">
|
||||
<!-- aaaaa -->
|
||||
<el-radio-group ref="examDate_radio" v-model="examDate_radio_value" @change="examDate_radio_change">
|
||||
<el-radio style="margin-right: 15px;" :value="1">今天</el-radio>
|
||||
<el-radio style="margin-right: 15px;" :value="2">昨天</el-radio>
|
||||
<el-radio style="margin-right: 15px;" :value="3">三天内</el-radio>
|
||||
<el-radio style="margin-right: 15px;" :value="4">一周</el-radio>
|
||||
<el-radio style="margin-right: 25px;" :value="5">
|
||||
<el-date-picker
|
||||
ref="examDate_picker"
|
||||
:disabled="examDate_radio_value===5 ? false:true"
|
||||
v-model="queryParams.examDate"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
type="daterange"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
||||
class="!w-240px"/>
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
|
||||
<!-- <el-form-item label="设备类型" prop="deviceType">
|
||||
<el-select
|
||||
v-model="queryParams.deviceType"
|
||||
placeholder="请选择设备类型"
|
||||
clearable
|
||||
class="!w-240px"
|
||||
>
|
||||
<el-option label="请选择字典生成" value="" />
|
||||
</el-select>
|
||||
</el-form-item> -->
|
||||
|
||||
<!-- <el-form-item label="seri_dicomCount:序列数量/dicom数量" prop="seDc">
|
||||
<el-input
|
||||
v-model="queryParams.seDc"
|
||||
placeholder="请输入seri_dicomCount:序列数量/dicom数量"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
|
||||
|
||||
<el-form-item label="检查项目" prop="examItemName">
|
||||
<el-input
|
||||
v-model="queryParams.examItemName"
|
||||
placeholder="请输入检查项"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!--<el-form-item label="报告状态" prop="reportstatus">
|
||||
<el-select
|
||||
v-model="queryParams.reportstatus"
|
||||
placeholder="请选择报告状态"
|
||||
clearable
|
||||
class="!w-240px"
|
||||
>
|
||||
<el-option label="请选择字典生成" value="" />
|
||||
</el-select>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="申请日期:年月日时分秒" prop="applicationDate">
|
||||
<el-date-picker
|
||||
v-model="queryParams.applicationDate"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
type="daterange"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="dicom文件上传时间" prop="uploadDate">
|
||||
<el-date-picker
|
||||
v-model="queryParams.uploadDate"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
type="daterange"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="机构名称" prop="orgName">
|
||||
<el-input
|
||||
v-model="queryParams.orgName"
|
||||
placeholder="请输入机构名称"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="机构ID" prop="orgId">
|
||||
<el-input
|
||||
v-model="queryParams.orgId"
|
||||
placeholder="请输入机构ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="上级判读机构id列表:orgid1,orgid2,orgid3" prop="highLevelOrgId">
|
||||
<el-input
|
||||
v-model="queryParams.highLevelOrgId"
|
||||
placeholder="请输入上级判读机构id列表:orgid1,orgid2,orgid3"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="创建时间:年月日时分秒" prop="createDate">
|
||||
<el-date-picker
|
||||
v-model="queryParams.createDate"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
type="daterange"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="诊断结论" prop="diagResults">
|
||||
<el-input
|
||||
v-model="queryParams.diagResults"
|
||||
placeholder="请输入诊断结论"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="下诊断结论的时间:年月日时分秒" prop="diagDate">
|
||||
<el-date-picker
|
||||
v-model="queryParams.diagDate"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
type="daterange"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="诊断医生" prop="diagDoctor">
|
||||
<el-input
|
||||
v-model="queryParams.diagDoctor"
|
||||
placeholder="请输入诊断医生"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核医生" prop="reviewDoctor">
|
||||
<el-input
|
||||
v-model="queryParams.reviewDoctor"
|
||||
placeholder="请输入审核医生"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<!-- <el-form-item label="审核日期:年月日时分秒" prop="reviewDate">
|
||||
<el-date-picker
|
||||
v-model="queryParams.reviewDate"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
type="daterange"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="缩略图oss url, httP:oss url" prop="thumbnailImgUrl">
|
||||
<el-input
|
||||
v-model="queryParams.thumbnailImgUrl"
|
||||
placeholder="请输入缩略图oss url, httP:oss url"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="框架需要:创建时间" prop="createTime">
|
||||
<el-date-picker
|
||||
v-model="queryParams.createTime"
|
||||
value-format="YYYY-MM-DD HH:mm:ss"
|
||||
type="daterange"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<el-form-item>
|
||||
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
||||
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
@click="openForm('create')"
|
||||
v-hasPermi="['tblist:patientexamlist:create']"
|
||||
v-if="false"
|
||||
>
|
||||
<Icon icon="ep:plus" class="mr-5px" /> 新增
|
||||
</el-button>
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
@click="handleExport"
|
||||
:loading="exportLoading"
|
||||
v-hasPermi="['tblist:patientexamlist:export']"
|
||||
>
|
||||
<Icon icon="ep:download" class="mr-5px" /> 导出
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</ContentWrap>
|
||||
|
||||
<!-- 列表 -->
|
||||
<ContentWrap>
|
||||
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
||||
<el-table-column type="index" width="50px"/>
|
||||
<el-table-column label="" width="150px">
|
||||
<template #default="scope">
|
||||
<el-image :src="scope.row.thumbnailImgUrl"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="主键" align="center" prop="id" v-if="false"/>
|
||||
<el-table-column label="检查ID" align="center" prop="examId" />
|
||||
<el-table-column label="患者姓名" align="center" prop="pname" />
|
||||
<el-table-column label="性别" align="center" prop="gender" />
|
||||
<el-table-column label="出生日期" align="center" prop="birthday" />
|
||||
<el-table-column
|
||||
label="检查日期"
|
||||
align="center"
|
||||
prop="examDate"
|
||||
:formatter="dateFormatter"
|
||||
width="180px"
|
||||
/>
|
||||
<el-table-column label="设备类型" align="center" prop="deviceType" />
|
||||
<el-table-column label="Se/Im" align="center" prop="seDc" />
|
||||
<el-table-column label="检查项目名称" align="center" prop="examItemName" />
|
||||
|
||||
<el-table-column label="报告状态" align="center" prop="reportstatus" >
|
||||
<template #default="scope">
|
||||
<el-tag>{{ scope.row.reportstatus }}</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column
|
||||
label="申请日期"
|
||||
align="center"
|
||||
prop="applicationDate"
|
||||
:formatter="dateFormatter"
|
||||
width="180px"
|
||||
/>
|
||||
<el-table-column
|
||||
label="上传时间"
|
||||
align="center"
|
||||
prop="uploadDate"
|
||||
:formatter="dateFormatter"
|
||||
width="180px"
|
||||
/>
|
||||
<el-table-column label="机构名称" align="center" prop="orgName" />
|
||||
<el-table-column label="机构ID" align="center" prop="orgId" v-if="false"/>
|
||||
<el-table-column label="上级判读机构id列表:orgid1,orgid2,orgid3" align="center" prop="highLevelOrgId" v-if="false" />
|
||||
<el-table-column
|
||||
label="创建时间:年月日时分秒"
|
||||
align="center"
|
||||
prop="createDate"
|
||||
:formatter="dateFormatter"
|
||||
width="180px"
|
||||
v-if="false"
|
||||
/>
|
||||
<el-table-column label="检查所见" align="center" prop="examDescription" v-if="false"/>
|
||||
<el-table-column label="诊断结论" align="center" prop="diagResults" v-if="false"/>
|
||||
<el-table-column
|
||||
label="下诊断结论的时间:年月日时分秒"
|
||||
align="center"
|
||||
prop="diagDate"
|
||||
:formatter="dateFormatter"
|
||||
width="180px"
|
||||
v-if="false"
|
||||
/>
|
||||
<el-table-column label="诊断医生" align="center" prop="diagDoctor" v-if="false" />
|
||||
<el-table-column label="审核医生" align="center" prop="reviewDoctor" v-if="false" />
|
||||
<el-table-column
|
||||
label="审核日期:年月日时分秒"
|
||||
align="center"
|
||||
prop="reviewDate"
|
||||
:formatter="dateFormatter"
|
||||
width="180px"
|
||||
v-if="false"
|
||||
/>
|
||||
<el-table-column
|
||||
label="框架需要:创建时间"
|
||||
align="center"
|
||||
prop="createTime"
|
||||
:formatter="dateFormatter"
|
||||
width="180px"
|
||||
v-if="false"
|
||||
/>
|
||||
<el-table-column label="操作" align="center">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
@click="openForm('update', scope.row.id)"
|
||||
v-hasPermi="['tblist:patientexamlist:update']"
|
||||
>
|
||||
申请
|
||||
</el-button>
|
||||
<!-- <el-button
|
||||
link
|
||||
type="danger"
|
||||
@click="handleDelete(scope.row.id)"
|
||||
v-hasPermi="['tblist:patientexamlist:delete']"
|
||||
>
|
||||
删除
|
||||
</el-button> -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!-- 分页 -->
|
||||
<Pagination
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNo"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</ContentWrap>
|
||||
|
||||
<!-- 表单弹窗:添加/修改 -->
|
||||
<PatientexamlistForm ref="formRef" @success="getList" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { dateFormatter } from '@/utils/formatTime'
|
||||
import download from '@/utils/download'
|
||||
import { PatientexamlistApi, PatientexamlistVO } from '@/api/tblist/patientexamlist'
|
||||
import PatientexamlistForm from './PatientexamlistForm.vue'
|
||||
|
||||
/** PACS检查列表 列表 */
|
||||
defineOptions({ name: 'Patientexamlist' })
|
||||
|
||||
const message = useMessage() // 消息弹窗
|
||||
const { t } = useI18n() // 国际化
|
||||
|
||||
const loading = ref(true) // 列表的加载中
|
||||
const list = ref<PatientexamlistVO[]>([]) // 列表的数据
|
||||
const total = ref(0) // 列表的总页数
|
||||
const queryParams = reactive({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
examId: undefined,
|
||||
pname: undefined,
|
||||
gender: undefined,
|
||||
birthday: undefined,
|
||||
examDate: [],
|
||||
deviceType: undefined,
|
||||
seDc: undefined,
|
||||
examItemName: undefined,
|
||||
reportstatus: undefined,
|
||||
applicationDate: [],
|
||||
uploadDate: [],
|
||||
orgName: undefined,
|
||||
orgId: undefined,
|
||||
highLevelOrgId: undefined,
|
||||
createDate: [],
|
||||
examDescription: undefined,
|
||||
diagResults: undefined,
|
||||
diagDate: [],
|
||||
diagDoctor: undefined,
|
||||
reviewDoctor: undefined,
|
||||
reviewDate: [],
|
||||
thumbnailImgUrl: undefined,
|
||||
createTime: [],
|
||||
})
|
||||
const queryFormRef = ref() // 搜索的表单
|
||||
const exportLoading = ref(false) // 导出的加载中
|
||||
|
||||
/** aaaaa **/
|
||||
const examDate_picker = ref(null);
|
||||
const examDate_radio = ref(null);
|
||||
const examDate_radio_value = ref(1);
|
||||
|
||||
const examDate_radio_change = ()=>{
|
||||
if([1,2,3,4].includes(examDate_radio_value.value))
|
||||
{
|
||||
//switch case
|
||||
queryParams.examDate=['2024-07-01 00:00:00','2024-07-09 23:59:59'];
|
||||
|
||||
handleQuery();
|
||||
}else if(5===examDate_radio_value.value)
|
||||
{
|
||||
queryParams.examDate=[];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** 查询列表 */
|
||||
const getList = async () => {
|
||||
loading.value = true
|
||||
try {
|
||||
const data = await PatientexamlistApi.getPatientexamlistPage(queryParams)
|
||||
list.value = data.list
|
||||
total.value = data.total
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
const handleQuery = () => {
|
||||
queryParams.pageNo = 1
|
||||
getList()
|
||||
}
|
||||
|
||||
/** 重置按钮操作 */
|
||||
const resetQuery = () => {
|
||||
queryFormRef.value.resetFields();
|
||||
|
||||
/** aaaaa **/
|
||||
//新写法
|
||||
examDate_radio_value.value=1;
|
||||
examDate_radio_change();
|
||||
if(5===examDate_radio_value.value) handleQuery();
|
||||
|
||||
//老写法
|
||||
//handleQuery();
|
||||
}
|
||||
|
||||
/** 添加/修改操作 */
|
||||
const formRef = ref()
|
||||
const openForm = (type: string, id?: number) => {
|
||||
formRef.value.open(type, id)
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
const handleDelete = async (id: number) => {
|
||||
try {
|
||||
// 删除的二次确认
|
||||
await message.delConfirm()
|
||||
// 发起删除
|
||||
await PatientexamlistApi.deletePatientexamlist(id)
|
||||
message.success(t('common.delSuccess'))
|
||||
// 刷新列表
|
||||
await getList()
|
||||
} catch {}
|
||||
}
|
||||
/** 申请按钮操作 */
|
||||
const handleSub = async (id: number) => {
|
||||
try {
|
||||
// 删除的二次确认
|
||||
await message.delConfirm()
|
||||
// 发起删除
|
||||
await PatientexamlistApi.deletePatientexamlist(id)
|
||||
message.success(t('common.delSuccess'))
|
||||
// 刷新列表
|
||||
await getList()
|
||||
} catch {}
|
||||
}
|
||||
/** 导出按钮操作 */
|
||||
const handleExport = async () => {
|
||||
try {
|
||||
// 导出的二次确认
|
||||
await message.exportConfirm()
|
||||
// 发起导出
|
||||
exportLoading.value = true
|
||||
const data = await PatientexamlistApi.exportPatientexamlist(queryParams)
|
||||
download.excel(data, 'PACS检查列表.xls')
|
||||
} catch {
|
||||
} finally {
|
||||
exportLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
/** 初始化 **/
|
||||
onMounted(() => {
|
||||
/** aaaaa **/
|
||||
//新代码
|
||||
examDate_radio_change();
|
||||
if(5===examDate_radio_value.value) handleQuery();
|
||||
|
||||
//老代码
|
||||
//getList();
|
||||
})
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/* 为了防止 el-form-item 的标签文本换行,可以添加以下CSS样式 */
|
||||
.el-form-item__label {
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user