From e56a8362317cbc4d08cd065004127764873f081a Mon Sep 17 00:00:00 2001 From: lichuanyang <1176537920@qq.com> Date: Fri, 16 Aug 2024 23:34:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=91=8A=E6=89=93=E5=8D=B0=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reportPrintStatistics/index.ts | 5 +- .../reportPrintStatistics/index.vue | 67 ++++++++++++++++--- .../reservationInfo/index.vue | 2 - 3 files changed, 60 insertions(+), 14 deletions(-) diff --git a/src/api/applyregistration/reportPrintStatistics/index.ts b/src/api/applyregistration/reportPrintStatistics/index.ts index f3dcdaf7..6e451e71 100644 --- a/src/api/applyregistration/reportPrintStatistics/index.ts +++ b/src/api/applyregistration/reportPrintStatistics/index.ts @@ -14,7 +14,10 @@ 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 }) + } } diff --git a/src/views/applyregistration/reportPrintStatistics/index.vue b/src/views/applyregistration/reportPrintStatistics/index.vue index c8f9987b..5b589c27 100644 --- a/src/views/applyregistration/reportPrintStatistics/index.vue +++ b/src/views/applyregistration/reportPrintStatistics/index.vue @@ -139,7 +139,7 @@ width="90px" /> - + - + + + + + + + + + + 保存 + + 重置 + + @@ -333,7 +351,7 @@

性别:{{ infoParams.gender }}

年龄:{{ age }}岁

检查号:{{ infoParams.examId }}

-

检查类型:{{ infoParams.examItemName }}

+

检查项目:{{ infoParams.examItemName }}

设备:{{ infoParams.deviceName }}

送检科室:{{ infoParams.billDoctorDepartment }}

@@ -382,7 +400,7 @@
@@ -397,11 +415,11 @@
- +
患者编号:
{{ infoParams.regId }}
- +
检查编号:
{{ infoParams.examId }}
@@ -413,7 +431,7 @@

性别:{{ infoParams.gender }}

年龄:{{ age }}岁

检查号:{{ infoParams.examId }}

-

检查类型:{{ infoParams.examItemName }}

+

检查项目:{{ infoParams.examItemName }}

设备:{{ infoParams.deviceName }}

送检科室:{{ infoParams.billDoctorDepartment }}

@@ -464,7 +482,7 @@ type="primary" style="width: 100px; float: right" class="ignore-print" - v-print="'printMe'" + v-print="'printMe2'" >打印 @@ -503,6 +521,8 @@ const diagnosisInfo_readonly = ref(true) const deviceList = ref([]) const reportimages = ref([]) const age = ref('') +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) diff --git a/src/views/applyregistration/reservationInfo/index.vue b/src/views/applyregistration/reservationInfo/index.vue index 0dcc6c2f..ab9205ff 100644 --- a/src/views/applyregistration/reservationInfo/index.vue +++ b/src/views/applyregistration/reservationInfo/index.vue @@ -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('请输入登记号')