Forráskód Böngészése

Merge branch 'master' of http://git.dgtis.com/tongym/storevisit-ui-mobile into feature_20251107_质感销售专员首页

sunny 3 hete
szülő
commit
c71cbfa0fd
1 módosított fájl, 13 hozzáadás és 1 törlés
  1. 13 1
      src/views/deviceWithin/index.vue

+ 13 - 1
src/views/deviceWithin/index.vue

@@ -517,7 +517,7 @@ export default {
       order: order,
       defaultDate: new Date(),
       minDate: new Date(2020, 0, 1),
-      maxDate: new Date(2025, 10, 1),
+      // maxDate: new Date(2025, 10, 1),
       showPopoverVNUM: [],
       showPopoverC: [],
       showPopoverZ: [],
@@ -546,6 +546,18 @@ export default {
       filterParams: {},
     };
   },
+  computed: {
+    /**
+     * 计算最大可选日期:当前日期往后推30天
+     */
+    maxDate() {
+      const today = new Date();
+      const maxYear = today.getFullYear();
+      const maxMonth = today.getMonth();
+      const maxDay = today.getDate() + 30;
+      return new Date(maxYear, maxMonth, maxDay);
+    }
+  },
   watch: {
     $route(to, from) {
       if (from.path == '/deviceWithin/index' && to.path == '/storeVisitpage') {