LAPTOP-FO2T5SIU\35838 5 ay önce
ebeveyn
işleme
237220dac3

+ 10 - 8
src/views/workflow/components/myProcess/applyBuyingMore.vue

@@ -55,6 +55,7 @@
                         :append-to-body="false"
                         style="width: 100%;"
                         :options="TreeData"
+                        :props="{ multiple: true}"
                       />
                     </el-form-item>
                   </el-form-item>
@@ -579,7 +580,6 @@ export default {
         },
         async handelConfirm() {
             const _this = this
-            console.log('_this.formData.houseIds', _this.formData.houseIds)
             if (_this.formData.houseIds == undefined || _this.formData.houseIds.length < 1) {
                 _this.$message({
                     message: '请选择出租载体',
@@ -587,13 +587,15 @@ export default {
                 })
                 return
             } else {
-                if (_this.formData.houseIds.length < 4) {
-                    _this.$message({
-                        message: '有房间尚未选择,请校验后重新选择',
-                        type: 'warning'
-                    })
-                    return
-                }
+                _this.formData.houseIds.forEach(item => {
+                    if (item.length < 4) {
+                        _this.$message({
+                            message: '有房间尚未选择,请校验后重新选择',
+                            type: 'warning'
+                        })
+                        return
+                    }
+                })
             }
             this.$refs['elForm'].validate(async valid => {
                 if (!valid) return