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