Browse Source

患者档案下载模板地址替换

newMaster
1747191978@qq.com 4 months ago
parent
commit
bfd700c103
  1. 61
      acupuncture-前台/src/views/medicalFile/index.vue
  2. 11
      acupuncture-前台/src/views/patientFile/index.vue

61
acupuncture-前台/src/views/medicalFile/index.vue

@ -77,13 +77,13 @@
<el-table v-loading="loading" :data="listDat" @selection-change="handleSelectionChange" max-height="600"> <el-table v-loading="loading" :data="listDat" @selection-change="handleSelectionChange" max-height="600">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column fixed label="姓名" align="center" prop="name" width="100" /> <el-table-column fixed label="姓名" align="center" prop="name" width="100" />
<el-table-column label="性别" align="center" prop="gender" show-overflow-tooltip width="100"> <el-table-column fixed label="性别" align="center" prop="gender" show-overflow-tooltip width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.gender == 0"></span> <span v-if="scope.row.gender == 0"></span>
<span v-if="scope.row.gender == 1"></span> <span v-if="scope.row.gender == 1"></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="年龄" align="center" prop="age" show-overflow-tooltip width="80" /> <el-table-column fixed label="年龄" align="center" prop="age" show-overflow-tooltip width="80" />
<el-table-column label="民族" align="center" prop="ethnicity" show-overflow-tooltip width="100" /> <el-table-column label="民族" align="center" prop="ethnicity" show-overflow-tooltip width="100" />
<el-table-column label="受教育年限" align="center" prop="educationYears" show-overflow-tooltip width="100" /> <el-table-column label="受教育年限" align="center" prop="educationYears" show-overflow-tooltip width="100" />
<el-table-column label="手机号码" align="center" prop="phone" show-overflow-tooltip width="150" /> <el-table-column label="手机号码" align="center" prop="phone" show-overflow-tooltip width="150" />
@ -463,6 +463,22 @@
</div> </div>
</div> </div>
</el-drawer> </el-drawer>
<!-- 导入患者信息 -->
<el-dialog title="导入诊疗档案" :visible.sync="importOpen" width="640px" append-to-body>
<el-form ref="form" :model="importform">
<el-form-item prop="accessUrl">
<el-upload :limit="1" class="avatar-uploader wj-uploader" :headers="headers"
:action="uploadFileUrl1" accept=".xlsx, .xls" :before-upload="handleBeforePdfUpload1"
:on-success="handleUploadPdfAdd1" :file-list="fileList" :show-file-list="true">
<i class="el-icon-upload"></i>
<div class="el-upload__text">
将文件拖到此处
<em>点击上传</em>
</div>
</el-upload>
</el-form-item>
</el-form>
</el-dialog>
</div> </div>
</template> </template>
@ -476,6 +492,9 @@
saveAidRecord, saveAidRecord,
queueAdd, queueAdd,
} from "@/api/medicalFile"; } from "@/api/medicalFile";
import {
getToken
} from "@/utils/auth";
import { import {
followupQuery followupQuery
} from "@/api/followupFile"; } from "@/api/followupFile";
@ -484,17 +503,23 @@
dicts: ["sys_normal_disable", "sys_user_sex"], dicts: ["sys_normal_disable", "sys_user_sex"],
data() { data() {
return { return {
headers: {
Authorization: "Bearer " + getToken(),
deptId: localStorage.getItem("hospitalId"),
},
uploadFileUrl1: process.env.VUE_APP_API_QZURL + "/acupuncture/treatment/import", //
fileList: [],
followupList: [], followupList: [],
queueOpen: false, queueOpen: false,
// //
medicalHistory: [ 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: [{ idCardType: [{
label: "身份证", label: "身份证",
@ -1047,7 +1072,7 @@
// - pdg // - pdg
handleUploadPdfAdd1(res) { handleUploadPdfAdd1(res) {
if (res.code == 200) { if (res.code == 200) {
this.physicaOpen = false; this.importOpen = false;
this.getList(); this.getList();
this.$modal.msgSuccess("导入成功"); this.$modal.msgSuccess("导入成功");
} else { } else {
@ -1233,6 +1258,7 @@
}).then((response) => { }).then((response) => {
this.$modal.msgSuccess("保存成功"); this.$modal.msgSuccess("保存成功");
this.drawer = false; this.drawer = false;
this.getList()
}); });
} }
}); });
@ -1255,17 +1281,24 @@
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download( this.download1(
"system/user/export", { "/treatment/export", {
...this.queryParams.params, ...this.queryParams.params,
}, },
`诊疗档案.xlsx` `诊疗档案.xlsx`
); );
}, },
/** 下载按钮操作 */
handleDownload() {
this.download1(
"/patient/export", {},
`患者档案导入模版.xlsx`
);
},
/** 导入按钮操作 */ /** 导入按钮操作 */
handleImport() { handleImport() {
this.upload.title = "用户导入"; this.fileList = []
this.upload.open = true; this.importOpen = true;
}, },
}, },
}; };

11
acupuncture-前台/src/views/patientFile/index.vue

@ -48,7 +48,7 @@
@click="handleDelete">删除</el-button> @click="handleDelete">删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="info" plain icon="el-icon-bottom" size="mini" :disabled="multiple" <el-button type="info" plain icon="el-icon-bottom" size="mini"
@click="handleDownload">下载模版</el-button> @click="handleDownload">下载模版</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -494,10 +494,11 @@
}, },
/** 下载按钮操作 */ /** 下载按钮操作 */
handleDownload() { handleDownload() {
this.download1( window.open(`${process.env.VUE_APP_API_QZURL}/acupuncture/profile/PatientTemplate.xlsx`)
"/patient/export", {}, // this.download1(
`患者档案导入模版.xlsx` // "/patient/export", {},
); // `.xlsx`
// );
}, },
/** 导入按钮操作 */ /** 导入按钮操作 */
handleImport() { handleImport() {

Loading…
Cancel
Save