diff --git a/src/views/modules/ecss/declaration.vue b/src/views/modules/ecss/declaration.vue index 0d33c96..9a69e9d 100644 --- a/src/views/modules/ecss/declaration.vue +++ b/src/views/modules/ecss/declaration.vue @@ -528,8 +528,8 @@ -
出口货物委托书
@@ -551,21 +551,23 @@ - - - + + + + :value="item.valueKey">
{{ item.company }}
-
{{ item.description }}
+
{{ item.address }}
@@ -582,9 +584,9 @@ :rows="4" v-model="exportGoods.shipper">
- --> + - + 导出Excel 导出PDF 关闭 @@ -948,17 +950,22 @@
- + - + - - + + + + + + + - + @@ -1104,6 +1111,7 @@ voyage :'', shippingDate:'', hsCodeDescType:'N', + mexicoShippingMarkFlag: false, shipper:'Checkpoint Commercial (Shanghai) Co., Ltd. 保点贸易(上海)有限公司\t\t\t\t\t\t\n' + 'Room 1411, No. 31, Lane 2419, Hunan Road, Pudong New Area, Shanghai\t\t\t\t\t\t\n' + '电话/Tel: (86-21)38112888 传真/Fax: (86-21)38112990\t\t\t\t\t\t\n' + @@ -2381,11 +2389,38 @@ this.exportGoods.madeArea = 'Nantong, 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.voyage = this.buildDefaultVoyage() this.exportGoods.shippingDate = '' this.loadPickupAddressList(this.currentRow.buNo) this.exportGoodsFlag = true }, + hasPickupAddressBu() { + if (!this.currentRow || !this.currentRow.buNo) { + return false + } + return ['05-Alpha', '04-MHM', '02-Hardtag'].includes(this.currentRow.buNo) + }, + hasMexicoShippingMarkBu() { + if (!this.currentRow || !this.currentRow.buNo) { + return false + } + return ['05-Alpha', '04-MHM', '02-Hardtag'].includes(this.currentRow.buNo) + }, + buildDefaultVoyage() { + if (!this.currentRow || !this.currentRow.buNo) { + return '' + } + const cmcInvoice = this.currentRow.cmcInvoice ? String(this.currentRow.cmcInvoice).trim() : '' + if (this.hasMexicoShippingMarkBu()) { + const destination = this.currentRow.destination ? String(this.currentRow.destination).trim() : '' + return ['Checkpoint', destination, cmcInvoice].filter(Boolean).join('\n') + } + if (this.currentRow.buNo === '01-Label' || this.currentRow.buNo === '03-RFID') { + return cmcInvoice + } + return '' + }, + // 导出 downloadDeclarationElements() { if (!this.currentRow || !this.currentRow.buNo) { @@ -2538,6 +2573,7 @@ exportParam.pickupCompany=this.exportGoods.pickupCompany exportParam.pickupAddress=this.exportGoods.pickupAddress exportParam.pickupAddressValue=this.exportGoods.pickupAddressValue + exportParam.mexicoShippingMarkFlag=this.exportGoods.mexicoShippingMarkFlag exportParam.brandType = this.brandType exportParam.hsCodeDescType=this.hsCodeDescType @@ -2724,7 +2760,7 @@ this.exportGoods.madeArea = 'Nantong, 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.voyage = this.buildDefaultVoyage() this.exportGoods.shippingDate = ''; await this.loadPickupAddressList(this.currentRow.buNo) //this.templateData.type='出口货物委托书' @@ -2776,6 +2812,7 @@ exportParam.pickupCompany=this.exportGoods.pickupCompany exportParam.pickupAddress=this.exportGoods.pickupAddress exportParam.pickupAddressValue=this.exportGoods.pickupAddressValue + exportParam.mexicoShippingMarkFlag=this.exportGoods.mexicoShippingMarkFlag exportParam.brandType = this.brandType exportParam.hsCodeDescType=this.hsCodeDescType @@ -2942,7 +2979,11 @@ 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 + if (this.currentRow.buNo==='01-Label' || this.currentRow.buNo==='03-RFID' || this.hasMexicoShippingMarkBu()) { + this.exportGoods.voyage = this.buildDefaultVoyage() + } else { + this.exportGoods.voyage = row.voyage || this.buildDefaultVoyage() + } this.exportGoods.shippingDate = row.shippingDate; this.exportGoods.shipper=row.shipper }