报告打印统计

This commit is contained in:
旺仔 2024-08-16 23:34:13 +08:00
parent 9e606cf009
commit e56a836231
3 changed files with 60 additions and 14 deletions

View File

@ -14,6 +14,9 @@ export const ReportPrintStatisticsApi = {
}, },
getPage: async (params: any) => { getPage: async (params: any) => {
return await request.get({ url: `/tblist/patientexamlist/pageReportPrintStatistics`, params }) return await request.get({ url: `/tblist/patientexamlist/pageReportPrintStatistics`, params })
},
updateExamItemName: async (params: any) => {
return await request.put({ url: `/tblist/patientexamlist/updateExamItemName`, params })
} }
} }

View File

@ -139,7 +139,7 @@
width="90px" width="90px"
/> />
<el-table-column <el-table-column
label="检查部位" label="检查项目"
header-align="center" header-align="center"
prop="examItemName" prop="examItemName"
width="160px" width="160px"
@ -186,9 +186,9 @@
> >
<el-row> <el-row>
<el-col :span="13"> <el-col :span="13">
<el-form-item label="检查号" prop="examId" class="item-style"> <el-form-item label="登记号" prop="regId" class="item-style">
<el-input <el-input
v-model="infoParams.examId" v-model="infoParams.regId"
clearable clearable
:readonly="diagnosisInfo_readonly" :readonly="diagnosisInfo_readonly"
class="item-width" class="item-width"
@ -196,9 +196,9 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="病例号" prop="regId" class="item-style"> <el-form-item label="检查号" prop="examId" class="item-style">
<el-input <el-input
v-model="infoParams.regId" v-model="infoParams.examId"
clearable clearable
:readonly="diagnosisInfo_readonly" :readonly="diagnosisInfo_readonly"
class="item-width" class="item-width"
@ -289,6 +289,24 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="13">
<el-form-item label="检查项目" class="item-style">
<el-input
v-model="examItemNameEdit"
clearable
:readonly="false"
class="item-width"
/>
</el-form-item>
</el-col>
<el-col :span="11" v-show="examItemNameEditShow">
<el-button class="ml-10px -mr-8px" type="primary" @click="examItemNameEdit_save">
保存
</el-button>
<el-button @click="examItemNameEdit_reset"> 重置 </el-button>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="所见" prop="examDescription" class="item-style"> <el-form-item label="所见" prop="examDescription" class="item-style">
@ -333,7 +351,7 @@
<p class="info-item">性别{{ infoParams.gender }}</p> <p class="info-item">性别{{ infoParams.gender }}</p>
<p class="info-item">年龄{{ age }}</p> <p class="info-item">年龄{{ age }}</p>
<p class="info-item">检查号{{ infoParams.examId }}</p> <p class="info-item">检查号{{ infoParams.examId }}</p>
<p class="info-item">检查类型{{ infoParams.examItemName }}</p> <p class="info-item">检查项目{{ infoParams.examItemName }}</p>
<p class="info-item">设备{{ infoParams.deviceName }}</p> <p class="info-item">设备{{ infoParams.deviceName }}</p>
<p class="info-item">送检科室{{ infoParams.billDoctorDepartment }}</p> <p class="info-item">送检科室{{ infoParams.billDoctorDepartment }}</p>
</div> </div>
@ -382,7 +400,7 @@
</div> </div>
<div <div
class="flex-center" class="flex-center"
id="printMe" id="printMe2"
style="min-height: calc(100% - 15px)" style="min-height: calc(100% - 15px)"
v-if="reportInfoType == 'ct'" v-if="reportInfoType == 'ct'"
> >
@ -397,11 +415,11 @@
</el-row> </el-row>
<hr /> <hr />
<el-row style="font-size: 14px"> <el-row style="font-size: 14px">
<el-col :span="24" class="mb-8px"> <el-col :span="13">
<div class="ml-6px">患者编号</div> <div class="ml-6px">患者编号</div>
<div class="ml-6px">{{ infoParams.regId }}</div> <div class="ml-6px">{{ infoParams.regId }}</div>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="11">
<div class="ml-6px">检查编号</div> <div class="ml-6px">检查编号</div>
<div class="ml-6px">{{ infoParams.examId }}</div> <div class="ml-6px">{{ infoParams.examId }}</div>
</el-col> </el-col>
@ -413,7 +431,7 @@
<p class="info-item">性别{{ infoParams.gender }}</p> <p class="info-item">性别{{ infoParams.gender }}</p>
<p class="info-item">年龄{{ age }}</p> <p class="info-item">年龄{{ age }}</p>
<p class="info-item" v-if="false">检查号{{ infoParams.examId }}</p> <p class="info-item" v-if="false">检查号{{ infoParams.examId }}</p>
<p class="info-item" v-if="false">检查类型{{ infoParams.examItemName }}</p> <p class="info-item" v-if="false">检查项目{{ infoParams.examItemName }}</p>
<p class="info-item">设备{{ infoParams.deviceName }}</p> <p class="info-item">设备{{ infoParams.deviceName }}</p>
<p class="info-item">送检科室{{ infoParams.billDoctorDepartment }}</p> <p class="info-item">送检科室{{ infoParams.billDoctorDepartment }}</p>
</div> </div>
@ -464,7 +482,7 @@
type="primary" type="primary"
style="width: 100px; float: right" style="width: 100px; float: right"
class="ignore-print" class="ignore-print"
v-print="'printMe'" v-print="'printMe2'"
>打印</el-button >打印</el-button
> >
</div> </div>
@ -503,6 +521,8 @@ const diagnosisInfo_readonly = ref(true)
const deviceList = ref<any[]>([]) const deviceList = ref<any[]>([])
const reportimages = ref<any[]>([]) const reportimages = ref<any[]>([])
const age = ref<any>('') const age = ref<any>('')
const examItemNameEdit = ref('')
const examItemNameEditShow = ref(false)
// //
const queryParams0 = ref({ const queryParams0 = ref({
pageNo: 1, pageNo: 1,
@ -528,6 +548,7 @@ const infoParams0 = ref({
}) })
const infoParams = ref({ const infoParams = ref({
/** 测试数据 **/ /** 测试数据 **/
id: '',
examId: '', examId: '',
regId: '', regId: '',
pname: '', pname: '',
@ -577,6 +598,7 @@ const loadimage = async (orgId: string, regId: string) => {
const resetDiagnosisInfo = async () => { const resetDiagnosisInfo = async () => {
infoParams.value = { infoParams.value = {
/** 测试数据 **/ /** 测试数据 **/
id: '',
examId: '', examId: '',
regId: '', regId: '',
pname: '', pname: '',
@ -595,6 +617,8 @@ const resetDiagnosisInfo = async () => {
reviewDate: '' reviewDate: ''
} }
age.value = '' age.value = ''
examItemNameEdit.value = ''
examItemNameEditShow.value = false
reportInfoType.value = '' reportInfoType.value = ''
reportimages.value = [] reportimages.value = []
infoFormRef.value?.clearValidate() infoFormRef.value?.clearValidate()
@ -602,6 +626,25 @@ const resetDiagnosisInfo = async () => {
/****** 可参考内容 ******/ /****** 可参考内容 ******/
/** 组件事件 **/ /** 组件事件 **/
const examItemNameEdit_save = async () => {
try {
ReportPrintStatisticsApi.updateExamItemName({
id: infoParams.value.id,
examItemName: examItemNameEdit.value
})
infoParams.value.examItemName = examItemNameEdit.value
message.success(t('common.updateSuccess'))
} finally {
}
}
const examItemNameEdit_reset = async () => {
try {
examItemNameEdit.value = infoParams.value?.examItemName
} finally {
}
}
const getList = async () => { const getList = async () => {
resetDiagnosisInfo() resetDiagnosisInfo()
loading.value = true loading.value = true
@ -624,6 +667,8 @@ const handleRowClick = (row) => {
if (row) { if (row) {
infoParams.value = row infoParams.value = row
calculateAge(row.birthday) calculateAge(row.birthday)
examItemNameEdit.value = row.examItemName
examItemNameEditShow.value = true
if (row.deviceType && row.deviceType.trim().toLowerCase() == 'us') { if (row.deviceType && row.deviceType.trim().toLowerCase() == 'us') {
reportInfoType.value = 'us' reportInfoType.value = 'us'
loadimage(row.orgId, row.regId) loadimage(row.orgId, row.regId)

View File

@ -387,8 +387,6 @@ const btnSubmit_click = async () => {
formLoading.value = true formLoading.value = true
try { try {
const data = infoParams.value const data = infoParams.value
console.log('-----------------------')
console.log(data)
// //
if (!data.regId) { if (!data.regId) {
await message.alertWarning('请输入登记号') await message.alertWarning('请输入登记号')