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

---
 src/views/doctor/checkAll/index.vue |   43 +++++++++++++++++++++++++++++--------------
 1 files changed, 29 insertions(+), 14 deletions(-)

diff --git a/src/views/doctor/checkAll/index.vue b/src/views/doctor/checkAll/index.vue
index 9b8f4d9..fa565b2 100644
--- a/src/views/doctor/checkAll/index.vue
+++ b/src/views/doctor/checkAll/index.vue
@@ -110,7 +110,7 @@
               鎬у埆锛�
             </td>
             <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
-              {{ tableAll.cusSex }}
+              {{ tableAll.cusSex == 0? "鐢�" :tableAll.cusSex == 1?"濂�":"鏈煡"}}
             </td>
           </tr>
           <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
@@ -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