From f4c6c3fa64a754040e6f2eee0235612205f89747 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: Fri, 13 Feb 2026 13:15:25 +0800
Subject: [PATCH] 添加状态

---
 src/views/purchase/cityESS.vue |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/views/purchase/cityESS.vue b/src/views/purchase/cityESS.vue
index 9c7f438..f89b9df 100644
--- a/src/views/purchase/cityESS.vue
+++ b/src/views/purchase/cityESS.vue
@@ -345,21 +345,21 @@
 
         searchProductSearch(){
             this.listQuery.pageIndex = 1
-            const date1 = new Date(this.validTime[0]);
-            const date2 = new Date(this.validTime[1]);
-            const date3 = new Date(this.validTime2[0]);
-            const date4 = new Date(this.validTime2[1]);
-            const differenceInMs = Math.abs(date2 - date1);
-            const differenceInDays = differenceInMs / (1000 * 60 * 60 * 24)
-            const differenceInMs2 = Math.abs(date4 - date3);
-            const differenceInDays2 = differenceInMs2 / (1000 * 60 * 60 * 24)
-            if(differenceInDays > 32 || differenceInDays2 > 32){
-                this.$message({
-                    type: 'warning',
-                    message: '查询时间或对比时间跨度超过一个月的,请联系管理员查询数据'
-                })
-                return
-            }
+            // const date1 = new Date(this.validTime[0]);
+            // const date2 = new Date(this.validTime[1]);
+            // const date3 = new Date(this.validTime2[0]);
+            // const date4 = new Date(this.validTime2[1]);
+            // const differenceInMs = Math.abs(date2 - date1);
+            // const differenceInDays = differenceInMs / (1000 * 60 * 60 * 24)
+            // const differenceInMs2 = Math.abs(date4 - date3);
+            // const differenceInDays2 = differenceInMs2 / (1000 * 60 * 60 * 24)
+            // if(differenceInDays > 32 || differenceInDays2 > 32){
+            //     this.$message({
+            //         type: 'warning',
+            //         message: '查询时间或对比时间跨度超过一个月的,请联系管理员查询数据'
+            //     })
+            //     return
+            // }
             this.getProductList()
         },
 

--
Gitblit v1.9.2