Parcourir la source

Finish Hotfix-zh-304

howie il y a 2 ans
Parent
commit
361539077a
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/views/supply/engin/components/engin_form.vue

+ 2 - 2
src/views/supply/engin/components/engin_form.vue

@@ -873,8 +873,8 @@ export default {
               this.$errorMsg('请选择销售类型')
               return
             }
-            if (!Number(this.goodsList[i].qty)) {
-              this.$errorMsg('不允许数量为0')
+            if (Number(this.goodsList[i].qty) < 0) {
+              this.$errorMsg('数量不能小于0')
               return
             }
             if (!this.goodsList[i].materialNumber) {