From 2d1cc07e5be9d226d23dc172031a3971ea43528f Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期五, 08 三月 2024 15:50:38 +0800
Subject: [PATCH] qxtj

---
 src/views/doctor/check/index.vue |   40 ++++++++++++++++++++++++++++++++++------
 1 files changed, 34 insertions(+), 6 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index 8ead2cd..696ba8a 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -22,6 +22,7 @@
           v-model="queryParams.tjNumber"
           style="width: 240px"
           placeholder="璇疯緭鍏ヤ綋妫�鍙�"
+          clearable
           @blur="hb"
           @keyup.enter.native="submitForm"
         ></el-input>
@@ -223,7 +224,7 @@
               <el-select
                 v-model="form.hzDeptId"
                 multiple
-                filterable569-0=
+                filterable
                 style="width: 100%"
               >
                 <el-option
@@ -406,9 +407,9 @@
         <table
           style="
             width: 96%;
-            height:70px
+            height:70px;
             margin: 10px 10px;
-            margin-bottom:10px
+            margin-bottom:10px;
             border: 1px solid #dfe6ec;
             border-collapse: collapse;
             font-size:16px
@@ -1105,6 +1106,11 @@
         type: "",
         name: null,
       },
+      queryParam: {
+        page: 1,
+        pageSize: 1000,
+       
+      },
       rules: {
         hzType: [
           { required: true, message: "浼氳瘖绉戝涓哄繀濉」", trigger: "change" },
@@ -1140,7 +1146,7 @@
   methods: {
     /** 鏌ヨ鐢ㄦ埛鍒楄〃 */
     getListUser() {
-      listUser(this.addDateRange(this.queryParams, this.dateRange)).then(
+      listUser(this.addDateRange(this.queryParam, this.dateRange)).then(
         (response) => {
           this.userList = response.rows;
           this.userList.forEach((element) => {
@@ -1316,7 +1322,6 @@
       });
     },
     hb() {
-      console.log(this.queryParams.tjNumber);
       if (this.queryParams.tjNumber != "") {
         this.submitForm();
       }
@@ -1325,7 +1330,27 @@
     // 鎼滅储
     submitForm() {
       this.queryParams.page = 1;
-      this.getList();
+      this.loading = true;
+      this.queryParams.type = this.tjStatus;
+      getProList(this.queryParams).then((response) => {
+        if (response.code == 200) {
+          this.loading = false;
+          if (response.data) {
+            if (response.data.date) {
+              this.tableList = response.data.date;
+              this.queryParams.tjNumber =""
+            } else {
+              this.tableList = response.data.customers;
+              this.queryParams.tjNumber =""
+            }
+            this.total = response.data.total;
+          } else {
+            this.tableList = [];
+          }
+        }
+      });
+     
+      
       // this.loading = true;
       // (this.queryParams = {
       //   page: 1,
@@ -1357,6 +1382,9 @@
     resetQuery() {
       this.resetForm("tableList");
       this.submitForm();
+      this.$nextTick(() => {
+      this.$refs.inputName.focus();
+    });
     },
 
     Changeapplyfor(row) {

--
Gitblit v1.8.0