From 8e5ec095fc4ba9cac7c91b681b06846d3e4155ae Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期一, 16 十月 2023 21:17:29 +0800
Subject: [PATCH] 销售明细,退货单、退款单根据客户进行筛选

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

diff --git a/src/store/modules/getClientName.js b/src/store/modules/getClientName.js
index 194f2b0..743d9f3 100644
--- a/src/store/modules/getClientName.js
+++ b/src/store/modules/getClientName.js
@@ -1,4 +1,5 @@
 import { getClientList } from "@/api/client/client" // 瀵煎叆鎺ュ彛
+import { getSubOrderList } from "@/api/sales/subOrder" 
 import { getContactList } from "@/api/client/contacts"
 import { getSaleChanceList } from "@/api/sales/salesOpportunity"
 import { getSalesLeadsList } from "@/api/client/salesLead"
@@ -15,6 +16,7 @@
 export default {
   state: {
     clientList: [], // 瀹㈡埛鍒楄〃
+    subOrderList:[],//閿�鍞瓙鍗�
     contactNamelist: [], // 鑱旂郴浜�
     saleChancelist: [], // 閿�鍞満浼�
     saleLeadlist: [], // 閿�鍞嚎绱�
@@ -30,6 +32,9 @@
   mutations: {
     clientNameList(state, payload) {
       state.clientList = payload
+    },
+    subOrderList(state,payload){
+      state.subOrderList=payload
     },
     contactNameList(state, payload) {
       state.contactNamelist = payload
@@ -75,6 +80,18 @@
         }
       })
     },
+    getSubunit(context){
+      getSubOrderList().then((res)=>{
+        if (res.code == 200) {
+          context.commit("subOrderList", res.data.list)
+        } else {
+          Message.error(res.msg)
+        }
+      })
+    },
+    getSubunitFliter({commit},newData){
+      commit("subOrderList",newData)
+    },
     geContact(context) {
       getContactList().then((res) => {
         if (res.code == 200) {
@@ -108,6 +125,9 @@
         }
       })
     },
+    getLeadFilter({commit},newData){
+      commit("saleLeadlist",newData)
+    },
     geMaster(context) {
       getMasterOrderList().then((res) => {
         if (res.code == 200) {

--
Gitblit v1.8.0