Răsfoiți Sursa

供应商上修改之后进行询价前,需要把标识属性改为false

002390 1 an în urmă
părinte
comite
9660bf06e8

+ 11 - 1
src/views/purchase/purchase-order/add/index.vue

@@ -340,7 +340,17 @@ export default {
           item.material && item.material != '' 
         ))
 
-        detailList.length && this.handleGetPrice();
+        if(detailList.length){
+
+          this.params['puOrderItemList'] = this.params['puOrderItemList'].map(item => {
+            
+            item['whetherCompleteInquiry'] = false
+          
+            return item;
+          });
+
+          await this.handleGetPrice();
+        }
         
       }
 

+ 9 - 2
src/views/purchase/purchase-order/edit/index.vue

@@ -283,11 +283,18 @@ export default {
         let detailList = this.params['puOrderItemList'].filter(item => (
           item.material && item.material != '' 
         ))
+        
+        if(detailList.length){
 
-        detailList.length && this.handleGetPrice();
+          this.params['puOrderItemList'] = this.params['puOrderItemList'].map(item => {
 
+            item['whetherCompleteInquiry'] = false
 
-        
+            return item;
+          });
+
+          await this.handleGetPrice();
+        }
       }
     },
     // 子表参照改变之后