zh před 2 roky
rodič
revize
55e7ac0eff

+ 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')