From 7d7fbe920279c9d7a42268a284427d2c42d8f0f2 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期二, 10 十月 2023 14:45:01 +0800
Subject: [PATCH] 弹出搜索框 公共组件修改

---
 src/store/modules/getClientName.js |   32 +++++++++++++++++++++++++++++++-
 1 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/src/store/modules/getClientName.js b/src/store/modules/getClientName.js
index 9a474ce..f24918d 100644
--- a/src/store/modules/getClientName.js
+++ b/src/store/modules/getClientName.js
@@ -8,6 +8,8 @@
 import { getSalesDetailsList } from "@/api/sales/salesDetails"
 import { getQuotationList } from "@/api/sales/quotation"
 import { getServiceOrderList } from "@/api/serviceManage/clientServiceOrder"
+import { getProductList } from "@/api/common/other"
+import { getSalesReturnList } from "@/api/sales/salesReturn"
 import { Message } from "element-ui"
 
 export default {
@@ -21,7 +23,9 @@
     getContractList: [], // 鍚堝悓璁㈠崟
     salesDetailsList: [], // 閿�鍞槑缁嗗崟
     quotationList: [], // 鎶ヤ环鍗�
-    serviceOrderList: [] // 瀹㈡埛鏈嶅姟鍗�
+    serviceOrderList: [], // 瀹㈡埛鏈嶅姟鍗�
+    productList: [], // 浜у搧鍒楄〃
+    salesReturnList: [] // 閿�鍞��璐у崟
   },
   mutations: {
     clientNameList(state, payload) {
@@ -53,6 +57,12 @@
     },
     serviceOrderList(state, payload) {
       state.serviceOrderList = payload
+    },
+    productList(state, payload) {
+      state.productList = payload
+    },
+    salesReturnList(state, payload) {
+      state.salesReturnList = payload
     }
   },
   actions: {
@@ -145,6 +155,26 @@
           Message.error(res.msg)
         }
       })
+    },
+    geProductList(context) {
+      getProductList({ productName: "", productNumber: "", page: 1, pageSize: 10 }).then((res) => {
+        if (res.data.code == 200) {
+          console.log(res.data.data.data)
+          context.commit("productList", res.data.data.data)
+        } else {
+          Message.error(res.msg)
+        }
+      })
+    },
+    geReturnList(context) {
+      getSalesReturnList({ productName: "", productNumber: "", page: 1, pageSize: 10 }).then((res) => {
+        if (res.code == 200) {
+          console.log(res.data.list)
+          context.commit("salesReturnList", res.data.list)
+        } else {
+          Message.error(res.msg)
+        }
+      })
     }
   }
 }

--
Gitblit v1.8.0