From f7039aa4435bc521d7fac0111127cca5a0f4c7f7 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Sat, 4 Oct 2025 16:53:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BAPDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ecss/ecss.js | 3 ++ src/views/modules/ecss/declaration.vue | 52 +++++++++++++++++++++++++- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/src/api/ecss/ecss.js b/src/api/ecss/ecss.js index 57b8773..99df3ff 100644 --- a/src/api/ecss/ecss.js +++ b/src/api/ecss/ecss.js @@ -138,5 +138,8 @@ export const getCustomerTemplateList = data => createAPI(`/ecss/coDel/getCustome export const updateCodelPalletHeaderPalletQty = data => createAPI(`/ecss/coDel/updateCodelPalletHeaderPalletQty`,'post',data) +// PDF导出接口 +export const downloadAllPdf = data => createAPI(`/ecss/coDel/downloadAllPdf`,'post',data) + diff --git a/src/views/modules/ecss/declaration.vue b/src/views/modules/ecss/declaration.vue index 0e53cf2..4ba1e4e 100644 --- a/src/views/modules/ecss/declaration.vue +++ b/src/views/modules/ecss/declaration.vue @@ -388,11 +388,13 @@ - 确定 - 关闭 + 导出Excel + 导出PDF + 关闭 + @@ -2391,6 +2393,52 @@ await this.searchTemplateOne(); }, + + exportAllPdf(){ + if (!this.currentRow || !this.currentRow.buNo) { + this.$message.warning('请选择报关单!') + return + } + if (!this.packageUnit ) { + this.$message.warning('请选择托/箱!') + return + } + let exportParam=this.exportPaking + exportParam.salesMethod=this.exportGoods.salesMethod + exportParam.currency=this.exportGoods.currency + exportParam.madeArea=this.exportGoods.madeArea + exportParam.sendPort=this.exportGoods.sendPort + exportParam.deliveryGoodsDate=this.exportGoods.deliveryGoodsDate + exportParam.voyage=this.exportGoods.voyage + exportParam.shippingDate=this.exportGoods.shippingDate + exportParam.hsCodeDescType=this.exportGoods.hsCodeDescType + exportParam.shipper=this.exportGoods.shipper + + exportParam.brandType = this.brandType + exportParam.hsCodeDescType=this.hsCodeDescType + exportParam.packageUnit=this.packageUnit + exportParam.declarationWeight = this.declarationWeight + if (this.propertiesList.length>0) { + this.currentRow.brand='品牌' + exportParam.brand = '品牌' + exportParam.propertiesList = this.propertiesList + } + exportParam.hsCodeDesc = this.exportInvoice.hsCodeDesc + exportParam.contractFlag = this.exportInvoice.contractFlag + exportParam.fpremark = this.exportInvoice.fpremark + + exportParam.declarationNo = this.currentRow.declarationNo + exportParam.site = this.currentRow.site + exportParam.delNo = this.currentRow.delNo + exportParam.notifyPartDetailList = this.notifyPartDetailList + ExportUtil.export( + "/ecss/coDel/downloadAllPdf", + exportParam, this.currentRow.cmcInvoice+"单证信息.pdf" + ); + this.exportAllFlag = false + this.searchTable() + }, + getCustomerInfo() { getCustomerInfo(this.currentRow).then(({data}) => { //区分请求成功和失败的状况