Преглед на файлове

物料任务设置最大值

zhujindu преди 8 месеца
родител
ревизия
199a559312
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      src/views/deviceWithin/addStoreVisit.vue

+ 4 - 2
src/views/deviceWithin/addStoreVisit.vue

@@ -3094,7 +3094,8 @@ export default {
             this.tableData1[index].value = '';
             return;
           }
-          if (Number(val) > Number(this.tableData1[index].maxValue)) {
+          let maxValue = this.tableData1[index].maxValue;
+          if (maxValue && Number(val) > Number(maxValue)) {
             this.$toast('请输入小于等于最大发放量');
             this.tableData1[index].value = '';
           }
@@ -3108,7 +3109,8 @@ export default {
             this.tableData1[index].value = this.tableData1[index].contrastValue;
             return;
           }
-          if (Number(val) > Number(this.tableData1[index].maxValue)) {
+          let maxValue = this.tableData1[index].maxValue;
+          if (maxValue && Number(val) > Number(maxValue)) {
             this.$toast('请输入小于等于最大发放量');
             this.tableData1[index].value = '';
           }