From 0f8844dcb400fcdee4ea7831336a6aff382a8cc2 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期六, 23 九月 2023 14:59:16 +0800
Subject: [PATCH] fix: 修复搜索供应商列表结果为空时产品列表不为空的bug, 修复产品列表翻页后搜索供应商时产品列表页码未重置的bug, 修复供应商列表/产品列表/采购订单/质检单/退货单翻页后再搜索页码未重置的bug

---
 src/views/purchaseManage/purchase/index.vue |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue
index 93e3d2b..faee6f8 100644
--- a/src/views/purchaseManage/purchase/index.vue
+++ b/src/views/purchaseManage/purchase/index.vue
@@ -87,7 +87,7 @@
       },
       purchaseStatusList: getDataByType("purchaseStatus"),
       tableColumn: [
-        { label: "閲囪喘鍗曞彿", prop: "number", min: 150, isCommonClick: true },
+        { label: "閲囪喘鍗曞彿", prop: "number", min: 150, isCommonClick: true ,default:true},
         { label: "閲囪喘鍗曞悕绉�", prop: "name", min: 130, isCommonClick: true },
         { label: "鍗曟嵁绫诲瀷", prop: "orderType", min: 130 },
         { label: "渚涘簲鍟嗗悕绉�", prop: "contact", min: 130 },
@@ -96,7 +96,7 @@
         { label: "缁忓姙浜�", prop: "handledBy", min: 130 },
         { label: "鍒跺崟浜�", prop: "creator", min: 130 }
       ],
-      showCol: ['閲囪喘鍗曞彿', '閲囪喘鍗曞悕绉�', '鍗曟嵁绫诲瀷', '渚涘簲鍟嗗悕绉�', '閲囪喘鏁伴噺', '鏀惰揣浠撳簱', '缁忓姙浜�', '鍒跺崟浜�']
+      showCol: ['閲囪喘鍗曞彿', '閲囪喘鍗曞悕绉�', '鍗曟嵁绫诲瀷', '渚涘簲鍟嗗悕绉�', '閲囪喘鏁伴噺', '鏀惰揣浠撳簱']
     }
   },
   created() {
@@ -156,17 +156,9 @@
         })
     },
     // 鎼滅储
-    searchClick(val, content) {
-      console.log(val, content)
-      this.search = content
-      this.getData()
-    },
-    resetClick() {
-      this.search = ""
-      this.getData()
-    },
     onFilterSearch(searchText){
       this.search = searchText ?? ''
+      this.pagerOptions.currPage = 1
       this.getData()
     },
     // 鏂板缓

--
Gitblit v1.8.0