Browse Source

订单类型清空之后会清空wms仓库与货位

002390 1 year ago
parent
commit
70265c5f22

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

@@ -109,6 +109,8 @@ export default {
 
         this.params.warehouse = '';
         this.params.warehouseName = '';
+        this.params.goodsAllocation = '';
+        this.params.goodsAllocationName = '';
         
         if(billList.find(item => item === nVal)){
           this.rules.warehouseName = [
@@ -117,6 +119,7 @@ export default {
         }else{
           this.rules.warehouseName = null;
         }
+        this.rules.goodsAllocationName = null;
 
         this.count++;
       }

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

@@ -89,6 +89,8 @@ export default {
 
         this.params.warehouse = '';
         this.params.warehouseName = '';
+        this.params.goodsAllocation = '';
+        this.params.goodsAllocationName = '';
 
         if(billList.find(item => item === nVal)){
           this.rules.warehouseName = [
@@ -97,6 +99,7 @@ export default {
         }else{
           this.rules.warehouseName = null;
         }
+        this.rules.goodsAllocationName = null;
 
         this.count++;
       }