|
|
@ -21,21 +21,21 @@ |
|
|
<div |
|
|
<div |
|
|
class="div-derive cardRig-but" |
|
|
class="div-derive cardRig-but" |
|
|
style="width: 130px; margin-right: 10px" |
|
|
style="width: 130px; margin-right: 10px" |
|
|
@click="handleExport('医生版')" |
|
|
@click="handleExport('医生版', true)" |
|
|
> |
|
|
> |
|
|
<i class="el-icon-upload2"></i>导出(医生版) |
|
|
<i class="el-icon-upload2"></i>导出(医生版) |
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div |
|
|
style="width: 130px; margin-right: 10px" |
|
|
style="width: 130px; margin-right: 10px" |
|
|
class="div-print cardRig-but" |
|
|
class="div-print cardRig-but" |
|
|
@click="handlePrinting('医生版')" |
|
|
@click="handlePrinting('医生版', true)" |
|
|
> |
|
|
> |
|
|
<i class="el-icon-printer"></i>打印(医生版) |
|
|
<i class="el-icon-printer"></i>打印(医生版) |
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div |
|
|
class="div-derive cardRig-but" |
|
|
class="div-derive cardRig-but" |
|
|
style="width: 130px; margin-right: 10px" |
|
|
style="width: 130px; margin-right: 10px" |
|
|
@click="handleExport('阳性版')" |
|
|
@click="handleExport('阳性版', true)" |
|
|
> |
|
|
> |
|
|
<i class="el-icon-upload2"></i>导出(阳性版) |
|
|
<i class="el-icon-upload2"></i>导出(阳性版) |
|
|
</div> |
|
|
</div> |
|
|
@ -213,7 +213,7 @@ |
|
|
<span>检查日期</span> |
|
|
<span>检查日期</span> |
|
|
{{ |
|
|
{{ |
|
|
$moment(reportDetail1.patient.checkTime - 0).format( |
|
|
$moment(reportDetail1.patient.checkTime - 0).format( |
|
|
"YYYY-MM-DD HH:mm" |
|
|
"YYYY-MM-DD HH:mm", |
|
|
) |
|
|
) |
|
|
}} |
|
|
}} |
|
|
</div> |
|
|
</div> |
|
|
@ -408,7 +408,7 @@ export default { |
|
|
this.$router.go(-1); |
|
|
this.$router.go(-1); |
|
|
}, |
|
|
}, |
|
|
// 报告单报出 |
|
|
// 报告单报出 |
|
|
async handleExport(_type) { |
|
|
async handleExport(_type, _printFlat) { |
|
|
this.type = _type; |
|
|
this.type = _type; |
|
|
let params = { |
|
|
let params = { |
|
|
evaluationId: this.reportDetail1.patient.evaluationId, |
|
|
evaluationId: this.reportDetail1.patient.evaluationId, |
|
|
@ -426,14 +426,14 @@ export default { |
|
|
|
|
|
|
|
|
const { code, msg, data } = res; |
|
|
const { code, msg, data } = res; |
|
|
if (code === 200) { |
|
|
if (code === 200) { |
|
|
// 是否是打印 |
|
|
// 是否是打印 true为导出不打印 |
|
|
if (!this.open) { |
|
|
if (_printFlat) { |
|
|
// 导出下载 |
|
|
// 导出下载 |
|
|
window.open(this.apiUrl + data.path); |
|
|
window.open(this.apiUrl + data.path); |
|
|
} else { |
|
|
} else { |
|
|
this.open = false; |
|
|
this.open = false; |
|
|
this.handleInvoke( |
|
|
this.handleInvoke( |
|
|
`${this.apiUrl}${data.path}?time${new Date().getTime()}` |
|
|
`${this.apiUrl}${data.path}?time${new Date().getTime()}`, |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
this.$forceUpdate(); |
|
|
this.$forceUpdate(); |
|
|
@ -497,7 +497,8 @@ export default { |
|
|
handlePrinting(_type) { |
|
|
handlePrinting(_type) { |
|
|
this.type = _type; |
|
|
this.type = _type; |
|
|
this.timestamp = new Date().getTime(); |
|
|
this.timestamp = new Date().getTime(); |
|
|
this.open = true; |
|
|
// this.open = true; |
|
|
|
|
|
this.handleExport(this.type); |
|
|
}, |
|
|
}, |
|
|
// 调用打印方法 |
|
|
// 调用打印方法 |
|
|
handleInvoke(_path) { |
|
|
handleInvoke(_path) { |
|
|
@ -514,7 +515,7 @@ export default { |
|
|
} |
|
|
} |
|
|
this.reportPath = _path; |
|
|
this.reportPath = _path; |
|
|
var iframe = document.getElementById( |
|
|
var iframe = document.getElementById( |
|
|
"reportPartIframe" + this.timestamp |
|
|
"reportPartIframe" + this.timestamp, |
|
|
); |
|
|
); |
|
|
iframe.onload = () => { |
|
|
iframe.onload = () => { |
|
|
iframe.contentWindow.print(); |
|
|
iframe.contentWindow.print(); |
|
|
|