D4THYL3\long 2 năm trước cách đây
mục cha
commit
c57bce7979

+ 9 - 4
operationSupport/src/views/businessManagement/opportunityManagement/setpPage/add.vue

@@ -182,7 +182,7 @@
                 v-for="(buildingids, index) in Building[indexs]"
                 :key="index"
                 :label="buildingids.name"
-                :value="buildingids.value"
+                :value="buildingids.name"
                 label-width="100px"
                 @click.native="changeInformbuilding(buildingids, indexs)"
               ></el-option>
@@ -199,7 +199,7 @@
                 v-for="(unitids, index) in unit[indexs]"
                 :key="index"
                 :label="unitids.name"
-                :value="unitids.value"
+                :value="unitids.name"
                 label-width="100px"
                 @click.native="changeInformunit(unitids, indexs)"
               ></el-option>
@@ -216,7 +216,7 @@
                 v-for="(roomNumberids, index) in roomNumber[indexs]"
                 :key="index"
                 :label="roomNumberids.name"
-                :value="roomNumberids.value"
+                :value="roomNumberids.name"
                 label-width="100px"
                 @click.native="changeInformroomNumber(roomNumberids)"
               >
@@ -292,6 +292,7 @@ export default {
         ],
         telephon: [
           { required: true, message: '请输入电话', trigger: 'blur' },
+          { pattern: /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/, message: '请输入正确的电话' }
         ],
         customerType: [
           { required: true, message: '请输确认类型', trigger: 'change' },
@@ -447,6 +448,7 @@ export default {
     },
     // 社区名称
     changeInformcommunity (items, index) {
+      debugger
       console.log(items);
       this.Fncommunity(items, index);
     },
@@ -454,6 +456,7 @@ export default {
       let BuildingArr = [];
 
       if (!!this.Building[index]) {
+        this.Building = [];
         this.Building[index] = items.children;
       } else {
         this.Building.push(items.children);
@@ -472,15 +475,16 @@ export default {
           children: items.children
         });
       }
-      debugger;
       if (items.children[0].type == 'room') {
         if (!!this.roomNumber[index]) {
+          this.roomNumber = []
           this.roomNumber[index] = items.children;
         } else {
           this.roomNumber.push(items.children);
         }
       } else {
         if (!!this.unit[index]) {
+          this.unit = [];
           this.unit[index] = items.children;
         } else {
           this.unit.push(items.children);
@@ -501,6 +505,7 @@ export default {
       }
 
       if (!!this.roomNumber[index]) {
+        this.unit = [];
         this.roomNumber[index] = items.children;
       } else {
         this.roomNumber.push(items.children);