From 2adc284610bcfed355390d7fa31cf19d445e843d Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期日, 28 四月 2024 17:25:28 +0800
Subject: [PATCH] 供应商搜索 不是首页的时候搜索不到的问题修改

---
 src/views/purchaseManage/purchase/components/SelectSupplierDialog.vue |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/views/purchaseManage/purchase/components/SelectSupplierDialog.vue b/src/views/purchaseManage/purchase/components/SelectSupplierDialog.vue
index 9e553ad..f37ac81 100644
--- a/src/views/purchaseManage/purchase/components/SelectSupplierDialog.vue
+++ b/src/views/purchaseManage/purchase/components/SelectSupplierDialog.vue
@@ -32,7 +32,7 @@
         </TableCommonView>
         <div slot="footer" class="dialog-footer">
           <div class="btn-pager">
-            <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
+            <PagerView class="page" :pagerCount="5"  :layout="'total, sizes, prev, pager, next'" :pager-options="pagerOptions" v-on="pagerEvents" />
           </div>
         </div>
       </div>
@@ -123,11 +123,12 @@
       this.editConfig.editVisible = false
     },
     // 璇锋眰鏁版嵁
-    async getData(val, content) {
+    async getData(val) {
       this.loading = true
 
       await getSupplierList({
-        [val]: content,
+        keyword: val,
+        status:1,
         page: this.pagerOptions.currPage,
         pageSize: this.pagerOptions.pageSize
       })
@@ -161,8 +162,9 @@
       this.$emit("selClient", row)
     },
     // 鎼滅储
-    searchClick(val, content) {
-      this.getData(val.value, content)
+    searchClick(val) {
+      this.pagerOptions.currPage=1
+      this.getData(val)
     },
     resetClick() {
       this.getData()

--
Gitblit v1.8.0