diff --git a/src/views/manage/preHospitalized/index.vue b/src/views/manage/preHospitalized/index.vue index 1ecfa27..56039c3 100644 --- a/src/views/manage/preHospitalized/index.vue +++ b/src/views/manage/preHospitalized/index.vue @@ -345,21 +345,22 @@ - - + +
将文件拖到此处,或点击上传
- 1. 下载导入模板 + 1. 下载导入模板
2.最大支持2MB的xls/xlsx文件
3.一次导入患者数量不能超过5000
@@ -370,6 +371,7 @@ import { listPatientInfo, getPatientInfo, delPatientInfo, addPatientInfo, updatePatientInfo } from "@/api/manage/patientInfo"; import { getAge } from "@/utils/age"; import { selectAgencyList, getDepartmentList, subordinateAgencyList } from "@/api/manage/selectAgencyList"; +import { getToken } from '@/utils/auth' export default { name: "preHospitalized", @@ -455,7 +457,13 @@ export default { appointmentDate: [ { required: true, message: '请选择患者预约时间', trigger: 'change' } ], - } + }, + action: { + headers: { + Authorization: 'Bearer ' + getToken(), + }, + url: process.env.VUE_APP_BASE_API + '/manage/preHospital/importInfo' + }, }; }, created() { @@ -617,6 +625,10 @@ export default { submitUpload() { this.$refs.upload.submit(); }, + handleAvatarSuccess() { + this.uploadcancel(); + this.getList(); + }, handleRemove(file, fileList) { console.log(file, fileList); }, @@ -732,6 +744,14 @@ export default { this.queryParams.wardId = null } }, + /** 下载模板操作 */ + importTemplate() { + this.download( + "/system/importDownload/downloadTemplate?fileType=prehospitalized", + {}, + `预住院患者导入模板.xlsx` + ); + }, } }; diff --git a/src/views/manage/visitin/index.vue b/src/views/manage/visitin/index.vue index 33897ca..d1650d3 100644 --- a/src/views/manage/visitin/index.vue +++ b/src/views/manage/visitin/index.vue @@ -351,21 +351,22 @@
- - + +
将文件拖到此处,或点击上传
- 1. 下载导入模板 + 1. 下载导入模板
2.最大支持2MB的xls/xlsx文件
3.一次导入患者数量不能超过5000
@@ -376,6 +377,7 @@ import { listPatientInfo, getPatientInfo, delPatientInfo, addPatientInfo, updatePatientInfo } from "@/api/manage/patientInfo"; import { getAge } from "@/utils/age"; import { selectAgencyList, getDepartmentList, subordinateAgencyList } from "@/api/manage/selectAgencyList"; +import { getToken } from '@/utils/auth' export default { name: "visitin", @@ -464,7 +466,16 @@ export default { admissionDate: [ { required: true, message: '请选择患者入院时间', trigger: 'change' } ], - } + }, + action: { + data: { + patientType: 'inhospital', + }, + headers: { + Authorization: 'Bearer ' + getToken(), + }, + url: process.env.VUE_APP_BASE_API + '/manage/visitRecord/importPatientInfo' + }, }; }, created() { @@ -641,6 +652,10 @@ export default { submitUpload() { this.$refs.upload.submit(); }, + handleAvatarSuccess() { + this.uploadcancel(); + this.getList(); + }, handleRemove(file, fileList) { console.log(file, fileList); }, @@ -756,6 +771,14 @@ export default { this.queryParams.wardId = null } }, + /** 下载模板操作 */ + importTemplate() { + this.download( + "/system/importDownload/downloadTemplate?fileType=inhospital", + {}, + `在院患者导入模板.xlsx` + ); + }, } }; diff --git a/src/views/manage/visitout/index.vue b/src/views/manage/visitout/index.vue index 1ce7067..6fd1972 100644 --- a/src/views/manage/visitout/index.vue +++ b/src/views/manage/visitout/index.vue @@ -116,7 +116,10 @@ v-hasPermi="['manage:preHospitalized:remove']">删除 - 导入 + 导入门诊患者 + + + 导入出院患者 @@ -283,8 +286,8 @@ - + @@ -355,21 +358,41 @@
- - + +
将文件拖到此处,或点击上传
- 1. 下载导入模板 + 1. 下载导入模板
2.最大支持2MB的xls/xlsx文件
3.一次导入患者数量不能超过5000
+
+ + + +
将文件拖到此处,或点击上传
+
+
+ 1. 下载导入模板 +
+
2.最大支持2MB的xls/xlsx文件
+
3.一次导入患者数量不能超过5000
+
+
+
@@ -380,6 +403,7 @@ import { listPatientInfo, getPatientInfo, delPatientInfo, addPatientInfo, updatePatientInfo } from "@/api/manage/patientInfo"; import { getAge } from "@/utils/age"; import { selectAgencyList, getDepartmentList, subordinateAgencyList } from "@/api/manage/selectAgencyList"; +import { getToken } from '@/utils/auth' export default { name: "visitout", @@ -423,6 +447,7 @@ export default { // 是否显示弹出层 open: false, uploadopen: false, + uploadopentwo: false, // 查询参数 dischargeDate: [], queryParams: { @@ -471,7 +496,19 @@ export default { visitTime: [ { required: true, message: '请选择患者就诊时间', trigger: 'change' } ], - } + }, + action: { + data: { + patientType: 'outpatient', + }, + datatwo: { + patientType: 'discharged', + }, + headers: { + Authorization: 'Bearer ' + getToken(), + }, + url: process.env.VUE_APP_BASE_API + '/manage/visitRecord/importPatientInfo' + }, }; }, created() { @@ -653,6 +690,10 @@ export default { submitUpload() { this.$refs.upload.submit(); }, + handleAvatarSuccess() { + this.uploadcancel(); + this.getList(); + }, handleRemove(file, fileList) { console.log(file, fileList); }, @@ -663,9 +704,13 @@ export default { handleUpload() { this.uploadopen = true }, + handleUploadtwo() { + this.uploadopentwo = true + }, //取消导入 uploadcancel() { this.uploadopen = false + this.uploadopentwo = false }, //获取医院list selectAgencyinfo() { @@ -768,6 +813,22 @@ export default { this.queryParams.wardId = null } }, + /** 下载模板操作 */ + importTemplate() { + this.download( + "/system/importDownload/downloadTemplate?fileType=outpatient", + {}, + `门诊患者导入模板.xlsx` + ); + }, + /** 下载模板操作 */ + importTemplatetwo() { + this.download( + "/system/importDownload/downloadTemplate?fileType=discharged", + {}, + `出院患者导入模板.xlsx` + ); + }, } };