|
|
@ -373,7 +373,7 @@ export default { |
|
|
|
handleConfirm() { |
|
|
|
this.visibleDisabled = true |
|
|
|
if (this.printSource === '02') { |
|
|
|
createPdf({ skdSid: this.printSid, printerType: this.print }).then((resp) => { |
|
|
|
createPdfRsk({ skdSid: this.printSid, printerType: this.print }).then((resp) => { |
|
|
|
if (resp.success && resp.data.pdfPath !== '') { |
|
|
|
var xhr = new XMLHttpRequest() |
|
|
|
xhr.open('GET', process.env.VUE_APP_BASE_API + '/base/file/download?filePath=' + resp.data.pdfPath + '&outFileName=' + '收款单', true) |
|
|
@ -441,7 +441,7 @@ export default { |
|
|
|
this.visibleDisabled = false |
|
|
|
}) |
|
|
|
} else if (this.printSource === '' || this.printSource === null) { |
|
|
|
createPdfRsk({ skdSid: this.printSid, printerType: this.print }).then((resp) => { |
|
|
|
createPdf({ skdSid: this.printSid, printerType: this.print }).then((resp) => { |
|
|
|
if (resp.success && resp.data.pdfPath !== '') { |
|
|
|
var xhr = new XMLHttpRequest() |
|
|
|
xhr.open('GET', process.env.VUE_APP_BASE_API + '/base/file/download?filePath=' + resp.data.pdfPath + '&outFileName=' + '收款单', true) |
|
|
|