Commit 324b6d40 by 张晓玮

Merge branch 'zhangxw_dev_v4.17.0' into 'dev_v4.17.0'

Zhangxw dev v4.17.0

See merge request !104
2 parents cc106b96 61148339
......@@ -204,7 +204,17 @@ export default {
handlePrint(row) {
quotationPrint({ id: row.id }).then((res) => {
console.log(res)
window.open(res)
let oWin = window.open(res)
oWin.document.fn = function() {
if (oWin) {
oWin.print()
oWin.close()
}
}
let html = '<div style="height: 100%;width: 100%;">' + `<img src="${res}" onload="fn()" style="max-height:100%;max-width: 100%;" />` + '</div>'
oWin.document.open()
oWin.document.write(html)
oWin.document.close()
})
},
getParams() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!