zh 2 years ago
parent
commit
55e7ac0eff
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/views/commercialEngineering/components/base.vue

+ 6 - 3
src/views/commercialEngineering/components/base.vue

@@ -527,9 +527,12 @@ export default {
           this.formData.homeProjectNameNumber3 = this.formData.homeProjectNameNumber
           this.formData.homeProjectNameArea3 = this.formData.homeProjectNameArea
         }
-        this.formData.homeProjectNameArea = ''
-        this.formData.homeProjectNameSeat = ''
-        this.formData.homeProjectNameNumber = ''
+        if (this.formData.homeProjectNameRadio === 'SELF' || this.formData.homeProjectNameRadio === 'VILLA') {
+          this.formData.homeProjectNameArea = ''
+          this.formData.homeProjectNameSeat = ''
+          this.formData.homeProjectNameNumber = ''
+        }
+
         await this.getCallbackPosition(0, this.formData.provinceId, 'province', 'id')
         await this.getCallbackPosition(this.formData.provinceId, this.formData.cityId, 'city', 'id')
         await this.getCallbackPosition(this.formData.cityId, this.formData.areaId, 'area', 'id')