|
|
@@ -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: {
|
|
|
+ /**
|
|
|
+ * 计算最大可选日期:当前日期往后推7天
|
|
|
+ */
|
|
|
+ maxDate() {
|
|
|
+ const today = new Date();
|
|
|
+ const maxYear = today.getFullYear();
|
|
|
+ const maxMonth = today.getMonth();
|
|
|
+ const maxDay = today.getDate() + 7;
|
|
|
+ return new Date(maxYear, maxMonth, maxDay);
|
|
|
+ }
|
|
|
+ },
|
|
|
watch: {
|
|
|
$route(to, from) {
|
|
|
if (from.path == '/deviceWithin/index' && to.path == '/storeVisitpage') {
|