From 0d1de72422f706518603634778bb8dd32a3721a0 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期五, 03 十一月 2023 14:14:09 +0800
Subject: [PATCH] 重新订购搜索修改

---
 src/views/operate/orderPoint/index.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/views/operate/orderPoint/index.vue b/src/views/operate/orderPoint/index.vue
index c401bc3..80c1401 100644
--- a/src/views/operate/orderPoint/index.vue
+++ b/src/views/operate/orderPoint/index.vue
@@ -7,9 +7,11 @@
         :show-apply="false"
         :placeholder="'璇疯緭鍏ヤ綅缃�/浜у搧'"
         :amount-view="false"
+        :search-task-map="searchTaskMap"
         @addCommonClick="addProductClick"
         @searchClick="getList"
         @discardBtnClick="discardBtnClick"
+        @delSelectClick="delSelectClick"
       />
     </div>
     <div class="content_wrap">
@@ -136,11 +138,14 @@
       maxInventory: 0,
       orderNumber: 0,
       unit: "",
-      reorderId: 0
+      reorderId: 0,
+      searchTaskMap: [],
+      type: "bh"
     }
   },
   created() {
     this.setTable()
+    this.searchTaskMap = [{ type: this.type, title: "閲嶆柊璁㈣喘" }]
     this.getData()
     this.getLocationList()
   },
@@ -167,7 +172,7 @@
     async getData(data) {
       await getReorderRuleList({
         locationId: data?.id,
-        type: "bh",
+        type: this.type,
         keyWord: data?.jointName,
         page: this.pagerOptions.currPage,
         pageSize: this.pagerOptions.pageSize
@@ -401,6 +406,11 @@
         ]
         console.log(res, "res666")
       })
+    },
+    // 鍒犻櫎type
+    delSelectClick() {
+      this.type = ""
+      this.getData()
     }
   }
 }

--
Gitblit v1.8.0