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/doctor/checkAll/index.vue |   41 ++++++++++++++++++++++++++++-------------
 1 files changed, 28 insertions(+), 13 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index 9b8f4d9..745094e 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -585,6 +585,8 @@
 import {
   getTjYxjcList
 } from "@/api/system/package";
+import { getNewDateList } from "@/api/hosp/order";
+import moment from "moment";
 export default {
   components: {
     ViewPdf,
@@ -725,8 +727,9 @@
   },
 
   created() {
-    this.getNowTime();
-    this.getList();
+    // this.getNowTime();
+   
+    this.getdate();
   },
 
   mounted() {
@@ -735,6 +738,15 @@
     });
   },
   methods: {
+    getdate() {
+      getNewDateList().then((res) => {
+        this.startTime = [
+          moment(res.data).format("YYYY-MM-DD 00:00:00"),
+          moment(res.data).format("YYYY-MM-DD 23:59:00"),
+        ];
+        this.getList();
+      });
+    },
     // / 澶勭悊榛樿閫変腑褰撳墠鏃ユ湡
     getNowTime() {
       var curDate = new Date().getTime();
@@ -1084,23 +1096,25 @@
     },
     // 閲嶇疆
     resetQuery() {
+      this.startTime=[]
       this.resetForm("tableList");
       this.submitForm();
     },
 
     // 鐐瑰嚮璇︽儏
     handleClick(row) {
+     
       this.tableAll = row;
       this.tjproject = "0"
-      if (this.tableAll.cusSex === 0) {
-        this.tableAll.cusSex = "鐢�";
-      }
-      if (this.tableAll.cusSex === 1) {
-        this.tableAll.cusSex = "濂�";
-      }
-      if (this.tableAll.cusSex === 2) {
-        this.tableAll.cusSex = "鏈煡";
-      }
+      // if (this.tableAll.cusSex === 0) {
+      //   this.tableAll.cusSex = "鐢�";
+      // }
+      // if (this.tableAll.cusSex === 1) {
+      //   this.tableAll.cusSex = "濂�";
+      // }
+      // if (this.tableAll.cusSex === 2) {
+      //   this.tableAll.cusSex = "鏈煡";
+      // }
       this.tjNumber = this.tableAll.tjNumber;
       getState(this.tjNumber).then((res) => {
         this.status = res.data;
@@ -1118,10 +1132,10 @@
                 this.drawer = true;
                 getupdateCheckType(this.tjNumber).then((response) => {
                   this.changedate = response.data;
-                  this.changedate.forEach((item) => {
+                  if (this.changedate) {
+                    this.changedate.forEach((item) => {
                     this.textarea1 = item.checkAdvice;
                   });
-                  if (this.changedate) {
                     for (let i = 0; i < this.changedate.length; i++) {
                       this.remark = this.changedate[i].remark;
                     }
@@ -1207,6 +1221,7 @@
               });
             });
           this.drawer = false;
+          
         }
       });
 

--
Gitblit v1.8.0