codeMan il y a 2 ans
Parent
commit
756b9e4f05
1 fichiers modifiés avec 8 ajouts et 6 suppressions
  1. 8 6
      src/HDrpManagement/orderManage/details/tabs/productlist.vue

+ 8 - 6
src/HDrpManagement/orderManage/details/tabs/productlist.vue

@@ -631,12 +631,14 @@ export default {
       })
     },
     rowChange (val,index) {
-      if (val.qty > val.orderminqty){
-         if ((val.qty-val.orderminqty)/val.orderaddqty > 0){
-           let k = ((val.qty-val.orderminqty)/val.orderaddqty).toFixed(0)
-           val.qty = k * val.orderaddqty + val.orderminqty
-         }
-      }
+      if (this.data.status != '特殊订单') {
+        if (val.qty > val.orderminqty){
+          if ((val.qty-val.orderminqty)/val.orderaddqty > 0){
+            let k = ((val.qty-val.orderminqty)/val.orderaddqty).toFixed(0)
+            val.qty = k * val.orderaddqty + val.orderminqty
+          }
+        }
+      } 
       let that = this
       if(this.time !== null){
         clearTimeout(this.time);