Browse Source

change: indent计价.处理pdf Freight to内容填充逻辑.

peter 2 weeks ago
parent
commit
a2c5601887
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/pages/indent-manage/indent/components/calcPrice/index.vue

+ 8 - 3
src/pages/indent-manage/indent/components/calcPrice/index.vue

@@ -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)
         }
       })