Преглед на файлове

发货去掉库存查询

ymy преди 1 година
родител
ревизия
cc3e3e1ec1
променени са 2 файла, в които са добавени 14 реда и са изтрити 12 реда
  1. 9 7
      src/views/oms/order/components/batchbyOneModal.vue
  2. 5 5
      src/views/oms/order/components/carpoolModal.vue

+ 9 - 7
src/views/oms/order/components/batchbyOneModal.vue

@@ -80,7 +80,7 @@ export default class BatchbyOneModal extends Vue {
   }
   editResult(v:any){
     this.data[this.currentOrder] = v;
-    this.getStoreCount(v);
+    // this.getStoreCount(v);
     this.getPriceInfo(v);
   }
   prichChange(index:number){
@@ -164,10 +164,10 @@ export default class BatchbyOneModal extends Vue {
       this.$message('没有需要发货的订单!')
       return
     }
-    if(this.stopHandle){
-      this.$message('库存不足!')
-      return
-    }
+    // if(this.stopHandle){
+    //   this.$message('库存不足!')
+    //   return
+    // }
     if(!this.checked){
       this.$message('请阅读并同意运单协议!')
       return
@@ -331,8 +331,10 @@ export default class BatchbyOneModal extends Vue {
             }else{
               if(this.currentPrice[_item.omsOrderIds]){
                 this.sendGoods(_item);
-              }else{
-                this.getStoreCount(_item,this.getPriceInfo);
+              }
+              else{
+                this.getPriceInfo(_item,this.sendGoods)
+                // this.getStoreCount(_item,this.getPriceInfo);
               }
             }
         }else{

+ 5 - 5
src/views/oms/order/components/carpoolModal.vue

@@ -147,10 +147,10 @@ export default class CarpoolModal extends Vue {
     })
   }
   btn(){
-    if(this.stopHandle){
-      this.$message('库存不足!')
-      return
-    }
+    // if(this.stopHandle){
+    //   this.$message('库存不足!')
+    //   return
+    // }
     if(!this.checked){
       this.$message('请阅读并同意运单协议!')
       return
@@ -239,7 +239,7 @@ export default class CarpoolModal extends Vue {
   editResult(v:any){
     this.value = v;
     this.getPriceInfo(v);
-    this.getStoreCount(v);
+    // this.getStoreCount(v);
   }
   editState(v:boolean){
     this.drawer = v