diff --git a/src/views/main/BookingLedger/detail/index.vue b/src/views/main/BookingLedger/detail/index.vue index db82b3a..60d8076 100644 --- a/src/views/main/BookingLedger/detail/index.vue +++ b/src/views/main/BookingLedger/detail/index.vue @@ -20,7 +20,6 @@ @changePage="changePageFun" @copy="copyBookingFun" @addSedList="addSedList" - @FnOcrChenga="FnOcrChenga" > @@ -725,10 +724,6 @@ export default { query: { id: this.id, isCopy: true, type: this.bookingDetails.carrierid } }) }, - FnOcrChenga(data) { - this.bookingDetails = data - console.log(this.bookingDetails) - }, addSedList() { if (this.isAdd) { this.$message.error('请先保存主单') diff --git a/src/views/main/BookingLedger/detail/modules/operationArea.vue b/src/views/main/BookingLedger/detail/modules/operationArea.vue index 69f02cf..339acb5 100644 --- a/src/views/main/BookingLedger/detail/modules/operationArea.vue +++ b/src/views/main/BookingLedger/detail/modules/operationArea.vue @@ -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