From bfd700c10304cb3e071cfd656376bc5cf969c943 Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Tue, 18 Feb 2025 15:42:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=A3=E8=80=85=E6=A1=A3=E6=A1=88=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E6=A8=A1=E6=9D=BF=E5=9C=B0=E5=9D=80=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/medicalFile/index.vue | 61 ++++++++++++++----- .../src/views/patientFile/index.vue | 11 ++-- 2 files changed, 53 insertions(+), 19 deletions(-) diff --git a/acupuncture-前台/src/views/medicalFile/index.vue b/acupuncture-前台/src/views/medicalFile/index.vue index 3793e0f01..b308a521b 100644 --- a/acupuncture-前台/src/views/medicalFile/index.vue +++ b/acupuncture-前台/src/views/medicalFile/index.vue @@ -77,13 +77,13 @@ - + - + @@ -463,6 +463,22 @@ + + + + + + +
+ 将文件拖到此处,或 + 点击上传 +
+
+
+
+
@@ -476,6 +492,9 @@ saveAidRecord, queueAdd, } from "@/api/medicalFile"; + import { + getToken + } from "@/utils/auth"; import { followupQuery } from "@/api/followupFile"; @@ -484,17 +503,23 @@ dicts: ["sys_normal_disable", "sys_user_sex"], data() { return { + headers: { + Authorization: "Bearer " + getToken(), + deptId: localStorage.getItem("hospitalId"), + }, + uploadFileUrl1: process.env.VUE_APP_API_QZURL + "/acupuncture/treatment/import", // 上传的图片服务器地址 + fileList: [], followupList: [], queueOpen: false, // 现病史 medicalHistory: [ - "肥胖症ICD-10编码E66.0", - "失眠病TCD编码BNX040、ICD-10编码F51.0", - "中风病TCD编码:BNG080 ICD-10编码:I63", - "面瘫病TCD编码BWV120 ICD编码G51.802", - "项痹病TCD编码BGS000 ICD编码M47.221+G55.2*", - "腰痛病ICD-10编码: M51.202", - "痉挛性斜颈TCD编码BNG090 ICD-10编码G24.300 ", + "肥胖症", + "失眠病", + "中风病", + "面瘫病", + "项痹病", + "腰痛病", + "痉挛性斜颈", ], idCardType: [{ label: "身份证", @@ -1047,7 +1072,7 @@ // 上传成功回 - pdg handleUploadPdfAdd1(res) { if (res.code == 200) { - this.physicaOpen = false; + this.importOpen = false; this.getList(); this.$modal.msgSuccess("导入成功"); } else { @@ -1233,6 +1258,7 @@ }).then((response) => { this.$modal.msgSuccess("保存成功"); this.drawer = false; + this.getList() }); } }); @@ -1255,17 +1281,24 @@ }, /** 导出按钮操作 */ handleExport() { - this.download( - "system/user/export", { + this.download1( + "/treatment/export", { ...this.queryParams.params, }, `诊疗档案.xlsx` ); }, + /** 下载按钮操作 */ + handleDownload() { + this.download1( + "/patient/export", {}, + `患者档案导入模版.xlsx` + ); + }, /** 导入按钮操作 */ handleImport() { - this.upload.title = "用户导入"; - this.upload.open = true; + this.fileList = [] + this.importOpen = true; }, }, }; diff --git a/acupuncture-前台/src/views/patientFile/index.vue b/acupuncture-前台/src/views/patientFile/index.vue index e9e82a12e..fc897e79b 100644 --- a/acupuncture-前台/src/views/patientFile/index.vue +++ b/acupuncture-前台/src/views/patientFile/index.vue @@ -48,7 +48,7 @@ @click="handleDelete">删除 - 下载模版 @@ -494,10 +494,11 @@ }, /** 下载按钮操作 */ handleDownload() { - this.download1( - "/patient/export", {}, - `患者档案导入模版.xlsx` - ); + window.open(`${process.env.VUE_APP_API_QZURL}/acupuncture/profile/PatientTemplate.xlsx`) + // this.download1( + // "/patient/export", {}, + // `患者档案导入模版.xlsx` + // ); }, /** 导入按钮操作 */ handleImport() {