695593266@qq.com 9 ay önce
ebeveyn
işleme
abc7e7b0db

+ 7 - 10
src/views/produce/components/jobBooking/components/jobBom.vue

@@ -45,7 +45,6 @@
                 v-model="item.workReportInfo.formedNum"
                 :disabled="isDetails"
                 placeholder="请输入合格品数量"
-                @input="blurNum"
               >
                 <template slot="append">{{ item.unit }}</template>
               </el-input>
@@ -78,7 +77,6 @@
                 v-model="item.workReportInfo.notFormedNum"
                 :disabled="isDetails"
                 placeholder="请输入不合格数量"
-                @input="changeNum"
               >
                 <template slot="append">{{ item.unit }}</template>
               </el-input>
@@ -119,7 +117,6 @@
                 v-model="item.workReportInfo.lossQuantity"
                 :disabled="isDetails"
                 placeholder=""
-                @input="changeNum"
               >
                 <template slot="append">{{ item.unit }}</template>
               </el-input>
@@ -559,13 +556,13 @@
       },
 
       changeNum() {
-        let total =
-          Number(this.item.workReportInfo.formedNum) +
-          Number(this.item.workReportInfo.notFormedNum);
-        if (total > this.item.formingNum) {
-          this.item.workReportInfo.notFormedNum = 0;
-          this.$message.warning('合格品数量加不合格数量不能大于要求生产数量');
-        }
+        // let total =
+        //   Number(this.item.workReportInfo.formedNum) +
+        //   Number(this.item.workReportInfo.notFormedNum);
+        // if (total > this.item.formingNum) {
+        //   this.item.workReportInfo.notFormedNum = 0;
+        //   this.$message.warning('合格品数量加不合格数量不能大于要求生产数量');
+        // }
         // this.notForme();
         // this.blurNum()
       },