فهرست منبع

【修改】bug

howie 2 سال پیش
والد
کامیت
2ef03f2509
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/views/supply/apply/components/apply_form.vue
  2. 1 1
      src/views/supply/apply/components/engin_form.vue

+ 1 - 1
src/views/supply/apply/components/apply_form.vue

@@ -478,7 +478,7 @@ export default {
             return this.$errorMsg('请添加引用');
             return this.$errorMsg('请添加引用');
           }
           }
           for(let i=0; i<this.goodsList.length; i++) {
           for(let i=0; i<this.goodsList.length; i++) {
-            if(!this.goodsList[i].invoiceNum) {
+            if(!Number(this.goodsList[i].invoiceNum)) {
               this.$errorMsg('请输入申请数量');
               this.$errorMsg('请输入申请数量');
               return;
               return;
             }
             }

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

@@ -715,7 +715,7 @@ export default {
             return this.$errorMsg('请添加引用');
             return this.$errorMsg('请添加引用');
           }
           }
           for(let i=0; i<this.goodsList.length; i++) {
           for(let i=0; i<this.goodsList.length; i++) {
-            if(!this.goodsList[i].invoiceNum) {
+            if(!Number(this.goodsList[i].invoiceNum)) {
               this.$errorMsg('请输入申请数量');
               this.$errorMsg('请输入申请数量');
               return;
               return;
             }
             }