浏览代码

【修改】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('请添加引用');
           }
           for(let i=0; i<this.goodsList.length; i++) {
-            if(!this.goodsList[i].invoiceNum) {
+            if(!Number(this.goodsList[i].invoiceNum)) {
               this.$errorMsg('请输入申请数量');
               return;
             }

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

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