Przeglądaj źródła

Finish Hotfix-zh-304

howie 2 lat temu
rodzic
commit
361539077a
1 zmienionych plików z 2 dodań i 2 usunięć
  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) {