Browse Source

Shipper

master
han\hanst 1 month ago
parent
commit
b5c2a82392
  1. 16
      src/views/modules/ecss/declaration.vue

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

@ -2226,6 +2226,8 @@
},
changeData(row){
this.currentRow = JSON.parse(JSON.stringify(row));
// 发货人随当前单据 BU 变化,避免先选硬标再查其他 BU 时仍带出江苏抬头
this.exportGoods.shipper = this.buildDefaultShipper()
this.refreshCurrentTabTable ();
},
getBu () {
@ -2314,6 +2316,7 @@
},
handleCurrentChange(val) {
this.currentRow = val;
this.exportGoods.shipper = this.buildDefaultShipper()
},
chooseBrandType() {
if (!this.currentRow || !this.currentRow.buNo) {
@ -2661,6 +2664,7 @@
this.exportGoods.deliveryGoodsDate = ''
this.exportGoods.voyage = this.buildDefaultVoyage()
this.exportGoods.shippingDate = ''
this.exportGoods.shipper = this.buildDefaultShipper()
this.exportGoods.showOrderNoFlag = this.isCanadaDestination() || this.isAustraliaDestination()
this.exportGoods.showInvoiceFlag = false
this.loadPickupAddressList(this.currentRow.buNo)
@ -2696,6 +2700,17 @@
}
return this.exportGoods.hsCodeDescType || 'N'
},
// 硬标发货主体是江苏公司;其他 BU 继续用上海保点贸易抬头
buildDefaultShipper() {
if (this.currentRow && this.currentRow.buNo === '02-Hardtag') {
return 'Checkpoint Systems (Jiangsu) Co.,Ltd\n' +
'No. 15(East), Nan Hai Road, Haian Economic & Technical Development Zone, Nantong, P.R. China'
}
return 'Checkpoint Commercial (Shanghai) Co., Ltd. 保点贸易(上海)有限公司\t\t\t\t\t\t\n' +
'Room 1411, No. 31, Lane 2419, Hunan Road, Pudong New Area,201204 Shanghai\t\t\t\t\t\t\n' +
'电话/Tel: (86-21)38112888 传真/Fax: (86-21)38112990\t\t\t\t\t\t\n' +
'上海市浦东新区沪南路2419弄31号1411室\t\t\t\t\t\t\n'
},
buildDefaultVoyage() {
if (!this.currentRow || !this.currentRow.buNo) {
return ''
@ -3045,6 +3060,7 @@
this.exportGoods.deliveryGoodsDate = ''
this.exportGoods.voyage = this.buildDefaultVoyage()
this.exportGoods.shippingDate = '';
this.exportGoods.shipper = this.buildDefaultShipper()
this.exportGoods.hsCodeDescType = 'N'
this.exportGoods.hsCodeDescTypeBooking = 'N'
this.exportGoods.showOrderNoFlag = this.isCanadaDestination() || this.isAustraliaDestination()

Loading…
Cancel
Save