Эх сурвалжийг харах

订单类型改变之后清空仓库

002390 1 жил өмнө
parent
commit
641cc01235

+ 3 - 0
src/views/purchase/purchase-order/add/index.vue

@@ -106,6 +106,9 @@ export default {
 
 
         // let billList = ['21-Cxx-02','21-Cxx-04','21-Cxx-10','21-Cxx-14','21-Cxx-09','21-Cxx-17','21-Cxx-18'];
         // let billList = ['21-Cxx-02','21-Cxx-04','21-Cxx-10','21-Cxx-14','21-Cxx-09','21-Cxx-17','21-Cxx-18'];
         let billList = ['21-Cxx-02','21-Cxx-04','21-Cxx-10', '21-Cxx-14'];
         let billList = ['21-Cxx-02','21-Cxx-04','21-Cxx-10', '21-Cxx-14'];
+
+        this.params.warehouse = '';
+        this.params.warehouseName = '';
         
         
         if(billList.find(item => item === nVal)){
         if(billList.find(item => item === nVal)){
           this.rules.warehouseName = [
           this.rules.warehouseName = [

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

@@ -86,7 +86,10 @@ export default {
 
 
         // let billList = ['21-Cxx-02','21-Cxx-04','21-Cxx-10','21-Cxx-14','21-Cxx-09','21-Cxx-17','21-Cxx-18'];
         // let billList = ['21-Cxx-02','21-Cxx-04','21-Cxx-10','21-Cxx-14','21-Cxx-09','21-Cxx-17','21-Cxx-18'];
         let billList = ['21-Cxx-02','21-Cxx-04','21-Cxx-10', '21-Cxx-14'];
         let billList = ['21-Cxx-02','21-Cxx-04','21-Cxx-10', '21-Cxx-14'];
-        
+
+        this.params.warehouse = '';
+        this.params.warehouseName = '';
+
         if(billList.find(item => item === nVal)){
         if(billList.find(item => item === nVal)){
           this.rules.warehouseName = [
           this.rules.warehouseName = [
             { required: true, message: "WMS入库仓库不能为空", trigger: "change" },
             { required: true, message: "WMS入库仓库不能为空", trigger: "change" },