zhangqiOMG 2 年之前
父节点
当前提交
ef058bd1f7
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      src/SDrpManagement/ProductGroup/modules/GroupDetail/groupDetail.vue

+ 8 - 2
src/SDrpManagement/ProductGroup/modules/GroupDetail/groupDetail.vue

@@ -168,10 +168,16 @@ export default {
     changeQty(num){
       let a = num - this.selectProduct.orderminqty
       let b = a / this.selectProduct.orderaddqty
+      
       if (b < 1) {
-        this.count = this.selectProduct.orderminqty +  this.selectProduct.orderaddqty
+        this.$nextTick(e=>{
+          this.count = this.selectProduct.orderminqty +  this.selectProduct.orderaddqty
+        })
       } else {
-        this.count = this.selectProduct.orderminqty +  this.selectProduct.orderaddqty * b.toFixed(0)
+        this.$nextTick(e=>{
+          this.count = this.selectProduct.orderminqty +  this.selectProduct.orderaddqty * b.toFixed(0)
+        })
+        
       }
     },
     typeClick (data) {