报告打印统计
This commit is contained in:
parent
9e606cf009
commit
e56a836231
@ -14,6 +14,9 @@ export const ReportPrintStatisticsApi = {
|
||||
},
|
||||
getPage: async (params: any) => {
|
||||
return await request.get({ url: `/tblist/patientexamlist/pageReportPrintStatistics`, params })
|
||||
},
|
||||
updateExamItemName: async (params: any) => {
|
||||
return await request.put({ url: `/tblist/patientexamlist/updateExamItemName`, params })
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -139,7 +139,7 @@
|
||||
width="90px"
|
||||
/>
|
||||
<el-table-column
|
||||
label="检查部位"
|
||||
label="检查项目"
|
||||
header-align="center"
|
||||
prop="examItemName"
|
||||
width="160px"
|
||||
@ -186,9 +186,9 @@
|
||||
>
|
||||
<el-row>
|
||||
<el-col :span="13">
|
||||
<el-form-item label="检查号" prop="examId" class="item-style">
|
||||
<el-form-item label="登记号" prop="regId" class="item-style">
|
||||
<el-input
|
||||
v-model="infoParams.examId"
|
||||
v-model="infoParams.regId"
|
||||
clearable
|
||||
:readonly="diagnosisInfo_readonly"
|
||||
class="item-width"
|
||||
@ -196,9 +196,9 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="11">
|
||||
<el-form-item label="病例号" prop="regId" class="item-style">
|
||||
<el-form-item label="检查号" prop="examId" class="item-style">
|
||||
<el-input
|
||||
v-model="infoParams.regId"
|
||||
v-model="infoParams.examId"
|
||||
clearable
|
||||
:readonly="diagnosisInfo_readonly"
|
||||
class="item-width"
|
||||
@ -289,6 +289,24 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</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-col :span="24">
|
||||
<el-form-item label="所见" prop="examDescription" class="item-style">
|
||||
@ -333,7 +351,7 @@
|
||||
<p class="info-item">性别:{{ infoParams.gender }}</p>
|
||||
<p class="info-item">年龄:{{ age }}岁</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.billDoctorDepartment }}</p>
|
||||
</div>
|
||||
@ -382,7 +400,7 @@
|
||||
</div>
|
||||
<div
|
||||
class="flex-center"
|
||||
id="printMe"
|
||||
id="printMe2"
|
||||
style="min-height: calc(100% - 15px)"
|
||||
v-if="reportInfoType == 'ct'"
|
||||
>
|
||||
@ -397,11 +415,11 @@
|
||||
</el-row>
|
||||
<hr />
|
||||
<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">{{ infoParams.regId }}</div>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-col :span="11">
|
||||
<div class="ml-6px">检查编号:</div>
|
||||
<div class="ml-6px">{{ infoParams.examId }}</div>
|
||||
</el-col>
|
||||
@ -413,7 +431,7 @@
|
||||
<p class="info-item">性别:{{ infoParams.gender }}</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.examItemName }}</p>
|
||||
<p class="info-item" v-if="false">检查项目:{{ infoParams.examItemName }}</p>
|
||||
<p class="info-item">设备:{{ infoParams.deviceName }}</p>
|
||||
<p class="info-item">送检科室:{{ infoParams.billDoctorDepartment }}</p>
|
||||
</div>
|
||||
@ -464,7 +482,7 @@
|
||||
type="primary"
|
||||
style="width: 100px; float: right"
|
||||
class="ignore-print"
|
||||
v-print="'printMe'"
|
||||
v-print="'printMe2'"
|
||||
>打印</el-button
|
||||
>
|
||||
</div>
|
||||
@ -503,6 +521,8 @@ const diagnosisInfo_readonly = ref(true)
|
||||
const deviceList = ref<any[]>([])
|
||||
const reportimages = ref<any[]>([])
|
||||
const age = ref<any>('')
|
||||
const examItemNameEdit = ref('')
|
||||
const examItemNameEditShow = ref(false)
|
||||
//表单核心
|
||||
const queryParams0 = ref({
|
||||
pageNo: 1,
|
||||
@ -528,6 +548,7 @@ const infoParams0 = ref({
|
||||
})
|
||||
const infoParams = ref({
|
||||
/** 测试数据 **/
|
||||
id: '',
|
||||
examId: '',
|
||||
regId: '',
|
||||
pname: '',
|
||||
@ -577,6 +598,7 @@ const loadimage = async (orgId: string, regId: string) => {
|
||||
const resetDiagnosisInfo = async () => {
|
||||
infoParams.value = {
|
||||
/** 测试数据 **/
|
||||
id: '',
|
||||
examId: '',
|
||||
regId: '',
|
||||
pname: '',
|
||||
@ -595,6 +617,8 @@ const resetDiagnosisInfo = async () => {
|
||||
reviewDate: ''
|
||||
}
|
||||
age.value = ''
|
||||
examItemNameEdit.value = ''
|
||||
examItemNameEditShow.value = false
|
||||
reportInfoType.value = ''
|
||||
reportimages.value = []
|
||||
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 () => {
|
||||
resetDiagnosisInfo()
|
||||
loading.value = true
|
||||
@ -624,6 +667,8 @@ const handleRowClick = (row) => {
|
||||
if (row) {
|
||||
infoParams.value = row
|
||||
calculateAge(row.birthday)
|
||||
examItemNameEdit.value = row.examItemName
|
||||
examItemNameEditShow.value = true
|
||||
if (row.deviceType && row.deviceType.trim().toLowerCase() == 'us') {
|
||||
reportInfoType.value = 'us'
|
||||
loadimage(row.orgId, row.regId)
|
||||
|
@ -387,8 +387,6 @@ const btnSubmit_click = async () => {
|
||||
formLoading.value = true
|
||||
try {
|
||||
const data = infoParams.value
|
||||
console.log('-----------------------')
|
||||
console.log(data)
|
||||
//校验
|
||||
if (!data.regId) {
|
||||
await message.alertWarning('请输入登记号')
|
||||
|
Loading…
Reference in New Issue
Block a user