Forráskód Böngészése

物料任务最大值

zhujindu 8 hónapja
szülő
commit
2f256b920e
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      src/views/deviceWithin/addStoreVisit.vue

+ 5 - 0
src/views/deviceWithin/addStoreVisit.vue

@@ -3106,6 +3106,11 @@ export default {
           ) {
             this.$toast('请输入小于等于销售部库存量+发放量');
             this.tableData1[index].value = this.tableData1[index].contrastValue;
+            return
+          }
+          if (Number(val) > Number(this.tableData1[index].maxValue)) {
+            this.$toast('请输入小于等于最大发放量');
+            this.tableData1[index].value = '';
           }
         } else {
           this.tableData1[index].value = val.replace(/[^\d.]/g, ''); //清除"数字"和"."以外的字符