|
|
@ -55,7 +55,7 @@ |
|
|
<el-button @click="exportContract()" type="primary" style="margin-left: 2px">{{'导出合同'}}</el-button> |
|
|
<el-button @click="exportContract()" type="primary" style="margin-left: 2px">{{'导出合同'}}</el-button> |
|
|
</el-form-item>--> |
|
|
</el-form-item>--> |
|
|
<el-form-item label=" "> |
|
|
<el-form-item label=" "> |
|
|
<el-button @click="exportAllOpen()" type="primary" style="margin-left: 2px">{{'一键导出'}}</el-button> |
|
|
|
|
|
|
|
|
<el-button @click="exportAllOpen()" type="primary" style="margin-left: 2px" :loading="exportAllLoading">{{'一键导出'}}</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
@ -849,6 +849,7 @@ |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
bizhi:'', |
|
|
exportAllFlag:false, |
|
|
exportAllFlag:false, |
|
|
templateFlag:false, |
|
|
templateFlag:false, |
|
|
templateData:{}, |
|
|
templateData:{}, |
|
|
@ -928,6 +929,7 @@ |
|
|
dataList:[], |
|
|
dataList:[], |
|
|
dataList2:[], |
|
|
dataList2:[], |
|
|
dataListLoading: false, |
|
|
dataListLoading: false, |
|
|
|
|
|
exportAllLoading: false, |
|
|
searchData: { |
|
|
searchData: { |
|
|
page: 1, |
|
|
page: 1, |
|
|
limit: 100, |
|
|
limit: 100, |
|
|
@ -1885,7 +1887,7 @@ |
|
|
//区分请求成功和失败的状况 |
|
|
//区分请求成功和失败的状况 |
|
|
if (data && data.code == 0) { |
|
|
if (data && data.code == 0) { |
|
|
this.dataList2 = data.rows |
|
|
this.dataList2 = data.rows |
|
|
|
|
|
|
|
|
|
|
|
this.bizhi = data.rows[0].currency |
|
|
} else { |
|
|
} else { |
|
|
this.dataList2 = []; |
|
|
this.dataList2 = []; |
|
|
} |
|
|
} |
|
|
@ -2059,7 +2061,7 @@ |
|
|
} |
|
|
} |
|
|
this.exportGoods.hsCodeDescType = 'N' |
|
|
this.exportGoods.hsCodeDescType = 'N' |
|
|
this.exportGoods.salesMethod = 'EXW' |
|
|
this.exportGoods.salesMethod = 'EXW' |
|
|
this.exportGoods.currency = this.currentRow.currency?this.currentRow.currency:this.dataList2.length>0?this.dataList2[0].currency:'USD' |
|
|
|
|
|
|
|
|
this.exportGoods.currency = this.dataList2.length>0?this.dataList2[0].currency:'USD' |
|
|
this.exportGoods.madeArea = 'Nantong, China' |
|
|
this.exportGoods.madeArea = 'Nantong, China' |
|
|
this.exportGoods.sendPort = 'Shanghai, China' |
|
|
this.exportGoods.sendPort = 'Shanghai, China' |
|
|
this.exportGoods.deliveryGoodsDate = '' |
|
|
this.exportGoods.deliveryGoodsDate = '' |
|
|
@ -2246,12 +2248,13 @@ |
|
|
this.$message.warning('请选择报关单!') |
|
|
this.$message.warning('请选择报关单!') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
this.exportAllLoading = true |
|
|
|
|
|
try { |
|
|
// 抬头信息 |
|
|
// 抬头信息 |
|
|
this.exportHeader.contractNo = this.currentRow.cmcInvoice || '' |
|
|
this.exportHeader.contractNo = this.currentRow.cmcInvoice || '' |
|
|
this.exportHeader.transportMode = this.currentRow.shippingMode || '' |
|
|
this.exportHeader.transportMode = this.currentRow.shippingMode || '' |
|
|
this.exportHeader.arrivalCountry = this.currentRow.receiveArea || '' |
|
|
this.exportHeader.arrivalCountry = this.currentRow.receiveArea || '' |
|
|
this.exportHeader.tradeCountry = this.currentRow.salesArea || '' |
|
|
this.exportHeader.tradeCountry = this.currentRow.salesArea || '' |
|
|
|
|
|
|
|
|
// 获取装箱数据,根据托数设置托/箱默认值 |
|
|
// 获取装箱数据,根据托数设置托/箱默认值 |
|
|
try { |
|
|
try { |
|
|
// 只传递必要的字段,避免日期格式问题 |
|
|
// 只传递必要的字段,避免日期格式问题 |
|
|
@ -2281,7 +2284,6 @@ |
|
|
|
|
|
|
|
|
// 报关要素 |
|
|
// 报关要素 |
|
|
this.brandType='境外品牌(其他)' |
|
|
this.brandType='境外品牌(其他)' |
|
|
this.exportAllFlag = true |
|
|
|
|
|
if (this.currentRow.buNo==='02-Hardtag' || this.currentRow.buNo==='04-MHM') { |
|
|
if (this.currentRow.buNo==='02-Hardtag' || this.currentRow.buNo==='04-MHM') { |
|
|
this.currentRow.brand='品牌' |
|
|
this.currentRow.brand='品牌' |
|
|
getPropertiesListByDeclaration(this.currentRow).then(({data}) => { |
|
|
getPropertiesListByDeclaration(this.currentRow).then(({data}) => { |
|
|
@ -2393,14 +2395,18 @@ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
this.exportGoods.salesMethod = 'EXW' |
|
|
this.exportGoods.salesMethod = 'EXW' |
|
|
this.exportGoods.currency = this.currentRow.currency?this.currentRow.currency:this.dataList2.length>0?this.dataList2[0].currency:'USD' |
|
|
|
|
|
|
|
|
this.exportGoods.currency = this.bizhi |
|
|
this.exportGoods.madeArea = 'Nantong, China' |
|
|
this.exportGoods.madeArea = 'Nantong, China' |
|
|
this.exportGoods.sendPort = 'Shanghai, China' |
|
|
this.exportGoods.sendPort = 'Shanghai, China' |
|
|
this.exportGoods.deliveryGoodsDate = '' |
|
|
this.exportGoods.deliveryGoodsDate = '' |
|
|
this.exportGoods.voyage = this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID'?this.currentRow.cmcInvoice:'' |
|
|
this.exportGoods.voyage = this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID'?this.currentRow.cmcInvoice:'' |
|
|
this.exportGoods.shippingDate = ''; |
|
|
this.exportGoods.shippingDate = ''; |
|
|
this.templateData.type='出口货物委托书' |
|
|
|
|
|
await this.searchTemplateOne(); |
|
|
|
|
|
|
|
|
//this.templateData.type='出口货物委托书' |
|
|
|
|
|
//await this.searchTemplateOne(); |
|
|
|
|
|
this.exportAllFlag = true |
|
|
|
|
|
} finally { |
|
|
|
|
|
this.exportAllLoading = false |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|