From d975fc4756806f5b51f006c19c33571b9b8c0b3b Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期五, 20 十二月 2024 09:30:19 +0800
Subject: [PATCH] 修改下单时要求值输入限制

---
 src/components/view/b4-daily-business-statistics.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/components/view/b4-daily-business-statistics.vue b/src/components/view/b4-daily-business-statistics.vue
index 19673d5..99b11f8 100644
--- a/src/components/view/b4-daily-business-statistics.vue
+++ b/src/components/view/b4-daily-business-statistics.vue
@@ -263,10 +263,10 @@
           case '鏈�':
             const year = new Date(this.time.month).getFullYear();
             const month = new Date(this.time.month).getMonth();
-
+            const day = new Date(year, month + 1, 0).getDate(); //
             // 璁剧疆璧峰鏃ユ湡鍜岀粨鏉熸棩鏈�
-            this.startTime = new Date(year, month, 1).toISOString().slice(0, 10); // 鏈堝垵
-            this.endTime = new Date(year, month + 1, 0).toISOString().slice(0, 10); // 鏈堟湯
+            this.startTime = `${year}-${month + 1}-01`
+            this.endTime = `${year}-${month + 1}-${day}` // 鏈堟湯
             break;
           case '骞�':
             const year0 = new Date(this.time.year).getFullYear();
@@ -277,6 +277,7 @@
       }else{
         this.startTime = getYearAndMonthAndDays(new Date((new Date).getTime() - 24 * 60 * 60 * 1000))
         this.endTime = getYearAndMonthAndDays(new Date((new Date).getTime() + 24 * 60 * 60 * 1000 * 5))
+        this.time.week = new Date()
       }
       this.init()
     },

--
Gitblit v1.9.3