|
|
|
@ -91,28 +91,6 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-row :gutter="10" class="mb8"> |
|
|
|
<!-- <el-col :span="1.5" v-hasPermi="['tms:evaluation:remove']"> |
|
|
|
<el-button |
|
|
|
type="danger" |
|
|
|
plain |
|
|
|
icon="el-icon-delete" |
|
|
|
size="mini" |
|
|
|
:disabled="multiple" |
|
|
|
@click="handleDelete" |
|
|
|
>删除 |
|
|
|
</el-button> |
|
|
|
</el-col> --> |
|
|
|
<!-- <el-col :span="1.5" v-hasPermi="['tms:evaluation:report']"> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
plain |
|
|
|
icon="el-icon-document" |
|
|
|
:disabled="single" |
|
|
|
size="mini" |
|
|
|
@click="handleReport" |
|
|
|
>查看测评报告 |
|
|
|
</el-button> |
|
|
|
</el-col> --> |
|
|
|
<el-col :span="1.5" v-hasPermi="['tms:evaluation:export']"> |
|
|
|
<el-button |
|
|
|
type="warning" |
|
|
|
@ -240,56 +218,83 @@ |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center" width="300" fixed="right"> |
|
|
|
<el-table-column label="操作" align="center" width="200" fixed="right"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-upload2" |
|
|
|
@click="handlePatientExport('医生版', true, scope.row)" |
|
|
|
> |
|
|
|
导出(医生版) |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-printer" |
|
|
|
@click="handlePrinting('医生版', scope.row)" |
|
|
|
> |
|
|
|
打印(医生版) |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-upload2" |
|
|
|
@click="handlePatientExport('阳性版', true, scope.row)" |
|
|
|
> |
|
|
|
导出(阳性版) |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-printer" |
|
|
|
@click="handlePrinting('阳性版', scope.row)" |
|
|
|
> |
|
|
|
打印(阳性版) |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-upload2" |
|
|
|
@click="handlePatientExport('个人版', true, scope.row)" |
|
|
|
> |
|
|
|
导出(个人版) |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-printer" |
|
|
|
@click="handlePrinting('个人版', scope.row)" |
|
|
|
> |
|
|
|
打印(个人版) |
|
|
|
</el-button> |
|
|
|
<el-popover placement="bottom" trigger="click"> |
|
|
|
<el-button |
|
|
|
slot="reference" |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-upload2" |
|
|
|
@click="getReportTemplate('PERSION')" |
|
|
|
> |
|
|
|
导出个人版 |
|
|
|
</el-button> |
|
|
|
<div v-loading="reportTemplateLoading"> |
|
|
|
<div v-for="(item, index) in reportTemplateList" :key="index"> |
|
|
|
<el-button |
|
|
|
@click="handleReportTemplate(scope.row, item.id, item.type)" |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
> |
|
|
|
{{ item.name }}({{ item.type ? "pdf" : "word" }}) |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
<div v-if="!reportTemplateList.length" style="text-align: center"> |
|
|
|
暂无报告模板 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-popover> |
|
|
|
<el-popover placement="bottom" trigger="click"> |
|
|
|
<el-button |
|
|
|
slot="reference" |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-upload2" |
|
|
|
@click="getReportTemplate('DOCTOR')" |
|
|
|
> |
|
|
|
导出医生版 |
|
|
|
</el-button> |
|
|
|
<div v-loading="reportTemplateLoading"> |
|
|
|
<div v-for="(item, index) in reportTemplateList" :key="index"> |
|
|
|
<el-button |
|
|
|
@click="handleReportTemplate(scope.row, item.id, item.type)" |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
> |
|
|
|
{{ item.name }}({{ item.type ? "pdf" : "word" }}) |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
<div v-if="!reportTemplateList.length" style="text-align: center"> |
|
|
|
暂无报告模板 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-popover> |
|
|
|
<el-popover placement="bottom" trigger="click"> |
|
|
|
<el-button |
|
|
|
slot="reference" |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-upload2" |
|
|
|
@click="getReportTemplate('POSITIVE')" |
|
|
|
> |
|
|
|
导出阳性 |
|
|
|
</el-button> |
|
|
|
<div v-loading="reportTemplateLoading"> |
|
|
|
<div v-for="(item, index) in reportTemplateList" :key="index"> |
|
|
|
<el-button |
|
|
|
@click="handleReportTemplate(scope.row, item.id, item.type)" |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
> |
|
|
|
{{ item.name }}({{ item.type ? "pdf" : "word" }}) |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
<div v-if="!reportTemplateList.length" style="text-align: center"> |
|
|
|
暂无报告模板 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-popover> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
@ -385,12 +390,17 @@ |
|
|
|
<script> |
|
|
|
let { apiUrl, proxyUrl } = require("@/config/settings"); |
|
|
|
import { careers, pasis } from "./ReportDetail/config.js"; |
|
|
|
import { |
|
|
|
reportTemplateQuery, |
|
|
|
reportExportAll, |
|
|
|
} from "@/api/reportTemplate/index.js"; |
|
|
|
import { |
|
|
|
queryReportList, |
|
|
|
queryReportDetail, |
|
|
|
updateScaleInitialImpression, |
|
|
|
exportReport, |
|
|
|
personalExport, |
|
|
|
queryReport, |
|
|
|
doctorExport, |
|
|
|
positiveExport, |
|
|
|
} from "@/api/his/evaluation"; |
|
|
|
@ -464,6 +474,8 @@ export default { |
|
|
|
deptOptions: [], // 科室选择 |
|
|
|
versionList: [], // 版本列表 |
|
|
|
workloadList: [], // 工作量统计列表 |
|
|
|
reportTemplateList: [], // 报告模板列表 |
|
|
|
reportTemplateLoading: false, // 报告模板加载状态 |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -478,6 +490,32 @@ export default { |
|
|
|
this.getuserStatistics(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 获取报告单列表 |
|
|
|
getReportTemplate(_type) { |
|
|
|
reportTemplateQuery({ |
|
|
|
pageNum: -1, |
|
|
|
param: { code: _type }, |
|
|
|
}).then((response) => { |
|
|
|
this.reportTemplateLoading = false; |
|
|
|
this.reportTemplateList = response.data || []; |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 导出报告单 |
|
|
|
handleReportTemplate(row, id, type) { |
|
|
|
this.loading = true; |
|
|
|
reportExportAll({ |
|
|
|
templateId: id, |
|
|
|
reportId: row.reportId, |
|
|
|
}) |
|
|
|
.then((res) => { |
|
|
|
this.loading = false; |
|
|
|
let path = type ? res.data.path : res.data.word; |
|
|
|
window.open(this.qzUrl + path); |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 工作量统计 |
|
|
|
getuserStatistics() { |
|
|
|
userStatistics({}).then((res) => { |
|
|
|
@ -628,7 +666,7 @@ export default { |
|
|
|
const param = { |
|
|
|
evaluationId: evaluationId || this.ids[0], |
|
|
|
}; |
|
|
|
queryReportDetail(param).then((res) => { |
|
|
|
queryReport(param).then((res) => { |
|
|
|
console.log("res: ", res); |
|
|
|
this.reportDetail1 = res.data; |
|
|
|
this.reportDetail1.evaluationId = param.evaluationId; |
|
|
|
|