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/sampling/sampling/index.vue |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue
index b251122..f344874 100644
--- a/src/views/sampling/sampling/index.vue
+++ b/src/views/sampling/sampling/index.vue
@@ -10,10 +10,12 @@
     >
       <el-form-item label="浣撴鍙�" prop="tjNum">
         <el-input
+        ref="inputName"
           v-model="queryParams.tjNum"
           placeholder="璇疯緭鍏ヤ綋妫�鍙�"
           clearable
           @keyup.enter.native="handleQuery"
+          @blur="hb"
           style="width: 170px"
         />
       </el-form-item>
@@ -126,10 +128,13 @@
             prop="customer.cusSex"
             width="60px"
           >
-            <template slot-scope="scope">
-              <!-- {{scope.row.customer.cusSex}} -->
+            <!-- <template slot-scope="scope">
               {{ scope.row.customer.cusSex === 0 ? "鐢�" : "濂�" }}
-              <!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> -->
+            </template> -->
+              <template slot-scope="scope">
+              <span v-if="scope.row.cusSex == '0'">鐢�</span>
+              <span v-if="scope.row.cusSex == '1'">濂�</span>
+              <span v-if="scope.row.cusSex == '2'">鏈煡</span>
             </template>
           </el-table-column>
           <el-table-column
@@ -180,7 +185,7 @@
           </el-table-column>
           <el-table-column label="椤圭洰鍚嶇О" align="center" prop="proName" />
           <el-table-column label="鎬у埆" align="center" prop="proSex" width="90" />
-          <el-table-column label="绌鸿吂" align="center" prop="isEat" width="90" />
+          <el-table-column label="绌鸿吂" align="center" prop="proCheckMethod" width="90" />
           <el-table-column
             label="閲囨牱缂栧彿"
             align="center"
@@ -355,6 +360,11 @@
     this.getNowTime();
     this.getList();
   },
+  mounted() {
+    this.$nextTick(() => {
+      this.$refs.inputName.focus();
+    });
+  },
   methods: {
     handleSizeChange(val) {
       this.size = val;
@@ -445,6 +455,12 @@
       };
       this.resetForm("form");
     },
+    hb(){
+      console.log(this.queryParams.tjNum);
+       if (this.queryParams.tjNum != null) {
+        this.handleQuery();
+      }
+    },
     /** 鎼滅储鎸夐挳鎿嶄綔 */
     handleQuery() {
       this.queryParams.pageNum = 1;

--
Gitblit v1.8.0