From ac6766c11f8a2b8de903b58c13a8f206fa01dccd Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期五, 15 三月 2024 17:56:32 +0800
Subject: [PATCH] qxtj

---
 src/views/hosp/order/index.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/views/hosp/order/index.vue b/src/views/hosp/order/index.vue
index 5b5c5c9..8aabe19 100644
--- a/src/views/hosp/order/index.vue
+++ b/src/views/hosp/order/index.vue
@@ -888,7 +888,7 @@
   },
   created() {
     // this.getNowTime();
-    this.getList();
+   
     this.getdate();
   },
   mounted() {
@@ -899,10 +899,14 @@
   methods: {
     getdate() {
       getNewDateList().then((res) => {
-        this.createTimeList = [
+        if(res.data){
+          this.createTimeList = [
             moment(res.data).format("YYYY-MM-DD 00:00:00"),
             moment(res.data).format("YYYY-MM-DD 23:59:00")
-          ];;
+          ];
+          this.getList();
+        }
+       
       });
     },
     filterNode(value, data) {
@@ -1060,6 +1064,7 @@
     },
     // 琛ㄥ崟閲嶇疆
     reset() {
+    
       this.form = {
         orderId: null,
         userId: null,
@@ -1097,6 +1102,9 @@
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
     resetQuery() {
+      this.startTime = []
+      this.startTime1 = []
+      this.createTimeList = []
       this.resetForm("queryForm");
       this.handleQuery();
     },

--
Gitblit v1.8.0