From 26bcd350d2a053000c16f4adbf70a672fcb562b8 Mon Sep 17 00:00:00 2001
From: fcx <2246384483@qq.com>
Date: 星期二, 25 十一月 2025 20:40:48 +0800
Subject: [PATCH] 【首检检验】平板端上方添加一个搜索框提供查询

---
 pages/QC/SJ/ProductionLineSubmit.vue |   34 ++++++++++++++++++++++++++++++++--
 1 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/pages/QC/SJ/ProductionLineSubmit.vue b/pages/QC/SJ/ProductionLineSubmit.vue
index 15c7178..34d5724 100644
--- a/pages/QC/SJ/ProductionLineSubmit.vue
+++ b/pages/QC/SJ/ProductionLineSubmit.vue
@@ -15,6 +15,21 @@
           </button>
         </view>
       </view>
+      
+      <!-- 娣诲姞鎼滅储绛涢�夊尯鍩� -->
+      <view class="filter-controls" style="margin-bottom: 5px;">
+        <view class="dropdown-filter">
+          <picker @change="onOptionsChange" :value="optionsIndex" :range="options">
+            <view class="picker">{{options[optionsIndex]}}</view>
+          </picker>
+        </view>
+        <!-- 鎼滅储妗嗗拰鎸夐挳 -->
+        <view class="search-container">
+          <input class="search-input" v-model="searchValue" :placeholder="'璇疯緭鍏�'+options[optionsIndex]"
+                 @confirm="handleSearch" />
+          <button class="search-button" @click="handleSearch">鎼滅储</button>
+        </view>
+      </view>
     </view>
 
     <!-- 澶撮儴淇℃伅 -->
@@ -123,7 +138,9 @@
       searchValue: '',
       userId: "",
       uncheckedCount: 0,
-      checkedCount: 0
+      checkedCount: 0,
+      optionsIndex: 0, // 鏂板锛氫笅鎷夐�夐」绱㈠紩
+      options: ['椤圭洰', '绾夸綋', '宸ュ崟鍙�', '鐗╂枡鍙�', '鐗╂枡鍚�'] // 鏂板锛氭悳绱㈤�夐」
     };
   },
 
@@ -139,6 +156,18 @@
   },
 
   methods: {
+    // 鏂板锛氭悳绱㈤�夐」鏀瑰彉浜嬩欢
+    onOptionsChange(e) {
+      this.optionsIndex = e.detail.value;
+    },
+    
+    // 鏂板锛氭悳绱㈡寜閽偣鍑讳簨浠�
+    handleSearch() {
+      this.pageIndex = 1;
+      this.data = [];
+      this.init();
+    },
+
     // Tab鍒囨崲
     async switchTab(tabIndex) {
       if (this.currentTab !== tabIndex) {
@@ -164,7 +193,8 @@
             limit: this.limit,
             statusUser: userName,
             status: this.currentTab,  // 0: 鏈彁浜�, 1: 宸叉彁浜�
-            searchValue: this.searchValue
+            searchValue: this.searchValue,
+            selectedIndex: this.optionsIndex // 鏂板锛氫紶閫掓悳绱㈤�夐」绱㈠紩
           }
         });
 

--
Gitblit v1.9.3