From e3a63203c823a4b7fcb12a52769c34acdc0b7a19 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期一, 18 三月 2024 18:03:51 +0800
Subject: [PATCH] qxtj

---
 src/views/system/visit/index.vue |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/views/system/visit/index.vue b/src/views/system/visit/index.vue
index 811c8dd..0906285 100644
--- a/src/views/system/visit/index.vue
+++ b/src/views/system/visit/index.vue
@@ -258,9 +258,10 @@
   getPdf,
   getOrderList,
   printCode,
+  getNewDateList
 } from "@/api/hosp/order";
 import { getsendEmail, getsendMessage } from "@/api/hosp/order";
-
+import moment from "moment";
 import { addSurveyRecord } from "@/api/hosp/surveyRecord";
 import { getDictEmerList, listEmer } from "@/api/system/emer";
 import ViewPdf from "@/components/ViewPdf";
@@ -427,10 +428,11 @@
     },
   },
   created() {
-    this.getNowTime();
-    this.getList();
+    // this.getNowTime();
+   
     this.Company();
     this.getListEmer();
+    this.getdate();
   },
   mounted() {
     this.$nextTick(() => {
@@ -438,6 +440,15 @@
     });
   },
   methods: {
+    getdate() {
+      getNewDateList().then((res) => {
+        this.createTimeList = [
+            moment(res.data).format("YYYY-MM-DD 00:00:00"),
+            moment(res.data).format("YYYY-MM-DD 23:59:00")
+          ];;
+          this.getList();
+      });
+    },
     dialogVisibles() {
       this.$message.error("璇疯繛鎺ユ嫧鍙峰櫒锛�");
     },
@@ -605,6 +616,7 @@
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
     resetQuery() {
+      this.createTimeList = []
       this.resetForm("queryForm");
       this.handleQuery();
     },

--
Gitblit v1.8.0