|
|
@ -610,6 +610,12 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-dialog> |
|
|
|
<iframe |
|
|
|
:src="reportPath" |
|
|
|
frameborder="0" |
|
|
|
:id="'codePartIframe' + timestamp" |
|
|
|
style="display: none" |
|
|
|
></iframe> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -631,6 +637,9 @@ export default { |
|
|
|
dicts: ["sys_normal_disable", "sys_user_sex"], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
reportPath: "", |
|
|
|
|
|
|
|
timestamp: "", |
|
|
|
qzUrl: process.env.VUE_APP_API_QZURL, // 二维码路径 |
|
|
|
userInfo: {}, |
|
|
|
// 受教育程度,年限 |
|
|
@ -1096,9 +1105,21 @@ export default { |
|
|
|
}, |
|
|
|
// 评估报告单 |
|
|
|
handleReport(row) { |
|
|
|
exportTreatmentPg({ treatmentId: row.id }).then((res) => { |
|
|
|
window.open(`${process.env.VUE_APP_API_QZURL}${res.data}`); |
|
|
|
}); |
|
|
|
try { |
|
|
|
this.timestamp = new Date().getTime(); |
|
|
|
exportTreatmentPg({ treatmentId: row.id }).then((res) => { |
|
|
|
this.reportPath = `${process.env.VUE_APP_API_QZURL}${res.data}`; |
|
|
|
var iframe = document.getElementById( |
|
|
|
"codePartIframe" + this.timestamp |
|
|
|
); |
|
|
|
iframe.onload = () => { |
|
|
|
iframe.contentWindow.print(); |
|
|
|
}; |
|
|
|
// window.open(`${process.env.VUE_APP_API_QZURL}${res.data}`); |
|
|
|
}); |
|
|
|
} catch (error) { |
|
|
|
console.log("error: ", error); |
|
|
|
} |
|
|
|
}, |
|
|
|
/** 提交审核 */ |
|
|
|
handleExamine(row, _status) { |
|
|
|