Browse Source

诊疗档案添加

new
lzp 5 days ago
parent
commit
4945f97105
  1. 2
      acupuncture-前台/src/utils/request.js
  2. 22
      acupuncture-前台/src/views/medicalFile/index.vue
  3. 2
      acupuncture-前台/src/views/patientFile/index.vue

2
acupuncture-前台/src/utils/request.js

@ -229,6 +229,8 @@ export function download1(url, params, filename, config) {
headers: { "Content-Type": "application/json;charset=utf-8" }, headers: { "Content-Type": "application/json;charset=utf-8" },
responseType: "blob", responseType: "blob",
data: params, // 确保参数传递给后端
...config, // 合并传入的额外配置
}) })
.then(async (data) => { .then(async (data) => {
const isBlob = blobValidate(data); const isBlob = blobValidate(data);

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

@ -195,6 +195,16 @@
>导出</el-button >导出</el-button
> >
</el-col> </el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExportBody"
>导出体成分数据</el-button
>
</el-col>
<right-toolbar <right-toolbar
:showSearch.sync="showSearch" :showSearch.sync="showSearch"
@queryTable="getList" @queryTable="getList"
@ -1282,11 +1292,21 @@ export default {
this.download1( this.download1(
"/treatment/exportTreatment", "/treatment/exportTreatment",
{ {
...this.queryParams.params, ...this.queryParams.param,
}, },
`诊疗档案.xlsx` `诊疗档案.xlsx`
); );
}, },
/** 导出按钮操作 */
handleExportBody() {
this.download1(
"/export",
{
...this.queryParams.param,
},
`体成分数据.xlsx`
);
},
/** 下载按钮操作 */ /** 下载按钮操作 */
handleDownload() { handleDownload() {
window.open( window.open(

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

@ -990,7 +990,7 @@ export default {
this.download1( this.download1(
"/patient/export", "/patient/export",
{ {
...this.queryParams.params, ...this.queryParams.param,
}, },
`患者档案.xlsx` `患者档案.xlsx`
); );

Loading…
Cancel
Save