codeMan 2 年之前
父节点
当前提交
756b9e4f05
共有 1 个文件被更改,包括 8 次插入6 次删除
  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);