|
@@ -815,9 +815,14 @@ let getForginCityFreight = (p: any, num: number) =>
|
|
|
console.log(response, 'response')
|
|
|
if (response.code === 1) {
|
|
|
forginCityFreight.value[`${num}`] = response.result
|
|
|
- queryArea.value = response.result.location || ''
|
|
|
- exportForm.value.pdf_city = response.result.location || ''
|
|
|
- formData.value.cal_city.local_city = response.result.area || ''
|
|
|
+ if (formData.value.cal_city.local_city === 'US') {
|
|
|
+ // US地区不显示邮编
|
|
|
+ queryArea.value = 'US'
|
|
|
+ } else {
|
|
|
+ queryArea.value = response.result.area + ` - ${formData.value.cal_city.postcode}` || ''
|
|
|
+ formData.value.cal_city.local_city = response.result.area || ''
|
|
|
+ }
|
|
|
+ exportForm.value.pdf_city = queryArea.value
|
|
|
resolve(response.result)
|
|
|
}
|
|
|
})
|