Răsfoiți Sursa

海外客户自动填写社会信用码

cxmo 1 an în urmă
părinte
comite
c660bd0dfe
1 a modificat fișierele cu 15 adăugiri și 0 ștergeri
  1. 15 0
      src/views/business_ETA_manage/addBusiness.vue

+ 15 - 0
src/views/business_ETA_manage/addBusiness.vue

@@ -249,6 +249,21 @@ export default {
             }
         }
     },
+    watch:{
+        'firstFormData.areaType':{
+            handler(newVal){
+                console.log('watch?',newVal)
+                if(newVal==='海外'){
+                    this.firstFormData.creditCode = 'HZ' + new Date().getTime()
+                    this.firstFormData.address = ['海外','其他市']
+                    this.selectRegion(['海外','其他市'])
+                }else{
+                    this.firstFormData.creditCode = ''
+                    this.firstFormData.address = []
+                }
+            }
+        }
+    },
     created() {
         this.getIndustry()
         this.getSale()