From 805fcd4d881ac13d0fe9961076ead66a71c20b2d Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期六, 28 十月 2023 18:12:21 +0800
Subject: [PATCH] 10.28

---
 admin/src/views/business/wxBillDetail.vue |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/admin/src/views/business/wxBillDetail.vue b/admin/src/views/business/wxBillDetail.vue
index f152f2a..121ea0e 100644
--- a/admin/src/views/business/wxBillDetail.vue
+++ b/admin/src/views/business/wxBillDetail.vue
@@ -9,6 +9,7 @@
           range-separator="鑷�"
           start-placeholder="寮�濮嬫棩鏈�"
           end-placeholder="缁撴潫鏃ユ湡"
+          :picker-options="pickerOptions"
           format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss"
           @change="selectDate"
         ></el-date-picker>
@@ -73,12 +74,13 @@
   components: { TableLayout, BillDetailWindow },
   data () {
     return {
-      value1: [new Date(), new Date()],
+      value1: [],
       // 鎼滅储
       searchForm: {
         endDate: '',
         startDate: '',
       },
+      pickerOptions: {}
     }
   },
   created () {
@@ -88,7 +90,16 @@
       'field.id': 'id',
       'field.main': 'id'
     })
-    this.searchForm.startDate = formatDateTime(new Date(), 'yyyy-MM-dd') + ' 00:00:00'
+    this.pickerOptions.disabledDate = (time) => {
+	    // 涓�澶�
+      let tempTime = 3600 * 1000 * 24 
+      return time.getTime() > new Date() - tempTime
+    }
+    // let tempTime = new Date().getTime() - 3600 * 1000 * 24 
+    // this.searchForm.startDate = formatDateTime(new Date(tempTime), 'yyyy-MM-dd') + ' 00:00:00'
+    // this.searchForm.endDate = formatDateTime(new Date(tempTime), 'yyyy-MM-dd') + ' 23:59:59'
+    // this.value1 = [this.searchForm.startDate, this.searchForm.endDate]
+
     this.search()
   },
   methods: {

--
Gitblit v1.9.3