Browse Source

导出PDF

java8
han\hanst 3 months ago
parent
commit
f7039aa443
  1. 3
      src/api/ecss/ecss.js
  2. 52
      src/views/modules/ecss/declaration.vue

3
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)

52
src/views/modules/ecss/declaration.vue

@ -388,11 +388,13 @@
</el-table-column>
</el-table>
<el-footer style="height:40px;margin-top: 80px;text-align:center">
<el-button type="primary" @click="exportAll()">确定</el-button>
<el-button type="primary" @click="exportAllFlag=false">关闭</el-button>
<el-button type="primary" @click="exportAll()">导出Excel</el-button>
<el-button type="success" @click="exportAllPdf()">导出PDF</el-button>
<el-button type="info" @click="exportAllFlag=false">关闭</el-button>
</el-footer>
</el-dialog>
<el-dialog title="导出报关要素" :close-on-click-modal="false" v-drag :visible.sync="brandTypeFlag"
:width="(currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM')?'600px':'300px'">
<el-form label-position="top" style="margin-left: 7px;margin-top: 10px;margin-bottom: 20px">
@ -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}) => {
//

Loading…
Cancel
Save