From e2db885233d9ed8c6c9f7912ba8e7b7d1998f437 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 30 一月 2026 14:38:55 +0800
Subject: [PATCH] fix: 预计运行时间编辑后还是回显原来的时间

---
 src/views/productionManagement/productionCosting/index.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/productionManagement/productionCosting/index.vue b/src/views/productionManagement/productionCosting/index.vue
index a3bb3b0..30635e4 100644
--- a/src/views/productionManagement/productionCosting/index.vue
+++ b/src/views/productionManagement/productionCosting/index.vue
@@ -266,8 +266,8 @@
     searchForm.value.entryDate = dayjs().format("YYYY-MM-DD");
     searchForm.value.dateRange = searchForm.value.entryDate
   } else {
-    searchForm.value.entryDateStart = dayjs().format("YYYY-MM-DD");
-    searchForm.value.entryDateEnd = dayjs().add(1, "day").format("YYYY-MM-DD");
+    searchForm.value.entryDateStart = dayjs().startOf("month").format("YYYY-MM-DD");
+    searchForm.value.entryDateEnd = dayjs().endOf("month").format("YYYY-MM-DD");
     searchForm.value.dateRange = [searchForm.value.entryDateStart, searchForm.value.entryDateEnd]
   }
 

--
Gitblit v1.9.3