Browse Source

上报管理添加下载上报汇总表

newDev
lzp 1 week ago
parent
commit
6b87793790
  1. 10
      acupuncture-后台/src/api/report.js
  2. 36
      acupuncture-后台/src/views/report/manage.vue

10
acupuncture-后台/src/api/report.js

@ -61,4 +61,12 @@ export function managerDel(data) {
method: "post", method: "post",
data: data, data: data,
}); });
} }
// 下载上报汇总表
export function reportDown(data) {
return request({
url: "/admin/treatment/adminExportTreatmentPgZip",
method: "post",
data: data,
});
}

36
acupuncture-后台/src/views/report/manage.vue

@ -167,7 +167,7 @@
label="操作" label="操作"
align="center" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
width="200" width="150"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -186,6 +186,20 @@
@click="handleSwitch(scope.row, 2)" @click="handleSwitch(scope.row, 2)"
>结束</el-button >结束</el-button
> >
<el-button
size="mini"
type="text"
icon="el-icon-document"
@click="handleDetails(scope.row)"
>上报详情</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-download"
@click="handleDownload(scope.row)"
>上报汇总表</el-button
>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -292,6 +306,7 @@ import {
managerUpd, managerUpd,
managerDel, managerDel,
reportList, reportList,
reportDown,
} from "@/api/report"; } from "@/api/report";
import { tenantsList } from "@/api/member"; import { tenantsList } from "@/api/member";
export default { export default {
@ -356,6 +371,7 @@ export default {
// }], // }],
}, },
tenantsData: [], tenantsData: [],
qzUrl: process.env.VUE_APP_API_QZURL, //
}; };
}, },
created() { created() {
@ -364,6 +380,24 @@ export default {
this.getTenantsList(); this.getTenantsList();
}, },
methods: { methods: {
handleDownload(row) {
reportDown({
managementId: row.id,
}).then((res) => {
if (res.data) {
window.open(this.qzUrl + res.data.url);
} else {
this.$modal.msgError("暂无上报汇总表");
}
});
},
//
handleDetails(row) {
this.$router.push({
path: "/medicalFile/index",
query: { id: row.id },
});
},
// //
handleTypeChage() { handleTypeChage() {
// form.reportType reporTypeList id tenantIdList // form.reportType reporTypeList id tenantIdList

Loading…
Cancel
Save