From 25a917324308571467d1ca5d5d2cb963076d4f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Fri, 23 Jan 2026 14:13:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dayPlan/Demand/components/basicForm.vue | 4 ++-- src/views/dayPlan/Demand/index.vue | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/dayPlan/Demand/components/basicForm.vue b/src/views/dayPlan/Demand/components/basicForm.vue index afe4d43..a5eabc4 100644 --- a/src/views/dayPlan/Demand/components/basicForm.vue +++ b/src/views/dayPlan/Demand/components/basicForm.vue @@ -311,7 +311,7 @@ today.setHours(0, 0, 0, 0); // 清除时分秒,确保比较时不考虑时间部分 // 获取明天的日期 const tomorrow = new Date(); - tomorrow.setDate(tomorrow.getDate() + ( 2)); + tomorrow.setDate(tomorrow.getDate() + (pageType.value?1: 2)); tomorrow.setHours(0, 0, 0, 0); // 清除时分秒 // 当前日期小于今天或大于明天,则禁用 return current < today || current > tomorrow; @@ -327,7 +327,7 @@ watch( () => props.formObj, (val) => { - if (val && !pageType.value) { + if (val) { formState.value = val } }, diff --git a/src/views/dayPlan/Demand/index.vue b/src/views/dayPlan/Demand/index.vue index 0c97faf..82edff5 100644 --- a/src/views/dayPlan/Demand/index.vue +++ b/src/views/dayPlan/Demand/index.vue @@ -1,5 +1,5 @@