|
|
|
@ -51,8 +51,11 @@ |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button @click="exportGoodsList()" type="primary" style="margin-left: 2px">{{'导出出口货物委托书'}}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" "> |
|
|
|
<!-- <el-form-item label=" "> |
|
|
|
<el-button @click="exportContract()" type="primary" style="margin-left: 2px">{{'导出合同'}}</el-button> |
|
|
|
</el-form-item>--> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button @click="exportAllOpen()" type="primary" style="margin-left: 2px">{{'一键导出'}}</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
@ -126,6 +129,215 @@ |
|
|
|
</el-table> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
<el-dialog title="一键导出" :close-on-click-modal="false" v-drag :visible.sync="exportAllFlag" :width="'740px'"> |
|
|
|
<el-form label-position="top" style="margin-left: 7px;margin-top: 10px;margin-bottom: 20px"> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<div class="custom-divider"><span class="text" style="left: 22%">报关要素</span></div> |
|
|
|
<!-- 报关要素--> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'品牌'" > |
|
|
|
<el-radio v-model="brandType" label="境外品牌(其他)">境外品牌(其他)</el-radio> |
|
|
|
<el-radio v-model="brandType" label="无品牌">无品牌</el-radio> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'品名类型'" > |
|
|
|
<el-radio v-model="hsCodeDescType" label="Y">中文</el-radio> |
|
|
|
<el-radio style="margin-left: 50px;" v-model="hsCodeDescType" label="N">英文</el-radio> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<div class="custom-divider"><span class="text">发票</span></div> |
|
|
|
<!-- 发票--> |
|
|
|
<el-col :span="8" > |
|
|
|
<el-form-item :label="''" > |
|
|
|
<el-checkbox v-model="exportInvoice.hsCodeDesc">品名</el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8" > |
|
|
|
<el-form-item :label="''" > |
|
|
|
<el-checkbox v-model="exportInvoice.contractFlag">合同</el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<!-- 箱单--> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<div class="custom-divider"><span class="text">箱单</span></div> |
|
|
|
<el-col :span="8" > |
|
|
|
<el-form-item :label="''" > |
|
|
|
<el-checkbox v-model="exportPaking.goodsLabel">货物明细</el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8" v-show="currentRow.buNo==='03-RFID'"> |
|
|
|
<el-form-item :label="''" > |
|
|
|
<el-checkbox v-model="exportPaking.upc">UPC</el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8" v-show="currentRow.buNo==='03-RFID'"> |
|
|
|
<el-form-item :label="''" > |
|
|
|
<el-checkbox v-model="exportPaking.so">SO</el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'序号类型'" > |
|
|
|
<el-radio v-model="exportPaking.itemNo" label="Y">序号</el-radio> |
|
|
|
<el-radio v-model="exportPaking.itemNo" label="N">栈板号</el-radio> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'Shipping Mark'" > |
|
|
|
<el-input v-model="exportPaking.shippingMark"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'"> |
|
|
|
<el-form-item :label="'栈板重量参数'" > |
|
|
|
<el-input v-model="exportPaking.palletWeight"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'RFID Base Material'" > |
|
|
|
<el-checkbox v-model="exportPaking.material"></el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'HS Code'" > |
|
|
|
<el-input :disabled="!exportPaking.material" v-model="exportPaking.hsCode"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8" v-show="currentRow.buNo==='01-Label' || currentRow.buNo==='03-RFID'"> |
|
|
|
<el-form-item :label="'制造地'" > |
|
|
|
<el-input v-model="exportPaking.origin"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'Non-reusable plastic packaging'" > |
|
|
|
<el-checkbox v-model="exportPaking.packaging"></el-checkbox> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'plastic packaging'" > |
|
|
|
<el-input :disabled="!exportPaking.packaging" v-model="exportPaking.kgs"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<!-- 出口货物委托书--> |
|
|
|
<div class="custom-divider"><span class="text" style="left: 25%">出口货物委托书</span></div> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'贸易方式'" > |
|
|
|
<el-input v-model="exportGoods.salesMethod"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'币制'" > |
|
|
|
<el-input v-model="exportGoods.currency"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'货物产地'" > |
|
|
|
<el-input v-model="exportGoods.madeArea"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'发货港'" > |
|
|
|
<el-input v-model="exportGoods.sendPort"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'唛头'" > |
|
|
|
<el-input v-model="exportGoods.voyage"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'提/送货日期'" > |
|
|
|
<el-input v-model="exportGoods.deliveryGoodsDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item :label="'船期'" > |
|
|
|
<el-input v-model="exportGoods.shippingDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="16"> |
|
|
|
<el-form-item :label="'发货人'" > |
|
|
|
<el-input type="textarea" |
|
|
|
:rows="4" v-model="exportGoods.shipper"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<el-table v-show="currentRow.buNo==='02-Hardtag' || currentRow.buNo==='04-MHM'" |
|
|
|
:height="240" |
|
|
|
:data="propertiesList" |
|
|
|
stripe |
|
|
|
highlight-current-row |
|
|
|
border :row-style="{ height: '30px' }" |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
prop="hsCode" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="HS Code"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="hsCodeDesc" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="品名"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="ehundred" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="品牌"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-select v-model="scope.row.brand" placeholder="请选择" style="width: 150px"> |
|
|
|
<el-option :value="i.availableValue" :label="i.availableValue" v-for="(i,key) in scope.row.availableList" :key="key"></el-option> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-table v-show="currentRow.buNo==='03-RFID'" |
|
|
|
:height="180" |
|
|
|
:data="notifyPartDetailList" |
|
|
|
stripe |
|
|
|
highlight-current-row |
|
|
|
border :row-style="{ height: '30px' }" |
|
|
|
style="width: 100%;margin-top: 70px"> |
|
|
|
<el-table-column |
|
|
|
prop="partNo" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="PN"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="ehundred" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="E100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model="scope.row.ehundred" style="width: 100px;"></el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="lossratio" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="纯FSC纸重量损耗"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input v-model="scope.row.lossratio" style="width: 100px;"></el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-footer style="height:40px;margin-top: 10px;text-align:center"> |
|
|
|
<el-button type="primary" @click="exportAll()">确定</el-button> |
|
|
|
<el-button type="primary" @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"> |
|
|
|
@ -447,7 +659,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="'船名 / 航次'" > |
|
|
|
<el-form-item :label="'唛头'" > |
|
|
|
<el-input v-model="exportGoods.voyage"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -534,6 +746,7 @@ |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
exportAllFlag:false, |
|
|
|
templateFlag:false, |
|
|
|
templateData:{}, |
|
|
|
templateList:[], |
|
|
|
@ -569,7 +782,7 @@ |
|
|
|
hsCode:'', |
|
|
|
material:'', |
|
|
|
hsCodeDescType:'', |
|
|
|
goodsLabel:'', |
|
|
|
goodsLabel:true, |
|
|
|
}, |
|
|
|
exportPakingFlag:false, |
|
|
|
exportPaking:{ |
|
|
|
@ -587,7 +800,7 @@ |
|
|
|
hsCode:'', |
|
|
|
material:'', |
|
|
|
hsCodeDescType:'', |
|
|
|
goodsLabel:'', |
|
|
|
goodsLabel:true, |
|
|
|
boxChange:'' |
|
|
|
}, |
|
|
|
brandType:'', |
|
|
|
@ -1622,6 +1835,17 @@ |
|
|
|
//this.hsCodeDescType='' |
|
|
|
this.declarationFlag = true |
|
|
|
}, |
|
|
|
searchTemplateOne() { |
|
|
|
this.templateData.buNo = this.currentRow.buNo |
|
|
|
this.templateData.customName = this.currentRow.customName |
|
|
|
searchTemplateList(this.templateData).then(({data}) => { |
|
|
|
if (data && data.code === 0){ |
|
|
|
if (data.rows && data.rows.length > 0) { |
|
|
|
this.templateRowDblclick(data.rows[0]); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
exportInvoiceList() { |
|
|
|
if (!this.currentRow || !this.currentRow.buNo) { |
|
|
|
this.$message.warning('请选择报关单!') |
|
|
|
@ -1661,6 +1885,8 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
this.templateData.type='发票' |
|
|
|
this.searchTemplateOne(); |
|
|
|
}, |
|
|
|
exportPakingList() { |
|
|
|
if (!this.currentRow || !this.currentRow.buNo) { |
|
|
|
@ -1707,6 +1933,8 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
this.templateData.type='箱单' |
|
|
|
this.searchTemplateOne(); |
|
|
|
}, |
|
|
|
exportGoodsList() { |
|
|
|
if (!this.currentRow || !this.currentRow.buNo) { |
|
|
|
@ -1718,7 +1946,7 @@ |
|
|
|
this.exportGoods.madeArea = 'Shanghai, China' |
|
|
|
this.exportGoods.sendPort = 'Shanghai, China' |
|
|
|
this.exportGoods.deliveryGoodsDate = '' |
|
|
|
this.exportGoods.voyage = '' |
|
|
|
this.exportGoods.voyage = this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID'?this.currentRow.cmcInvoice:'' |
|
|
|
this.exportGoods.shippingDate = '' |
|
|
|
this.exportGoodsFlag = true |
|
|
|
}, |
|
|
|
@ -1845,6 +2073,173 @@ |
|
|
|
); |
|
|
|
this.searchTable() |
|
|
|
}, |
|
|
|
exportAll(){ |
|
|
|
if (!this.currentRow || !this.currentRow.buNo) { |
|
|
|
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 |
|
|
|
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.declarationNo = this.currentRow.declarationNo |
|
|
|
exportParam.site = this.currentRow.site |
|
|
|
exportParam.delNo = this.currentRow.delNo |
|
|
|
exportParam.notifyPartDetailList = this.notifyPartDetailList |
|
|
|
ExportUtil.export( |
|
|
|
"/ecss/coDel/downloadAll", |
|
|
|
exportParam, this.currentRow.declarationNo+"单证信息.xlsx" |
|
|
|
); |
|
|
|
this.exportAllFlag = false |
|
|
|
this.searchTable() |
|
|
|
}, |
|
|
|
|
|
|
|
async exportAllOpen() { |
|
|
|
if (!this.currentRow || !this.currentRow.buNo) { |
|
|
|
this.$message.warning('请选择报关单!') |
|
|
|
return |
|
|
|
} |
|
|
|
// 报关要素 |
|
|
|
this.brandType='境外品牌(其他)' |
|
|
|
this.exportAllFlag = true |
|
|
|
if (this.currentRow.buNo==='02-Hardtag' || this.currentRow.buNo==='04-MHM') { |
|
|
|
this.currentRow.brand='品牌' |
|
|
|
getPropertiesListByDeclaration(this.currentRow).then(({data}) => { |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.propertiesList = data.rows |
|
|
|
} else { |
|
|
|
this.propertiesList = []; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
// 发票 |
|
|
|
this.exportInvoice.templateName='' |
|
|
|
this.exportInvoice.hsCodeDesc=this.currentRow.hsCodeDesc |
|
|
|
this.exportInvoice.contractFlag=this.currentRow.contractFlag |
|
|
|
this.exportInvoice.packaging=this.currentRow.packaging |
|
|
|
this.exportInvoice.kgs=this.currentRow.kgs |
|
|
|
this.exportInvoice.hsCode=this.currentRow.hsCode |
|
|
|
this.exportInvoice.material=this.currentRow.material |
|
|
|
this.exportInvoice.hsCodeDescType=this.currentRow.hsCodeDescType |
|
|
|
this.exportInvoice.goodsLabel=this.currentRow.goodsLabel |
|
|
|
this.exportInvoice.origin="made in china" |
|
|
|
|
|
|
|
if (!this.exportInvoice.origin) { |
|
|
|
this.exportInvoice.origin = 'made in china' |
|
|
|
} |
|
|
|
if (!this.exportInvoice.itemNo) { |
|
|
|
this.exportInvoice.itemNo = 'Y' |
|
|
|
} |
|
|
|
this.notifyPartDetailList = []; |
|
|
|
this.templateData.type='发票' |
|
|
|
await this.searchTemplateOne(); |
|
|
|
// 箱单 |
|
|
|
//this.exportPaking.origin='made in china' |
|
|
|
this.exportPaking.itemNo=this.currentRow.itemNo |
|
|
|
this.exportPaking.upc=this.currentRow.upc |
|
|
|
this.exportPaking.so=this.currentRow.so |
|
|
|
this.exportPaking.shippingMark=this.currentRow.shippingMark |
|
|
|
this.exportPaking.palletWeight=this.currentRow.palletWeight |
|
|
|
this.exportPaking.hsCodeDesc=this.currentRow.hsCodeDesc |
|
|
|
this.exportPaking.contractFlag=this.currentRow.contractFlag |
|
|
|
this.exportPaking.packaging=this.currentRow.packaging |
|
|
|
this.exportPaking.kgs=this.currentRow.kgs |
|
|
|
this.exportPaking.hsCode=this.currentRow.hsCode |
|
|
|
this.exportPaking.material=this.currentRow.material |
|
|
|
this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType |
|
|
|
this.exportPaking.goodsLabel=this.currentRow.goodsLabel |
|
|
|
this.exportPaking.boxChange=this.currentRow.boxChange |
|
|
|
|
|
|
|
if (!this.exportPaking.origin) { |
|
|
|
this.exportPaking.origin = 'made in china' |
|
|
|
} |
|
|
|
if (!this.exportPaking.itemNo) { |
|
|
|
this.exportPaking.itemNo = 'Y' |
|
|
|
} |
|
|
|
this.notifyPartDetailList = []; |
|
|
|
this.exportPaking.templateName='' |
|
|
|
|
|
|
|
if (this.currentRow.buNo==='03-RFID') { |
|
|
|
await getNotifyPartDetail(this.currentRow).then(({data}) => { |
|
|
|
//区分请求成功和失败的状况 |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.notifyPartDetailList = data.rows |
|
|
|
this.notifyPartDetailList.forEach(o => { |
|
|
|
if (!o.lossratio) { |
|
|
|
o.lossratio = '1.2'; |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.notifyPartDetailList = []; |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
this.templateData.type='箱单' |
|
|
|
await searchTemplateList(this.templateData).then(({data}) => { |
|
|
|
if (data && data.code === 0){ |
|
|
|
if (data.rows && data.rows.length > 0) { |
|
|
|
let row = data.rows[0]; |
|
|
|
this.exportPaking.templateName=row.name |
|
|
|
this.exportPaking.upc=row.upc |
|
|
|
this.exportPaking.so=row.so |
|
|
|
this.exportPaking.shippingMark=row.shippingMark |
|
|
|
this.exportPaking.palletWeight=row.palletWeight |
|
|
|
this.exportPaking.boxChange=row.boxChange |
|
|
|
this.exportPaking.itemNo=row.itemNo |
|
|
|
this.exportPaking.origin=this.currentRow.origin?this.currentRow.origin:row.origin |
|
|
|
this.exportPaking.packaging=this.currentRow.packaging?this.currentRow.packaging:row.packaging |
|
|
|
this.exportPaking.kgs=this.currentRow.kgs?this.currentRow.kgs:row.kgs |
|
|
|
this.exportPaking.hsCode=this.currentRow.hsCode?this.currentRow.hsCode:row.hsCode |
|
|
|
this.exportPaking.material=this.currentRow.material?this.currentRow.material:row.material |
|
|
|
this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType?this.currentRow.hsCodeDescType:row.hsCodeDescType |
|
|
|
this.exportPaking.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel |
|
|
|
this.notifyPartDetailList.forEach(o => { |
|
|
|
// 开启fsc损耗则给默认值 |
|
|
|
if (o.lossratio) { |
|
|
|
if (row.fscWeight) { |
|
|
|
o.lossratio = o.lossratio; |
|
|
|
} else { |
|
|
|
o.lossratio = ''; |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (row.fscWeight) { |
|
|
|
o.lossratio = '1.2'; |
|
|
|
} else { |
|
|
|
o.lossratio = ''; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
this.exportGoods.salesMethod = 'EXW' |
|
|
|
this.exportGoods.currency = 'USD' |
|
|
|
this.exportGoods.madeArea = 'Shanghai, China' |
|
|
|
this.exportGoods.sendPort = 'Shanghai, China' |
|
|
|
this.exportGoods.deliveryGoodsDate = '' |
|
|
|
this.exportGoods.voyage = this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID'?this.currentRow.cmcInvoice:'' |
|
|
|
this.exportGoods.shippingDate = ''; |
|
|
|
this.templateData.type='出口货物委托书' |
|
|
|
await this.searchTemplateOne(); |
|
|
|
}, |
|
|
|
|
|
|
|
getCustomerInfo() { |
|
|
|
getCustomerInfo(this.currentRow).then(({data}) => { |
|
|
|
//区分请求成功和失败的状况 |
|
|
|
@ -1871,6 +2266,7 @@ |
|
|
|
}, |
|
|
|
searchTemplateList () { |
|
|
|
this.templateData.buNo = this.currentRow.buNo |
|
|
|
this.templateData.customName = '' |
|
|
|
searchTemplateList(this.templateData).then(({data}) => { |
|
|
|
if (data && data.code === 0){ |
|
|
|
this.templateList = data.rows; |
|
|
|
@ -1890,7 +2286,7 @@ |
|
|
|
this.exportInvoice.material=this.currentRow.material?this.currentRow.material:row.material |
|
|
|
this.exportInvoice.hsCodeDescType=this.currentRow.hsCodeDescType?this.currentRow.hsCodeDescType:row.hsCodeDescType |
|
|
|
this.exportInvoice.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel |
|
|
|
} else { |
|
|
|
} else if (this.templateData.type=='箱单'){ |
|
|
|
this.exportPaking.templateName=row.name |
|
|
|
this.exportPaking.upc=row.upc |
|
|
|
this.exportPaking.so=row.so |
|
|
|
@ -1906,6 +2302,33 @@ |
|
|
|
this.exportPaking.material=this.currentRow.material?this.currentRow.material:row.material |
|
|
|
this.exportPaking.hsCodeDescType=this.currentRow.hsCodeDescType?this.currentRow.hsCodeDescType:row.hsCodeDescType |
|
|
|
this.exportPaking.goodsLabel=this.currentRow.goodsLabel?this.currentRow.goodsLabel:row.goodsLabel |
|
|
|
} else if (this.templateData.type=='出口货物委托书'){ |
|
|
|
this.exportGoods.salesMethod = row.salesMethod |
|
|
|
this.exportGoods.currency = row.currency |
|
|
|
this.exportGoods.madeArea = row.madeArea |
|
|
|
this.exportGoods.sendPort = row.sendPort |
|
|
|
this.exportGoods.deliveryGoodsDate = row.deliveryGoodsDate |
|
|
|
this.exportGoods.voyage = this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID'?this.currentRow.cmcInvoice:row.voyage |
|
|
|
this.exportGoods.shippingDate = row.shippingDate; |
|
|
|
this.exportGoods.shipper=row.shipper |
|
|
|
} |
|
|
|
if (this.templateData.type!=='出口货物委托书') { |
|
|
|
this.notifyPartDetailList.forEach(o => { |
|
|
|
// 开启fsc损耗则给默认值 |
|
|
|
if (o.lossratio) { |
|
|
|
if (row.fscWeight) { |
|
|
|
o.lossratio = o.lossratio; |
|
|
|
} else { |
|
|
|
o.lossratio = ''; |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (row.fscWeight) { |
|
|
|
o.lossratio = '1.2'; |
|
|
|
} else { |
|
|
|
o.lossratio = ''; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
this.templateFlag = false |
|
|
|
}, |
|
|
|
@ -1922,4 +2345,20 @@ |
|
|
|
font-size: 12px; |
|
|
|
height: 24px; |
|
|
|
} |
|
|
|
.custom-divider { |
|
|
|
position: relative; |
|
|
|
height: 1px; |
|
|
|
background: #ebeef5; |
|
|
|
margin: 10px 0; |
|
|
|
width: 720px; |
|
|
|
} |
|
|
|
.custom-divider .text { |
|
|
|
position: absolute; |
|
|
|
left: 20%; |
|
|
|
top: -10px; |
|
|
|
transform: translateX(-50%); |
|
|
|
padding: 0 15px; |
|
|
|
background: white; |
|
|
|
color: #909399; |
|
|
|
} |
|
|
|
</style> |