Kaynağa Gözat

物料任务设置最大值

zhujindu 8 ay önce
ebeveyn
işleme
199a559312
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  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 = '';
           }