From 1249ca8ff44f8de7992fdb5866eae19613d606c3 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 16 八月 2023 19:37:49 +0800
Subject: [PATCH] 详情页联调

---
 src/views/service/clientServiceOrder/index.vue |   31 ++++++++++++++++++++++++-------
 1 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/src/views/service/clientServiceOrder/index.vue b/src/views/service/clientServiceOrder/index.vue
index c2d952d..d4b8927 100644
--- a/src/views/service/clientServiceOrder/index.vue
+++ b/src/views/service/clientServiceOrder/index.vue
@@ -61,6 +61,12 @@
     isDetail: {
       type: Boolean,
       default: false
+    },
+    addConfig: {
+      type: Object,
+      default: () => {
+        return {}
+      }
     }
   },
   mixins: [pageMixin],
@@ -107,11 +113,20 @@
         value: "serviceNumber",
         label: "鏈嶅姟鍗曠紪鍙�"
       },
-      selValueList: []
+      selValueList: [],
+      keyword: "",
+      keywordType: ""
     }
   },
   created() {
     this.setTable()
+    if (!this.isDetail) {
+      this.keyword = ""
+      this.keywordType = ""
+    } else {
+      this.keyword = this.addConfig.keyword
+      this.keywordType = this.addConfig.keywordType
+    }
     this.getData()
   },
   methods: {
@@ -137,11 +152,11 @@
       }
     },
     // 璇锋眰鏁版嵁
-    async getData(keyword, keywordType) {
+    async getData() {
       this.loading = true
       await getServiceOrderList({
-        keyword: keyword,
-        keywordType: keywordType,
+        keyword: this.keyword,
+        keywordType: this.keywordType,
         page: this.pagerOptions.currPage,
         pageSize: this.pagerOptions.pageSize,
         salesDetailsId: 0,
@@ -182,11 +197,13 @@
     },
     // 鎼滅储
     searchClick(val, content) {
-      console.log(val, content)
-      this.getData(content, val.label)
+      this.keyword = content
+      this.keywordType = val.label
+      this.getData()
     },
     resetClick() {
-      this.search_map = {}
+      this.keyword = ""
+      this.keywordType = ""
       this.getData()
     },
     // 鏂板缓

--
Gitblit v1.8.0