diff --git a/src/components/customerOrg/customerOrgGroupAsbitem.vue b/src/components/customerOrg/customerOrgGroupAsbitem.vue index a7b732c..a8be567 100644 --- a/src/components/customerOrg/customerOrgGroupAsbitem.vue +++ b/src/components/customerOrg/customerOrgGroupAsbitem.vue @@ -88,7 +88,27 @@ - + + +
+ + + + + + + + + + + + + + + +
@@ -97,19 +117,22 @@
复制分组
-
+
复制套餐
-
+
复制
-
+
粘贴
-
+
保存
+
+ 导出 +
@@ -241,6 +264,7 @@ import moment from 'moment'; import { mapState } from "vuex"; import { getapi, postapi, putapi } from "@/api/api"; import { getPagePriv, checkPagePriv, arrayExistObj, tcdate, arrayFilter, arrayReduce, deepCopy, objCopy, dddw } from "../../utlis/proFunc"; +import FileSaver from 'file-saver'; export default { props: ['customerOrgGroup', 'curOrgGroups', 'customerOrgAll', 'curOrgRegister', 'curOrgRegisterList', 'refreshMoney'], @@ -329,6 +353,25 @@ export default { }) }, + //通用导出 + btnExport(elId) { + // 获取HTML元素(表格) + // let table = document.getElementById(elId); //.cloneNode(true) + this.$nextTick(() => { + // let refsTable = this.$refs[elId] //.cloneNode(true) true + let table = document.getElementById(elId) + // console.log('table,refsTable', table, refsTable) + + let tableData = table.innerHTML + let fileName = moment(new Date()).format('yyyyMMDDHHmmss') + + let blob = new Blob([tableData], { type: "text/plain;charset=utf-8" }); + + FileSaver.saveAs(blob, fileName + '.xls'); + + }) + }, + //初始数据 dictInit() { //体检类别 树结构 diff --git a/src/views/customerOrg/patientRegisterImport.vue b/src/views/customerOrg/patientRegisterImport.vue index 56dbeaa..5606357 100644 --- a/src/views/customerOrg/patientRegisterImport.vue +++ b/src/views/customerOrg/patientRegisterImport.vue @@ -258,6 +258,13 @@
{{ moment(scope.row.birthDate).format('yyyy-MM-DD') }}
+ + + + + @@ -360,6 +367,11 @@ + + + diff --git a/src/views/customerReport/positiveResultsList.vue b/src/views/customerReport/positiveResultsList.vue index 83b1b6d..74a903c 100644 --- a/src/views/customerReport/positiveResultsList.vue +++ b/src/views/customerReport/positiveResultsList.vue @@ -4,56 +4,31 @@
客户报表 / - 阳性结果人员 + 阳性结果人员
-
+
体检单位: - - + +
诊断: - - + +
检查状态: - + @@ -62,98 +37,58 @@
审核状态: - +
报表格式: - +
- 查询 + 查询
- 导出excel + 导出excel
- 打印 + 打印
- + - -