From 3435a2b1b3e237ee53c98ae7c044d0e84cfa521c Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期四, 25 一月 2024 18:01:18 +0800
Subject: [PATCH] su

---
 src/views/system/bill/index.vue |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/views/system/bill/index.vue b/src/views/system/bill/index.vue
index d16bcbc..86131ec 100644
--- a/src/views/system/bill/index.vue
+++ b/src/views/system/bill/index.vue
@@ -10,7 +10,6 @@
     >
       <el-form-item label="濮撳悕" prop="name">
         <el-input
-          ref="inputName"
           v-model="queryParams.name"
           placeholder="璇疯緭鍏ュ鍚�"
           style="width: 100px"
@@ -19,11 +18,13 @@
       </el-form-item>
       <el-form-item label="浣撴鍙�" prop="tjNum">
         <el-input
+         ref="inputName"
           style="width: 170px"
           v-model="queryParams.tjNum"
           placeholder="璇疯緭鍏ヤ綋妫�鍙�"
           clearable
           @keyup.enter.native="handleQuery"
+          @blur="hb"
         />
       </el-form-item>
       <el-form-item label="鐧昏鏃堕棿" prop="createTimeList">
@@ -169,6 +170,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
@@ -634,6 +636,11 @@
     this.getList();
     this.Company();
   },
+  mounted() {
+    this.$nextTick(() => {
+      this.$refs.inputName.focus();
+    });
+  },
   methods: {
     // / 澶勭悊榛樿閫変腑褰撳墠鏃ユ湡
     getNowTime() {
@@ -772,7 +779,7 @@
 
     /** 鐐瑰嚮鏄剧ず瀵兼鍗曟姤琛�*/ //lige    寮�濮�
     handleReport() {
-      const tjNumber = this.report;
+      const tjNumber = this.report[0];
       const viewNum = "792931586196398080";
       const params = { viewNum, tjNumber };
       hasReport(tjNumber).then((res) => {
@@ -871,6 +878,12 @@
       };
       this.resetForm("form");
     },
+    hb(){
+      console.log(this.queryParams.tjNum);
+       if (this.queryParams.tjNum != undefined) {
+        this.handleQuery();
+      }
+    },
     /** 鎼滅储鎸夐挳鎿嶄綔 */
     handleQuery() {
       this.queryParams.pageNum = 1;
@@ -929,7 +942,7 @@
       }
       /** 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋� */
       projectGetList().then((response) => {
-        this.Treedata = response.data;
+        this.Treedata = response.data.list;
       });
       this.Projectopen = true;
     },

--
Gitblit v1.8.0