소스 검색

物料任务设置最大值

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 = '';
           }