From e7ccd2a06e4cdf3709e699507e1e15379ded5b83 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期一, 06 十一月 2023 11:25:09 +0800
Subject: [PATCH] Merge branch 'dev' of http://192.168.5.5:10010/r/web/WMS into dev

---
 src/views/productManage/product/index.vue |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/views/productManage/product/index.vue b/src/views/productManage/product/index.vue
index 0b32e39..c5855a4 100644
--- a/src/views/productManage/product/index.vue
+++ b/src/views/productManage/product/index.vue
@@ -5,8 +5,10 @@
         :add-title="'鏂板缓'"
         :placeholder="'璇疯緭鍏ヤ骇鍝佸悕绉�'"
         :amount-view="false"
+        :search-task-map="searchTaskMap"
         @addCommonClick="addBtnClick"
         @searchClick="searchClick"
+        @delSelectClick="delSelectClick"
       />
     </div>
     <div class="list-view">
@@ -54,11 +56,7 @@
       </div>
       <!-- 鍒楄〃褰㈠紡 -->
       <div v-if="isIconIndex === '2'" class="product-list">
-        <TableCommonView
-          ref="tableListRef"
-          :table-list="tableList"
-          @selTableCol="selTableCol"
-        >
+        <TableCommonView ref="tableListRef" :table-list="tableList" @selTableCol="selTableCol">
           <template slot="tableButton">
             <el-table-column label="鎿嶄綔" width="90" align="center">
               <template slot-scope="scope">
@@ -114,15 +112,18 @@
       url: "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg",
       pageSizes: [15, 30],
       keyWord: "",
-      categoryId: null
+      categoryId: null,
+      searchTaskMap: []
     }
   },
   created() {
     this.setTable()
     let query = this.$route.query
     if (query) {
+      console.log("ssssss")
       this.categoryId = query.id ? Number(query.id) : null
       this.pagerOptions.currPage = 1
+      this.searchTaskMap = query.id ? [{ categoryId: this.categoryId, title: query.categoryName }] : []
     }
     this.getData()
   },
@@ -272,7 +273,7 @@
       this.editConfig.visible = true
     },
     // 缂栬緫
-    editRow(row){
+    editRow(row) {
       this.editConfig.autoEdit = true
       this.editConfig.title = "缂栬緫"
       this.editConfig.infomation = { ...row }
@@ -290,6 +291,11 @@
         this.pagerOptions.pageSize = 15
       }
       this.getData()
+    },
+    // 鍒犻櫎浜у搧绫诲瀷
+    delSelectClick() {
+      this.categoryId = 0
+      this.getData()
     }
   }
 }

--
Gitblit v1.8.0