|
@@ -38,9 +38,9 @@ export const JGPrint = function(data, type, printerType){
|
|
LODOP.PRINT()
|
|
LODOP.PRINT()
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
+ // 喷墨打印
|
|
const url = window.URL.createObjectURL(new Blob([data], { type: 'application/pdf' }))
|
|
const url = window.URL.createObjectURL(new Blob([data], { type: 'application/pdf' }))
|
|
document.getElementById('print').innerHTML = '<iframe id="printfsqd" name="printfsqd" src="' + url + '" hidden></iframe>'
|
|
document.getElementById('print').innerHTML = '<iframe id="printfsqd" name="printfsqd" src="' + url + '" hidden></iframe>'
|
|
- // 喷墨打印
|
|
|
|
if (type == 'preview') { // 预览
|
|
if (type == 'preview') { // 预览
|
|
window.open(url)
|
|
window.open(url)
|
|
} else if (type == 'print') { // 打印
|
|
} else if (type == 'print') { // 打印
|