Explorar el Código

物料任务设置最大值

zhujindu hace 8 meses
padre
commit
199a559312
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  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 = '';
           }