Prechádzať zdrojové kódy

修改物料将数量置空并不进行询价,数量为空时不进行询价

002390 2 rokov pred
rodič
commit
be46ceeab2

+ 7 - 7
src/views/purchase/purchase-order/add/index.vue

@@ -119,17 +119,17 @@ export default {
             ...data,
             id: "",
             code: "",
+            isEnd:'N',
             status: "0",
             source: "3",
-            paymentMoney:'',
-            applyPaymentMoney:'',
-            closeTime:'',
             isClose:'N',
+            closeTime:'',
+            isInvoice:'N',
             isSendWms:'N',
             rebateMoney:'',
-            isInvoice:'N',
             invoiceMoney:'',
-            isEnd:'N',
+            paymentMoney:'',
+            applyPaymentMoney:'',
 
           };
 
@@ -401,7 +401,7 @@ export default {
         this.params['notaxMoney'] = 0;
         source.isDrug = val.materialMedcine.isDrug  == '0' ? 'Y' : 'N';
 
-        await this.handleGetPrice();
+        // await this.handleGetPrice();
 
       }
 
@@ -425,7 +425,7 @@ export default {
 
         row['whetherCompleteInquiry'] = false;
 
-        this.handleGetPrice();
+        row.qty && this.handleGetPrice();
 
       }
     },

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

@@ -310,7 +310,7 @@ export default {
 
         source.isDrug = val.materialMedcine.isDrug  == '0' ? 'Y' : 'N';
         
-        await this.handleGetPrice();
+        // await this.handleGetPrice();
 
       }
 
@@ -345,7 +345,7 @@ export default {
 
         row['whetherCompleteInquiry'] = false;
 
-        this.handleGetPrice();
+        row.qty && this.handleGetPrice();
 
       }