From 0303c170c6ff96ad5b2da77e54d6f9c8fd461470 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期二, 26 三月 2024 10:47:32 +0800
Subject: [PATCH] qxtj

---
 src/views/system/circle/index.vue |   35 ++++++++++++++++++++++++++++++-----
 1 files changed, 30 insertions(+), 5 deletions(-)

diff --git a/src/views/system/circle/index.vue b/src/views/system/circle/index.vue
index c688106..fa8f375 100644
--- a/src/views/system/circle/index.vue
+++ b/src/views/system/circle/index.vue
@@ -7,7 +7,7 @@
       </el-form-item>
       <el-form-item label="浣撴鍙�" prop="tjNum">
         <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable
-          @keyup.enter.native="handleQuery" @blur="handleQuery" ref="inputName" />
+          @keyup.enter.native="handleQuery" @blur="hb" ref="inputName" />
       </el-form-item>
       <el-form-item label="鐧昏鏃堕棿" prop="createTimeList">
         <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions"
@@ -58,6 +58,7 @@
           <template slot-scope="scope">
             <span v-if="scope.row.tjCustomerSex == '0'">鐢�</span>
             <span v-if="scope.row.tjCustomerSex == '1'">濂�</span>
+            <span v-if="scope.row.tjCustomerSex == '2'">鏈煡</span>
           </template>
         </el-table-column>
         <el-table-column label="骞撮緞" align="center" prop="tjCustomerAge" height="10px" width="60px"
@@ -233,7 +234,8 @@
 var inpArr = document.getElementsByTagName("input"),
   result = "";
 import print from "print-js";
-import { getsendEmail, getsendMessage } from "@/api/hosp/order";
+import { getsendEmail, getsendMessage, getNewDateList } from "@/api/hosp/order";
+import moment from "moment";
 import {
   listSendTemplate,
 } from "@/api/hosp/sendTemplate";
@@ -390,11 +392,12 @@
     };
   },
   created() {
-    this.getNowTime();
-    this.getList();
+    // this.getNowTime();
+   
     this.Company();
     this.getListEmer();
     this.getDictListEmer();
+    this.getdate();
   },
   mounted() {
     this.$nextTick(() => {
@@ -402,6 +405,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("璇疯繛鎺ユ嫧鍙峰櫒锛�");
     },
@@ -479,8 +491,14 @@
     },
     /** 鏌ヨ浣撴璁板綍鍒楄〃 */
     getList() {
-      this.queryParams.djbeginTime = this.createTimeList[0];
+      if( this.createTimeList){
+        this.queryParams.djbeginTime = this.createTimeList[0];
       this.queryParams.djendTime = this.createTimeList[1];
+      }else if(this.createTimeList == null){
+        this.queryParams.djbeginTime = null;
+      this.queryParams.djendTime = null;
+      }
+     
       this.loading = true;
       getWenJuanList(this.queryParams).then((response) => {
         this.orderList = response.data.list;
@@ -566,6 +584,12 @@
       this.queryParams.pageNum = 1;
       this.getList();
     },
+    hb() {
+      console.log(this.queryParams.tjNum);
+      if (this.queryParams.tjNum != undefined) {
+        this.handleQuery();
+      }
+    },
     handleQuerys() {
       this.emerc = true;
       this.queryParam.pageNum = 1;
@@ -573,6 +597,7 @@
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
     resetQuery() {
+      this.createTimeList = []
       this.resetForm("queryForm");
       this.handleQuery();
     },

--
Gitblit v1.8.0