From d10c7c728234b5a9098b7bd5bb7a914a14e33c20 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期五, 29 十二月 2023 18:37:28 +0800
Subject: [PATCH] su

---
 src/views/sampling/sampling/index.vue |   32 ++++++++++++++++++++++++++------
 1 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue
index ef9aba1..ed36df4 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="handleQuery"
           style="width: 170px"
         />
       </el-form-item>
@@ -76,8 +78,9 @@
         >
       </el-form-item>
     </el-form>
-
-    <el-radio-group
+    <el-row :gutter="10" class="mb8" >
+      <el-col :span="10">
+        <el-radio-group
       v-model="tjStatus"
       @input="radioChange"
       style="margin: 10px 15px"
@@ -85,6 +88,14 @@
       <el-radio-button label="1">鏈噰鏍�</el-radio-button>
       <el-radio-button label="0">宸查噰鏍�</el-radio-button>
     </el-radio-group>
+      </el-col >
+            <el-col :span="12" v-if="tableList.length > 1 && tjStatus==0">
+                <el-button type="primary" plain 
+                    v-hasPermi="['hosp:detail:add']">鍚堝苟鏍锋湰</el-button>
+            </el-col>
+
+        </el-row>
+   
 
     <div style="width: 100%; margin-left: 10px; display: flex">
       <div style="width: 40%; margin-right: 20px">
@@ -117,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
@@ -142,6 +156,7 @@
         </el-table>
       </div>
       <div style="width: 50%">
+       
         <el-table
           v-loading="loading"
           :data="tableList"
@@ -170,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"
@@ -345,6 +360,11 @@
     this.getNowTime();
     this.getList();
   },
+  mounted() {
+    this.$nextTick(() => {
+      this.$refs.inputName.focus();
+    });
+  },
   methods: {
     handleSizeChange(val) {
       this.size = val;

--
Gitblit v1.8.0