From facb80c84fb77e0003213572cfa1851017286584 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 08 三月 2024 14:43:23 +0800
Subject: [PATCH] su

---
 src/views/team/reporting/index.vue |   39 ++++++++++++++++++++++++++-------------
 1 files changed, 26 insertions(+), 13 deletions(-)

diff --git a/src/views/team/reporting/index.vue b/src/views/team/reporting/index.vue
index 88e3663..55fb6f9 100644
--- a/src/views/team/reporting/index.vue
+++ b/src/views/team/reporting/index.vue
@@ -58,8 +58,9 @@
               clearable
               v-model="createTimeList"
               @change="dateChangebirthday1"
-              style="width: 240px"
-              value-format="yyyy-MM-dd"
+             :default-time="['00:00:00', '23:00:00']"
+              format="yyyy-MM-dd HH:mm:ss"
+              value-format="yyyy-MM-dd HH:mm:ss"
               type="daterange"
               range-separator="-"
               start-placeholder="寮�濮嬫棩鏈�"
@@ -212,17 +213,19 @@
   getDeptAndDwDeptByComp,
 } from "@/api/team/disease";
 import { listComp } from "@/api/system/comp";
+import { getNewDateList } from "@/api/hosp/order";
+import moment from "moment";
 export default {
   data() {
     let checkPhoneNum = (rule, value, callback) => {
-         console.log( value)
+      console.log(value);
       let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/);
       if (value == "" && value == undefined && !value) {
-        return callback('');
-      }  else if(value != undefined && value != ""){
+        return callback("");
+      } else if (value != undefined && value != "") {
         return callback();
-      }else if (!patter.test(value)) {
-        return callback('');
+      } else if (!patter.test(value)) {
+        return callback("");
       }
     };
     return {
@@ -290,14 +293,14 @@
         compId: [
           {
             required: true,
-            validator: checkPhoneNum, 
+            validator: checkPhoneNum,
             trigger: "blur",
           },
         ],
         dwDeptId: [
           {
             required: true,
-            validator: checkPhoneNum, 
+            validator: checkPhoneNum,
             trigger: "blur",
           },
         ],
@@ -306,10 +309,20 @@
   },
   created() {
     this.getDeptTree();
-    this.getNowTime();
+    // this.getNowTime();
     this.getcomp();
+    this.getdate();
   },
   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"),
+        ];
+        console.log(this.createTimeList, 111);
+      });
+    },
     /** 鏌ヨ浣撴鍗曚綅淇℃伅缁存姢鍒楄〃 */
     getcomp() {
       listComp().then((response) => {
@@ -381,9 +394,9 @@
     },
     baogao() {
       console.log(this.firmId);
-        console.log(this.firmDeptId);
-        this.firmId = this.compId;
-        this.firmDeptId = this.dwDeptId;
+      console.log(this.firmDeptId);
+      this.firmId = this.compId;
+      this.firmDeptId = this.dwDeptId;
       if (this.firmId === "" || this.firmDeptId === "") {
         this.$message.warning("璇烽�夋嫨鍗曚綅鍜屽崟浣嶉儴闂紒");
       } else {

--
Gitblit v1.8.0