|
|
|
@ -668,7 +668,6 @@ export default {
|
|
|
|
|
this.BCvData.push(item)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.$emit('FnOcrChenga', this.details)
|
|
|
|
|
},
|
|
|
|
|
drawRect(e) {
|
|
|
|
|
if (this.flag) {
|
|
|
|
@ -1253,16 +1252,16 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.then(res => {
|
|
|
|
|
this.downLoadLoading = false
|
|
|
|
|
this.pdfUrl = window.URL.createObjectURL(new Blob([res], { type: 'application/pdf;charset=utf-8' }))
|
|
|
|
|
const fname = '放舱打印' // 下载文件的名字
|
|
|
|
|
const link = document.createElement('a')
|
|
|
|
|
link.href = this.pdfUrl
|
|
|
|
|
link.setAttribute('download', fname)
|
|
|
|
|
document.body.appendChild(link)
|
|
|
|
|
link.click()
|
|
|
|
|
if (res.message) {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
this.pdfUrl = window.URL.createObjectURL(new Blob([res], { type: 'application/pdf;charset=utf-8' }))
|
|
|
|
|
const fname = '放舱打印' // 下载文件的名字
|
|
|
|
|
const link = document.createElement('a')
|
|
|
|
|
link.href = this.pdfUrl
|
|
|
|
|
link.setAttribute('download', fname)
|
|
|
|
|
document.body.appendChild(link)
|
|
|
|
|
link.click()
|
|
|
|
|
if (res.message) {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.downLoadLoading = false
|
|
|
|
|