Explorar o código

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

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

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

@@ -906,7 +906,7 @@ export default {
               return
             }
             console.log(this.goodsList[i].qty );
-            if (this.goodsList[i].qty == null || Number(this.goodsList[i].qty) < 0) {
+            if (this.goodsList[i].qty == null || this.goodsList[i].qty == '' || Number(this.goodsList[i].qty) < 0) {
               this.$errorMsg('数量不能为空或者小于0')
               return
             }