getQrCode().then(res => {
const self = this
const a = new FileReader()
a.readAsDataURL(res)
a.onload = function(e) {
self.QrURL = e.target.result
}
},
doPrint() {
const printWindow = window.open(this.QrURL)
printWindow.document.write('<img src="' + this.QrURL + '" />')
printWindow.print()
printWindow.close()
}