From 766effa6e04db9b37b1dc3886d988beaa595c38d Mon Sep 17 00:00:00 2001
From: 张晓波 <bingbo1993@126.com>
Date: 星期二, 12 十二月 2023 09:04:55 +0800
Subject: [PATCH] Merge branch 'master' of http://111.30.93.211:10101/r/supipe

---
 web/src/views/ProjectManage/components/RawConsump.vue |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/web/src/views/ProjectManage/components/RawConsump.vue b/web/src/views/ProjectManage/components/RawConsump.vue
index 5e0dff6..49742e1 100644
--- a/web/src/views/ProjectManage/components/RawConsump.vue
+++ b/web/src/views/ProjectManage/components/RawConsump.vue
@@ -247,15 +247,13 @@
       this.$api.Reinforce.searchProjectSize({proId:val,pageNum: 1,
           pageSize:100000000}).then(res=>{
         if(res.statusMsg === 'ok'){
-          if(this.search.proId ===""){
+          if(val ===""){
             this.optionsSize = []
             this.search.size = ""
             this.search.reinforcement = ""
-          }else if(this.ruleForm.proId ===""){
-            this.optionsSize = []
-            this.ruleForm.size = ""
-            this.ruleForm.reinforcement = ""
-            this.ruleForm.blockNum = ""
+            this.$set(this.ruleForm,'size','')
+            this.$set(this.ruleForm,'reinforcement','')
+            this.$set(this.ruleForm,'blockNum','')
           }else{
             this.optionsSize = res.data.list
           }

--
Gitblit v1.9.3