Explorar o código

fix: 数量不能为空或者小于0

zh %!s(int64=2) %!d(string=hai) anos
pai
achega
f40a6bbc1c
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/views/supply/engin/components/engin_form.vue

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

@@ -905,8 +905,9 @@ export default {
               this.$errorMsg('请选择销售类型')
               return
             }
-            if (!this.goodsList[i].qty || Number(this.goodsList[i].qty) < 0) {
-              this.$errorMsg('数量不能小于0')
+            console.log(this.goodsList[i].qty );
+            if (this.goodsList[i].qty == null || Number(this.goodsList[i].qty) < 0) {
+              this.$errorMsg('数量不能为空或者小于0')
               return
             }
             if (!this.goodsList[i].materialNumber) {