From d35533b1b42df7e1808a19a8ea72613e605cd6ef Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期四, 09 十一月 2023 16:49:35 +0800
Subject: [PATCH] 添加、编辑上传图片接口联调及编辑和查看和列表图片回显

---
 src/views/operate/orderPoint/index.vue |   71 ++++++++++++++++-------------------
 1 files changed, 32 insertions(+), 39 deletions(-)

diff --git a/src/views/operate/orderPoint/index.vue b/src/views/operate/orderPoint/index.vue
index c401bc3..0da0d1d 100644
--- a/src/views/operate/orderPoint/index.vue
+++ b/src/views/operate/orderPoint/index.vue
@@ -7,9 +7,14 @@
         :show-apply="false"
         :placeholder="'璇疯緭鍏ヤ綅缃�/浜у搧'"
         :amount-view="false"
+        :search-task-map="searchTaskMap"
+        :show-sreen="false"
+        :screen-array="screenArray"
         @addCommonClick="addProductClick"
         @searchClick="getList"
         @discardBtnClick="discardBtnClick"
+        @delSelectClick="delSelectClick"
+        @switchKeywords="switchKeywords"
       />
     </div>
     <div class="content_wrap">
@@ -81,41 +86,6 @@
   data() {
     return {
       datas: [],
-      // datas: [{
-      //     label: '涓�绾� 1',
-      //     children: [{
-      //       label: '浜岀骇 1-1',
-      //       children: [{
-      //         label: '涓夌骇 1-1-1'
-      //       }]
-      //     }]
-      //   }, {
-      //     label: '涓�绾� 2',
-      //     children: [{
-      //       label: '浜岀骇 2-1',
-      //       children: [{
-      //         label: '涓夌骇 2-1-1'
-      //       }]
-      //     }, {
-      //       label: '浜岀骇 2-2',
-      //       children: [{
-      //         label: '涓夌骇 2-2-1'
-      //       }]
-      //     }]
-      //   }, {
-      //     label: '涓�绾� 3',
-      //     children: [{
-      //       label: '浜岀骇 3-1',
-      //       children: [{
-      //         label: '涓夌骇 3-1-1'
-      //       }]
-      //     }, {
-      //       label: '浜岀骇 3-2',
-      //       children: [{
-      //         label: '涓夌骇 3-2-1'
-      //       }]
-      //     }]
-      // }],
       defaultProps: {
         children: "children",
         label: "jointName"
@@ -136,12 +106,24 @@
       maxInventory: 0,
       orderNumber: 0,
       unit: "",
-      reorderId: 0
+      reorderId: 0,
+      searchTaskMap: [],
+      type: "bh",
+      screenArray: [{ id: "0", type: "bh", title: "閲嶆柊璁㈣喘" }]
     }
   },
   created() {
+    if(this.$route.params.productId){
+      this.getData({
+        productId:this.$route.params.productId,
+        pageSize:15,
+        page:1
+      })
+    }else{
+      this.getData()
+    }
     this.setTable()
-    this.getData()
+    this.searchTaskMap = [{ id: "0", type: this.type, title: "閲嶆柊璁㈣喘" }]
     this.getLocationList()
   },
   methods: {
@@ -167,10 +149,11 @@
     async getData(data) {
       await getReorderRuleList({
         locationId: data?.id,
-        type: "bh",
+        type: this.type,
         keyWord: data?.jointName,
         page: this.pagerOptions.currPage,
-        pageSize: this.pagerOptions.pageSize
+        pageSize: this.pagerOptions.pageSize,
+        productId:data?.productId
       }).then((res) => {
         if (res.code === 200) {
           console.log(res)
@@ -401,6 +384,16 @@
         ]
         console.log(res, "res666")
       })
+    },
+    // 鍒犻櫎type
+    delSelectClick() {
+      this.type = ""
+      this.getData()
+    },
+    switchKeywords(item) {
+      console.log(item, "switchKeywords")
+      this.type = item?.length > 0 ? "bh" : ""
+      this.getData()
     }
   }
 }

--
Gitblit v1.8.0