From 688505dded0a49ee685abcb980bd0dc521df4241 Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期四, 18 九月 2025 22:57:36 +0800
Subject: [PATCH] SJ,XJ,RKJ

---
 pages/QC/SJ/List.vue |   83 ++++++++++++++++++++---------------------
 1 files changed, 40 insertions(+), 43 deletions(-)

diff --git a/pages/QC/SJ/List.vue b/pages/QC/SJ/List.vue
index de4fea3..1ec5047 100644
--- a/pages/QC/SJ/List.vue
+++ b/pages/QC/SJ/List.vue
@@ -15,8 +15,13 @@
       </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="璇疯緭鍏ユ楠屽崟鍙锋垨鐗╂枡缂栫爜"
+          <input class="search-input" v-model="searchValue" :placeholder="'璇疯緭鍏�'+options[optionsIndex]"
             @confirm="handleSearch" />
           <button class="search-button" @click="handleSearch">鎼滅储</button>
         </view>
@@ -34,7 +39,7 @@
           <view class="badge normal" v-if="item.isFirst == 1">棣栨</view>
           <view class="card-title">妫�楠屽崟鍙�: {{item.billNo}}</view>
           <view class="status" :class="{'status-pending': current === 0, 'status-assigned': current === 0 && item.statusUser, 'status-pass': current === 1 && item.result === '鍚堟牸', 'status-fail': current === 1 && item.result === '涓嶅悎鏍�'}">
-            {{current === 0 ? (item.statusUser ? '宸插垎閰�' : '鏈彁浜�') : (item.result ? item.result : '宸插畬鎴�')}}
+            {{current === 0 ? (item.statusUser ? '宸插垎閰�' : '鏈彁浜�') : (item.result ? item.result : '宸叉彁浜�')}}
           </view>
         </view>
 
@@ -86,10 +91,7 @@
       </view>
     </view>
 
-    <!-- 娣诲姞鎸夐挳 -->
-    <view class="plus-button" @click="handleFabClick" v-if="current === 0">
-      <view class="plus-icon">+</view>
-    </view>
+    
   </view>
 </template>
 
@@ -110,7 +112,9 @@
       tipShow: false, // 鏄惁鏄剧ず椤堕儴鎻愮ず妗�
       searchValue: '',
       uncheckedCount: 0,
-      checkedCount: '宸插畬鎴�'
+      checkedCount: '宸插畬鎴�',
+      optionsIndex: 0,
+      options: ['鐗╂枡缂栧彿', '宸ュ崟鍗曞彿', '妫�楠屽崟鍙�', '浜х嚎']
     };
   },
   onLoad() {
@@ -139,7 +143,9 @@
           limit: this.limit,
           statusUser: userName,
           result: result,
-          searchValue: this.searchValue
+          fsubmit: this.current === 0 ? 0 : 1,
+          searchValue: this.searchValue,
+          selectedIndex: this.optionsIndex
         }
       }).then(res => {
         if (this.pageIndex === 1) {
@@ -167,11 +173,6 @@
         this.isLoading = false; // 鍑虹幇閿欒鏃剁粨鏉熷姞杞�
       });
     },
-    handleFabClick() {
-      uni.navigateTo({
-        url: 'Add?id'
-      });
-    },
     onClickItem(index) {
       if (this.current !== index.currentIndex) {
         this.current = index.currentIndex;
@@ -179,6 +180,18 @@
         this.pageIndex = 1;
         this.init();
       }
+    },
+    //鎼滅储閫夐」鍙樺寲
+    onOptionsChange(e) {
+      this.optionsIndex = e.detail.value;
+      // 鏍规嵁閫夋嫨鐨勯�夐」璁剧疆鎼滅储瀛楁
+      const fieldMap = {
+        0: 'itemNo', // 鐗╂枡缂栧彿
+        1: 'daa001', // 宸ュ崟鍗曞彿
+        2: 'billNo', // 妫�楠屽崟鍙�
+        3: 'line'    // 浜х嚎
+      };
+      this.selectedField = fieldMap[this.optionsIndex];
     },
     handleSearch() {
       this.pageIndex = 1;
@@ -233,9 +246,7 @@
 }
 
 /* 椤堕儴绛涢�夊尯 */
-.filter-section {
-  /* margin-bottom: 24px; */
-}
+
 
 .filter-section h1 {
   font-size: 24px;
@@ -281,6 +292,19 @@
 
 .search-button:active {
   transform: translateY(0);
+}
+
+.dropdown-filter {
+  min-width: 70px;
+}
+
+.picker {
+  padding: 8px 12px;
+  border: 1px solid #ddd;
+  border-radius: 4px;
+  background-color: white;
+  font-size: 14px;
+  min-width: 120px;
 }
 
 .filter-controls {
@@ -543,33 +567,6 @@
   transform: translateY(0);
 }
 
-/* 娣诲姞鎸夐挳鏍峰紡 */
-.plus-button {
-  position: fixed;
-  bottom: 20px;
-  right: 20px;
-  width: 60px;
-  height: 60px;
-  border-radius: 50%;
-  background: linear-gradient(135deg, #3498db, #2980b9);
-  color: #ffffff;
-  text-align: center;
-  line-height: 59px;
-  font-size: 24px;
-  cursor: pointer;
-  z-index: 1000;
-  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
-  transition: all 0.3s ease;
-}
-
-.plus-button:hover {
-  transform: translateY(-2px);
-  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.5);
-}
-
-.plus-button:active {
-  transform: translateY(0);
-}
 
 /* 鍝嶅簲寮忚璁� */
 @media (min-width: 768px) {

--
Gitblit v1.9.3