From 6ad7dbad6efc6a53f69e4f0ebbdec3943ba7b1eb Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Mon, 15 Jun 2026 16:50:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=97=85=E4=BE=8B=E5=BA=93-=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/report-template.html | 97 +++ src/api/cases/index.js | 17 + src/views/cases/components/CaseFormDialog.vue | 14 +- .../components/UltrasoundReportPrint.vue | 390 ++++----- src/views/cases/detail.vue | 784 ++++++++++++------ src/views/cases/index.vue | 31 +- 6 files changed, 866 insertions(+), 467 deletions(-) create mode 100644 public/report-template.html diff --git a/public/report-template.html b/public/report-template.html new file mode 100644 index 0000000..7e72130 --- /dev/null +++ b/public/report-template.html @@ -0,0 +1,97 @@ + + + + + + +
+ $$logo$$ +

青岛海信医疗设备股份有限公司

+

彩色多普勒超声检查报告单

+
+
+ + + + + + + +
超声部位: $$checkbody$$检查号: $$checknumber$$
+
+
+
+ + + + + + + + + + + + + + + + +
姓名: $$name$$性别: $$sex$$ 年龄: $$age$$科别: $$examroom$$申请医师: $$requestdoctor$$
病历号: $$pid$$ 住院号: $$hospitalnumber$$ 病区号: $$areanumber$$ 床位号: $$bednumber$$
+
+
+
+ $$ctimgtable$$ +
+
+
+ + + + + + + + + +
超声所见
$$checkview$$
+
+
+ + + + + + + + + +
超声提示
$$checkconclusion$$
+
+ + + \ No newline at end of file diff --git a/src/api/cases/index.js b/src/api/cases/index.js index d5b74f4..e57f24f 100644 --- a/src/api/cases/index.js +++ b/src/api/cases/index.js @@ -121,6 +121,15 @@ export function postReportViewers(data) { data }) } +// 审批操作(通过/驳回) +export function postReportReview(data) { + return request({ + url: '/report/review', + method: 'post', + data + }) +} + // �病例库-修改 export function postReportEdit(data) { return request({ @@ -129,6 +138,14 @@ export function postReportEdit(data) { data }) } +// 打印 +export function postReportPrint(data) { + return request({ + url: '/report/print', + method: 'post', + data + }) +} // 修改预约时间 export function postReportTimeSectionEdit(data) { return request({ diff --git a/src/views/cases/components/CaseFormDialog.vue b/src/views/cases/components/CaseFormDialog.vue index 19f50c0..2ffe0e7 100644 --- a/src/views/cases/components/CaseFormDialog.vue +++ b/src/views/cases/components/CaseFormDialog.vue @@ -392,10 +392,16 @@ export default { }, ], patient_age: [ - { required: true, message: "年龄不能为空", trigger: "change" }, + { required: true, message: "年龄不能为空", trigger: "blur" }, + { + type: "number", + min: 0, + message: "年龄不能为负数", + trigger: "blur", + }, ], patient_age_type: [ - { required: true, message: "年龄类型不能为空", trigger: "change" }, + { required: true, message: "年龄类型不能为空", trigger: "blur" }, ], patient_sex: [ { required: true, message: "性别不能为空", trigger: "change" }, @@ -495,9 +501,11 @@ export default { postReportTimeSections({ exam_room_id: exam_rooms_id }).then( (response) => { this.timeSectionList = response.data || []; - if (this.timeSectionList.length > 0) { + if (this.form.id == undefined && this.timeSectionList.length > 0) { this.form.time_section = this.timeSectionList[0]; + console.log(this.form.time_section); } + console.log(this.form.time_section); } ); }, diff --git a/src/views/cases/components/UltrasoundReportPrint.vue b/src/views/cases/components/UltrasoundReportPrint.vue index e23eabb..73a3ec9 100644 --- a/src/views/cases/components/UltrasoundReportPrint.vue +++ b/src/views/cases/components/UltrasoundReportPrint.vue @@ -5,189 +5,14 @@ width="800px" :close-on-click-modal="false" > -
- - - - 医院logo - - -

海伦普济医院

-

- 彩色多普勒超声检查报告单 -

-
-
- - - - {{ - report.positions.length - ? report.positions.map((item) => item.level2.name).join("|") + - (report.position_text ? "|" + report.position_text : "") - : report.position_text - }} - - - - - {{ report.id }} - - - - - - - {{ report.patient_name }} - - - - - {{ - report.patient_sex - ? patientSexList.find((i) => i.value == report.patient_sex) - .label || "" - : "" - }} - - - - - {{ report.patient_age }} - {{ - report.patient_age_type - ? patientAgeTypeList.find( - (i) => i.value == report.patient_age_type - ).label || "" - : "" - }} - - - - - {{ report.exam_rooms.map((i) => i.name).join("|") }} - - - - - {{ report.request_doctor }} - - - - - - - {{ report.outpatient_number }} - - - - - {{ report.hospitalization_number }} - - - - - {{ report.area_number }} - - - - - {{ report.bed_number }} - - - - - -
- - - - - - - -
- -
-
- - - - - - - - - - - - - - - - - - - 仅供临床参考,不作证明材料! - - - - - {{ report.reporter_name }} - - - - - {{ report.create_time }} - - - -
+ +