Răsfoiți Sursa

编辑页面修改供应商时进行询价

002390 1 an în urmă
părinte
comite
34fd674539

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

@@ -339,13 +339,8 @@ export default {
         let detailList = this.params['puOrderItemList'].filter(item => (
           item.material && item.material != '' 
         ))
-        // && item.qty && item.qty != ''
-        
-        if(detailList.length){
-
-          this.handleGetPrice();
 
-        }
+        detailList.length && this.handleGetPrice();
         
       }
 

+ 10 - 1
src/views/purchase/purchase-order/edit/index.vue

@@ -256,7 +256,7 @@ export default {
           }
         ]
 
-      await  relevanceRefer.forEach(async (refer) =>{
+        await relevanceRefer.forEach(async (refer) =>{
 
           try {
 
@@ -278,6 +278,15 @@ export default {
           } catch (error) {}
           
         })
+
+        // 明细不为空的情况下进行询价
+        let detailList = this.params['puOrderItemList'].filter(item => (
+          item.material && item.material != '' 
+        ))
+
+        detailList.length && this.handleGetPrice();
+
+
         
       }
     },