From 91ec24b5e11ee9294f4061853b93b97508804023 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期二, 24 六月 2025 08:58:21 +0800
Subject: [PATCH] qx

---
 src/views/sampling/sampling/index.vue |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue
index c9fcb6f..71781d5 100644
--- a/src/views/sampling/sampling/index.vue
+++ b/src/views/sampling/sampling/index.vue
@@ -69,20 +69,20 @@
         <el-button type="primary" :disabled="!disabled" @click="Cancellation">鎾ら攢鍚堝苟</el-button>
         <el-button type="primary" @click="Confirmreceipt" :disabled="!selectList.length">閲囨牱鎵撶爜</el-button>
         <el-button type="primary" @click="piliangPrint" :disabled="!isAllSelected">鎵归噺鎵撳嵃</el-button>
-       
+
       </el-col>
       <el-col :span="12" style="margin: 10px 15px" v-show="samplingList.length > 0 && tjStatus == 0">
         <el-button type="primary" :disabled="!selectList.length" @click="buda">琛ユ墦鏉$爜</el-button>
         <!-- @click="Collection" -->
         <el-button type="primary" :disabled="!disabled" @click="Cancellation">鎾ら攢鍚堝苟</el-button>
-         <el-button type="primary" @click="jydPrint">鎵撳嵃妫�楠屽崟</el-button>
+        <el-button type="primary" @click="jydPrint">鎵撳嵃妫�楠屽崟</el-button>
       </el-col>
     </el-row>
 
     <div style="width: 100%; margin-left: 10px; display: flex">
       <div style="width: 40%; margin-right: 20px">
         <el-table id="ta" v-loading="loading1" ref="tb" :data="samplingList" @selection-change="handleSelectionChange"
-          border height="520px" :row-class-name="tableRowClassName">
+          @current-change="handleCurrentChangess" border height="520px" :row-class-name="tableRowClassName">
           <el-table-column type="selection" width="40" align="center" :selectable="selectable" />
           <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" width="160px" />
           <el-table-column label="濮撳悕" align="center" prop="cusName" width="80px" />
@@ -630,6 +630,12 @@
       }
       this.handleQuery(); // 閲嶆柊鏌ヨ
     },
+    handleCurrentChangess(val) {
+      if (val != null) {
+          this.$refs.tb.toggleRowSelection(val, true);
+        this.handleSelectionChange(val);
+      }
+    },
 
     handleSelectionChange(selection) {
       this.piliangList = selection;

--
Gitblit v1.8.0