Browse Source

Merge branch 'feature_20250311_物料任务设置最大值' into uat(dev)

zhujindu 9 months ago
parent
commit
79604e660e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/views/deviceWithin/addStoreVisit.vue

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

@@ -3078,7 +3078,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 = '';
           }
@@ -3092,7 +3093,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 = '';
           }