|
|
@ -1632,19 +1632,19 @@ |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.declarationData=data.row |
|
|
this.declarationData=data.row |
|
|
this.detailList=data.rows |
|
|
this.detailList=data.rows |
|
|
this.customerData=data.customers |
|
|
|
|
|
|
|
|
/* this.customerData=data.customers |
|
|
this.customerAddData = data.customerAdd |
|
|
this.customerAddData = data.customerAdd |
|
|
if (data.customerAdd && data.customerAdd.length > 0 && data.customers && data.customers.length > 0) { |
|
|
if (data.customerAdd && data.customerAdd.length > 0 && data.customers && data.customers.length > 0) { |
|
|
this.declarationData.overseasAddress = this.declarationData.overseasAddress?this.declarationData.overseasAddress:data.customerAdd[0].cDeliverAdd |
|
|
this.declarationData.overseasAddress = this.declarationData.overseasAddress?this.declarationData.overseasAddress:data.customerAdd[0].cDeliverAdd |
|
|
this.declarationData.overseasShipper = this.declarationData.overseasShipper?this.declarationData.overseasShipper:data.customers[0].ccontactname |
|
|
this.declarationData.overseasShipper = this.declarationData.overseasShipper?this.declarationData.overseasShipper:data.customers[0].ccontactname |
|
|
} |
|
|
|
|
|
|
|
|
} */ |
|
|
this.declarationFlag=true |
|
|
this.declarationFlag=true |
|
|
|
|
|
|
|
|
this.customerData.forEach(o => { |
|
|
|
|
|
|
|
|
/* this.customerData.forEach(o => { |
|
|
if (!this.customerMap.has(o.ccontactname)) { |
|
|
if (!this.customerMap.has(o.ccontactname)) { |
|
|
this.customerMap.set(o.ccontactname, o.cnative); |
|
|
this.customerMap.set(o.ccontactname, o.cnative); |
|
|
} |
|
|
} |
|
|
}); |
|
|
|
|
|
|
|
|
}); */ |
|
|
} else { |
|
|
} else { |
|
|
this.$alert(data.msg, '错误', { |
|
|
this.$alert(data.msg, '错误', { |
|
|
confirmButtonText: '确定' |
|
|
confirmButtonText: '确定' |
|
|
@ -1652,11 +1652,11 @@ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
setDestination(){ |
|
|
|
|
|
|
|
|
/* setDestination(){ |
|
|
this.detailList.forEach(o => o.destination=this.customerMap.get(this.declarationData.overseasShipper)) |
|
|
this.detailList.forEach(o => o.destination=this.customerMap.get(this.declarationData.overseasShipper)) |
|
|
this.declarationData.receiveArea=this.customerMap.get(this.declarationData.overseasShipper) |
|
|
this.declarationData.receiveArea=this.customerMap.get(this.declarationData.overseasShipper) |
|
|
this.declarationData.salesArea=this.customerMap.get(this.declarationData.overseasShipper) |
|
|
this.declarationData.salesArea=this.customerMap.get(this.declarationData.overseasShipper) |
|
|
}, |
|
|
|
|
|
|
|
|
}, */ |
|
|
saveDeclaration(){ |
|
|
saveDeclaration(){ |
|
|
if(this.detailList==null|| this.detailList.length<1){ |
|
|
if(this.detailList==null|| this.detailList.length<1){ |
|
|
this.$alert('不存在明细记录!', '错误', { |
|
|
this.$alert('不存在明细记录!', '错误', { |
|
|
|