From 8f38cbf36743746bde6997cef3998eadc6e95e10 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 07 一月 2025 18:16:00 +0800
Subject: [PATCH] 核算重构

---
 src/views/system/check/result/detail/index.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/views/system/check/result/detail/index.vue b/src/views/system/check/result/detail/index.vue
index 0c1dd20..1001197 100644
--- a/src/views/system/check/result/detail/index.vue
+++ b/src/views/system/check/result/detail/index.vue
@@ -344,11 +344,14 @@
     },
 
     getAllDay() {
-      // const date = new Date();
-      // const year = date.getFullYear();
-      // const month = (date.getMonth() + 1) >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1);
-      // this.date = year + '-' + month;
-      const currentDate = this.date.split('-');
+      let date = this.date
+      if(!this.date) {
+        date = new Date();
+        const year = date.getFullYear();
+        const month = (date.getMonth() + 1) >= 10 ? date.getMonth() + 1 : '0' + (date.getMonth() + 1);
+        date = year + '-' + month;
+      }
+      const currentDate = date.split('-');
       const currentYear = currentDate[0];
       const currentMonth = currentDate[1];
       const daysInMonth = new Date(currentYear, currentMonth, 0).getDate();

--
Gitblit v1.8.0